wildabeast / BarcodeScanner

Official repository now at [phonegap/phonegap-plugin-barcodescanner](http://github.com/phonegap/phonegap-plugin-barcodescanner).
966 stars 739 forks source link

Thin barcode code 128 #142

Open hugoramos opened 10 years ago

hugoramos commented 10 years ago

Hey, guys. Your plugin is awesome!

I have to scan a thin barcode which is partitioned in two (it's a parking machine and that was the way they found to make it more suitable in the machine scan, when the user inserts the ticket).

The problem is the plugin can't read that code 128. I SUSPECT it is because the plugin gets confused when it sees 2 barcodes.

I've installed 2 barcode scan apps and they both read this ticket really fast.

As I said, the barcode in the picture is a code 128 and it means "11632557187639569669"

Does any one have any clue?

Thank you in advance

img_1568

iOS 7 Cordova 3.5.0-0.2.6

hugoramos commented 10 years ago

My guess is the barcode scan misunderstands the barcode pattern/type. Maybe because the barcode is too large and the scan gets sometimes some part in the middle and founds a different pattern, like UPC_E, EAN, etc.

Is there a way to say to scan only for CODE_128 barcodes?

I'm putting another image example. It should return a 20 char CODE_128.

img_4130

Thank you!

Eccenux commented 10 years ago

The problem probably is that those thin lines are not continuous (they are made of dots).

Also iOS doesn't work too good with long codes (Android has landscape scanning and this gives the program more pixels to read from). See also #34.

You might also try hiding one of the half. I'm guessing it helps laser scanners, but must be confusing to camera based scanner.

hugoramos commented 10 years ago

Eccenux, makes sense, but no success hiding one of the half. What makes me don't stoping trying is that 2 other apps that I downloaded read that barcode instantly.

hugoramos commented 10 years ago

Anyone?

aexei commented 9 years ago

+1