Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bar-code is not detected on this picture #445

Open
Shagshag opened this issue Oct 22, 2020 · 4 comments
Open

Bar-code is not detected on this picture #445

Shagshag opened this issue Oct 22, 2020 · 4 comments

Comments

@Shagshag
Copy link

I think I had tried all the settings, but quaggaJS doesn't read the bar-code on this picture.

Doesn't work on the examples here https://serratus.github.io/quaggaJS/v1.0.0-beta.1/examples/file-input/ and https://serratus.github.io/quaggaJS/examples/file_input.html .

Do you have any advice?

IMG_8628

@ericblade
Copy link
Collaborator

ericblade commented Oct 23, 2020

Might try with the singleChannel setting, i believe it's called. I'm not real sure. My first inclination was that maybe it's not actually valid, but server-based location/decoding seems to work when i send it to another site that does that sort of thing. I suspect that Quagga's locator is probably having issues finding it.. but i'm not real sure how any of that works to try to suggest improvements.. another thing might be loading the image into photoshop or gimp and adjusting various parameters until you find something quagga can recognize.. at least then it would give us an idea.

@TrungKhoaLe
Copy link

I think the problem lies at the core of the algorithm. The traditional image processing was used, which has a limited number of parameters to capture complex natural scenes. A new approach that I have seen so far is to use deep learning at the cost of the processing time.

@ericblade
Copy link
Collaborator

I don't mean to discourage from input, but that's not exactly a helpful or meaningful reply -- basically saying "no, you can't do it". Suggesting some methods for figuring out why it doesn't work, would be helpful. Or even for figuring out what part isn't working. Clearly, we're not even getting past the barcode location. Is it because of the shadow? Is it because there's not enough whitespace? Does it decode if you tell the decoder where you expect the barcode to be (using the "area" parameters) ?

@AldoZ
Copy link

AldoZ commented Nov 13, 2020

I've had issue like this when printing labels. Some of our scanners cant read them if they're too close to the edge, it appears as if they see the edge of the label (or edge of your postit) as part of the start/stop bits for the barcode and then cant make sense of the rest of the barcode. Do the other barcodes on that label scan? how close are they to the edge? try trimming the label to minimise additional shadows/lines that could be read as an edge. I know its not much use when you're working with labels you have no control over but we found that if we drifted too close to the edge of a label, some scanners wouldnt be able to read them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants