Skip to content

Files

This branch is 3496 commits behind luxonis/depthai-python:main.

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Depthai-Python examples

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

Setup

  • Configure and build python module with DEPTHAI_PYTHON_TEST_EXAMPLES option enabled
mkdir -p build && cd build
cmake .. -DDEPTHAI_PYTHON_TEST_EXAMPLES=ON
cmake --build . --parallel

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