当前位置:网站首页>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
边栏推荐
- Electron official docs series: Contributing
- Ring queue PHP
- Traverse the specified directory to obtain the file name with the specified suffix (such as txt and INI) under the current directory
- Solutions to insufficient display permissions of find and Du -sh
- 嵌入式virlog代码运行流程
- 2. Introduction to parallel interface, protocol and related chips (8080, 8060)
- 古瑞瓦特沖刺港交所上市:創下“多個第一”,獲IDG資本9億元投資
- Prototype
- Learn how to develop owl components by hand (7): practical use of owl projects
- E - Apple Catching
猜你喜欢
![[how to connect the network] Chapter 2 (Part 1): establish a connection, transmit data, and disconnect](/img/e3/a666ba2f48e8edcc7db80503a6156d.png)
[how to connect the network] Chapter 2 (Part 1): establish a connection, transmit data, and disconnect

去某东面试遇到并发编程问题:如何安全地中断一个正在运行的线程

Fire warning is completed within 10 seconds, and Baidu AI Cloud helps Kunming Guandu build a new benchmark of smart city

I met the problem of concurrent programming in an interview: how to safely interrupt a running thread

Es6: iterator

Firewall introduction

ES基於Snapshot(快照)的數據備份和還原

MySQL explanation (I)

计算两点之间的距离(二维、三维)

Detailed sorting of HW blue team traceability process
随机推荐
H5 video automatic playback and circular playback
Beifu twincat3 can read and write CSV and txt files
Echart stack histogram: add white spacing effect setting between color blocks
[how to connect the network] Chapter 2 (Part 1): establish a connection, transmit data, and disconnect
Electron official docs series: Contributing
8. [STM32] timer (TIM) -- interrupt, PWM, input capture experiment (proficient in timer)
Typescript
Guruiwat rushed to the Hong Kong stock exchange for listing: set "multiple firsts" and obtained an investment of 900million yuan from IDG capital
输入文本自动生成图像,太好玩了!
MySQL explanation (II)
Generate JDE dot train
Electron official docs series: Get Started
7-2 picking peanuts
Sed editor
ES中索引别名(alias)的到底有什么用
MySQL数据库讲解(四)
Arcpy——InsertLayer()函數的使用:摻入圖層到地圖文檔裏
网络远程访问的方式使用树莓派
创建一个自己的跨域代理服务器
Aesthetic experience (episode 238) Luo Guozheng