How to get the duration for which the object is being tracked

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) dGPU T4
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only)
• TensorRT Version TRT7
• NVIDIA GPU Driver Version (valid for GPU only) 440.60

How to get the duration for which the object is being tracked? I am trying to find how long a particular object has been in the scene.

A sample code would be helpful.

HI
Sorry for late reply,
We do not have sample code,
In NvMOTTrackedObj of the tracker metadata, there’s a field called age . For each object, the age value of the last tracking data would indicate how long it has been tracked.
age is the number of frames an object is being tracked.

https://docs.nvidia.com/metropolis/deepstream/plugin-manual/index.html#page/DeepStream%20Plugins%20Development%20Guide/deepstream_plugin_details.3.02.html#wwpID0E0G40HA