OpenCV where is tracking.hpp
Asked Answered
D

1

6

I want to use an OpenCV's implementation of the TLD tracker. Internet says that I have to include this file: opencv2/tracking.hpp (e.g. see https://github.com/Itseez/opencv_contrib/blob/master/modules/tracking/samples/tracker.cpp).

But there is no such a file.

Well, what must I do to use TrackerTLD in my C++ project?

(OpenCV 3.0.0 beta for Windows, installed from the .exe package from opencv.org)

Devine answered 19/2, 2015 at 23:29 Comment(3)
This file is located at opencv\build\include\opencv2\video directory.Neman
Floyd, this file exists, but there is no TrackerTLD class here. Also I have found that this one is implemented in the contrib repo (answers.opencv.org/question/51561/opencv30-tldtracker). Can you explain please how to use it?Devine
You have to download contrib repo from github.com/Itseez/opencv_contrib and build it. You can find all instructions in the link above.Neman
C
9

As Floyd mentioned, to use TrackerTLD, you need to download OpenCV contrib repo. Instruction is in the link, so explaining it shouldn't be necessary.
However in my opinion using TrackerTLD from OpenCV repo is bad option - i've tested it (about a week or 2 ago) and it was terribly slow. If you are thinking about real time image processing, consider using other implementation of TLD or some other tracker. Right now i'm using this implementation and it's working really well. Note that tracking an object is quite a time consuming task so to perform a real time tracking i have to downscale every frame from 640x480 to 320x240 (Propably it would work well (and definitely faster) in even lower resolution). On the web page of author of this implementation you may find some informations about TLD algorithm (and implementation) and another tracker created by this author - CMT(Consensus-based Matching and Tracking of Keypoints). Unfortunetely i haven't test it yet so i can't tell anything about it.

Cundiff answered 20/2, 2015 at 0:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.