bitpay / cordova-plugin-qrscanner

A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
MIT License
567 stars 773 forks source link

Limit qr scan area? #375

Open ajaypancholi opened 2 years ago

ajaypancholi commented 2 years ago

I am using the qr scanner from Cordova-plugin-qrscanner and currently if I use it and there are multiple QR-codes closely on top of each other, I point my camera at one and it reads the code above it which is outside of the display on screen but within the cameras view. If however there is no QR-code above the one I want to scan, then it scans the correct one, so it seems like it always scans the top QR-code within the cameras view.

Is there a way to limit the "scan area" to be the same size and area as my camera view on my display?

phildittrich commented 2 years ago

@ajaypancholi I had the same problem and hacked a fork (some time ago), that should give you an idea: https://github.com/phildittrich/cordova-plugin-qrscanner

Only the QR codes inside the highlighted rectangle are accepted, works for Android and iOS.

Sultanwasifiqbal commented 1 year ago

cant work without the fork ? atleast any scanning options parameters ? and also how to display the scanned text on top of camera and continue for another scan like Cognex Barcode Scanner

andreir91 commented 1 year ago

No response for @Sultanwasifiqbal ? Would be nice to have it without the fork.