EddieLa / JOB

A Barcode scanner capapable of reading Code128, Code93, Code39, Standard/Industrial 2 of 5, Interleaved 2 of 5, Codabar and EAN-13 barcodes in javascript.
http://eddiela.github.io/JOB
602 stars 203 forks source link

Fixed parameters (width/height) #21

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi EddieLa,

integrated your JOB into my application and did some first tests. Works fine and the localization output looks nice. But I had some trouble getting the output right. You used a fixed canvas with 320x240px for showing your localization result and also within your JOB.js the canvas is limited to 640x480px. Maybe it might be interesting to parameterize this somehow. When playing with resolution sizes or allowing vertical images (480x640px).

Will test it soon with the Muenster BarcodeDB, too.

EddieLa commented 9 years ago

Actually the decoderworker takes width and height as parameters, the only reason why I fixed it to 640x480 is because it makes for the best decoding results but for testing you could just change it in the JOB code and there shouldn't be a problem.