从Github构建OpenCV 3.1.0。 在编译教程示例:features2D 时失败了。
首先,它投诉它没有找到#include <opencv2/tracking.hpp> //for ROI
所以,我添加了video
:#include <opencv2/video/tracking.hpp> //for ROI
解决了发现问题。
然后投诉selectROI
:cv::Rect2d uBox = selectROI(video_name, frame);
从终端:
[ 98%] Built target tutorial_objectDetection
[ 98%] Built target tutorial_objectDetection2
[ 98%] Building CXX object samples/cpp/CMakeFiles/tutorial_planar_tracking.dir/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp.o
/GitHub/opencv/samples/cpp/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp:174:27: error: use of undeclared identifier
'selectROI'
cv::Rect2d uBox = selectROI(video_name, frame);
^
1 error generated.
make[2]: *** [samples/cpp/CMakeFiles/tutorial_planar_tracking.dir/tutorial_code/features2D/AKAZE_tracking/planar_tracking.cpp.o] Error 1
make[1]: *** [samples/cpp/CMakeFiles/tutorial_planar_tracking.dir/all] Error 2
make: *** [all] Error 2
关于如何解决它的任何想法?
注意:我会一起删除它,但如果我拥有它会很好。
正如您所看到的,98%-_-
失败