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的位置并正常使用。


放在最后,如果需要集成自己写的python tracker到vot工具箱中,可参考官网链接:

https://www.votchallenge.net/howto/tutorial_python.html

最主要的地方是参考python_ncc.py文件来写自己的tracker接口。vot工具包最近进行了大的更新,把以前的一些示例放到了另一个独立的仓库里(https://github.com/votchallenge/integration),测试的时候需要注意。

https://github.com/votchallenge/integration/blob/master/python/python_ncc.py

  • 3
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 11
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值