> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.stereolabs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.stereolabs.com/_mcp/server.

# Samples - Object Detection

This section contains samples demonstrating how to use the ZED SDK's [Object Detection](/docs/development/zed-sdk/modules/object-detection/) module to detect, classify and locate objects in 3D space.

> **Note**
>
> This module requires a stereo camera equipped with an inertial sensor (IMU), such as the ZED 2/2i, ZED Mini, ZED X, ZED X Mini, ZED X Nano. The original ZED is **not** supported.

## Getting Started

* First, download the latest version of the [ZED SDK](https://www.stereolabs.com/developers/).
* Download the [Object Detection](https://github.com/stereolabs/zed-sdk/tree/master/object%20detection) sample code in C++, Python or C#.

## Samples in this category

### Image Viewer

Displays detected objects in a 2D view, making it simple to identify and track objects of interest over the live image. *(C++, Python, C#)*

[GitHub](https://github.com/stereolabs/zed-sdk/tree/master/object%20detection/image%20viewer)

### Bird's Eye Viewer

Presents detected objects in a top-down view alongside the 3D point cloud, giving an intuitive perspective on where objects are placed in the scene. *(C++, Python, C#)*

[GitHub](https://github.com/stereolabs/zed-sdk/tree/master/object%20detection/birds%20eye%20viewer)

### Concurrent Detections

Shows how to run the Object Detection and Body Tracking modules simultaneously in a single application. *(C++, Python)*

[GitHub](https://github.com/stereolabs/zed-sdk/tree/master/object%20detection/concurrent%20detections)

### Custom Detector

Shows how to feed your own custom 2D object detector (YOLO/Ultralytics models, in ONNX, TensorRT or OpenCV DNN format) into the ZED SDK, which then computes 3D localization, bounding boxes and tracking on top of your detections. Multiple implementation variants are provided, covering different model formats and inference backends. *(C++, Python)*

[GitHub](https://github.com/stereolabs/zed-sdk/tree/master/object%20detection/custom%20detector)

### Multi-Camera

Shows how to use the Fusion API to combine object detections from multiple cameras covering the same space, for more robust 3D detection and tracking. *(C++)*

[GitHub](https://github.com/stereolabs/zed-sdk/tree/master/object%20detection/multi-camera)

### Multi-Camera, Multi-Model

Shows how to run different detection models on different cameras and fuse the resulting detections through the Fusion API. *(C++)*

[GitHub](https://github.com/stereolabs/zed-sdk/tree/master/object%20detection/multi-camera_multi-model)