I need todo make a scanner to get QRCode values.
And I followed the Apple developer docs, used AVCaptureDevice, AVCaptureSession, AVCaptureDeviceInput, AVCaptureVideoPreviewLayer, AVCaptureMetadataOutput to make them work.
_videoDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
I am currently receiving qrcode successfully, but if there are two or more qrcodes in the camera, we will get several qrcode, so I just want to scan a specific frame on the screen, for example CGRectMake {100, 100, 200, 200}, to make sure there is only one processed by qrcode.
So, how can we specify the desired frame in AVCaptureDeviceInput.
Thank you so much!
source
share