WIN10+MATLAB2016B+VS2015+OPENCV3.4调试LCT+

首先贴出超哥给的步骤:

1. Unzip code or clone it from https://github.com/chaoma99/lct-tracker.git

2. Add the vl_feat toolbox in your current path http://www.vlfeat.org/

3. If you don't have the object tracking benchmark (OTB) dataset yet, run 'download_videos.m' (it will automatically download the OTB-100 sequences)

4. Run utility/compile.m to comile calcIIF.cpp and im2colstep.c. These files are tested with opencv3.0. Notice the compatibility issue if your opencv version is earlier than 3.0

5. The source files "assignToBins1.c", "gradientMex.cpp", 'imResample.cpp' are from Pitor Dollar's toolbox. If the compiled files do not work on your system, get it from http://vision.ucsd.edu/~pdollar/toolbox/doc/index.html

前3步都好说,第一步不会的就放弃治疗吧。。

由于vl_feat 已经配置,OTB100数据库已经下载好了,我直接从第四步开始做的。

打开compile.m,首先看到两行文件路径,改为自己的OpenCV文件路径,注意不要有空格和中文字符:


由于我是WIN10+MATLAB2016B+VS2015+OPENCV3.4:


打开run_tracker.m,注意到第19行,需要将测试数据集的路径修改为自己的路径。


修改完后成功运行:

相关文章
相关标签/搜索