ngx-barcode-scanner icon indicating copy to clipboard operation
ngx-barcode-scanner copied to clipboard

Unable to scan barcode with low resolutions using mobile device

Open m2pathan opened this issue 4 years ago • 4 comments

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

m2pathan avatar Dec 08 '20 11:12 m2pathan

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

julienboulay avatar Dec 09 '20 08:12 julienboulay

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,

ludovaldivia avatar May 12 '21 18:05 ludovaldivia

@ludovaldivia Did you ever find a solution? thanks

spock123 avatar Oct 18 '22 12:10 spock123

@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.

spock123 avatar Oct 20 '22 20:10 spock123