Import and configuration of Opencv-ios framework

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.