OpenCV在哪里tracking.hpp [英] OpenCV where is tracking.hpp

查看:913
本文介绍了OpenCV在哪里tracking.hpp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用TLD跟踪程序的OpenCV实现.互联网说我必须包含此文件:opencv2/tracking.hpp(例如,参见

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).

但是没有这样的文件.

那么,在我的C ++项目中如何使用TrackerTLD?

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

(适用于Windows的OpenCV 3.0.0 beta版,是通过opencv.org的.exe软件包安装的)

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

推荐答案

如Floyd所述,要使用TrackerTLD,您需要下载此实现,它运行得很好.请注意,跟踪对象是一项非常耗时的任务,因此要执行实时跟踪,我必须将每个帧的尺寸从640x480缩小到320x240(可能在更低的分辨率下也可以很好地工作(并且肯定更快)).在此实现的作者的网页上,您可以找到有关TLD算法(和实现)的一些信息,以及作者创建的另一个跟踪器-CMT(基于共识的关键点匹配和跟踪).不幸的是,我还没有测试它,所以我什么也不能说.

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.

这篇关于OpenCV在哪里tracking.hpp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆