Forceu / barcodebuddy-android

Android app for Barcode Buddy
GNU General Public License v3.0
24 stars 6 forks source link

Making use of Android Vision #12

Closed fan1200 closed 3 years ago

fan1200 commented 3 years ago

Hi! As I was testing out the app it couldn't really scan any barcode unless you have good lighting and good focus. I saw that the app relies on the zxing package which doesn't make the most out of your app. I played with this idea a few weeks back and came across the Android Vision project. Although being not maintained anymore it still works with some modifications regarding full screen scanning. After a modified library I was able to scan barcodes in a matter of a second without having to worry too much about lighting and focus. I could highly recommend you to look into it and ultimately replacing the zxing package.

You could use the following library: https://github.com/ravi8x/Barcode-Reader

A known issue is that camera is zoomed by default but this can easily be fixed by downloading the library yourself and fix it with the following comment: https://github.com/ravi8x/Barcode-Reader/issues/8#issuecomment-352672685

Forceu commented 3 years ago

Thank you for your suggestion! Unfortunately it uses Google Play Services, which I try to avoid. I will have a look at alternatives though!