拍照获取到的图片永远都是480X852 将sessionPreset 设置为hd4K3840x2160 也是不行,在拍照完成回调中获取图片的方式好像有点问题
laozi45 opened this issue · comments
laozi45 commented
laozi45 commented
在这个func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: Error?) 方法中,根据 photo.fileDataRepresentation() 获取图片data是根据sessionPreset设置的分辨率,photo.previewPixelBuffer 获取的CIImage 一直是480X852分辨率