Abstract
Libdecodeqr is an open source C/C ++ QR code library. This article discusses how to make it available in Linux (centos 5.1.
Introduction
The QR code is a two-character keyword that has been frequently used on websites. It is mainly used for URL, text, telephone, or website encoding, then, you can identify the problem through the CMOS camera on your phone. Libdecodeqr is an open source C/C ++ QR code library, which can be downloaded under http://trac.koka-in.org/libdecodeqr.Libdecodeqr-0.9.3.tar.bz2Because libdecodeqr uses opencv, You must fix opencv in Linux before using libdecodeqr. For more information about how to compile opencv in Linux, see how to compile opencv in Linux? (OS) (Linux) (centos) (Image Processing) (C/C ++ ).
Libdecoreqr
Step 1:
Go to http://trac.koka-in.org/libdecodeqrto download the linuxlinuxversionLibdecodeqr-0.9.3.tar.bz2.
Step 2:
Unzip libdecodeqr-0.9.3.tar.bz2 to solve zookeeper.
[ Root @ localhost ~ ] # Tar jvxf libdecodeqr- 0.9.3 .Tar.bz2
Step 3:
Set the ldflags Runtime Environment Change and specify the path of opencv Lib.
[ Root @ localhost ~ ] # Export ldflags = " $ Ldflags-L/usr/local/opencv/lib "
Step 4:
Set cppflags environment changes and specify the path of opencv header changes.
[ Root @ localhost ~ ] # Export cppflags = " $ Cppflags-I/usr/local/opencv/include/opencv "
Step 5:
Move to contents to libdecodeqr-0.9.3/src/
[ Root @ localhost ~ ] # Cd libdecodeqr- 0.9.3 /Src/
Step 6:
Success stories
[ Root @ localhost SRC ] #./Configure
Step 7:
Libdecodeqr
[ Root @ localhost SRC ] # Make
Step 8:
Installing libdecodeqr
[ Root @ localhost SRC ] # Make install
Step 9:
Whether the Security token libdecodeqr is successfully installed
[ Root @ localhost SRC ] # Cd sample/simple
[Root @ localhost simple]#./Simpletest/root/libdecodeqr-0.9.3/Img/01-1. Jpg
Results
Libdecodeqr version 0.9.3 ($ Rev: 42 $)
Status = 2080
Http://www.amazon.co.jp/gp/aw/rd.html? UID = Nullgwdocomo & URL = /GP/AW/h.html & = Aw_intl6- 22
hit any key to end.
See also
(formerly known) in Linux, how does one compile opencv? (OS) (Linux) (centos) (Image Processing) (C/C ++)
(original plugin) How does one implement libdecodeqr in vc8? (C/C ++) (VC ++) (Image Processing)
reference
http://trac.koka-in.org/libdecodeqr