Track ID of Objects extraction

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Nvidia Jetson Orin Nano
• DeepStream Version 6.3
• JetPack Version (valid for Jetson only) 5.1.2
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)

I want to have the tracking ID of objects in each frame and the time they enter and exit the frame. As far as I understood, we can not have composer GUI on Nvidia Jetson devices, how I can extract those information. Thanks in advance

Do you want to save that to a file or display on the screen directly?
You can implement that by yourself.

  1. add a probe function to the src_pad of tracker plugin
  2. record the time when an object’s tracker id appears and disappears

Thanks for your reply, could you please tell me in which file and which function I should add this configurations?

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

Is the code you are using our demo or your own? Take our deepstream_test2 as an example.
You can add a probe function on the src_pad of the nvtracker plugin.

  GstPad *nvtracker_src_pad = gst_element_get_static_pad (nvtracker, "src");
  if (!nvtracker_src_pad )
    g_print ("Unable to get src pad\n");
  else
    gst_pad_add_probe (nvtracker_src_pad , GST_PAD_PROBE_TYPE_BUFFER,
        nvtracker_src_pad_buffer_probe, NULL, NULL);
  gst_object_unref (nvtracker_src_pad );

Then you can get the object_id in the probe function.

obj_meta->object_id;

Finally, you can count the time when a particular onject_id appears and disappears yourself.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.