Recently in the study of OpenCV, in the import of the time encountered problems, check the official documents, and on the internet to find a few laps, there is no suitable. Tidy yourself up!
Download of the-------------------------------------------------framework-------------------------------------------------
The first: Go directly to the OPENCV website to download (I use this method)
First step: First open the official website, the homepage has the latest version, OpenCV3.2
Step Two: Click IOS framework:sourceforge, and then you'll need to wait a while to download it automatically.
The second kind: Uses the brew installment, the concrete method find the degree Niang bar.
-----------------------------------------------------------------the configuration of the OpenCV----------------------
First, import the opencv2.framework into the project;
Then, create a PCH file and add these lines of code;
#ifdef __cplusplus
#import <opencv2/opencv.hpp>
#endif
#ifdef __objc__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
Next, configure the PCH;
Finally, add some system frameworks. There is no problem compiling.
Note: Because OpenCV code is written based on C + +, you need to change the implementation file suffix of the C + + method used in OpenCV to. mm.
Write a blog for the first time, a little low, please forgive me.
Import and configuration of Opencv-ios framework