C++
Examples
Name
Description
Demonstrates the basics of OpenNI2 usage
Read the distance in the center point
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