Use nv-tracker with deepstream-infer-tensor-meta-test sample app

• Hardware Platform : Jetson Xavier Nx
• DeepStream Version : 6.2
• JetPack Version (valid for Jetson only) : 5.11
• TensorRT Version : 8.4.1
• Issue Type( questions, new requirements, bugs) : Bugs
• 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)

I am experimenting with deepstream-infer-tensor-meta-test which is used to access tensor output metadata and there were no issues in running the application. There is no tracker in this application. Also in pgie_pad_buffer_probe callback function I see that the object_id is set to “-1” in line 281 using the following code.

   obj_meta->object_id = UNTRACKED_OBJECT_ID;

However when adding the nvtracker plugin, to this application I am unable to see the tracker ids. I am using the following code to print the tracker ids. I used tracker config file from deepstream-test2 example.

  // obj_meta->object_id = UNTRACKED_OBJECT_ID; Commented this line.
  std::cout<<"Tracker ID : "<<obj_meta->object_id<<std::endl;

All the pgie and sgie configs are same as the ones in deepstream-infer-tensor-meta-test app.
I am uploading the code file with addition of nvtracker plugin in .txt format below.
deepstream_infer_tensor_meta_test_with_nvtracker.txt (32.1 KB).

Should I make any changes to the PGIE, SGIE or tracker configs so I can see the tracker ids when accessing tensor output meta data.

Can you refer deepstream-test2 for nvtracker? nvtracker need the bbox as input for tracking. So please ensure there is bbox in the sink pad of nvtracker, then you can get the object id in the src pad of nvtracker.

Yes, I referred to deepstream-test2 example only for nvtracker and added the nvtracker plugin and its necessary code.

How can I ensure, there is bbox in the sink pad of the nvtracker ? Should I create a probe and attach it to the nvtracker’s sink pad and print logs while running the application ?

Yes, parse tensor output and set bbox before nvtracker.

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

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