1.首先按照https://blog.csdn.net/hjl240/article/details/52002749该博主的方法配置了半天,遇到这些问题

 

    (1)feature.hpp里和tracker.hpp里CV_OVERRIDE不认识

    (2)Tracker::create不认识

查看opencv源码发现CV_OVERRIDE应该是在Utility.h头文件里的,但是貌似不是每个版本都有,那就手动在feature.hpp里面添加了:

#define CV_OVERRIDE   override

第二个问题换成了TrackerKCF::create就行了。

    (3)又出现了一个问题tracker::init  tracker::update 等无法解析外部符号。

应该是lib文件不对。但是按照上述博客中明明已经生成lib了,后来发现是自己编译生成的lib缺了不少,下面应该是全部的lib文件名,自己编辑有问题,又慢。。所以直接去网上找别人编译好的install文件夹了,里面有tracking的头文件和lib。但是由于这个博主编译的是opencv3.3.0的,我重新配置了个opencv3.3.0的版本。分享的博客地址找不到了。

opencv_aruco330d.lib
opencv_bgsegm330d.lib
opencv_bioinspired330d.lib
opencv_calib3d330d.lib
opencv_ccalib330d.lib
opencv_core330d.lib
opencv_datasets330d.lib
opencv_dnn330d.lib
opencv_dpm330d.lib
opencv_face330d.lib
opencv_features2d330d.lib
opencv_flann330d.lib
opencv_fuzzy330d.lib
opencv_highgui330d.lib
opencv_imgcodecs330d.lib
opencv_imgproc330d.lib
opencv_img_hash330d.lib
opencv_line_descriptor330d.lib
opencv_ml330d.lib
opencv_objdetect330d.lib
opencv_optflow330d.lib
opencv_phase_unwrapping330d.lib
opencv_photo330d.lib
opencv_plot330d.lib
opencv_reg330d.lib
opencv_rgbd330d.lib
opencv_saliency330d.lib
opencv_shape330d.lib
opencv_stereo330d.lib
opencv_structured_light330d.lib
opencv_superres330d.lib
opencv_surface_matching330d.lib
opencv_text330d.lib
opencv_tracking330d.lib
opencv_video330d.lib
opencv_videoio330d.lib
opencv_videostab330d.lib
opencv_ximgproc330d.lib
opencv_xobjdetect330d.lib

opencv_xphoto330d.lib

lib文件全了以后,跑起来。。。非常的感人,跟踪效果在我这个场景非常不错。

已经不搞图像了[捂脸],资源都没有了,抱歉抱歉

 

 

 

 

GitHub 加速计划 / op / opencv_contrib
9.28 K
5.75 K
下载
opencv/opencv_contrib: OpenCV_contrib 是 OpenCV 的扩展模块仓库,包含了许多额外的算法、功能模块以及对主OpenCV库的补充,如高级特征检测器、图像分割、对象识别等。
最近提交(Master分支:2 个月前 )
475f6fae wechat_qrcode: fix ineffective decoding retrial after inverting image 9 天前
c76792f4 cuda - update npp calls to use the new NppStreamContext API if available 16 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐