# Issues with Object Detection & Tracking: Persistence and Class Switching Delays (ZED X + ZED Box Mini)

**URL:** <https://community.stereolabs.com/t/issues-with-object-detection-tracking-persistence-and-class-switching-delays-zed-x-zed-box-mini/11618>\
**Category:** Software\
**Created:** [August 7, 2026, 6:40am UTC](https://community.stereolabs.com/t/issues-with-object-detection-tracking-persistence-and-class-switching-delays-zed-x-zed-box-mini/11618 "2026-08-07T06:40:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OscarSimetria](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/o/e47774/32.png) [@OscarSimetria](https://community.stereolabs.com/u/OscarSimetria)\
**Post date:** [August 7, 2026, 6:40am UTC](https://community.stereolabs.com/t/issues-with-object-detection-tracking-persistence-and-class-switching-delays-zed-x-zed-box-mini/11618/1 "2026-08-07T06:40:04Z")

</div>

Hi everyone,

We are currently working with a ZED Box Mini equipped with a Jetson Orin NX (16GB) and a ZED X camera, and we are encountering a couple of issues regarding the object tracking and detection module:

- Persistence issue: The detection bounding box persists even after the tracked item is no longer visible to the camera.

- Class switching delay/error: When a new or different item enters the scene, the system sometimes struggles to update the detected class. For example, if it was previously detecting a person and a dog enters, the bounding box for the dog is sometimes still labeled as a “person” while retaining the same tracking ID.

Are there specific parameters or configuration settings we can adjust to resolve or mitigate these behaviors?

Thank you very much in advance for your help!

---

<div class="post-metadata">

**Author:** ![TristanLed](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@TristanLed](https://community.stereolabs.com/u/TristanLed)\
**Post date:** [August 7, 2026, 12:11pm UTC](https://community.stereolabs.com/t/issues-with-object-detection-tracking-persistence-and-class-switching-delays-zed-x-zed-box-mini/11618/2 "2026-08-07T12:11:48Z")

</div>

Hi Oscar,

Both are expected tracker behaviour and tunable.

**1. Persisting box.** When detection is lost, the SDK predicts the trajectory for `prediction_timeout_s` (default 0.2 s) and the object still reports `OBJECT_TRACKING_STATE::OK`; after that it goes to `SEARCHING`, then `TERMINATE`. Note `retrieveObjects()`returns those states too — our samples only render `tracking_state == OK`. If you draw everything in `object_list`, dying tracks stay on screen. That’s usually the cause. You can also set `prediction_timeout_s = 0` to disable prediction, and check `objects.is_new` (async mode returns the last completed detection).

**2. Class switching.** `filtering_mode` defaults to `NMS3D`, which suppresses detections at the same 3D position as an already-tracked object _independent of class_. So the dog’s `ANIMAL` detection is dropped and the `PERSON` track keeps its ID and label. Switch to `NMS3D_PER_CLASS`.

Also: SDK 5.2 added per-class `ObjectTrackingParameters` and fixed random ID swaps — worth upgrading if you’re on an earlier release.

Could you confirm your SDK version, JetPack/L4T, whether you use the built-in model or a custom detector, and your current `filtering_mode`? A short SVO of both cases would let us reproduce directly.

Best regards,

Tristan
