停止相机后,最后一帧延迟10-15秒。我该如何解决?
...
[self.videoCamera stop]; // after this last frame remains within 10 sec
...
- (void)viewDidLoad {
[super viewDidLoad];
// Start OpenCV camera
self.videoCamera = [[CvVideoCamera alloc] initWithParentView:_imageView];
self.videoCamera.delegate = self;
self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionFront;
self.videoCamera.defaultAVCaptureSessionPreset = AVCaptureSessionPresetPhoto;
self.videoCamera.defaultAVCaptureVideoOrientation = AVCaptureVideoOrientationPortrait;
[self.videoCamera start];
}