Demos & Examples

In this section, we will showcase what you can build with DepthAI. Different examples will showcase a different usage of DepthAI capabilities, which can both encourage you to develop your own ideas or dive deeper into DepthAI capabilities to discover them yourself.

Demo script

Warning

Demo script is currently in progress

Our multipurpose command line demo tool for Gen2 is currently in progress, and you can actively check it’s progress both on the migration Pull Request or give it a try yourself by giving a try to gen2 branch by running these commands

git clone git@github.com:luxonis/depthai.git
cd depthai
git checkout gen2
python3 install_requirements.py
python3 gen2_demo.py

And then following up with the README.md for more usage examples

Example Use Cases

In this section, you’ll find an inspiration what can you build right away with DepthAI

Camera Demo
Camera Demo

This example shows how to use the DepthAI/megaAI/OAK cameras in the Gen2 Pipeline Builder over USB.

COVID-19 mask detection

This experiment allows you to run the COVID-19 mask/no-mask object detector which was trained via

the Google Colab tutorial here.

Gaze Estimation

This example demonstrates how to run 3 stage inference (3-series, 2-parallel) on DepthAI using Gen2 Pipeline Builder.

Original OpenVINO demo, on which this example was made, is here.

License Plates Recognition

This example demonstrates how to run 2 stage inference on DepthAI using Gen2 Pipeline Builder.

First, a license plate is detected on the image and then the cropped license frame is sent to text detection network, which tries to decode the license plates texts

Deeplabv3 (Segmentation)

This example shows how to run Deeplabv3+ on DepthAI in the Gen2 API system.

Pose Estimation
Pose Estimation

Running Google Mediapipe body pose tracking models on DepthAI

This example was created by our contributor - Geaxgx

Pedestrian reidentification

This example demonstrates how to run 2 stage inference on DepthAI using Gen2 Pipeline Builder.

Original OpenVINO demo, on which this example was made, is here.

Head posture detection

This example demonstrates the Gen2 Pipeline Builder running face detection network and head detection network

This example was created by our partner - ArduCam

Age Gender Recognition

This example demonstrates how to run 2 stage inference on DepthAI using Gen2 Pipeline Builder.

First, a face is detected on the image and then the cropped face frame is sent to age gender recognition network, which produces the estimated results

Fire detection
Fire detection

This example demonstrates the Gen2 Pipeline Builder running fire detection network

This example was created by our partner - ArduCam

Face Recognition
Face Recognition

This example demonstrates the Gen2 Pipeline Builder running face detection network, head posture estimation network and face recognition network

This example was created by our partner - ArduCam

Fatigue Detection
Fatigue Detection

This example demonstrates the Gen2 Pipeline Builder running face detection network and head detection network

This example was created by our partner - ArduCam

Tutorials

In this section, you’ll find a way to expand your knowledge in DepthAI-related topics. Tutorials listed below are a complete walkthrough in a specific topic.

  • Hello World

    Learn how to use the DepthAI Python API to display a color video stream

  • Multiple DepthAI per Host

    Learn how to use the DepthAI Python API to display a color video stream

  • Local OpenVINO Model Conversion

    Learn how to convert OpenVINO IR models into the format required to run on DepthAI

Tools & API Examples

In this section, you’ll see examples of various API usage permutations, to show what the API is capable of or to solve some meta problem, like how to stream the data, how to collect it and alike.

Tools / Examples

OCR

This pipeline implements text detection (EAST) followed by optical character recognition of the detected text

Multiple Devices

This example shows how you can use multiple DepthAI’s on a single host. The demo will find all devices connected to the host and display an RGB preview from each of them.

Class Saver

This example demonstrates how to run MobilenetSSD and collect images of detected objects, grouped by detection label

NN Frame Sync

This example shows how to present the neural network inference results on the inferenced frames

Frames Sync

This example demonstrates how to synchronize incoming frames using their sequence numbers. This allows displaying frames taken in exact same moment

Frames Sync

This directory contains a few examples of how to use the SPI interface with the Gen2 Pipeline builder

TensorFlow Image Classification

This example demonstrates how to run a neural network created using TensorFlow Image Classification tutorial

WLS Filtering

This example demonstrates how to do host-side WLS filtering using the rectified_right and depth stream from DepthAI Gen2 API.

API Samples are available on the API page here, the source code is available here for Python and here for C++

Got questions?

We’re always happy to help with code or other questions you might have.