A simple and convenient barcode recognition library--zbar

Source: Internet
Author: User

Recently planned to make a barcode identification tool out, looking for some information to be forgotten.

1. What is Zbar?
Zbar is a bar code scanning and decoding library.

2. Use

Zbar support for the identification of two-dimensional barcodes, pure C implementation (optional C + + package), provides the C + +, Python, Perl language interface, can be used on the iphone ...

3. The Official wiki page (Http://sourceforge.net/apps/mediawiki/zbar/index.php?title=HOWTO:_Scan_images_using_the_API) has a detailed usage

You can refer to C's code on the wiki for use.


Zbar's document says that the format of the picture passed to parser is best Y800 (http://fourcc.org/yuv.php#Y800), using the OpenCV function Cvcvtcolor (cimg,gimg,cv_bgr2gray) can also be done, do not believe that children's shoes can go to see the function of the document, compare the Cv_bgr2gray generated image is not the Y800 format

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.