Skip to main content

Python wrapper for ZXing Java library

Project description

pyzxing

GitHub release (latest by date including pre-releases) PyPI Codacy grade

A Python wrapper of ZXing library. python-zxing does not work properly and is out of maintenance. So I decide to create this repository so that Pythoneers can take advantage of ZXing library with minimum effort.

Installation

Installing from Github source is recommended :

git clone https://github.com/ChenjieXu/pyzxing.git
cd pyzxing
python setup.py install

It is also possible to install from PyPI:

pip install pyzxing

Build ZXing Library

A ready-to-go jar file is available with release, but I can not guarantee that this file will work properly on your PC. You may run test script before building ZXing. Pyzxing will download compiled Jar file automatically and call unit test.

python -m unittest src.test_barcode

If failed, build ZXing using following commands.

git submodule init
git submodule update
cd zxing
mvn install -DskipTests
cd javase
mvn -DskipTests package assembly:single

Quick Start

from pyzxing import BarCodeReader
reader = BarCodeReader()
output = reader.decode('/PATH/TO/FILE')
print(output)

TODOS

enable read multiple barcodes in a picture using GenericMultipleBarcodeReader class decode multiple files using joblib

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyzxing-0.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file pyzxing-0.2.tar.gz.

File metadata

  • Download URL: pyzxing-0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pyzxing-0.2.tar.gz
Algorithm Hash digest
SHA256 79ba095456165bbdf27d6a40c09746bca9e7cb0fbca8dce38e51327c12defe48
MD5 c62dcd1d07875937a775d4884a200133
BLAKE2b-256 3f7c0d4a9aa004cce1e73629f21136c4ea1c92f87f5eaaeeaf0aa525aabe6dbb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page