{"id":13442223,"url":"https://github.com/mchehab/zbar","last_synced_at":"2025-05-14T22:07:30.026Z","repository":{"id":39459049,"uuid":"144000412","full_name":"mchehab/zbar","owner":"mchehab","description":"ZBar is an open source software suite for reading bar codes from various sources, including webcams. As its development stopped in 2012, I took the task of keeping it updated with the V4L2 API. This is the main repository for it. There's a clone at at LinuxTV.org, and another one at gitlab.","archived":false,"fork":false,"pushed_at":"2024-07-30T02:39:13.000Z","size":5390,"stargazers_count":1102,"open_issues_count":122,"forks_count":209,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-13T18:44:34.274Z","etag":null,"topics":["barcode","barcode-scanner","linux","v4l2"],"latest_commit_sha":null,"homepage":"https://linuxtv.org/downloads/zbar/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mchehab.png","metadata":{"files":{"readme":"README-windows.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-08T10:52:40.000Z","updated_at":"2025-04-10T07:11:20.000Z","dependencies_parsed_at":"2024-01-11T23:22:29.274Z","dependency_job_id":"61775d71-cc4b-4c28-82d3-3006af013699","html_url":"https://github.com/mchehab/zbar","commit_stats":{"total_commits":695,"total_committers":57,"mean_commits":"12.192982456140351","dds":0.6992805755395683,"last_synced_commit":"a549566ea11eb03622bd4458a1728ffe3f589163"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchehab%2Fzbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchehab%2Fzbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchehab%2Fzbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchehab%2Fzbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mchehab","download_url":"https://codeload.github.com/mchehab/zbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235696,"owners_count":22036963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barcode","barcode-scanner","linux","v4l2"],"created_at":"2024-07-31T03:01:43.159Z","updated_at":"2025-05-14T22:07:25.007Z","avatar_url":"https://github.com/mchehab.png","language":"C","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"ZBAR BAR CODE READER\r\n====================\r\n\r\nZBar Bar Code Reader is an open source software suite for reading bar codes\r\nfrom various sources, such as video streams, image files and raw intensity\r\nsensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 93, Code 39,\r\nCodabar, Interleaved 2 of 5 and QR Code.  Included with the library are basic\r\napplications for decoding captured bar code images and using a video device\r\n(e.g. webcam) as a bar code scanner.  For application developers, language\r\nbindings are included for C, C++, Python and Perl as well as GUI widgets for\r\nQt, GTK and PyGTK.\r\n\r\nCheck the ZBar home page for the latest release, mailing lists, etc.\r\n\r\n  * \u003chttps://github.com/mchehab/zbar\u003e\r\n\r\nLicense information can be found in 'COPYING'.\r\n\r\nOnce built, the Windows binaries will use binaries of several supporting\r\nlibraries, each one with its own copyright, license and source code locations.\r\n\r\nIt follows a non-exhaustive list of those components:\r\n\r\n  * The GNU libiconv character set conversion library\r\n\r\n    Copyright (C) since 1999 Free Software Foundation, Inc.\r\n\r\n    Licensed under LGPL.  The source code is available from\r\n\r\n      * \u003chttp://www.gnu.org/software/libiconv\u003e\r\n\r\n  * The ImageMagick software imaging library\r\n\r\n    Copyright since 1999 ImageMagick Studio LLC\r\n\r\n    Licensed under a derived Apache 2.0 license:\r\n\r\n      * https://imagemagick.org/script/license.php\r\n\r\n    The source code is available from\r\n\r\n      * \u003chttp://imagemagick.org\u003e\r\n\r\n  * The libxml2 XML C parser and toolkit\r\n\r\n    Copyright (C) since 1998 Daniel Veillard.\r\n\r\n    Licensed under the MIT license.\r\n\r\n    The source code is available from:\r\n\r\n      * \u003chttp://xmlsoft.org\u003e\r\n\r\n  * JPEG library\r\n\r\n    The Independent JPEG Group's software's version is:\r\n\r\n       Copyright (C) since 1991 Thomas G. Lane, Guido Vollbeding.\r\n\r\n    Libjpeg-turbo has additional copyrights:\r\n\r\n       Copyright (C) since 2009 D. R. Commander.\r\n       Copyright (C) since 2015 Google, Inc.\r\n\r\n    Licensed under BSD-style licenses with their own terms:\r\n\r\n      * https://www.ijg.org/files/README\r\n      * https://github.com/libjpeg-turbo/libjpeg-turbo/blob/master/LICENSE.md\r\n\r\n    The source code is available from:\r\n\r\n      * \u003chttp://www.ijg.org\u003e\r\n\r\n  * libtiff, a library for reading and writing TIFF\r\n\r\n    Copyright (c) since 1988 Sam Leffler\r\n\r\n    Copyright (c) since 1991 Silicon Graphics, Inc.\r\n\r\n    Licensed under a BSD-style license.\r\n\r\n    The source code is available from\r\n\r\n      * \u003chttp://www.libtiff.org\u003e\r\n\r\n  * libpng, the official PNG reference library\r\n\r\n    Copyright (c) since 1998 Glenn Randers-Pehrson\r\n\r\n    Licensed under a BSD-style license.\r\n\r\n    The source code is available from\r\n\r\n      * \u003chttp://www.libpng.org/pub/png/libpng.html\u003e\r\n\r\n  * The zlib general purpose compression library\r\n\r\n    Copyright (C) since 1995 Jean-loup Gailly and Mark Adler.\r\n\r\n    Licensed under a BSD-style license.\r\n\r\n    The source code is available from\r\n\r\n      * \u003chttp://zlib.net\u003e\r\n\r\n  * The bzip2 compression library\r\n\r\n    Copyright (C) since 1996 Julian Seward.\r\n\r\n    Licensed under a BSD-style license.\r\n\r\n    The source code is available from\r\n\r\n      * \u003chttp://bzip.org\u003e\r\n\r\n  * Depending on how this is packaged, other licenses may apply\r\n\r\n\r\nBUILDING\r\n========\r\n\r\nNOTE: this is a simplified version of what it was done in order to do the\r\nTravis CI builds. You may use this as a guide, but the instructions here\r\nmay be incomplete. If you find inconsistencies, feel free to submit patches\r\nimproving the building steps.\r\n\r\nAlso, please notice that the instructions here is for a minimal version,\r\nwithout any bindings nor ImageMagick.\r\n\r\nBuilding on Ubuntu Bionic\r\n-------------------------\r\n\r\nYou need to install the following packages:\r\n\r\n    sudo apt-get install -y \\\r\n\tautoconf automake autotools-dev libdbus-1-dev \\\n\tpkg-config binutils-mingw-w64-i686 gcc-mingw-w64 \\\n\tmingw-w64-i686-dev mingw-w64-common win-iconv-mingw-w64-dev \\\n\txmlto autopoint\n\nThen, build Zbar with:\n\n    export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig\r\n\r\n    autoreconf -vfi\r\n\r\n    CC=i686-w64-mingw32-gcc ./configure --host=i686-w64-mingw32 \\\r\n\t--prefix=/usr/local/win32 --with-directshow \\\r\n\t--without-gtk --without-python --without-qt --without-java \\\r\n\t--without-imagemagick --enable-pthread\r\n\r\n    make\r\n\r\n\r\nBuilding natively on Windows\r\n----------------------------\r\n\r\nIt is possible to build it natively on Windows too.\r\n\r\nYou need first to setup a building environment with minGw. One way would\r\nbe to use Chocolatey to download what's needed:\r\n\r\n  * https://chocolatey.org/\r\n\r\nWith Cocolatey installed, ensure that you have minGw and needed deps with:\r\n\r\n    choco install -r --no-progress -y msys2 make\r\n\r\nThen use pacman to install the needed packages:\n\n    pacman -Syu --noconfirm autoconf libtool automake make \\\n\tautoconf-archive pkg-config autopoint gettext-devel\n\nOnce you have everything needed and set the PATH to the places where the\nbuilding environment is, you can build ZBar with:\n\r\n    autoreconf -vfi\r\n\r\n    ./configure \\\r\n\t--host=i686-w64-mingw32 --prefix=/usr/local/win32 \\\r\n\t--without-gtk --without-python --without-qt --without-java \\\r\n\t--without-imagemagick --enable-pthread \\\r\n\t --with-directshow --disable-dependency-tracking\r\n\r\n    make\r\n\r\n\r\nRUNNING\r\n=======\r\n\r\nThis version of the package includes *only command line programs*.\r\n(The graphical interface is scheduled for a future release)\r\n\r\nInvoke Start -\u003e Programs -\u003e ZBar Bar Code Reader -\u003e Start ZBar Command Prompt\r\nto open a shell that has the zbarimg and zbarcam commands available\r\n(in the PATH).\r\n\r\nTo start the webcam reader using the default camera, type:\r\n\r\n    zbarcam\r\n\r\nTo decode an image file, type e.g.:\r\n\r\n    zbarimg -d examples\\barcode.png\r\n\r\nFor basic command instructions, type:\r\n\r\n    zbarimg --help\r\n    zbarcam --help\r\n\r\nCheck the manual for more details.\r\n\r\n\r\nREPORTING BUGS\r\n==============\r\n\r\nBugs can be reported at the GitHub project page\r\n\r\n  * \u003chttps://github.com/mchehab/zbar\u003e\r\n\r\nPlease include the ZBar version number and a detailed description of\r\nthe problem.  You'll probably have better luck if you're also familiar\r\nwith the concepts from:\r\n\r\n  * \u003chttp://www.catb.org/~esr/faqs/smart-questions.html\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchehab%2Fzbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmchehab%2Fzbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchehab%2Fzbar/lists"}