I'm currently working with AVCaptureSession
and AVCaptureMetadataOutput
.
It works perfectly, but I just want to know how to indicate to scan and analyze metadata objects only on a specific region of the AVCaptureVideoPreviewLayer
?
I'm currently working with AVCaptureSession
and AVCaptureMetadataOutput
.
It works perfectly, but I just want to know how to indicate to scan and analyze metadata objects only on a specific region of the AVCaptureVideoPreviewLayer
?
In iOS 9.3.2 I had "CGAffineTransformInvert: singular matrix" error when calling
metadataoutputRectOfInterestForRect
. I was able to make it work calling it right afterstartRunning
method ofAVCaptureSession
:Here is a sample of code from a project I have that may help you on the right track