当前位置:网站首页>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
边栏推荐
- 网络远程访问的方式使用树莓派
- Es sauvegarde et restauration des données par instantané
- [how to connect the network] Chapter 1: the browser generates messages
- ES6 module
- Mysql database explanation (IV)
- A collection of common tools for making we media videos
- Hdu1724[Simpson formula for integral]ellipse
- Typescript
- MySQL数据库常见故障——遗忘数据库密码
- [shell] generate strings between specified dates
猜你喜欢

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

IDC report: the AI cloud market share of Baidu AI Cloud ranks first for six consecutive times

Use of wangeditor rich text editor

Chapter 10 setting up structured logging (2)

Teacher Li Hang's new book "machine learning methods" is on the market! Purchase link attached

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

Log in to the server using SSH key pair

【Spark】. Explanation of several icons of scala file in idea
![[how to connect the network] Chapter 1: the browser generates messages](/img/6b/e85f29ba97c261e01e177b5e77c423.png)
[how to connect the network] Chapter 1: the browser generates messages

嵌入式virlog代码运行流程
随机推荐
Basic methods for network diagnosis and hardware troubleshooting of Beifu EtherCAT module
Ubuntu installation and configuration PostgreSQL (18.04)
Mysql database explanation (V)
A few lines of code can realize complex excel import and export. This tool class is really powerful!
[how to connect the network] Chapter 2 (Part 1): establish a connection, transmit data, and disconnect
LeetCode_ Stack_ Medium_ 150. evaluation of inverse Polish expression
Arcpy - - utilisation de la fonction insertlayer (): ajout de calques dans un document de carte
B - Bridging signals
MySQL数据库讲解(五)
Arcpy -- use of insertlayer() function: adding layers to map documents
Arcpy——InsertLayer()函數的使用:摻入圖層到地圖文檔裏
Connection migration for DataGrid configuration
Coprime and non coprime of template problems of Chinese remainder theorem
Zoomeeper sets ACL permission control (only specific IP access is allowed to enhance security)
KITTI Tracking dataset whose format is letf_ top_ right_ bottom to JDE normalied xc_ yc_ w_ h
12 SQL optimization schemes summarized by old drivers (very practical)
Electron official docs series: Contributing
嵌入式virlog代码运行流程
Beifu PLC realizes data power-off maintenance based on cx5130
HDU 3709 Balanced Number