zbarcam
Real time Barcode and QR Code scanner using the camera. It's built on top of Kivy and pyzbar.
How to use
Simply import and instanciate ZBarCam in your kvlang file and access its symbols property.
#:import ZBarCam kivy_garden.zbarcam.ZBarCam
#:import ZBarSymbol pyzbar.pyzbar.ZBarSymbol
BoxLayout:
orientation: 'vertical'
ZBarCam:
id: zbarcam
# optional, by default checks all types
code_types: ZBarSymbol.QRCODE, ZBarSymbol.EAN13
Label:
size_hint: None, None
size: self.texture_size[0], 50
text: ', '.join([str(symbol.data) for symbol in zbarcam.symbols])
A full working demo is available in src/main.py.
Install
Ubuntu
Install system requirements (Ubuntu 18.04):
make system_dependencies
Install zbarcam:
pip install zbarcam
Then import it in your Python code via:
from kivy_garden.zbarcam import ZBarCam
Android
Build for Android via buildozer, see buildozer.spec.
Contribute
To play with the project, install system dependencies and Python requirements using the Makefile.
make
Then verify everything is OK by running tests.
make test
make uitest
Troubleshooting
Android ValueError: Empty module name
More likely an import issue in your .kv file.
Try to from zbarcam import ZBarCam in your main.py to see the exact error.
It's common to forget Pillow in buildozer.spec requirements section.
Metadata
Release files for zbarcam 2020.524
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zbarcam-2020.524.tar.gz | 6.9 kB | Without provenance | Details for zbarcam-2020.524.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zbarcam-2020.524-py3-none-any.whl | Python 3 | none | any | Details for zbarcam-2020.524-py3-none-any.whl |
Total release size: 13.2 kB
Release files / zbarcam-2020.524.tar.gz
| Download URL | zbarcam-2020.524.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a2f3c85a271b93db75bfef867baa5009486b3594c5000641c0d0e5f10d9cee3
|
|
BLAKE2b-256 checksum How to use checksums |
90704f1795ad79f56236fe2055421e07b351c43ee61dfdf4db356f3e7ab05c90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Release files / zbarcam-2020.524-py3-none-any.whl
| Download URL | zbarcam-2020.524-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
189b2df8d2dc1af4919c89c360d8aa42f0e28e6d456aa159852d2a8c03b3dfcd
|
|
BLAKE2b-256 checksum How to use checksums |
cb211ddb590e33c5d10df960672ba8f3586b199a37089f0fcef01268762fa95c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Security for zbarcam 2020.524
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.