SwiftOCR icon indicating copy to clipboard operation
SwiftOCR copied to clipboard

AVCaptureStillImageOutput deprication

Open rsaeks opened this issue 7 years ago • 1 comments

Working with the sample project for iOS there is the following message:

'AVCaptureStillImageOutput' was deprecated in iOS 10.0: Use AVCapturePhotoOutput instead The Apple reference info: https://developer.apple.com/reference/avfoundation/avcapturestillimageoutput

Code still works and functions as expected. Would love to see the sample code updated. I've tried a bit and haven't been able to figure out the changes when it comes to grabbing the image via the takePhotoButtonPressed function

rsaeks avatar Mar 31 '17 13:03 rsaeks

The documentation you linked says:

The AVCaptureStillImageOutput class is deprecated in iOS 10.0 and does not support newer camera capture features such as RAW image output, Live Photos, or wide-gamut color. In iOS 10.0 and later, use the AVCapturePhotoOutput class instead. (The AVCaptureStillImageOutput class remains supported in macOS 10.12.)

It lists all of the camera features that AVCaptureStillImageOutput class doesn't support, but none of these features are really required to demonstrate what SwiftOCR can do. So as far as the usability of the framework and the sample project goes, I don't think it makes any difference :)

Saracevas avatar Apr 29 '17 19:04 Saracevas