#import 找不到

参考:《OpenCV iOS - Video Processing》

发现导入头文件

//#import 找不到

参考:http://blog.csdn.net/story51314/article/details/54617451

发现头文件已经修改

#import


.h中

#import

#import

//#import  

using namespace cv;

@interface OpenCVDome : UIViewController

@property (nonatomic, retain) CvVideoCamera *videoCamera;

@end 


- (void)viewDidLoad {

[super viewDidLoad];

self.videoCamera = [[CvVideoCamera alloc] initWithParentView:imageView];

self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionFront;

self.videoCamera.defaultAVCaptureSessionPreset = AVCaptureSessionPreset352x288;

self.videoCamera.defaultAVCaptureVideoOrientation = AVCaptureVideoOrientationPortrait;

self.videoCamera.defaultFPS = 30;

self.videoCamera.grayscale = NO;

}

你可能感兴趣的:(#import 找不到)