Ubuntu16.04下vot-toolkit的python版配置

目前已經測試了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的位置並正常使用。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章