mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.28k stars 1.07k forks source link

❓ The accuracy and quality of scanning are at 70%, which is not satisfactory #2349

Closed 786Muhammadshams closed 8 months ago

786Muhammadshams commented 8 months ago

Question

I am facing an issue with scanning duplicate barcodes from a single source. I implemented a debounce mechanism for the most frequently scanned items within 0 to 500 milliseconds before sending them to the 'isValidEan' check function. There, I use an algorithm to check EAN-8 and EAN-13 barcodes. However, when I scanned 50 barcodes from real products, 10 barcodes could not be read. The accuracy and quality of scanning are at 70%, which is not satisfactory. Can someone suggest a solution to this problem?

What I tried

No response

VisionCamera Version

latest

Additional information

mrousavy commented 8 months ago
  1. "latest" is not a valid VisionCamera version
  2. The QR code scanner is using 1280x720 resolution. Are those codes small?
  3. The QR code scanner built into VisionCamera is using MLKit Barcode Detection. If that isn't working for you, you can at any point use a Frame Processor plugin with a custom algorithm, that's the beauty of VisionCamera.