C++
Examples
Name | Description |
---|---|
Help you make sure build environment is setup correctly | |
How to connect to camera and get camera info | |
Use OpenCV to display Color, depth and IR images | |
How to set the ROI of image frame | |
Get the depth value by pixel coordinate (x,y) | |
Align depth and RGB frame to the same coordinate | |
Get the data only in desired distance only |
Prerequisite
Install cmake and opencv.
Linux:
Windows:
Install cmake, OpenCV and Visual Studio (we use VS2019).
Create new CMake Project
Create two files, example.cpp
and CMakeLists.txt
with following content.
Build
Linux
Create a build
folder next to CMakeLists.txt
. Change directory to build folder. Use cmake
to generate build files. Then use make
to build.
Windows
1. Open Visual Studio and create a new project
2. Create a new cmake project
3. Modify CMakeLists.txt
and project_setup.cpp
Expect output
Last updated