Skip to content

Conversation

@HamzaYslmn
Copy link

This Python script provides a simple way to scan barcodes from images (local files or URLs) using the zxing-cpp library. It decodes barcodes, extracts their information, and visually highlights detected barcodes on the image. The script can be run directly to test barcode detection and display results with bounding boxes.

This Python script provides a simple way to scan barcodes from images (local files or URLs) using the zxing-cpp library. It decodes barcodes, extracts their information, and visually highlights detected barcodes on the image. The script can be run directly to test barcode detection and display results with bounding boxes.
@HamzaYslmn
Copy link
Author

example...

@axxel
Copy link
Collaborator

axxel commented Oct 7, 2025

Thanks for sharing your work. I have a couple of issues with it that don't make this a good addition as is:

  • it depends on both PIL and opencv that seems redundant to me
  • it contains non-english language
  • it does not allow the user to pass in a url or filename
  • it constructs something like a copy of the Barcode object
  • it calls get_bytes twice, which does not make sense to me

There might be more. So I'll not merge this as is. If at all, it seems to make more sens to me to extend the existing demo_reader.py code.

@HamzaYslmn
Copy link
Author

HamzaYslmn commented Oct 7, 2025

  • it calls get_bytes twice, which does not make sense to me

i cleaned but,
It's just a arbitrary PR, don't worry too much about it. I saw something missing while working on the project with the kids and wanted to add it.
If you want, you can pull it, it's up to you :D

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

Successfully merging this pull request may close these issues.

2 participants