CodeScanner icon indicating copy to clipboard operation
CodeScanner copied to clipboard

limiting Camera view

Open sgabardi opened this issue 3 years ago • 1 comments

hi, i'm just beginning coding SWIFT and i'm wondering, if there is a way to limit the view of the camera and do a red line for scanning? So only the barcode that is under the red line in the camera view should be read.

thank you!

sgabardi avatar Jul 02 '23 16:07 sgabardi

I'm not sure it's possible to limit the zone for scanning, but at least you can check the ScanResult.corners and filter if it's in the area you want.

nathanfallet avatar Jul 03 '23 05:07 nathanfallet