Software Stack
DepthAI
  • DepthAI Components
    • AprilTags
    • Benchmark
    • Camera
    • DetectionNetwork
    • EdgeDetector
    • Events
    • FeatureTracker
    • HostNodes
    • ImageAlign
    • ImageManip
    • IMU
    • Misc
    • Modelzoo
    • NeuralNetwork
    • RecordReplay
    • RGBD
    • Script
    • SpatialDetectionNetwork
    • SpatialLocationCalculator
    • StereoDepth
    • Sync
    • SystemLogger
    • VideoEncoder
    • Visualizer
    • Warp
    • RVC2-specific
  • Advanced Tutorials
  • API Reference
  • Tools

ON THIS PAGE

  • Depthai Examples
  • AprilTags
  • Benchmark
  • Camera
  • DetectionNetwork
  • Events
  • Feature Tracker
  • Host Nodes
  • Image Align
  • Image Manip
  • IMU
  • Neural Network
  • Stereo Depth
  • Video Encoder
  • Warp
  • ModelZoo
  • RecordReplay
  • RGBD
  • Script
  • SpatialDetectionNetwork
  • SpatialLocationCalculator
  • Sync
  • SystemLogger
  • Visualizer
  • RVC2-specific examples
  • Camera
  • NNArchive
  • ObjectTracker
  • Thermal
  • ToF
  • VSLAM

Depthai Examples

Code samples are used for automated testing. They are also a great starting point for the DepthAI API, as different node functionalities are presented with code.More examples can be found in the oak-examples (main branch).

AprilTags

Benchmark

Camera

DetectionNetwork

  • Detection network - Run a YOLOv6n object detection model and display results (bounding boxes) on a video stream.
  • Detection network remap - Run a YOLOv6 object detection model and map the bounding boxes onto a depth frame.
  • Detection network replay - Run a YOLOv6 object detection model on a replayed video stream, visualize detections in our custom-built visualizer.

Events

  • Events - Handle events and set callbacks in DepthAI.

Feature Tracker

  • Feature tracker - Detect features and track them between consecutive frames using optical flow.

Host Nodes

  • Display - Create a custom host node that displays frames using OpenCV.
  • Host Camera - Create a custom threaded host node to capture frames from the host machine's camera and send them to the pipeline.
  • Threaded Host Nodes - Create custom threaded host nodes and link them.

Image Align

Image Manip

  • ImageManip all operations - Demonstrate various image manipulation operations including resizing (stretch/letterbox/crop), cropping, flipping, scaling, rotation, affine and perspective transforms, and frame type conversion.
  • ImageManip multiple operations - Define a sequence of operations to be applied to an input frame, all in a single ImageManip node.
  • ImageManip resize - Resize frame and display both original and resized images.
  • ImageManip remap - Use ImageManip to modify a frame and use the underlying transformation to remap a rectangle to match the modified frame.

IMU

Neural Network

Stereo Depth

Video Encoder

  • Video Encode - Encode video frames on-device into MJPEG, H264, or H265 video codecs and save them to a file.

Warp

  • Warp mesh - Warp the input image frame using a 3x3 mesh transformation to create perspective distortion effects.

ModelZoo

  • Model Zoo - Download a model from zoo and unpack it.

RecordReplay

RGBD

Script

SpatialDetectionNetwork

SpatialLocationCalculator

Sync

  • Sync - Synchronize two or more data streams.

SystemLogger

Visualizer

RVC2-specific examples

Camera

NNArchive

ObjectTracker

  • Object Tracker - Track objects in 3D space using YOLOv6 detection and color histogram tracking.

Thermal

  • Thermal - Display thermal camera feed with controls for brightness and shutter.
  • Thermal Crosshair - Display thermal camera feed with temperature readout at mouse cursor position using crosshair overlay.

ToF

  • ToF - Get depth frames from a ToF camera and visualize them using a colormap

VSLAM