常见的C++版跟踪器代码

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_41063476/article/details/89631525

KCF跟踪算法(1):KCF跟踪demo

C++ 跟踪代码

有大神将TLD代码整理成C++形式,可以在Ubuntu下跑通,这是实现方法。

This will be a C++ implementations of the OpenTLD (aka Predator)
----------------------------------------------------------------------------
This is a work in progress, as of right now the code is functional but pretty slow.
----------------------------------------------------------------------------
Installation Notes
=====================================
git clone [email protected]:alantrrs/OpenTLD.git
cd OpenTLD
mkdir build
cd build
cmake ../src/
make
cd ../bin/
%To run from camera
./run_tld -p ../parameters.yml
%To run from file
./run_tld -p ../parameters.yml -s ../datasets/06_car/car.mpg
%To init bounding box from file
./run_tld -p ../parameters.yml -s ../datasets/06_car/car.mpg -b ../datasets/06_car/init.txt
%To train only in the firs frame (no tracking, no learning)
./run_tld -p ../parameters.yml -s ../datasets/06_car/car.mpg -b ../datasets/06_car/init.txt -no_tl 
%To test the final detector (Repeat the video, first time learns, second time detects)
./run_tld -p ../parameters.yml -s ../datasets/06_car/car.mpg -b ../datasets/06_car/init.txt -r

=====================================
Evaluation
=====================================
The output of the program is a file called bounding_boxes.txt which contains all the detections made through the video. This file should be compared with the ground truth file to evaluate the performance of the algorithm. This is done using a python script:
python ../datasets/evaluate_vis.py ../datasets/06_car/car.mpg bounding_boxes.txt ../datasets/06_car/gt.txt

====================================
Thanks
====================================
To Zdenek Kalal for realeasing his awesome algorithm

打算这就在TX1上实验,看看效果如何,希望顺利!

猜你喜欢

转载自blog.csdn.net/weixin_41063476/article/details/89631525