# Integrating custom object detector (YOLOX) with ZED depth sensing API

**URL:** <https://community.stereolabs.com/t/integrating-custom-object-detector-yolox-with-zed-depth-sensing-api/10284>\
**Category:** Python\
**Tags:** python, zed-sdk, depth\
**Created:** [November 6, 2025, 7:51am UTC](https://community.stereolabs.com/t/integrating-custom-object-detector-yolox-with-zed-depth-sensing-api/10284 "2025-11-06T07:51:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ms12](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/dbc845/32.png) [@ms12](https://community.stereolabs.com/u/ms12)\
**Post date:** [November 6, 2025, 7:51am UTC](https://community.stereolabs.com/t/integrating-custom-object-detector-yolox-with-zed-depth-sensing-api/10284/1 "2025-11-06T07:51:26Z")

</div>

Hi,

I’m working on a **vision-based warehouse automation project** using the **ZED X Mini camera** and **ZED Box Mini (Orin NX)**. We’re developing a system that needs to detect and analyze objects like **pallets and racks** using a **custom object detector (YOLOX)** along with the **ZED SDK’s depth sensing**.

I have a few questions:

1. Is it possible to **combine a custom 2D object detector** (like YOLOX) **with the ZED SDK depth data** , for example, running detection on RGB frames and then querying the depth map for those bounding box regions?

2. For objects such as **pallets or racks** , could the **depth API** be used to infer details like:

3. Is there a recommended workflow or example for fusing **custom object detection outputs with ZED depth data** to extract spatial or volumetric insights?

Any guidance, references, or example pipelines on integrating a depth map with an external detector would be really helpful.

Thanks!  
— M

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [November 6, 2025, 10:08am UTC](https://community.stereolabs.com/t/integrating-custom-object-detector-yolox-with-zed-depth-sensing-api/10284/2 "2025-11-06T10:08:57Z")

</div>

Hi @ms12  
Welcome to the [Stereolabs](https://www.stereolabs.com/) community.

> [@ms12](#):
>
> Is it possible to **combine a custom 2D object detector** (like YOLOX) **with the ZED SDK depth data** , for example, running detection on RGB frames and then querying the depth map for those bounding box regions?

Yes, this is available with the ZED SDK.  
Please read these sections of our documentation:

- [Using the Object Detection API with a Custom Detector - Stereolabs](https://www.stereolabs.com/docs/object-detection/custom-od)
- [How to Use YOLO with ZED - Stereolabs](https://www.stereolabs.com/docs/yolo)

> [@ms12](#):
>
> For objects such as **pallets or racks** , could the **depth API** be used to infer details like:
> 
> - surface irregularities (e.g., **bumps or asymmetric loads** on top of a pallet),
> - **stacked pallets** , or
> - **rack occupancy / empty slots** (using depth or volume estimation)?

This depends on the required accuracy and precision. Normally, you can use Computer Vision processing to perform this type of analysis.

> [@ms12](#):
>
> Is there a recommended workflow or example for fusing **custom object detection outputs with ZED depth data** to extract spatial or volumetric insights?

Please explore our GitHub repository with examples and tutorials:

> **[zed-sdk/object detection at master · stereolabs/zed-sdk](https://github.com/stereolabs/zed-sdk/tree/master/object%20detection)**
>
> ⚡️The spatial perception framework for rapidly building smart robots and spaces - stereolabs/zed-sdk
