Python bindings for the zxing-cpp barcode library
Project description
Python bindings for zxing-cpp
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, zxingcpp
img = cv2.imread('test.png')
results = zxingcpp.read_barcodes(img)
for result in results:
print('Found barcode:'
f'\n Text: "{result.text}"'
f'\n Format: {result.format}'
f'\n Content: {result.content_type}'
f'\n Position: {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
Built Distributions
File details
Details for the file zxing-cpp-2.2.0.tar.gz
.
File metadata
- Download URL: zxing-cpp-2.2.0.tar.gz
- Upload date:
- Size: 652.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11884ef9d1a61e47ad89836339da9e1040cb28b083fb37462bc58e8d46f135bc |
|
MD5 | d35d3a6b8dc95e899db3d3b6a104121b |
|
BLAKE2b-256 | a78f77828ef6e7bcad2ed17da58a4af833fce52e2afb6e72214e0403fa0ef197 |
File details
Details for the file zxing_cpp-2.2.0-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 692.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3cdd28dd42176f59aa7fcbd052ec1d60c1fa29363b3fa5a8e41ecf8ce6e9be7 |
|
MD5 | 861f07b22b829cda5e64cfafec71a377 |
|
BLAKE2b-256 | fe8991f417cbd62bbb1b3d2be8dd8b4162b33f1a6fbd44a35ce94dca4c10de07 |
File details
Details for the file zxing_cpp-2.2.0-cp312-cp312-win32.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp312-cp312-win32.whl
- Upload date:
- Size: 628.9 kB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ff0059eef121ae7769ba4baeee52172438ca770cb4054e1d114beeda66226d |
|
MD5 | cd9a3af6e56efd0c0d35d2baf3a8cd0b |
|
BLAKE2b-256 | 6b8e33c867704d8b7fd366e3d1cc2b3e4ad0cad0816a437ebba1f1eda8cbdb91 |
File details
Details for the file zxing_cpp-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 939.7 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0b35274af536ac9091d446ba0f69840feba62525feddf24b7b8991d924d6543 |
|
MD5 | 54a6bb9f576bbe94eb350d0e855b5d58 |
|
BLAKE2b-256 | 5a2411d8dc758a044cb921f5f34d3136fee5f0896f37b9eab7ee3f9d47f8ad46 |
File details
Details for the file zxing_cpp-2.2.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 962.8 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9868fbb9770ef2a2b72b6fe67d7528b9e4858ba6a130e59969ecb2e71271cd1 |
|
MD5 | a1bdc61c3de3f520b046cd2bb06b0c51 |
|
BLAKE2b-256 | 69df59e2016085a61868570f071f2a40e050cf65e7c8267c86bfe935be3b17d1 |
File details
Details for the file zxing_cpp-2.2.0-cp312-cp312-macosx_10_9_universal2.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp312-cp312-macosx_10_9_universal2.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 177d5ed00c505e1728a90dc4742c6f0a4d9c2db56101809762f10f98fb822fa2 |
|
MD5 | 2d3b460db7a75ac44fb76ea5a85cceda |
|
BLAKE2b-256 | ad030244ec65840eb58698dc820877c30388a54ac90ea26b72f0a80565da2280 |
File details
Details for the file zxing_cpp-2.2.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 692.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70f9f13c4c91cb0747c0dc7ef247b39e19d38d07efd695fac17d11832f93d44a |
|
MD5 | de42540307863e72846c14dee841d4e2 |
|
BLAKE2b-256 | 688a22c3d653c31cba5866c36877e6ef80786af8f4aea375c3f258a66539995f |
File details
Details for the file zxing_cpp-2.2.0-cp311-cp311-win32.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp311-cp311-win32.whl
- Upload date:
- Size: 628.5 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2059fb6d47eb80122856d1524611339bffe27ad7e4cf59bdb6d642989e238b4 |
|
MD5 | 8d5145f525aed0a2afa42074b9143424 |
|
BLAKE2b-256 | acfaf4c855c57c8b9bdf9c9bcce891b5da6cffb09331adf38e086c2908d83f41 |
File details
Details for the file zxing_cpp-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 941.4 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8602d7cad833007df497b8db7c1216fc7d21e077eb02206b45f4fc061b082913 |
|
MD5 | af4c099d54dc756491600f7be7dac3ff |
|
BLAKE2b-256 | cbc1dcd5e242c252ca3ea84acf8cf6e533b4cc90a1171c9d1a7457f24ca19aca |
File details
Details for the file zxing_cpp-2.2.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 964.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d9e7369bba46727e4a7fa1b5bd2b630696ec042df60063c13f2d844887950b1 |
|
MD5 | 10a264d995921a6427bb436c578adc6c |
|
BLAKE2b-256 | 24a8393de9c47df6bdfca7cbc64a591ce26550bd176b09b22eb180bf99c3a3d4 |
File details
Details for the file zxing_cpp-2.2.0-cp311-cp311-macosx_10_9_universal2.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp311-cp311-macosx_10_9_universal2.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.11, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d63385278ed2c674c756fe3448769b813351584e111cb61e6901a5e3dbf646 |
|
MD5 | faacfa86bc1f3cb9807ab1db71032ece |
|
BLAKE2b-256 | 20dc4f301d215b77b7a256b1b98a3ca9449f13417f96d5489a2ecff0a7dacbb4 |
File details
Details for the file zxing_cpp-2.2.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 692.0 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b69dcee874b59201a586e8fc77a7f83a92cd09d029d22a8b7b4f7112db2c675f |
|
MD5 | b50afde1e97d74c904ceaedd2e8fee4b |
|
BLAKE2b-256 | bc0b483db6155ca3ff6f70a9d4e29ba88dd4e67801517cdf330a97c370ede32d |
File details
Details for the file zxing_cpp-2.2.0-cp310-cp310-win32.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp310-cp310-win32.whl
- Upload date:
- Size: 628.6 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e788ec26d10ac057f5027357ab404b1de2dd3ce216c1d0be20437dcd37f1afc |
|
MD5 | 85fcc982feaef79bc0b33198e2242841 |
|
BLAKE2b-256 | 22f209e03bbc2317de1b0916e0162871f40e6b4769c367ac7144f80e08d4a8d5 |
File details
Details for the file zxing_cpp-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 940.0 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8256ed05d0978e87847e91e2aff03b21c19cf4256dcb8af8a335de8361f027be |
|
MD5 | 92cbfe67a83dbb23b9e31485edeac6ba |
|
BLAKE2b-256 | 5747dad02f727f908045e2abd8e0e930e7f20e6d1566e30e64fb0578a42af0a9 |
File details
Details for the file zxing_cpp-2.2.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 963.0 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e8bae00edea7f6350ced4f954ca2c3386afbf6d85d3303126f9cf8584cec454 |
|
MD5 | 64c5bb685747378fed7990a342d5004a |
|
BLAKE2b-256 | 64e478913f55bde52a80e282f98a3ff1ba21ae534dc6a2a865fae1fbaf408203 |
File details
Details for the file zxing_cpp-2.2.0-cp310-cp310-macosx_10_9_universal2.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb8ede507dad76d0ed606c17be943cfe554909cdb517f7650da076e8dc9648c0 |
|
MD5 | 2595a6bc07c5dcd4dfee49e3418bd37e |
|
BLAKE2b-256 | 11b12c58169b415b2e3a472ddb26150d95e717e5247c78abbc552718ed549884 |
File details
Details for the file zxing_cpp-2.2.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 689.9 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bcd8855da4a9ef9e92799446353b5b8fa3eb5da21346089f0f09dcbb8bef1b6 |
|
MD5 | ac7eccb80d1d3b70ef3ff51cab4c1791 |
|
BLAKE2b-256 | 6372d1dd6d09209df457d4652405ef261af68c9ecc4068a0aacbf794b537c7d5 |
File details
Details for the file zxing_cpp-2.2.0-cp39-cp39-win32.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp39-cp39-win32.whl
- Upload date:
- Size: 628.6 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92acc610eb6100cc5dd4c0f583de22e137c051a0f6e653dba6aef07e8c32810f |
|
MD5 | a27b631eccd3e78b6d48fb96d4080a5a |
|
BLAKE2b-256 | 945669570d7b89883e78dec35629bd4e8f5951b3a3e5312cdcea63725576c3db |
File details
Details for the file zxing_cpp-2.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 940.4 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70026b8370fc34c257fa76d84a07374a78a8a46cb00d36f285d32c60e9fbf6dd |
|
MD5 | 7b68b893d8eda38af4fe90e6a2f7664f |
|
BLAKE2b-256 | 6408d4c682502edc0103aa45e0b21efa57ec4a7de72a24b4548a0206ebdf5dbf |
File details
Details for the file zxing_cpp-2.2.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 963.5 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4303e904a174df3c3f7f1817cf42a10521514865d9cdfcc9205e5ff0243c16fa |
|
MD5 | 243402c31b217b1c5c762a9c2eafb1c4 |
|
BLAKE2b-256 | fbcfaa1edc64b4d280e1e916ef64be8e87fe72b4542744ec7c97fdc54893b827 |
File details
Details for the file zxing_cpp-2.2.0-cp39-cp39-macosx_10_9_universal2.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp39-cp39-macosx_10_9_universal2.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55a3f24aeb3e71a2090f3ded10d3b44865e60b640cebcb9c5f10e188158314ea |
|
MD5 | ecf083e01d43f9b531772f84527c4c68 |
|
BLAKE2b-256 | 3ce88175748598c5efff117cb29ab1e7341948e93e7f77dd24e36cb757b5d6ca |
File details
Details for the file zxing_cpp-2.2.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 692.4 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d620de9309d6f8d79dcb87b5c32bc8d72a1dbdc54369c31552a5ab277e25e78 |
|
MD5 | fe73f70865d81c813e94445b4d7538c1 |
|
BLAKE2b-256 | 527d7eff89f67d8358c91c93a8694f721c7a27b06bfb30e9436e02cd8ff4d282 |
File details
Details for the file zxing_cpp-2.2.0-cp38-cp38-win32.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp38-cp38-win32.whl
- Upload date:
- Size: 628.5 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3297daded419c87b2720ce9620817db4742814d7e31bfddeeb6329266a61f54f |
|
MD5 | 08b92a3132b1f5b2670d44ee273c99a4 |
|
BLAKE2b-256 | 047dfee0f94f1521e9ac9968438a5fc234b3321d58f8847a14272a75602bf4e0 |
File details
Details for the file zxing_cpp-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 940.1 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d0dae34bdd8745103cd93c0cb315a0de4bb2876e564a35704be971ac07fcd4 |
|
MD5 | ebe80af33fda9a9c9ea61b61b0ab3c77 |
|
BLAKE2b-256 | e85646bc2988ee8e89f26a5abd520c6dc44987b1043fc93b87b493d0ab469974 |
File details
Details for the file zxing_cpp-2.2.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 962.8 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16148c7a7926f2f897c69c695f4b334cd1a777bbfa0269204245fad288b47cf |
|
MD5 | 2954ca03413408e15254914febfc61b8 |
|
BLAKE2b-256 | d24e05c8873372e6db88f6129c7111eaa1e386addff64c45340d4946c3f9bbd8 |
File details
Details for the file zxing_cpp-2.2.0-cp38-cp38-macosx_10_9_universal2.whl
.
File metadata
- Download URL: zxing_cpp-2.2.0-cp38-cp38-macosx_10_9_universal2.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.8, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a7a616f6c8e02a92f8ab38d91bc14fecfbb3bc6bf2b69c4e5d7bb54eeaea141 |
|
MD5 | 6be8951f96e3ef56a27ecf17a1edd363 |
|
BLAKE2b-256 | 2469dd0559da28e142fdaa66faa4c0f6ae2e0cc6597386f624c86431447ceba9 |