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
C++
Also available on GitHub
../../../../depthai-core/examples/SpatialDetection/spatial_mobilenet.cpp