C++
Last updated
Last updated
Demonstrates the basics of OpenNI2 usage
Read the distance in the center point
Install cmake and opencv.
Install , and (we use VS2019).
Create two files, example.cpp
and CMakeLists.txt
with following content.
Create a build
folder next to CMakeLists.txt
. Change directory to build folder. Use cmake
to generate build files. Then use make
to build.
1. Open Visual Studio and create a new project
2. Create a new cmake project
3. Modify CMakeLists.txt
and project_setup.cpp