An Image Binarization Algorithm For Scratches Removal and Restoration of QR Code Using Spatial Point Processing Threshold
An Image Binarization Algorithm For Scratches Removal and Restoration of QR Code Using Spatial Point Processing Threshold
(PG & Research Department of Computer Science, J.J. College of Arts and Science, Pudukkottai, Tamil Nadu, India
2
(PG & Research Department of Computer, J.J. College of Arts and Science, Tamil Nadu, India
ABSTRACT
The QR Code usage is increased every day. The QR
Code Images are damaged by scratch or scribbling on
it. The intention of this paper is to remove scratches on
The QR Code images using Spatial Thresholds. This
algorithm is a pre-process of decoding the QR Code. It
is to restore the various scratched QR Codes.
According to the experimental evaluation, it gives 98%
of the damaged QR Code images have been restored
and decoded successfully.
Keywords - Binarization, Enhancement, Image
Binarization, Pixels, QR Code, Spatial Thresholds
I. INTRODUCTION
Bar codes are widely used to store and retrieval
information on even tiny objects, because of its
size, reading speed, accuracy, 360 degree reading
and error correction capability. 1D barcodes have
the data only in horizontal direction with limited
data capacity. But 2D (QR Code) barcodes can
hold data in both horizontal and vertical direction
of QR Image. When QR code compares with 1D
barcodes, the data capacity is more than 100 times
of a QR Code Image. QR Code is invented by
Denso Wave Corporation, Japan in 1994. The
Quick Response Code (RQC) adapted with many
Japans Company like, Automatic Identification
Manufacturers Inc, Automotive Industry Action
Group,
Japan
Automobile
Manufacturers
Association, Japan Trucking Association, etc. The
QR Code is not only the encoding and decoding
process, beyond that it is a pure image processing
oriented.
A QR code is fundamentally an Image. This
image have place many places. This QR Image
can store up to 7,089 characters (numeric). QR
Code Image is already used in Japan for various
purposes as Air Ticket, Processed Food
Traceability Chain, and Blood Test Sheet Blood
Sheet etc., In India the QR Code Images are found
on Government issued documents such as pattachitta, income Certificates, Aadhar card, etc., from
this QR Codes are widely accepted technology for
www.ijsret.org
489
International Journal of Scientific Research Engineering & Technology (IJSRET), ISSN 2278 0882
Volume 5, Issue 9, September 2016
490
International Journal of Scientific Research Engineering & Technology (IJSRET), ISSN 2278 0882
Volume 5, Issue 9, September 2016
V. PROPOSED ALGORITHM
Function QRCBinarization(Image img)
INPUT: Damaged image img
OUTPUT: Binarized and Restored QRC Image
BEGIN:
NeighborPixel of
else if(y!=0)
na[1]=original.getRGB(x,y-1);
else if(x!=w-1 && y!=0)
na[2]=original.getRGB(x+1,y-1);
else if(x!=0)
na[3]=original.getRGB(x-1,y);
else if(x!=w-1)
na[4]=original.getRGB(x+1,y);
else if(x!=0 && y!=h-1)
na[5]=original.getRGB(x-1,y+1);
else if(y!=h-1)
na[6]=original.getRGB(x,y+1);
www.ijsret.org
491
International Journal of Scientific Research Engineering & Technology (IJSRET), ISSN 2278 0882
Volume 5, Issue 9, September 2016
END
VI. EXPERIMENTAL EVALUATION
The proposed Binarizing method is implemented
on Java programming on a personal computer of
Intel Dual core 2.66 GHz processor, 2 GB RAMS
on Windows7 Ultimate. The experimental
evaluation performed on Damaged QRCode
Image is created online for free of cost. The QRC
Image contains the data Hi! I am Poompavai.
The Input Damaged QR Code Images are shown
in figure 6. The Binarized Output Images are
shows on figure 7. From the experimental
evaluation is clearly shown output images are able
to scan QR Code by ordinary QR Code Software.
(a)
(a)
(b)
Figure 7: Output Images
www.ijsret.org
492
International Journal of Scientific Research Engineering & Technology (IJSRET), ISSN 2278 0882
Volume 5, Issue 9, September 2016
493