A Seminar Report on BAR CODE RECOGNITION IN COMPLEX SCENES BY CAMERA PHONES Submitted in partial fulfillment of the requirements for the award of B.Tech Degree in Electronics And Communication Dept. by Jinesh R S AUGUST 2010 ADI SHANKARA INSTITUTE OF ENGINEERING &TECHNOLOGY (An ISO 9001 Certified Institution) VIDYA BHARATHI NAGAR, KALADY, KERALA 1
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
A Seminar Report on
BAR CODE RECOGNITION IN COMPLEX SCENES BY CAMERA PHONES
Submitted in partial fulfillment of the requirementsfor the award of B.Tech Degree in
Electronics And Communication Dept.by
Jinesh R S
AUGUST 2010
ADI SHANKARA INSTITUTE OF ENGINEERING &TECHNOLOGY
(An ISO 9001 Certified Institution)VIDYA BHARATHI NAGAR, KALADY, KERALA
1
ADI SHANKARA INSTITUTE OF ENGINEERING &TECHNOLOGY
(An ISO 9001 Certified Institution)VIDYA BHARATHI NAGAR, KALADY, KERALA
CertificateCertified that this is the Bona fide Record of the SEMINAR entitled
“BAR CODE RECOGNITION IN COMPLEX SCENES BY CAMERA PHONES”submitted during the year 2010 in partial fulfillment for the award of Bachelor of Technology in Electronics & Communication engineering by the candidate with
Name: Jinesh R S Register No: 56028
Branch: Electronics and Communication
Staff In-charge H.O.DDate…………....
2
ACKNOWLEDGEMENT
It is a great pleasure to express my sincere gratitude to Dr.S.G.IYER, Principal, ASIET, for his guidance advice and encouragement throughout this endeavor. I'm also grateful for granting me all the facilities for the seminar presentation.
I'm greatly indebted to HOD, Electronics & Communication Dept., for the help and guidance at stages of my work.
I take this opportunity to extent my sincere gratitude and thanks to Ms. Anju, seminar guide for her guidance & help in connection with this seminar.
I wish to express my gratitude and sincere thanks to all those who helped me by giving their valuable advice and guidance.
3
ABSTRACT
Mobile phone with camera functions are capable of capturing image and processing
task. Mobile phone can use for capturing barcode with their cameras and decoding them with
software running on the phone. Barcode is a fast, easy and accurate automatic data collection
method. Bar code enables product to be tracked efficiently and acurately at speeds not possible
using manual data entry system. Quick response code is a 2D bar code which has been widely used
in industrial information tagging applications where high data capacity and robust error corrections
are required. In deal with the infuence by the different light conditions and noise a recognition
algorithm is used. First, we combine filter, rough location and binarization to erase noises and
reduse computation. Then, we propose an accurate location and orientation, skew correction with
the help of alignment pattern algorithm to build a bar code grid. Finally, we use error correction and
decoding process to generate the result.
4
5
LIST OF FIGURES
FIGURE 1………………………………………………………..4
FIGURE 2………………………………………………………..6
FIGURE 3……………………………………………………….14
FIGURE 4……………………………………………………….15
6
CHAPTER 1
INTRODUCTION
Modern mobile phones are high resolution colour displays, they support different
standards of wireless networking, and they have reasonable processing power. Although still
primarily used for voice communication, with the inclusion of digital cameras these devices have
become a potential platform for machine vision application such as bar code recognition.
In recent years, advanced technology has succeeded in continuously producing
smaller yet smarter devices.Now mobile phones can implement many new kinds of applications
such as taking photos, and movie shooting by using embedded camera devices. So an interesting
approach is capturing bar code with their cameras and decoding them withsoftware running on the
phoneIn August 2006, 82.4 percent of the respondents whohad camera phones with QR Code
(Quick Response Code) readers used camera phones with QR Code. But previous research work has
shown that recognition of 2D barcode in mobile phone is very difficult because of the high noise,
non-uniform illumination, skew distortion, low resolution and optical blur. It is very difficult to
robustly extract accurate features such as edges and peaks of the bars and spaces from the barcode
images taken by a camera phone.
Many new algorithms are presented for dealing with 1D bar code in complex
situation.Ohbuchi et al.presented an algorithm capable of the real-time recognition of barcodes on a
mobile phone.Sun et al.introduce an algorithm to analyze and correct the distorted image of QR
7
Code. The algorithm includes gray-scale image transformation, binary image, canny edge detection,
external contours finding, inverse perspective transformation and cell grids generating. In this
method, binary image and edge detection is very important for following decode. But it is very
difficult to binaries image and extract accurate edge in the blurred and damaged bar code images.
Here we describe a new image recognition algorithm which applied to capture image in various
light condition.
8
CHAPTER 2
WHY USE MOBILE PHONE
BAR CODE READERS
Too Expensive Scanners.
Have No Other Use.
Too Bulky.
Workers Have To Be Trained.
MOBILE PHONES
Affordable Prices And Common.
Have Various Uses.
Too Handy.
No Training.
9
CHAPTER 3
BAR CODE
There are two types of barcodes are present -One dimensional and two dimensional.
1D barcodes have low data capacity, so we commonly use 2D bar codes. There ar two standardised
2D barcodes-Data matrix and quick response(QR) code.
3.1 DATA MATRIX
Data matrix is one of the most well known 2D bar code standards. It is widely used
in the automotive, aerospace and computer manufacturing industries, for large data capacity
labelling, such as direct part marking and package marking.
Figure 1
It consist of a solid- line locator( the two solid line), a patterned-line locator( the two
alternating dark and light patterned lines), the inside area with encoded data in binary, and aquiet
10
zone( a blank area) surrounding the whole tag.
Its capacity is 2334 alphanumeric characters or 1556 8-bit ASCII characters,
encoding any data. It employs the Read- Solomon error correction to enable accurate reads even
when substential pats of the code are distorted.
11
3.2 QR CODE
It comprised of the following patterns: finder pattern, timing pattern format
information, alignment pattern, and data cell. The finder patterns located at the three corners of the
symbol intended to assist in easy location of its position, size and inclination. Three dark-light-dark
squers are overlapped in every finder pattern, and the dark- light ratio is 1:1:3:1:1. The timing
patterns provide the secondary information which can help us to locate the symbol, decide the
rotation direction of symbol and the width of module.The location of alignment pattern center is
important for correcting the deformed shape.
Figure 2
12
3.2.1 Features of QR code
1) High capacity encoding of data
QR code has high capacity encoding of data, its maximum symbol can encode7089 numeric data or
4296 alphanumeric data.
2) High spead reading
Adapted with ccd reading, it can recognize more qr code symbol per second than pdf417 symbol for
encoding same data capacity.
3) Chinese encoding capability
Chinese and Japanese characters are represented by a two byte compination in other two-
dimensional barcode. But in QR code there is a specific chinese mode, it can use 13 bits encoding a
chinese character.
4) Readable from any direction from 360 degree
13
CHAPTER 4
VARIOUS ALGORITHMS
Many new algorithms are presented for dealing with 1D bar code in complex situation.
InImage Pre-processing for Bar Code Detection in Mobile Devices , a de-noising and vign-
etting elimination is performed first, followed by the start and the ending points detection,
finally psf estimation and line de-blurring is adopted.
A statistical method is proposed in which, wavelet-base and knowledge-base approach is
used to locate the bar code area and segment the bar code character
Because of the feature of 2D bar code is different from 1D bar code, the above algorithm used in 2D
bar code is not well.
Ohbuchi et al. presented an algorithm capable of the real-time recognition of barcodes on a
mobile phone. The most important drawback of the method is the fact that it has been hand
tailored for one certain hardware device. It relies on access to a powerful but also very spe-
cific hardware element, which is not accessible by normal application developers. Besides
that, the algorithm relies on two specific conditions: First is prior to the code’s decoding, the
barcode’s position is detected using a spiral scanning algorithm that runs on the device’s sig-
nal processor. Second is this algorithm makes the assumption that the point in the middle of
the screen is located in the code. Thisassumption is not realistic in usually environment. So
the algorithm is difficult to be used in 2D bar code decoding.
14
An algorithm capable of recognizing the PDF 417 barcode is proposed in real time with a
mobile phone. This method includes three steps. The first step detects the code region using
the Otsu algorithm and the Least Square Method. The second method searches for the cut-
off rules with a scanning approach. In third step symbol characters are segmented from the
original image. So the successful binarization of the code areas during the first step is the
most key step in this algorithm. This is mean that the recognition result will rely on the ef-
fect of the Otsu method. But the Otsu method could be failed in complex lighting condi-
tions, including highlight spots, low contradistinction, nonhomogeneous lighting, and vari-
ous mixed conditions . Additionally, many constraints are added in this method, so the ap-
plication scope is decreased.
Sun et al. introduce an algorithm to analyze and correct the distorted image of QR Code.
The algorithm includes gray-scale image transformation, binary image, canny edge detec-