I cloned https://github.com/niw/iphone_opencv_test and tried to replace
#import <opencv2/imgproc/imgproc_c.h>
#import <opencv2/objdetect/objdetect.hpp>
with
#import <opencv2/opencv.hpp>
in the OpenCVTestViewController.mfile. But Xcode threw the following error:
iphone_opencv_test/opencv_device/include/opencv2/opencv.hpp:55:10: fatal error: 'opencv2/calib3d/calib3d.hpp' file not found [2]
So, I tried to delete the line #include "opencv2/calib3d/calib3d.hpp"from the file opencv.hpp. An error has occurred below:
iphone_opencv_test/opencv_device/include/opencv2/ml/ml.hpp:2075:10: fatal error: 'map' file not found [2]
I also tried changing the .m to .mm, but that seemed futile. Where am I mistaken?
source
share