How to change the fps of the trackers in OpenCV 3.4.1 in C++?
I am using the trackers KCF, CSRT and MEDIANFLOW for multiple object tracking(the objects slightly move because of the jerkiness in the video) in a 1920x1080 resolution Video. The fps of KCF is around 30 and the tracking is done quickly(eventhough, it fails at some points.). But, for CSRT and MEDIANFLOW the fps is around 4 and so its very slow( But, very accurate in tracking). Is there any way to change the fps of these trackers? Can someone one please tell, where or how to change it? I am using OpenCV 3.4.1( along with opencv_contrib) in Visual Studio 2015(C++)
to my exp. it's exactly the other way round, medianflow & csrt are fast, kcf slow.
how do you measure that ?
(also, trackers have no notion of "fps", there are only faster and slower algorithms)
I am using these trackers(the roi boxes position of tracked objects) to estimate the position of another object in the video. I was running these 3 trackers seperately in my project and when I use KCF , the whole process finishes in less than one minute(video is 12s long). But for the other two, it takes more time.
@berak : So, is it not possible to change the fps of the trackers? And, is there any valid document which describes the properties of these trackers?
hhm, wait, can it be you're using grayscale images ?
there is indeed documentation for the trackers.
unfortunately, in most cases, you'll have to tweak members of various Paramstructs, eg. here .
no, I am not using grayscale images.