目前已经测试了vot-toolkit的matlab版本,本篇主要介绍与之不同的配置之处,其余的部分可参考上一篇。
Ubuntu16.04+Matlab2016a下VOT工具vot-toolkit的简单测试及问题解决方案
接下来开始转到python版本的配置,毕竟我们最终的跟踪器都是用python实现的。配置的关键在于trax的编译和设置,具体过程如下。
1. trax的编译。在vot-toolkit/native/trax目录下,使用终端来编译trax,具体指令如下:
mkdir build
cd build
cmake ..
make
2. tracker的配置。修改tracker_NCC.m文件,如下:
% error('Tracker not configured! Please edit the tracker_NCC.m file.'); % Remove this line after proper configuration
tracker_label = ['NCC'];
tracker_command = generate_python_command('python_ncc', {'data/vot-toolkit/tracker/examples/python', ...
'data/vot-toolkit/native/trax/support/python'});
tracker_interpreter = 'python';
tracker_linkpath = {'data/vot-toolkit/native/trax/build'}; % A cell array of custom library directories used by the tracker executable (optional)
与matlab版不同的地方是在generate_python_command中加入了trax/support/python路径以及在tracker_linkpath中指定了编译后的trax路径,目的在于让程序找到libtrax.so的位置并正常使用。