serratus/quaggaJS

How to decode entire image

Closed this issue · 3 comments

Greetings...
Your scanner works great. But when I load an image of multiple barcodes (all code_39) and set to locate and muliple the onDetected only returns 1 barcode. Is there a settings to ask for the entire image to be decoded.
Thank you in advance

Figured it out.. thanks

what did you do?

I used the example file_input.html and changed the decoder to include multiple:true. When I ran it it gave an error for the Quagga.onDetected fuction because the code was looking for result.codeResult.code which does not exist for multiple. It returns an array of objects which might have multiple codeResult objects and box objects. I just thought if I changed it to multiple the example would handle it, but it was written to just handle one. Hope that helps..
Cheers..