NaturalHistoryMuseum / pyzbar

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

Included x & y density configs in decode() #66

Open CapPow opened 5 years ago

CapPow commented 5 years ago

This pull request adds 2 parameters to decode(): x_density, and y_density both of which (should) map to the zbar scan density parameters. This modification was helpful in another project and thought it may be useful to offer the pull request in light of: #30.

Important note: Please see my comments in decode() concerning my use of 0 in 2nd parameter when calling the zbar_image_scanner_set_config(). I must admit I do not understand that parameter's use beyond symbology.

Hope it helps!