Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Depthai-Python examples

In this directory there are usage examples of depthai-python repository.

Setup

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

Usage

To test all examples

ctest

To execute a specific example (without timeout)

TEST_TIMEOUT=0 ctest -R "01_rgb_preview" --verbose

Demo

01_rgb_preview.py

example_1

02_mono_preview.py

example_2

03_depth_preview.py

NOTE For clearness, a disparity output is used instead of depth, as disparity is better to visualize

example_3

04_rgb_encoding.py

example_4

05_rgb_mono_encoding.py

example_5

06_rgb_full_resolution_saver.py

example_6

07_mono_full_resolution_saver.py

example_7

08_rgb_mobilenet.py

example_8

09_mono_mobilenet.py

example_9

10_mono_depth_mobilenetssd.py

NOTE For clearness, a disparity output is used instead of depth, as disparity is better to visualize

example_10

11_rgb_encoding_mono_mobilenet.py

example_11

12_rgb_encoding_mono_mobilenet_depth.py

NOTE For clearness, a disparity output is used instead of depth, as disparity is better to visualize

example_12

13_encoding_max_limit.py

example_13

14_color_camera_control.py

example_14