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