Custom Bounding Box Colors Based on Tracker ID

• Hardware Platform (Jetson / GPU)
Jetson Xavier NX Devkit
• DeepStream Version
5.0
• JetPack Version (valid for Jetson only)
REVISION: 4.3
• TensorRT Version
7.1.3.0-1
• NVIDIA GPU Driver Version (valid for GPU only)
N/A
• Issue Type( questions, new requirements, bugs)
Questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
N/A
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
N/A

Basically I have implemented an inference system built around deepstream-app (c version) and it is working extremely well for my use case.

I was wondering, If you have a tracker set up (NvDCF in my case), is there a way to color bounding boxes drawn to OSD based on the tracker ID assigned to each bounding box?

follow up question, if possible, is it possible to change the color mapping for track ID’s on the fly? I’m not opposed to editing app a bit if need be.

Thanks in advance,
w_s

I think you can add a probe on the src pad of nvtracker and modified the corresponding filed in NvDsDisplayMeta, you can refer NvOsd module API — Deepstream Deepstream Version: 5.0 documentation