How to speed up TLD tracker in opencv 3 with contrib modules ? [closed]
i ran the sample TLD code (using the "TLD" tracker), it works but the framerates are low and delay is very high , are there any parameter or anything else that can be altered to boost it??? Please help.
Hmm lets start by discussing your application and how you are using the tracker. Things to speed it up is to reduce the region in which you will apply the tracking instead of basing it on the complete frame.
The code:
using the above methods , still slow on smallest ROI.
Yeah but that is because you are probably updating your tracker on each frame? Basically you want your tracker to predict about 75 % of the time and use 25% of the detections to update your tracker. Then it goes fast. General principle for all trackers AFAIK.
how to do that , Do i have to change any parameter in TLDTrackker.cpp file?
i need something like this : https://www.youtube.com/watch?v=SPUvK... it is working flawless . The source code and exe files are given in video desciption but i couldn't compile it. exe file runs fine with good frame rates.
+StevePuttermans -- I'm also a bit interested in that 75%/25% technique that you mentioned. I haven't seen it in any of the samples and 15+ minutes of googling hasn't really turned much up. If you could justp oint me in the right direction, I'd love to learn it a bit more. As far as I can tell, you're saying that we should overlay the tracker with something like a Kalman filter, and use the predict feature of that filter most of the time, and just update the tracker at whatever rate we can handle real time (and around 25% is a good rule of thumb)? If that's the case, then I understand it. But if there's something else, some other general principle I could look at, that would be interesting.
Hmm I was talking from my experience with cascade classifier detection and Kalman tracking in order to speed up sequence based detection. Therefore I was guessing that TLD has some kind of Kalman like behaviour since it is a tracker? Afaik TLD asks you to select an object and then predicts where it is going to be right?
Hmm, the documentation says this:
"The Median Flow algorithm (see above) was chosen as a tracking component in this implementation, following authors. Tracker is supposed to be able to handle rapid motions, partial occlusions, object absence etc."
successfully implemented TLD , using OPEN TLD with c++ and opencv. and it works way much better than opencv contrib module TLD .
If you are up to it, could you see where the difference lie and try to update the contrib part?
btw, this one is nice & fast, too.
It is fast but it doesn't update height and width of the object. but i need to do that too.
Sid, isnt it possible for you to adapt the code of the project berak refers to so that those values get updated too?
Hi,break.I found the one can not run on VS2013 with opencv2411
@Sheng Liu , worked for me (even with vs2008)
if it is important, you maybe should spawn a new question about it.
@sid Do you think the code of "OPEN TLD with c++ and opencv" is too complex to understand? How to simplify the code in the project? Just achieve the basic TLD function.
Same here : Running TLD sample code in openCV 3 with tracking contrib module is giving me unsatisfactory results : Very low framerate even on low quality sample video. Any idea how to speed it up?
@mubb the TLD sample code is known to be very slow. There is a GSoC student working on this as far a I know. Look here and here.
Any news about the project ? @StevenPuttemans
afaik this is still ongoing. you have to be patient :D
Can install OpenTDL with OpenCV3.0.0? How to do it?
Hi #sid
I'm sorry but how did you install the library openTLD ? because I 've done with cmake - gui giving the opencv3.1 path but it can not find the directories..
@peren, please don't make answers, if you have a comment or question...
@sid
How did you implement TLD , using OPEN TLD with C++ and Opencv? I am using Open TLD C++ implemented by Georg Nebehay (https://github.com/gnebehay/OpenTLD), however facing conflicts built-in TLD when linking with OpenCV.
The built-in TLD tracker is very slow, does not initialize or overshoots. What parameters should I update to speed it up?.
Best regards,
Karan