CvVideoCamera flickering iOS (Bug #4017)
Description
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;
Associated revisions
Merge pull request #4017 from headupinclouds:master
History
Updated by Maksim Shabunin almost 10 years ago
- Target version changed from 3.0-beta to 3.0
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4865