serratus / quaggaJS

An advanced barcode-scanner written in JavaScript
https://serratus.github.io/quaggaJS/
MIT License
5.03k stars 977 forks source link

Problems reading long code39 codes #287

Open vladf95 opened 6 years ago

vladf95 commented 6 years ago

Hi,

I'm using the quagga barcode reader in order to read the following barcode formats: code128, code39, ean8 and ean13

I'm having problems with code39, because it can't be read. My codes are long (length = 20), besides this, the codes start and end with "*" (so the length is 22).

What should I do in order to make it work?

This is the order of the readres in the Quagga_init: readers : ["code_128_reader", "ean_reader", "ean_8_reader", "code_39_reader", "code_39_vin_reader"]

p.s. The reader works fine for the other three barcode formats.

Best regards, Vlad

HoKangInfo commented 5 years ago

this example over 16 char is not work,

FrameGrabber {"videoSize":[377,177],"canvasSize":[800,375],"stepSize":[0.47125,0.472],"size":[800,360],"topRight":{"x":0,"y":0}}
{"codeResult":{"code":"1234567890123456","start":70,"end":801,"startInfo":{"start":70,"end":105},"decodedCodes":["1","2","3","4","5","6","7","8","9","0","1","2","3","4","5","6"],"direction":1,"format":"code_39"},"line":[{"x":-2,"y":180},{"x":802,"y":180}],"angle":0,"pattern":[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,1,1,1,1,0,0,1,1,0,0,0,1,1,1,1,1,1,0,0,1,1,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,0,0,1,1,1,0,0,0,0,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,0,1,1,0,0,0,1,1,1,0,0,1,1,0,0,0,1,1,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0],"box":[{"0":0,"1":0},{"0":0,"1":360},{"0":800,"1":360},{"0":800,"1":0}],"boxes":[[{"0":0,"1":0},{"0":0,"1":360},{"0":800,"1":360},{"0":800,"1":0}]]}
bezo97 commented 5 years ago

This problem still exists. @vladf95 Did you find a workaround, by any chance?

mteneglio commented 5 years ago

still having this problem, is there a workaround somekind, quagga is still not able to read barcode more than 15 chars ( with code_39_reader ) @bezo97 @vladf95 Did you find a workaround for this issue?

bezo97 commented 5 years ago

@mteneglio nope, I went with another similar lib, called zxing-js

vladf95 commented 5 years ago

@mteneglio I wasn't able to find a solution for the problem. I also used the zxing library.

Braunson commented 2 years ago

Having the same issue with code 39 codes (17 characters)