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

How might I prevent grouping of same barcodes? #104

Open
alexander-soare opened this issue Aug 17, 2021 · 2 comments
Open

How might I prevent grouping of same barcodes? #104

alexander-soare opened this issue Aug 17, 2021 · 2 comments

Comments

@alexander-soare
Copy link

I'm mostly interested in barcode detection rather than scanning, so I care about the bounding polygons being accurate. Sometimes my image may have multiple copies of the same barcode, and I want to ensure that each gets it's own polygon, whereas now they are being grouped like this:

image

Looking at the code, I can't see a Python way to solve this. Could anyone provide tips?

Best,
Alex

@Ranecdev
Copy link

@alexander-soare Did you ever find a solution for this ?

@alexander-soare
Copy link
Author

alexander-soare commented Mar 29, 2023

@Ranecdev I ended up using pyzbar and zxing https://github.com/dlenski/python-zxing. I think pyzbar is better because it gives a bounding polygon whereas I'm pretty sure zxing only gives a line passing through the barcode, but at least it separates barcodes. So I combined both: pyzbar for the actual detection, but zxing to indicate when there are multiple detections in one polygon.

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