CvVideoCamera flickering iOS (Bug #4017)


Added by Ashwin Prasad over 10 years ago. Updated over 9 years ago.


Status:New Start date:2014-11-20
Priority:High Due date:
Assignee:Alexander Shishkov % Done:

0%

Category:ios
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:iOS
Difficulty:Medium HW Platform:ARM
Pull request:

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

Revision cc92cd07
Added by Vadim Pisarevsky almost 10 years ago

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

Also available in: Atom PDF