Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CvVideoCamera flickering

The CvVideoCamera is causing the camera capture to flicker 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;

CvVideoCamera flickering

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

2.4.9 //ViewController.h

//ViewController.h

#import <opencv2/videoio/cap_ios.h>

import <opencv2 videoio="" cap_ios.h="">

@interface ViewController : UIImageView<cvvideocameradelegate> UIImageView<CvVideoCameraDelegate> @property (nonatomic, strong) CvVideoCamera* videoCamera;

videoCamera; //ViewController.m

//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;

self;

CvVideoCamera flickeringflickering iOS

The CvVideoCamera is causing the camera capture to flicker 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;

CvVideoCamera flickering iOS

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?