AVCaptureSession is not giving a good photo quality and good resolution

前端 未结 3 537
粉色の甜心
粉色の甜心 2021-02-02 14:44

I\'m working with AVCaptureSession for capturing the image. Its working fine but not giving a good resolution. I compared it with the image captured by iPhone Came

3条回答
  •  臣服心动
    2021-02-02 14:56

    We had the same issue using that code reference. The photos were especially bad using the iPad front facing camera.

    We fixed it by adding a 1 second delay between setting up the capture manager and calling the capture image method. It made a big enough difference to us that we were happy with the result. It appears that the camera needed some time to open the shutter and perform the auto-focus / white-balancing default options.

    [NSTimer scheduledTimerWithTimeInterval:1.0 
        target:self.captureManager 
        selector:@selector(captureStillImage) 
        userInfo:nil repeats:NO];
    

提交回复
热议问题