CvVideoCamera flickering iOS

asked 2014-11-17 16:53:16 -0600

Ashw1n gravatar image

updated 2014-11-18 13:37:26 -0600

The CvVideoCamera is causing the camera capture to flicker on iOS devices using OpenCV 3.0 beta. 
The same code was working fine with OpenCV 2.4.9

//ViewController.h

 #import <opencv2/videoio/cap_ios.h> 
 @interface ViewController : UIImageView<CvVideoCameraDelegate>
 @property (nonatomic, strong) CvVideoCamera* videoCamera;

//ViewController.m

self.videoCamera = [[CvVideoCamera alloc] initWithParentView:self];
self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionFront;
self.videoCamera.defaultAVCaptureSessionPreset = AVCaptureSessionPreset640x480;
self.videoCamera.defaultAVCaptureVideoOrientation = AVCaptureVideoOrientationPortrait;
self.videoCamera.defaultFPS = 30;
self.videoCamera.delegate = self;
self.videoCamera.parentView = self;

Any ideas?
edit retag flag offensive close merge delete