Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 670 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 670 Bytes

Python bindings for zxing-cpp

Build + Deploy PyPI

Installation

pip install zxing-cpp

or

python setup.py install

Usage

import cv2
import zxingcpp

img = cv2.imread('myimage.png')
result = zxingcpp.read_barcode(img)
if result.valid:
    print("Found barcode with value '{}' (format: {})".format(result.text, str(result.format))) 
else:
    print("could not read barcode")