# Implementing Custom Tracker

**URL:** <https://forums.developer.nvidia.com/t/implementing-custom-tracker/238079>\
**Category:** DeepStream SDK\
**Created:** [December 27, 2022, 5:50pm UTC](https://forums.developer.nvidia.com/t/implementing-custom-tracker/238079 "2022-12-27T17:50:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjwhitten25](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tjwhitten25/32/216236_2.png) [@tjwhitten25](https://forums.developer.nvidia.com/u/tjwhitten25)\
**Post date:** [December 27, 2022, 5:50pm UTC](https://forums.developer.nvidia.com/t/implementing-custom-tracker/238079/1 "2022-12-27T17:50:58Z")

</div>

**• Nvidia Jetson Xavier**  
**• DeepStream 6.1.1**  
**• Jetpack 5.0.2-b231**  
**• TensorRT 8.4.1-1**  
**• Issue Type-Question**  
• **Requirement details: I am attempting to implement a custom tracker library into DeepStream. I am following this guide: [Gst-nvtracker — DeepStream 6.1.1 Release documentation](https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvtracker.html#how-to-implement-a-custom-low-level-tracker-library). However, this guide is very vague and doesn’t specify where the Tracker would need to be implemented?**

Questions to help me implement the custom tracker are:

1. Is there any sample code for implementing a custom tracker? I have searched all through _/opt/nvidia/deepstream_ without any luck.
2. I would imagine that the NvDCF code isn’t releasable as its proprietary. However, is the DeepSORT tracker code releasable? The DeepSORT original code is open-source so I wouldn’t imagine there would be an issue with this?

For example, when instantiating a tracker via the configs we give this configuration path under the _[tracker]_ tag: ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds\_nvmultiobjecttracker.so

So, I would assume that I would need to implment the NvMOTContext(or my custom version of this context) within this library? However, I don’t see a way to modify the code for the libnvds\_nvmultiobjecttracker?

---

<div class="post-metadata">

**Author:** ![kesong](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kesong/32/101255_2.png) [@kesong](https://forums.developer.nvidia.com/u/kesong)\
**Post date:** [December 28, 2022, 12:46am UTC](https://forums.developer.nvidia.com/t/implementing-custom-tracker/238079/3 "2022-12-28T00:46:27Z")

</div>

Thanks, I will check with internal team for custom tracker sample.  
You need implement your custom tracker library and replace the library in the tracker configure file.

---

<div class="post-metadata">

**Author:** ![oopdeveloper](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@oopdeveloper](https://forums.developer.nvidia.com/u/oopdeveloper)\
**Post date:** [March 7, 2023, 7:41pm UTC](https://forums.developer.nvidia.com/t/implementing-custom-tracker/238079/4 "2023-03-07T19:41:07Z")

</div>

A sample MOT tracker implementation showing proper memory allocation and cleanup for the NvMOTContext::processFrame and NvMOTContext::processFramePast methods would be very helpful.

---

<div class="post-metadata">

**Author:** ![kesong](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kesong/32/101255_2.png) [@kesong](https://forums.developer.nvidia.com/u/kesong)\
**Post date:** [April 4, 2023, 9:00am UTC](https://forums.developer.nvidia.com/t/implementing-custom-tracker/238079/5 "2023-04-04T09:00:15Z")

</div>

We haven’t plan for custom tracker sample currently.

---

<div class="post-metadata">

**Author:** ![yingliu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yingliu/32/136703_2.png) [@yingliu](https://forums.developer.nvidia.com/u/yingliu)\
**Post date:** [April 18, 2023, 4:13am UTC](https://forums.developer.nvidia.com/t/implementing-custom-tracker/238079/6 "2023-04-18T04:13:27Z")

</div>

Closed on April 18, 2023, 4:13am UTC


