julienboulay / ngx-barcode-scanner

An angular barcode reader
https://julienboulay.github.io/ngx-barcode-scanner
MIT License
52 stars 22 forks source link

Unable to scan barcode with low resolutions using mobile device #53

Open m2pathan opened 3 years ago

m2pathan commented 3 years ago

Hi, I am not able to scan some sample barcodes (code 128) using the mobile device camera whereas we are able to scan it using the laptop's webcam. Do I need to change/update any configuration to support the mobile device? Actual the barcode images are too small and with low-resolution quality. sample barcode: https://determined-fermi-064edc.netlify.app/not-working2.jpg

julienboulay commented 3 years ago

Hi @m2pathan,

I tried to read the barcode with an iphone SE and it's working well. Which mobile device do you use ? What's the resolution of your mobile device ? If the resolution is too low, the video stream can not be analyzed correctly and barcode will be wrong

ludovaldivia commented 3 years ago

Hi,

I have problems readind the code 39  from any mobile device.

I updated my code from Angular version 5 to 11 and now I am using the last version of ngx-barcode-scanner 0.2.0 but the problem remain the same: Seem it is a problem with the resolution of the mobile's camara becouse I see fuzzy the image when the camara is actived.

I tried too with the following other libraries: Quagga, Quagga2 and ngx-zxing. 

Anybody can help me?

Thanks and Best Regards,

spock123 commented 2 years ago

@ludovaldivia Did you ever find a solution? thanks

spock123 commented 1 year ago

@ludovaldivia I think your device uses one the other cameras ,which is why you see it blurry. You should provide a config object to specify your phone's main camera I think.