(Original) How does one implement libdecodeqr in Linux? (OS) (Linux) (cenos) (Image Processing) (C/C ++)

Source: Internet
Author: User

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

Related Article

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.