# Object Tracking: What is the algorithm that fits my needs

**URL:** <https://forum.opencv.org/t/object-tracking-what-is-the-algorithm-that-fits-my-needs/3322>\
**Category:** Uncategorized\
**Created:** [May 13, 2021, 7:32pm UTC](https://forum.opencv.org/t/object-tracking-what-is-the-algorithm-that-fits-my-needs/3322 "2021-05-13T19:32:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MathewZ](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@MathewZ](https://forum.opencv.org/u/MathewZ)\
**Post date:** [May 13, 2021, 7:32pm UTC](https://forum.opencv.org/t/object-tracking-what-is-the-algorithm-that-fits-my-needs/3322/1 "2021-05-13T19:32:10Z")

</div>

Hello.  
I have been searching object tracking algorithms in opencv, ranging from correlation filters , feature mapping to ones based on deep learning, but I am facing some difficulty in determining which one to fit my needs.

I have a research problem where I need a robust tracking for an object which its scale varies along time (but either in increase or in decrease “monotonic scale”). This can be modeled as a moving camera which heads (towards / away from) an object which is real-time detected. The idea is that the scale is changing in a noticeable way during the real-time.

What can I research and use in this case? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [May 14, 2021, 7:26am UTC](https://forum.opencv.org/t/object-tracking-what-is-the-algorithm-that-fits-my-needs/3322/2 "2021-05-14T07:26:09Z")

</div>

what about making an example video, and trying [the benchmark program](https://github.com/opencv/opencv_contrib/blob/master/modules/tracking/samples/benchmark.cpp) on it ?

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [May 14, 2021, 2:11pm UTC](https://forum.opencv.org/t/object-tracking-what-is-the-algorithm-that-fits-my-needs/3322/3 "2021-05-14T14:11:27Z")

</div>

I consider the `tracking` module to be abandonware.

for a visually simple task, I’d go for a correlation tracker (`samples/python/mosse.py`) because it can achieve subpixel localization.

for a visually challenging task, I’d go for some DNN approach. that’s where the research is. some of these networks were explicitly designed to handle scale changes.

the dnn module contains examples for SiamRPN and successor models.
