{ "info": { "author": "Zachary Pincus", "author_email": "zpincus@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "zbar-py\n=======\n\nIntroduction\n------------\n\nAuthor: `Zachary Pincus `__ zpincus@gmail.com\n\nContributions: Rounak Singh rounaksingh17@gmail.com (example code and\nzbar.misc).\n\nzbar-py is a module (compatible with both Python 2.7 and 3+) that\nprovides an interface to the `zbar `__\nbar-code reading library, which can read most barcode formats as well as\nQR codes. Input images must be 2D numpy arrays of type uint8 (i.e. 2D\ngreyscale images).\n\nThe zbar library itself packaged along with zbar-py (it's built as a\npython extension), so no external dependencies are required. Building\nzbar requires the iconv library to be present, which you almost\ncertainly have, except if you're on windows. Then you probably will need\nto download or build the iconv DLL.\n`Here `__\nare pre-built 32- and 64-bit binaries for same.\n\nThe python code is under the MIT license, and zbar itself is licensed\nunder the GNU LGPL version 2.1.\n\nPrerequisites:\n--------------\n\n- iconv -- c library required for building zbar-py; see above\n- numpy -- for running zbar-py\n- pygame -- for examples using a webcam\n\nSimple examples:\n----------------\n\nMore sophisticated examples can be found in 'examples' directory.\n\n- Scan for barcodes in a 2D numpy array:\n\n.. code:: python\n\n import zbar\n image = read_image_into_numpy_array(...) # whatever function you use to read an image file into a numpy array\n scanner = zbar.Scanner()\n results = scanner.scan(image)\n for result in results:\n print(result.type, result.data, result.quality, result.position)\n\n- Scan for UPC-A barcodes and perform checksum validity test:\n\n.. code:: python\n\n import zbar\n import zbar.misc\n image = read_image_into_numpy_array(...) # get an image into a numpy array\n scanner = zbar.Scanner()\n results = scanner.scan(image)\n for result in results:\n if result.type == 'UPC-A':\n print(result.data, zbar.misc.upca_is_valid(result.data.decode('ascii')))", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zplab/zbar-py", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "zbar-py", "package_url": "https://pypi.org/project/zbar-py/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zbar-py/", "project_urls": { "Homepage": "https://github.com/zplab/zbar-py" }, "release_url": "https://pypi.org/project/zbar-py/1.0.4/", "requires_dist": null, "requires_python": null, "summary": "zbar package", "version": "1.0.4" }, "last_serial": 2546877, "releases": { "1.0.4": [ { "comment_text": "", "digests": { "md5": "4183d8af0e13f16190583fb82f60e3f8", "sha256": "8f90fa36480f50109a8555a3e4debed69f70d8085545fd413190ae21a1455466" }, "downloads": -1, "filename": "zbar-py-1.0.4.tar.gz", "has_sig": false, "md5_digest": "4183d8af0e13f16190583fb82f60e3f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 543874, "upload_time": "2016-12-30T22:38:56", "url": "https://files.pythonhosted.org/packages/91/ba/5f16696d44c69df1d6a890adc60211183d2da90e8de4282d29d1475aba68/zbar-py-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4183d8af0e13f16190583fb82f60e3f8", "sha256": "8f90fa36480f50109a8555a3e4debed69f70d8085545fd413190ae21a1455466" }, "downloads": -1, "filename": "zbar-py-1.0.4.tar.gz", "has_sig": false, "md5_digest": "4183d8af0e13f16190583fb82f60e3f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 543874, "upload_time": "2016-12-30T22:38:56", "url": "https://files.pythonhosted.org/packages/91/ba/5f16696d44c69df1d6a890adc60211183d2da90e8de4282d29d1475aba68/zbar-py-1.0.4.tar.gz" } ] }