BarcodeScanner icon indicating copy to clipboard operation
BarcodeScanner copied to clipboard

Barcode Scan returns incorrect results in many issues on iOS

Open jeffreynolte opened this issue 10 years ago • 11 comments

In many situations there is an issue where the scanner will return incorrect results. For instance the below shows one barcode scan with several different results. It seems this is isolated to iOS.

Possibly related issue: #212

text: 128808228812
format: UPC_A
text 050000980918
format UPC_A
text 3042220980912
format EAN_13
text 6012210980212
format EAN_13

jeffreynolte avatar Dec 18 '14 20:12 jeffreynolte

I am having the same issue! Tested currently with iPhone 6 Plus and iOS 8.0.3 !

Felix-Weber avatar Feb 02 '15 09:02 Felix-Weber

I can confirm this on my iPhone 6 Plus iOS 8.1.2 as well. I'm mostly loading Code 39 Barcodes though. What I've discovered is that when the barcode is smaller/skinnier, and has finer lines it'll pick up an incorrect code. If I print out a bigger/wider bar code, it takes right away with the correct code. The problem, in my case, seems to be that the barcode is too small and the camera doesn't focus enough, and fails to "see" the finer lines. As soon as they are more legible, it works.

Any way to make the camera focus?

ascendedmasta avatar Feb 05 '15 21:02 ascendedmasta

I am having the same issue where the scanner returns different codes each time. Is there any way to solve this issue?

sriram6781 avatar Feb 09 '15 22:02 sriram6781

Having the same issue here on iPad 2/3's on iOS 8.3. The scanner seems to mostly cut off part of the barcodes and detect UPCs and other types as EAN-8s. This needs a way to filter what types of barcodes are trying to be scanned.

carlosm7 avatar Apr 16 '15 21:04 carlosm7

+1

aexei avatar Apr 25 '15 16:04 aexei

I have the same issue on iPhone 6 ios8

subarb avatar May 22 '15 03:05 subarb

Hi. It happened many times for me too. As I figured out the plugin recognize the wrong type in these cases. May this is a wrong checksum or stop/start rules implementation?

I solved our problem by disabling the unused barcode types, so now it works for me well, and return with the code only if the type is EAN13.

Perhaps would be a good idea to add an extra parameter to the scan function, where you can define the enabled barcode types in an array of enumes.

BR, Steve

2015-05-22 5:50 GMT+02:00 subarb [email protected]:

I have the same issue on iPhone 6 ios8

— Reply to this email directly or view it on GitHub https://github.com/wildabeast/BarcodeScanner/issues/215#issuecomment-104495309 .

stevesum avatar May 22 '15 05:05 stevesum

How do you disable the unused bar codes?

subarb avatar May 22 '15 06:05 subarb

Sadly now you have to do it in the native source codes. That is the reason I suggest an extra param in the search function API, what could contains the list of enabled types.

To disable the types now you have to change the followings:

on iOS: CDVBArcodeScanner.mm line 472 - 481. decodeHints.addFormat(... comment out the unused formats

on Android is more tricky, because you have to do in the zxing lib because at the moment I have to use it on iOS only, therefore I don't spend time to test that, but as I see, you have to modify the DecodeFormatManager.java line 37 - 49

BR, Steve

2015-05-22 8:06 GMT+02:00 subarb [email protected]:

How do you disable the unused bar codes?

— Reply to this email directly or view it on GitHub https://github.com/wildabeast/BarcodeScanner/issues/215#issuecomment-104530998 .

stevesum avatar May 22 '15 10:05 stevesum

Also having the same issue. This issue is almost 3 years old now - any update?

joelbyrd avatar Aug 29 '17 19:08 joelbyrd

its 4 years old now. please help if anybody got any solution.

sbk24 avatar Aug 31 '18 15:08 sbk24