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

Difficulties when scanning a flat barcode #502

Closed
ITrun90 opened this issue Jun 11, 2023 · 2 comments
Closed

Difficulties when scanning a flat barcode #502

ITrun90 opened this issue Jun 11, 2023 · 2 comments

Comments

@ITrun90
Copy link

ITrun90 commented Jun 11, 2023

Hi Together,
at the beginning a big thank you for the great work and the continuation of this project!

We use Quagga for different barcodes. It is a bit difficult to read the barcode when the barcode is flat type 2of5. With my settings it works halfway if I hold the camera further away from the barcode. But this seems to be not understandable for many users. Is there perhaps a better configuration for this type of barcode?

Here is a barcode as an example:
image001

And here is my current configuration:

frequency: 20,
inputStream : {
    name : "Live",
    type : "LiveStream",
    target: "#barcode-video",
    constraints: {
        width: 640,
        height: 480
    },
    area: {
        top: "40%",
        right: "10%",
        left: "10%",
        bottom: "40%"
    },
    locate: true,
    locator: {
        halfSample: false,
        patchSize: 'medium'
    },
},
decoder : {
    readers : ["code_128_reader", "i2of5_reader", "ean_reader"]
}
@github-actions
Copy link

Thank you for filing an issue! Please be patient. :-)

@ericblade
Copy link
Owner

Area and Locate should be mutually exclusive, only one should work at a time. I'm realizing that I've never actually tested that, but I would definitely try only using one or the other, but not both. You might even supply an option in your UI to switch between them, but using both at the same time is probably not a good idea.

Please report back if that helps or not.

Also, when posting a sample image, it would be helpful to also provide what type of barcode it is, I don't read them in my head :-) thanks!

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

2 participants