NaturalHistoryMuseum / pyzbar

Read one-dimensional barcodes and QR codes from Python 2 and 3.
MIT License
724 stars 175 forks source link

Minimum resolution required #65

Open Andymcsu opened 5 years ago

Andymcsu commented 5 years ago

What is the minimum resolution which is required for PyZbar to be able to decode a barcode? Moreover, does it do any contrast maximization inside or it should be done as a pre-processing?

esclear commented 5 years ago

pyzbar is just a wrapper around the ZBar library, which does the heavy lifting.

Minimal required resolutions depend on multiple factors, such as the type of barcode you want to decode, the lighting, etc.

You shouldn't need to do any preprocessing, since this is part of ZBar's processing pipeline.