Skip to main content

Python ctypes libzbar wrapper

Project description


This is libzbar python ctypes bindings, it should support python2 and python3.

I can not find a python3 version zbar library under raspberry pi, so i write this codes for it.

It should work under other platform only need replace the libzbar path.

It only test under Raspbian (raspberry pi) now.


- Install
- install libzbar::

sudo apt-get install zbar-tools

- install libzbar_ctypes
- python3::

pip install libzbar-ctypes

- python2::

pip3 install libzbar-ctypes

- Example (on raspberry pi)
- install pillow
install Prerequisites packages. see
download pillow source code (, and compile it.

- run the example script.

- test
- test under ubuntu 15.04.
- test on hardware firefly.
- test on hardware rasyberry pi.


Add all libzbar function bindings.


by jf.

zaazbb <>

Project details

Download files

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

Files for libzbar-ctypes, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size libzbar-ctypes-0.1.2.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page