juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
745 stars 444 forks source link

How can I modify the scanner area? #1003

Closed burekas7 closed 1 month ago

burekas7 commented 1 month ago

Hi,

Currently, the scanning area is the entire phone/camera screen. I want to focus the scanner on a certain area so that only if the barcode is inside the area the scanner will check.

Is it possible?

burekas7 commented 1 month ago

I found this example: https://github.com/juliansteenbakker/mobile_scanner/blob/master/example/lib/barcode_scanner_window.dart

I will check it.

navaronbracke commented 1 month ago

You should use the scanWindow parameter for that.