See the details in https://sensing-dev.github.io/doc/next/tutorials/intro/index.html
You can use CMake to build each tutorials.
cd cpp
mkdir build && cd build
cmake ../
cmake --build . --config Release
If you did not OpenCV with Sensing-Dev installer script, you need to set -DOpenCV_DIR
to specify <where you installed opencv>/build
as follows:
cmake -DOpenCV_DIR=<where you installed opencv>/build ../
cmake --build . --config Release
As a default, it build all tutorials. To build a specific tutorial, add the option of -DBUILD_TUTORIAL
; for example,
cmake -DOpenCV_DIR=<where you installed opencv>/build -DBUILD_TUTORIAL=tutorial0_get_device_info ../
cmake --build . --config Release
You may find the compile command at the top of each cpp file.