Metadata-Version: 2.1
Name: zxing-cpp
Version: 1.2.0
Summary: Python bindings for the zxing-cpp barcode library
Home-page: https://github.com/nu-book/zxing-cpp
Author: ZXing-C++ Community
Author-email: zxingcpp@gmail.com
License: Apache License 2.0
Keywords: barcode
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Multimedia :: Graphics
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: numpy

# Python bindings for zxing-cpp

[![Build + Deploy](https://github.com/nu-book/zxing-cpp/actions/workflows/python-build.yml/badge.svg)](https://github.com/nu-book/zxing-cpp/actions/workflows/python-build.yml)
[![PyPI](https://img.shields.io/pypi/v/zxing-cpp.svg)](https://pypi.org/project/zxing-cpp/)

## Installation

```bash
pip install zxing-cpp
```
or

```bash
python setup.py install
```

## Usage

```python
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")
```


