当前位置:网站首页>33. Use rgbd camera for target detection and depth information output
33. Use rgbd camera for target detection and depth information output
2022-06-26 13:36:00 【sxj731533730】
The basic idea : I have a piece of Yunshi technology in my hand RGBD Depth camera , Did a simple test and record , Weighing D415 The camera 、OAK The camera 、RGBD( Transportability ) Behind the camera , In the end, I choose RGBD The camera , Deploy industrial requirements .
One 、 I use the official provided here example To test ,IDE Use Clion development tool , The environment is ubuntu20.04 Development environment of . Here are some simple settings , First, execute the... In the example berxel-usb.rules The rules , Put it usb Add rules to the system . And then libs Division in the package libBerxelHawk.so All copied to /usr/lib/ in .
cmakelists.txt The contents of the document
cmake_minimum_required(VERSION 3.16)
project(untitled)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp ")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp")
include_directories(${CMAKE_SOURCE_DIR}/include)
add_library(libBerxelHawk SHARED IMPORTED)
set_target_properties(libBerxelHawk PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/lib/libBerxelHawk.so)
add_executable(untitled main.cpp BerxelCommonFunc.cpp BerxelImageRender.cpp )
target_link_libraries(untitled libBerxelHawk -lglut -lGL)I won't post the code , Just put it on clion Directory structure of

test result , Used in the project HawkMixColorDepthMatting The following figure shows the result of mouse click operation

Two 、 Use detection target and depth information to combine , Use here NCNN nanodet+ Official code
cmakelist.txt The contents of the document
cmake_minimum_required(VERSION 3.16)
project(untitled4)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp ")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp")
include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${CMAKE_SOURCE_DIR}/include/ncnn)
add_library(libBerxelHawk SHARED IMPORTED)
set_target_properties(libBerxelHawk PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/lib/libBerxelHawk.so)
add_library(libncnn STATIC IMPORTED)
set_target_properties(libncnn PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/lib/libncnn.a)
find_package(OpenCV REQUIRED)
add_executable(untitled4 main.cpp BerxelCommonFunc.cpp BerxelImageRender.cpp DetectObject.cpp include/DetectObject.h)
target_link_libraries(
untitled4
libBerxelHawk
-lglut
-lGL
${OpenCV_LIBS}
libncnn
)Here, because the upper left corner coordinates of the detection target are used , Because the coordinates of the center point of the detected object should be used , And only do single target detection

Modified code upload github: https://github.com/sxj731533730/RGBD.git
边栏推荐
- MySQL讲解(二)
- Mysql database explanation (III)
- Luogu p3426 [poi2005]sza-template solution
- 古瑞瓦特冲刺港交所上市:创下“多个第一”,获IDG资本9亿元投资
- Mysql database explanation (V)
- MongoDB系列之Window环境部署配置
- Mediapipe gestures (hands)
- 8、【STM32】定时器(TIM)——中断、PWM、输入捕获实验(一文精通定时器)
- Beifu cx5130 card replacement and transfer of existing authorization files
- 创建一个自己的跨域代理服务器
猜你喜欢

Network remote access using raspberry pie

Firewall introduction

Design of simple digital circuit traffic light

MediaPipe手势(Hands)

Gurivat sprint Harbour Exchange listed: created “multiple first”, received 900 million yuan Investment from IDG capital

What features are added to Photoshop 2022 23.4.1? Do you know anything

8、【STM32】定时器(TIM)——中断、PWM、输入捕获实验(一文精通定时器)

C language: Exercise 2

First pass! Baidu AI Cloud Xiling platform has obtained the authoritative certification of digital human ability evaluation from the Institute of information technology

There are many contents in the widget, so it is a good scheme to support scrolling
随机推荐
Mysql database explanation (IV)
Generate JDE dot train
Bigint: handles large numbers (integers of any length)
7-2 the cubic root of a number
Go language - pipeline channel
Composite mode
[how to connect the network] Chapter 2 (Part 1): establish a connection, transmit data, and disconnect
ES6 module
DataGrip配置的连接迁移
ES中索引别名(alias)的到底有什么用
HDU 3555 Bomb
Map value
G - Cow Bowling
Arcpy - - utilisation de la fonction insertlayer (): ajout de calques dans un document de carte
Taishan Office Technology Lecture: four cases of using bold font
MongoDB系列之适用场景和不适用场景
C - Common Subsequence
es常用语法一
MySQL讲解(二)
Create your own cross domain proxy server