Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.73 KB

spatial_mobilenet.rst

File metadata and controls

55 lines (36 loc) · 1.73 KB

RGB & MobilenetSSD with spatial data

This example shows how to run MobileNetv2SSD on the RGB input frame, and how to display both the RGB preview, detections, depth map and spatial information (X,Y,Z). It's similar to example RGB & MobilenetSSD except it has spatial data. X,Y,Z coordinates are relative to the center of depth map.

setConfidenceThreshold - confidence threshold above which objects are detected

Similar samples:

  • Spatial location calculator
  • Spatial object tracker on RGB
  • Mono & MobilenetSSD with spatial data
  • RGB & TinyYolo with spatial data

Demo

Setup

Source code

Python

Also available on GitHub

../../../../examples/SpatialDetection/spatial_mobilenet.py

C++

Also available on GitHub

../../../../depthai-core/examples/SpatialDetection/spatial_mobilenet.cpp