TLD (tracking-Learning-detection) learning and source code understanding (2)
Zouxy09@qq.com
Opentld download and Compilation:
(1) https://github.com/arthurv/OpenTLD
Download: arthurv-OpenTLD-1e3cd0b.zip
Alternatively, you can use the GIT tool to clone the file in Linux:
# Git clone git@github.com: alantrrs/opentld. Git
(2) My compiling environment is Ubuntu 12.04 + opencv2.3
Install opencv 2.3:
# Apt-Get install libcv-dev libcv2.3 libcvaux-dev libcvaux2.3 libhighgui-dev libhighgui2.3
Install cmake:
# Sudo apt-Get install cmake
Decompress the package and compile it according to the README file in the source code directory:
# Cd opentld
# Mkdir build
# Cd build
# Cmake ../src/
# Make
# CD ../bin/
(3) run:
% 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