OpenCV project on iPhone - the problem of creating opencv.hpp

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]
 #include "opencv2/calib3d/calib3d.hpp"

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]
 #include <map>

I also tried changing the .m to .mm, but that seemed futile. Where am I mistaken?

+5
source share
1 answer

OpenCV MAX/MIN Cocoa MAX/MIN. , . , : 1. 2. opencv obj-c , .m/.mm . , , GIL ++ Cocoa Opencv ++.

+3

All Articles