zbar-windows/python
2021-08-15 12:14:00 +08:00
..
examples python: Make it work with modern versions of python 2 2018-08-07 16:12:54 -03:00
test python: Make it work with modern versions of python 2 2018-08-07 16:12:54 -03:00
decoder.c python: suppress an unnoying warning 2019-05-12 07:31:24 -03:00
enum.c python: enum: make it compatible with Python 3.9 2020-07-28 10:31:37 +02:00
exception.c python: suppress an unnoying warning 2019-05-12 07:31:24 -03:00
image.c python: suppress an unnoying warning 2019-05-12 07:31:24 -03:00
imagescanner.c python: suppress an unnoying warning 2019-05-12 07:31:24 -03:00
Makefile.am.inc following upstream changes. 2021-08-15 12:14:00 +08:00
MANIFEST.in Update to the very latest version of zbar 2017-03-25 23:04:38 -03:00
processor.c python: get rid of a Python 3.9 warning 2020-12-23 11:56:08 +01:00
README Update ZBar's main URL location 2019-05-13 19:12:00 -03:00
scanner.c python: suppress an unnoying warning 2019-05-12 07:31:24 -03:00
setup.py Update setup.py 2021-01-09 10:32:53 +01:00
symbol.c python: suppress an unnoying warning 2019-05-12 07:31:24 -03:00
symboliter.c python: suppress an unnoying warning 2019-05-12 07:31:24 -03:00
symbolset.c python: suppress an unnoying warning 2019-05-12 07:31:24 -03:00
zbarmodule.c following upstream changes. 2021-08-15 12:14:00 +08:00
zbarmodule.h deglobalize all state in python 2019-05-05 19:13:59 +02:00

==========================================
zbar -- read barcodes from images or video
==========================================

ZBar Bar Code Reader is an open source software suite for reading bar
codes from various sources, such as video streams, image files and raw
intensity sensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128,
Code 93, Code 39, Codabar, Interleaved 2 of 5 and QR Code.  These are
the Python bindings for the library.

Check the ZBar project home page for the latest release, mailing
lists, etc.

* https://github.com/mchehab/zbar

Installation
------------

To install this module type the following::

   python setup.py install

Dependencies
------------

This module requires the ZBar Bar Code Reader, which may be obtained
from:

* https://github.com/mchehab/zbar

Windows users please note: the module *will NOT load* unless the ZBar
library DLL (currently libzbar-0.dll) is available in your Windows system
PATH!

Examples
--------

To scan an image, wrap the raw image data in a ``zbar.Image`` and feed
it to a ``zbar.ImageScanner``::

    import zbar
    scanner = zbar.ImageScanner()
    image = zbar.Image(width, height, 'Y800', raw_data)
    scanner.scan(image)
    for symbol in image:
        print 'decoded', symbol.type, 'symbol', '"%s"' % symbol.data

Complete, runnable examples may be found in the source distribution,
under the ``examples/`` directory.  A couple of HOWTOs_ that cover
programming with the library may be found on the project wiki.

.. _HOWTOs: http://sourceforge.net/apps/mediawiki/zbar/index.php?title=Category:HOWTOs

Copyright and License
---------------------

Licensed under the GNU Lesser General Public License, version 2.1.
http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

Copyright 2008-2010 (c) Jeff Brown <spadix@users.sourceforge.net>