Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cap_ios.h is not found

Tags:

ios

opencv

iphone

apparently, I have download the opencv2.framework from http://sourceforge.net/projects/opencvlibrary/files/opencv-ios/

but after I've download the example project from GSOC 2012 the facedetectvideo project requires opencv2/highgui/cap_ios.h in the framework but opencv2.framework doesn't have it.

any suggestion about the latest full framework?

any help would be appreciated.thx

like image 292
romin Avatar asked Oct 09 '12 10:10

romin


3 Answers

As of now, the header file was moved to a new location. Try this.

#import <opencv2/videoio/cap_ios.h>
like image 81
Nimit Pattanasri Avatar answered Jan 04 '23 04:01

Nimit Pattanasri


From new libraries, you have to use following header

#import "opencv2/imgcodecs/ios.h"
like image 20
Mehul Thakkar Avatar answered Jan 04 '23 03:01

Mehul Thakkar


You don't need cap_ios.h.

You only need to #import <opencv2/opencv.hpp> in your prefix.pch file after you drag the "opencv.framework" file into Xcode.

The GSOC opencv code is for some sort of development version.

like image 43
Osiris Avatar answered Jan 04 '23 03:01

Osiris