Académique Documents
Professionnel Documents
Culture Documents
))
in corrected image,
use f(x',y') as the gray value at coordinate (x'
,y') in
uncorrected image. Suppose the coordinate of P(l: i: 4) is
,x
)
, suppose the coordinate of P
'
(1
:
i
:
4)
is (x;, y;) .
Then there exists the following relationship:
{X, ax; + by; + cx;y; + d(l o i o 4)
y, mx;+ ny;+ px;y;+ q(l o i o 4)
By Jacobi iteration method ca solve the 8 paameters
a,
b
,
c
,
d
,
m
,
n
, p, q in above equations, ad then it realizes
the calibration trasformation fom the general quadrilateral to
a squae.
When the point (x',y') trasforms into point (x,) via
geometric distortion correction, bilinea interpolation ca be
used to determine gray value f(x,y) .Suppose the four adjacent
coordinates of
,x
))
are (x
,
y),
,x),),x
,
)
,
,x
,
)
.
)
ad
the corresponding gray values are f(x,y) , f(x,y;) ,
f(x;
,
y), I(x;, y
;
) .Then the bilinea interpolation formula is:
:.:::,::,.:,:,:-:,.::,.,:,:-
:::-:,:::,:::.::::-:,.:
D. Image Normaliation
The QR code image which is almost on regula ca be
obtained by geometric transformation. Then it needs to be
normalized. The reseach in reference [14] proposed a method
that the QR code is divided into models based on Sobel edge
detection ad deblurred based on Fourier tasform, ad all bit
steam data correspond to the code are obtained in the end,
which can be decoded. While in this paper, the stategy is as
follows.
Firstly, mae sure the version number of the QR code based
on the decoding algorithm given i the national standard ad
symbol structures of QR code itself. Secondly, divide equally
the QR image into
n
x
n
small grids according the version
number, re-sample the center of each grid as the sampling point
and get the normalized QR code symbol. In this process, since
the computer step length is integer, te cumulative error must
produce more or less. By using of averaging method, some
modules that are supposed to be within te grid shif, leading to
errors in QR codes dividing. Therefore, it is better to make a
fll-scale expansion to te image before grid-dividing based on
the principle of image scaling so that it minimize the error
which is generated when cutting image. While the new gray
values generated in amplifing procedure ca be solved using
bilinea interpolation. Thirdly, decode the stadard QR code
symbol according the National Stadard Method of Quick
Response Code afer imae re-sampling.
Ill. EXPERIMENT RESULTS
During te experiment, the 100 sample pictures, all 320 *240
pixels were collected by shooting in different direction using
the ordinay camera for chat. Images include the following
situations. Different versions of bar code, fom version 1 to
version 7; Ba illumination conditions ae diferent,
respectively, in the general light, strong light and wea light, In
non-uniform lighting conditions, 10 uneven illumination
images were shoot; Geometic distortion, which shot out of a
squae tha the stadard two-dimensional code; the tilt angle
exists in the image; some images ae surrounded by the noise
information.
This experiment is carried on in the windows X system,
using visual C++ programming to process image, and both
image encoding ad decoding adopts the metod proposed in
QR[S] national standads. The results are as follows. (1) Under
the normal light ad bright light, using OTSU method, genetic
algorithm to process can obtain good results, but image under
uneven light will cause pat of the shadow that would not be
recognized afer processing, take adaptive threshold instead.
The recognition rate is 90%.Average time used in OTSU is
0.005500s while genetic algorithm used in threshold is
0.02044s; Bimodal histogram method can only be recogized
when there ae two obvious peas on te picture, the
recognition rate was 80%, the spent time is 0.004540s;Niblack
metod taes 0.l64254s when window size is 5.Adative
threshold method ca identif most of te non-uniform image,
but the algorithm processing speed is much slower tha OTSU,
the average time is 0.22361 s; (2) te lower the version is, the
more simple images ae, binary images are more clea and the
result is better. (3) I the same programing environment used
for the time to determine te rotation agle. As opposed to
O.l 04890s in general Hough tasform ad 0.002622s in
hollowing algoritm, the time used in algorithm in tis paper
time 0.000427s, shortened by 245 times and 6.l4 times.
IV. CONCLUSION
This paper discusses QR code recognition algoritm based
on image processing, including image binaization, image tilt
correction, image orientation, image geometry correction,
image normalization, making the acquisition images be
correctly identifed through a series aalysis ad treatment.
Main innovation of this paer is as follows.
(1) In the rotation process, the QR code symbol was
extracted and the surrounding noise information ca be
efectively eliminated. (2) In terms of the geometic correction,
not using Hough trasform, but using the coordinates of known
points to infer the fourt vertex of QR code, and this method
reduces te time complexity. (3) In terms of image
736
normalization, using the principle of image scaling to reduce
the error caused by average means. The frst step in identifing
taes the frst priority, image binaization method has a lage
impact on the ba code identifcation system, hence the issue
how to select a appropriate algorithm to binaize is the focus
of fture research papers. With te frter development in the
of te industy, two-dimensional code recognition technology
based on image processing image dedicated in reader reading
applications will have broad application prospects, te aticle
have a certain signifcance on the promotion ad development
of QR codes.
REFERENCES
[I) Y.Liu,M.Y.Liu,"Research on Data Encoding of Two-Dimensional QR
Code Bacode",Trnsactions of Beijing Institute of Technology,
VoI.25,NoA,pp.352-355, Apr.2005.
[2) H.zhang,Q.W.Han,F.M.Yu,"Two Dimensional Ba Code in Medicine
Trade Logistic Management System",Journal of Chongqing University,
VoI.27,NoA,pp.122-125, Apr.2004.
[3) X.X.H uang,"Reseach on Restauran Reservation System Based on Two
Dimensional Bar Techology",China Computer & Communication ,
pp.61-62, Feb.2010.
[4) C.Y.Kang. "Study on System of Electronic Ticket on Two-dimensional
Code",Joural of Harbin Universit of Commerce (at url Sciences
Edition, VoI.25,No.2,pp.178-181 ,Apr.2009.
[5) Article Numbering Centre of China, QR code Two-dimensional Bar
Code Technolog and Application,Beijing,Standards Press of
China,2002. pp.2-50.
[6) Quick response code, G BIT 18284- 2000,2001.
[7] TRIER,O.D.,JAIN,A.K.,"Goal-Directed Evaluation of Binarization
Methods",Pattern Analysis and Machine Intelligence,JEEE
Trnsactions on PAMI, Vo1.17,No.12,pp.1191-1201,Dec.1995.
[8) RZhang,HZhu, TZhang,X.Shen,"A Pre-Processing Method on QR
Code Two Dimensional Code Image",Computer Science.
Vo1.35,NoA ,pp.146-148,2008.
[9) Q.L.Ai,LC.Wang,SXZong,"A Method of QR Code Image Pre
Processing Based on the Suface Fitting",Journal of Hunan First Noral
University, VoI.9,NoA ,pp.167-169,Aug.2009.
[10) M.Sun,LS.Fu,XTYang,S.H.zhang,"Image Analysis Method for QR
Code's Automatic Recognition",Joural of University of Electronic
Science and Technology of China, Vo1.38,No.6,pp.122-125,Nov.2009.
[II) DLiu,X.Q.Gao,"Research on Algorithm of Processing and Identifcation
of QR Barcode Image",Inforamtion Technolog, VoI.28,No.l,pp.61-
63,1an.2004.
[12) LS.Fu,M.Sun, S.Q.Han,LYang,"Research of Dot Matrix Two
dimernional Ba Code Basd on Morphological Jiroge
Processing",Packaging Engineerng, Vo1.29,N 0.5,ppA9-51 ,May.2008.
[13) X.P.Hu,Q.Dong,Z.QYu,"QR Code Recognition Based on Image
Processing" ,Aeronautical Computing Technique, Vol.3 7,N 0.2,pp. 99-
102,Ma.2007.
[14) HJLiu,"Omnidirectional Recognition of Quick Response Code
image",Chinese Joural of Scientic Instrment, VoI.27,NoA,pp.376-
379,Apr.2006.
[15) H.W.Liu,YYan,"Recognition and Decoding of QR Code",Computer
Engineering and Design, Vo1.26,No.6,pp.1560-1562,1un.2005.
[16) WTCai,ZLiu,"Research on Two-dimensional Ba Code Positioning
Approach Based on Convex Hull AIgorithm",Joural of Zhejiang
University of Technolog, Vo1.36,No.6,pp.669-672,Dec.2008.
[17) F.GYuan,lC.Liu,"Research on Diferent Interpolation Methods of
Digital Image Rotation",Softare Guide,VoI.9,NoA,pp.187-
189,Apr.2010.