# Handling the Depth of Partially Occluded Objects

**URL:** <https://community.stereolabs.com/t/handling-the-depth-of-partially-occluded-objects/11276>\
**Category:** Python\
**Created:** [May 5, 2026, 8:06pm UTC](https://community.stereolabs.com/t/handling-the-depth-of-partially-occluded-objects/11276 "2026-05-05T20:06:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stripedapus](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/6a8cbe/32.png) [@stripedapus](https://community.stereolabs.com/u/stripedapus)\
**Post date:** [May 5, 2026, 8:06pm UTC](https://community.stereolabs.com/t/handling-the-depth-of-partially-occluded-objects/11276/1 "2026-05-05T20:06:42Z")

</div>

Hi there,

I’m wondering if there is a recommended way to handle depths of partially-occluded objects.

I am having issues with scenarios that resemble the following:

_Suppose there is a tall cardboard box ~3m away from a Zed X camera.  
When a person ~5m away from the camera walks across the frame, they are detected at ~5m, but as they pass behind the box, for a brief moment their depth reads ~3m._

I have numerous down-pipeline attempts at recognizing when this situation is happening, but I am wondering if there is a recommended way (or ways) that people have overcome these false depth readings.

Thanks.

---

<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:** [May 6, 2026, 12:19pm UTC](https://community.stereolabs.com/t/handling-the-depth-of-partially-occluded-objects/11276/2 "2026-05-06T12:19:08Z")

</div>

Hi @stripedapus  
Is it possible to record a video or take screenshots to show the problem while appearing?

---

<div class="post-metadata">

**Author:** ![stripedapus](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/s/6a8cbe/32.png) [@stripedapus](https://community.stereolabs.com/u/stripedapus)\
**Post date:** [May 6, 2026, 5:03pm UTC](https://community.stereolabs.com/t/handling-the-depth-of-partially-occluded-objects/11276/3 "2026-05-06T17:03:41Z")

</div>

Hi @Myzhar

Thanks for your response. Unfortunately I am not able to share the videos publicly.

We could either start a private conversation or keep it more hypothetical so hopefully other people can benefit as well.

This is a fairly well-known issue with any depth problem, so I’m wondering if ZED itself takes actions to try to mitigate this and if there is any well-known indicators that a person-detection (`sl.ObjectData`) could be occluded.

Some thoughts off the top of my head:

- Occlusion could somehow be inferred from a detection’s `dimensions` or 3D `bounding_box` size (perhaps they are very “long” depth-wise)
- Perhaps the `position_covariance` could somehow be used
- We could use the depth confidence map to disregard poor readings downstream.

Could any of these or other values be used as hints that occlusion could be happening?

Thanks.

---

<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:** [May 6, 2026, 5:44pm UTC](https://community.stereolabs.com/t/handling-the-depth-of-partially-occluded-objects/11276/4 "2026-05-06T17:44:11Z")

</div>

> [@stripedapus](#):
>
> We could either start a private conversation or keep it more hypothetical so hopefully other people can benefit as well.

You can send videos that you cannot share publicly to [support@stereolabs.com](mailto:support@stereolabs.com) with a link to this discussion.

We will continue on that channel.
