Skip to content

QR Barcode Support

Compare
Choose a tag to compare
@Paethon Paethon released this 29 Apr 16:16

Added

  • Added support to detect and decode QR-codes as well as different forms of barcodes to all OCR wrappers. Internally, the zbar library is used. The QR/bar-codes will be added as bounding boxes, and the contained information is returned as the OCR text. The text is formatted in the form TYPE[[DATA]] (e.g. QRCODE[[Encoded Information]]). Valid types can be found in the pyzbar.pyzbar.ZBarSymbol enum. For this to work, the argument add_qr_barcodes=True has to be supplied when creating the wrapper (default is False) and the pyzbar Python library, as well as the zbar system library have to be installed (install ocr_wrapper with the optional dependecy qr_barcodes.

Changed

  • Changed default max_resolution from 4096 to 2048 in GoogleAzureOCR. The high resolution leads to very long OCR times and should not have been this big in the first place

What's Changed

  • Adds QR-code and Barcode detection and decoding functionality by @Paethon in #19

Full Changelog: v0.0.25...v0.0.26