Skip to main content

Python bindings for the zxing-cpp barcode library

Project description

Python bindings for zxing-cpp

Build + Deploy PyPI

Installation

pip install zxing-cpp

or

python setup.py install

[Note: To install via setup.py (or via pip install in case there is no pre-build wheel available for your platfor or python version), you need a suitable build environment including a c++ compiler.]

Usage

import cv2
import zxingcpp

img = cv2.imread('myimage.png')
results = zxingcpp.read_barcodes(img)
for result in results:
	print("Found barcode:\n Text:    '{}'\n Format:   {}\n Position: {}"
		.format(result.text, result.format, result.position))
if len(results) == 0:
	print("Could not find any barcode.")

To get a full list of available parameters for read_barcodes and write_barcode as well as the properties of the result objects, have a look at the PYBIND11_MODULE definition in this c++ source file.

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

zxing-cpp-2.1.0.tar.gz (646.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

zxing_cpp-2.1.0-cp311-cp311-win_amd64.whl (666.1 kB view details)

Uploaded CPython 3.11Windows x86-64

zxing_cpp-2.1.0-cp311-cp311-win32.whl (607.7 kB view details)

Uploaded CPython 3.11Windows x86

zxing_cpp-2.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (899.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

zxing_cpp-2.1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (925.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686

zxing_cpp-2.1.0-cp311-cp311-macosx_10_9_universal2.whl (1.4 MB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

zxing_cpp-2.1.0-cp310-cp310-win_amd64.whl (666.1 kB view details)

Uploaded CPython 3.10Windows x86-64

zxing_cpp-2.1.0-cp310-cp310-win32.whl (607.7 kB view details)

Uploaded CPython 3.10Windows x86

zxing_cpp-2.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (899.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

zxing_cpp-2.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (925.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686

zxing_cpp-2.1.0-cp310-cp310-macosx_10_9_universal2.whl (1.4 MB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

zxing_cpp-2.1.0-cp39-cp39-win_amd64.whl (663.3 kB view details)

Uploaded CPython 3.9Windows x86-64

zxing_cpp-2.1.0-cp39-cp39-win32.whl (607.7 kB view details)

Uploaded CPython 3.9Windows x86

zxing_cpp-2.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (899.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

zxing_cpp-2.1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (925.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ i686

zxing_cpp-2.1.0-cp39-cp39-macosx_10_9_universal2.whl (1.4 MB view details)

Uploaded CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file zxing-cpp-2.1.0.tar.gz.

File metadata

  • Download URL: zxing-cpp-2.1.0.tar.gz
  • Upload date:
  • Size: 646.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for zxing-cpp-2.1.0.tar.gz
Algorithm Hash digest
SHA256 7a8a468b420bf391707431d5a0dd881cb41033ae15f87820d93d5707c7bc55bc
MD5 390dd5de6fa259e987768aa383dc32f8
BLAKE2b-256 9406bb28c6f7bb4eee6fd6e791d3b1bbaa0171ff0e862d10cf148fd66c3d7061

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: zxing_cpp-2.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 666.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for zxing_cpp-2.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a54cd56c0898cb63a08517b7d630484690a9bad4da1e443aebe64b7077444d90
MD5 ee2b837f371bb04c3180e4621976553a
BLAKE2b-256 7514af341795fd68c19219dafed6922940ad7f7cba9039cc30e08300a70757bb

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp311-cp311-win32.whl.

File metadata

  • Download URL: zxing_cpp-2.1.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 607.7 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for zxing_cpp-2.1.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8397ce7e1a7a92cd8f0045a4c64e4fcd97f4aaa51441d27bcb76eeda0a1917bc
MD5 1f6a9b4f9c13b6677d5f24be9489ccc3
BLAKE2b-256 810e4967ed56c957ee7fcdb622c4b564306c469af0dc482bdaebcdeae89d6489

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for zxing_cpp-2.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 66d01d40bacc7e5b40e9fa474dab64f2e75a091c6e7c9d4a6b539b5a724127e3
MD5 efae935f35604107108fd266c387ac76
BLAKE2b-256 de3c69144ef3da50f84fa4676bd042f3230379fe73564d9b2866fa2d085c4350

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for zxing_cpp-2.1.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 843f72a1f2a8c397b4d92f757488b03d8597031e907442382d5662fd96b0fd21
MD5 80ca6f98306cdcb61faf5e2adacf977d
BLAKE2b-256 c999f73d9ef563a5c63780637b761956435f1a57d56ca7b8c959184842c1cf89

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for zxing_cpp-2.1.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4163d72975191d40c879bc130d5e8aa1eef5d5e6bfe820d94b5c9a2cb10d664e
MD5 e637a76f52a406c472a738bd79c6a2c9
BLAKE2b-256 a453f603bf3a2ad61495e62788d7e7de314e773a188944b951216b222002d832

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: zxing_cpp-2.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 666.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for zxing_cpp-2.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 650d8f6731f11c04f4662a48f1efa9dc26c97bbdfa4f9b14b4683f43b7ccde4d
MD5 1d291d0972d071beb024afe1208c4fc1
BLAKE2b-256 d59598195f92eebdca2078a322539aaca2ac8ef34d9a7b24bfa9d36a0a7d76f2

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp310-cp310-win32.whl.

File metadata

  • Download URL: zxing_cpp-2.1.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 607.7 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for zxing_cpp-2.1.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0a178683b66422ac01ae35f749d58c50b271f9ab18def1c286f5fc61bcf81fa7
MD5 b6a34f1e9ce9af93d3a551787524b981
BLAKE2b-256 bbe06383e7cda2ea63022e281b69ee46569489f72398c2587452daccb363f531

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for zxing_cpp-2.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 313bac052bd38bd2cedaa2610d880b3d62254dd6d8be01795559b73872c54ed0
MD5 971c422a44897d35c3abdb8a182bd9b3
BLAKE2b-256 581fc4b90d9073ea7db27ce97daa66ad9b4aaffec830776ef64301f3278e46c5

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for zxing_cpp-2.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 4d9655c7d682ce252fe5c25f22c6fafe4c5ac493830fa8a2c062c85d061ce3b4
MD5 81f8a2d50c4a9eef448a820ace5f3b0c
BLAKE2b-256 fa188649c01c56ae1d11806fd8e0fcd7b35659f7b8d09f922e9fdb76452a39f4

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for zxing_cpp-2.1.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 26d27f61d627c06cc3e91b1ce816bd780c9227fd10b7ca961264f67bfb3bdf66
MD5 79efe806630d51eb38fca0dfc917309c
BLAKE2b-256 b7a66f1c7dccc274f329b7c6e83b940f6e9158230ab9ee2e292aadbd3eadee2a

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: zxing_cpp-2.1.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 663.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for zxing_cpp-2.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7245e551fc30e9708c0fd0f4d0d15f29c0b85075d20c18ddc53b87956a469544
MD5 793e602218ef7657a6ba0c3e593e62db
BLAKE2b-256 c94ab8e914d5390f95ceedf71fe8aa5885cae3f21c5cc9e018749bea7279d8c3

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp39-cp39-win32.whl.

File metadata

  • Download URL: zxing_cpp-2.1.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 607.7 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for zxing_cpp-2.1.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 da081b763032b05326ddc53d3ad28a8b7603d662ccce2ff29fd204d587d3cac9
MD5 99b1eee7f5432b94bf22b9c171bf9f9b
BLAKE2b-256 f1fb5aa6d87ecbc85c4ac6a8e71ef01f094a4f3bc44c91ec5eed028eb5f60384

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for zxing_cpp-2.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7ba898e4f5ee9cd426d4271ff8b26911e3346b1cb4262f06fdc917e42b7c123
MD5 cde919aa810b833eb4d7e8d60f18b852
BLAKE2b-256 047d4dff0bd4fde587d5c61dbe6da6e210b6fcbab50a24a8e54c1affb04e8d3c

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for zxing_cpp-2.1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 ba91ba2af0cc75c9e53bf95963f409c6fa26aa7df38469e2cdcb5b38a6c7c1c7
MD5 72f733e5413b39aa74bd58a803f54ef0
BLAKE2b-256 22911df669525c147af3e492a95dd985a61d6c0d25c372aba84ef6b5d155db68

See more details on using hashes here.

File details

Details for the file zxing_cpp-2.1.0-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for zxing_cpp-2.1.0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ab8fff5791e1d858390e45325500f6a17d5d3b6ac0237ae84ceda6f5b7a3685a
MD5 7ee9f6767c13380baacca9dd6a55ff51
BLAKE2b-256 49fc7505bbe725da41178aec126a16c0ff03380d7294d4253c1bed27abfde14e

See more details on using hashes here.

Supported by

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