In this directory there are usage examples of depthai-python repository.
Navigate to root of repository and build Python module with DEPTHAI_PYTHON_TEST_EXAMPLES option enabled
mkdir -p build && cd build
cmake .. -DDEPTHAI_PYTHON_ENABLE_EXAMPLES=ON
cmake --build . --parallel
If you'd like to use a different Python interpreter, set PYTHON_EXECUTABLE to your interpreter location
cmake .. -DDEPTHAI_PYTHON_ENABLE_EXAMPLES=ON -D PYTHON_EXECUTABLE=/path/to/python
To test all examples
ctest
To execute a specific example (without timeout)
TEST_TIMEOUT=0 ctest -R "01_rgb_preview" --verbose
NOTE For clearness, a disparity output is used instead of depth, as disparity is better to visualize
NOTE For clearness, a disparity output is used instead of depth, as disparity is better to visualize
NOTE For clearness, a disparity output is used instead of depth, as disparity is better to visualize













