An Effective Method for Removing Scratches and Restoring Low -Quality QR Code Images

Similar documents
A QR Code Image Recognition Method for an Embedded Access Control System Zhe DONG 1, Feng PAN 1,*, Chao PAN 2, and Bo-yang XING 1

International Journal of Innovative Research in Engineering Science and Technology APRIL 2018 ISSN X

Scrabble Board Automatic Detector for Third Party Applications

An Improved Bernsen Algorithm Approaches For License Plate Recognition

Proposed Method for Off-line Signature Recognition and Verification using Neural Network

fast blur removal for wearable QR code scanners

INDIAN VEHICLE LICENSE PLATE EXTRACTION AND SEGMENTATION

A SURVEY ON HAND GESTURE RECOGNITION

ISSN: (Online) Volume 3, Issue 4, April 2015 International Journal of Advance Research in Computer Science and Management Studies

Keyword: Morphological operation, template matching, license plate localization, character recognition.

CSE 564: Scientific Visualization

Automatic Licenses Plate Recognition System

An Evaluation of Automatic License Plate Recognition Vikas Kotagyale, Prof.S.D.Joshi

Blur Estimation for Barcode Recognition in Out-of-Focus Images

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

An Introduction To QR Code Technology

Preprocessing and Segregating Offline Gujarati Handwritten Datasheet for Character Recognition

Reading Barcodes from Digital Imagery

Study & Analysis the BER & SNR in the result of modulation mechanism of QR code

Multi-Image Deblurring For Real-Time Face Recognition System

Detection of Defects in Glass Using Edge Detection with Adaptive Histogram Equalization

MAV-ID card processing using camera images

FPGA IMPLEMENTATION OF RSEPD TECHNIQUE BASED IMPULSE NOISE REMOVAL

A Method of Multi-License Plate Location in Road Bayonet Image

Displacement Measurement of Burr Arch-Truss Under Dynamic Loading Based on Image Processing Technology

Study and Analysis of various preprocessing approaches to enhance Offline Handwritten Gujarati Numerals for feature extraction

Study of 3D Barcode with Steganography for Data Hiding

VEHICLE LICENSE PLATE DETECTION ALGORITHM BASED ON STATISTICAL CHARACTERISTICS IN HSI COLOR MODEL

A Study on Image Enhancement and Resolution through fused approach of Guided Filter and high-resolution Filter

IMAGE TYPE WATER METER CHARACTER RECOGNITION BASED ON EMBEDDED DSP

Detection of License Plates of Vehicles

Number Plate Recognition Using Segmentation

IJRASET 2015: All Rights are Reserved

An Adaptive Kernel-Growing Median Filter for High Noise Images. Jacob Laurel. Birmingham, AL, USA. Birmingham, AL, USA

][ R G [ Q] Y =[ a b c. d e f. g h I

Iris Recognition using Hamming Distance and Fragile Bit Distance

Colored Rubber Stamp Removal from Document Images

COMPARATIVE PERFORMANCE ANALYSIS OF HAND GESTURE RECOGNITION TECHNIQUES

Robust Invisible QR Code Image Watermarking Algorithm in SWT Domain

Removal of Gaussian noise on the image edges using the Prewitt operator and threshold function technical

Efficient Document Image Binarization for Degraded Document Images using MDBUTMF and BiTA

A Novel Method for Enhancing Satellite & Land Survey Images Using Color Filter Array Interpolation Technique (CFA)

Restoration of Motion Blurred Document Images

Automatic Morphological Segmentation and Region Growing Method of Diagnosing Medical Images

2D Barcode Localization and Motion Deblurring Using a Flutter Shutter Camera

Implementation of Barcode Localization Technique using Morphological Operations

Follower Robot Using Android Programming

An Improved Binarization Method for Degraded Document Seema Pardhi 1, Dr. G. U. Kharat 2

ISSN: (Online) Volume 2, Issue 1, January 2014 International Journal of Advance Research in Computer Science and Management Studies

Making PHP See. Confoo Michael Maclean

Colour correction for panoramic imaging

Secured Bank Authentication using Image Processing and Visual Cryptography

A novel method for accurate and efficient barcode detection with morphological operations

AN ITERATIVE UNSYMMETRICAL TRIMMED MIDPOINT-MEDIAN FILTER FOR REMOVAL OF HIGH DENSITY SALT AND PEPPER NOISE

License Plate Localisation based on Morphological Operations

Image Restoration and De-Blurring Using Various Algorithms Navdeep Kaur

Automatic Counterfeit Protection System Code Classification

VLSI Implementation of Impulse Noise Suppression in Images

IJSRD - International Journal for Scientific Research & Development Vol. 4, Issue 05, 2016 ISSN (online):

Image binarization techniques for degraded document images: A review

AUTOMATIC IRAQI CARS NUMBER PLATES EXTRACTION

Automatic License Plate Recognition System using Histogram Graph Algorithm

Vehicle Number Plate Recognition with Bilinear Interpolation and Plotting Horizontal and Vertical Edge Processing Histogram with Sound Signals

Barcode Reading Algorithm For Blind Users

ABSTRACT I. INTRODUCTION

Content Based Image Retrieval Using Color Histogram

Segmentation of Microscopic Bone Images

AN EXPANDED-HAAR WAVELET TRANSFORM AND MORPHOLOGICAL DEAL BASED APPROACH FOR VEHICLE LICENSE PLATE LOCALIZATION IN INDIAN CONDITIONS

IMPROVEMENT USING WEIGHTED METHOD FOR HISTOGRAM EQUALIZATION IN PRESERVING THE COLOR QUALITIES OF RGB IMAGE

FOG REMOVAL ALGORITHM USING ANISOTROPIC DIFFUSION AND HISTOGRAM STRETCHING

Blind Deconvolution Algorithm based on Filter and PSF Estimation for Image Restoration

International Journal of Advanced Research in Computer Science and Software Engineering

Digital Image Sharing and Removing the Transmission Risk Problem by Using the Diverse Image Media

BER BASED FRR ANALYSIS OF LOW PARAMETER GRADE 2D BARCODES. MASTER of ENGINEERING (M.E.) ELECTRONICS AND COMMUNICATION ENGINEERING

Applications of Flash and No-Flash Image Pairs in Mobile Phone Photography

Linear Gaussian Method to Detect Blurry Digital Images using SIFT

Version 6. User Manual OBJECT

COLOR LASER PRINTER IDENTIFICATION USING PHOTOGRAPHED HALFTONE IMAGES. Do-Guk Kim, Heung-Kyu Lee

Color and More. Color basics

A Review of Optical Character Recognition System for Recognition of Printed Text

Vision Review: Image Processing. Course web page:

International Journal of Advance Research in Computer Science and Management Studies

An Analysis of Image Denoising and Restoration of Handwritten Degraded Document Images

Blurred Image Restoration Using Canny Edge Detection and Blind Deconvolution Algorithm

A Solution for Identification of Bird s Nests on Transmission Lines with UAV Patrol. Qinghua Wang

MATHEMATICAL MORPHOLOGY AN APPROACH TO IMAGE PROCESSING AND ANALYSIS

Text Extraction and Recognition from Image using Neural Network

Simple Impulse Noise Cancellation Based on Fuzzy Logic

Automated Driving Car Using Image Processing

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Image Database and Preprocessing

VARIOUS METHODS IN DIGITAL IMAGE PROCESSING. S.Selvaragini 1, E.Venkatesan 2. BIST, BIHER,Bharath University, Chennai-73

Color Transformations

Combined Approach for Face Detection, Eye Region Detection and Eye State Analysis- Extended Paper

Recovery of badly degraded Document images using Binarization Technique

Improved 1D and 2D barcode detection with morphological operations

Image Filtering Josef Pelikán & Alexander Wilkie CGG MFF UK Praha

Real Time Word to Picture Translation for Chinese Restaurant Menus

Intelligent Indian Currency Detection with Note to Coin Exchanger

RESEARCH PAPER FOR ARBITRARY ORIENTED TEAM TEXT DETECTION IN VIDEO IMAGES USING CONNECTED COMPONENT ANALYSIS

Transcription:

An Effective Method for Removing Scratches and Restoring Low -Quality QR Code Images Ashna Thomas 1, Remya Paul 2 1 M.Tech Student (CSE), Mahatma Gandhi University Viswajyothi College of Engineering and Technology, Muvattupuzha, Kerala, India ashnarosethomas@gmail.com 2 Assistant. Professor (CSE), Mahatma Gandhi University Viswajyothi College of Engineering and Technology, Muvattupuzha, Kerala, India remyapaul125@gmail.com Abstract Quick Response Code is one types of 2D barcode. QR Code has been widely used in many fields. Here proposes a complete preprocessing system for restoring low-quality Quick Response code images. The system has been designed to deal with low contrast, rotated and deformed code images. If any scratches are present in QR code the decoding algorithm is unable to decode. This removal technique consists of multiple processes. The main advantage of this proposed system is to restore the code properly and efficiently. This system has been assessed on a database composed of 500 images captured by a different cell phones display. After the proposed preprocessing, 97.4 % of the images in the database were correctly decoded. Keywords: QR codes, binarization, Median filter, Dilation 1. INTRODUCTION Bar code is a fast, accurate and automatic data collection method. Two dimensional barcodes are developed from one dimensional barcodes, the information can be stored both in horizontal and vertical direction. Two dimensional barcode have many advantages: small areas, high capacity, high density, error detection etc. In the case of Barcodes specific scanners were designed to capture code images and decode them. Nowadays, the computational capabilities of cell phones are very increasing, as well as the quality and resolution of the latest embedded cameras. The QR code avoids the use of an ad hoc scanner.they are defined by the ISO/IEC18004 standard [1].This QR codes are two dimensional codes and which are very popular. They are used in many commercial applications due to their high-speed decoding. Now the modern handheld devices can show a barcode on their screen with enough resolution to properly decode this QR code. This QR code is used in many applications: boarding passes, event tickets, retailer loyalty cards, identification systems, etc. This paper gives the solution for the challenging problem of restoring a QR code image that has been captured by a cell phone. The QR code decoding process is illustrated in Fig. 1. Therefore, problems are faced at both ends: one arises at the decoding device due to either the limited computational resources or the poor quality of camera in mobile phones; and other coming from the displaying device, such as low contrast or external elements appearing in the surrounding area of the code, such as text, icons, option buttons or any scratches etc. One type of distortion is scratch or damage that give incorrect solution for QR code. This paper gives solution for these above problems. There have been several related QR code works. The previous works in QR code recognition, such as [2] and [3]. Some recent works are done, such as [4] and [5]. In [6] a blind deconvolution iterative algorithm was proposed to address the deblurring problem in two-tone images. Figure 1: QR code decoding Page 5

The rest of this paper is organized as follows Section II provides a brief overview of QR codes. In Section III, the proposed system is described in detail; Section IV describes the design of the quality index. Section V summarizes the conclusions. 2. STRUCTURE OF QR CODES Image Capture Contrast Adjustment Code Extraction Binarization Remove Scratches A QR code consists of black modules arranged in a square grid which are arranged on a white background. This can be read by an imaging device. The basic information unit of QR code is module and it is the minimum square element. The amount of information stored in the code is related to the version of the code. This code has several patterns which is used for fast identification and decoding: finder patterns, alignment patterns, and timing patterns. These patterns are illustrated in Fig. 2. Discard Detect code image Quality Assessment Alignment & pattern detection Scanning code Decoding Q<th Figure 3 Flowchart of the system Figure 2 QR code structure 3. SYSTEM FOR RESTORING LOW- QUALITY QR CODES IMAGES The flowchart of the proposed design is given in Fig. 3. The proposed system [7] is divided into several modules. Every module of the system has been described in detail. First capturing the image by a camera built in a mobile phone. 3.1 Contrast Enhancement: When images capture using the camera, that image may be degraded due to some light sources. There are many contrast adjustment techniques are present, but here using a simple histogram equalization. 3.2 QR Code Extractions: The main goal of this module is to determine the area which QR code is located. The surrounding of the captured image contains some external elements such as text, icons, option buttons etc. First perform the binarization then detect the edges using canny edge detector. Then performing some morphological operations such as dilation and closing. These operations are ensuring that the whole code is included. Then remove the text, spots, and other artifacts adjoining the code are removed. 3.3 Discarding Low Quality Images: Here calculating the quality of the image. Then set a threshold value. If the quality is less than the threshold value then that image is discarding. This module is more demanding because to reducing the computation time. For calculating the quality of the input image here proposing an equation Q, is the mean value of the gradient magnitude at each image pixel i, j, Page 6

B-1 A-1 Q=1/A.B MG (i,j) (1) i=0 j=0 When W and H represent the width and height of the image, respectively and MG is the gradient magnitude, the MG is defined as MG (i,j)= I α 2 (i,j) + I 2 β(i,j)..(2) Where I α and I β denote the horizontal and vertical gradients, respectively. 3.4 Remove Scratches Convert from RGB to HSV Select saturation layer Dilation Figure 6 Images in HSV Model 3.4.2 Morphological Processing Here a dilation technique is used as morphological operation. This technique is removing the scratch on the image. This is techniques is focus on binary image. This is performing by white spot and reducing black spot. 3.4.3 Median Filter: This filter used mean value of neighborhood.it is one of the popular techniques for the removal of noise and it can be reducing the blurring. This technique is also applicable for impulse noise and removal of white and black spots scattered on the image. Apply median filter Figure 4: processes for separating scratches from QR Code Figure 7: Comparison QR-Code without/with Median filter Figure 5: The damaged QR Code 3.4.1 Convert from RGB to HS V: The main advantage of converting to HSV is ease of using color more than standard RGB. HSV stands for hue, saturation, and value.[8] Hue is the main properties of the color. S is the intensity of color, when color intensity increase, saturation value also increase. Value is defined as the relative lightness or darkness of a color. 3.5 Code Alignment: Corner and Pattern Detection and Transformation When images taken that images have some shape deformation are happened. This is caused by lack of precisions. This is removed by applying affine transformation. Find the coordinates of the code corners are the first step of the alignment process. This is done by the line scanning process. Affine transformation is a type of transformation which preserves ratios and straight lines of distances between points lying on a straight line. Page 7

Figure 10: Examples of the invaded modules Figure 8: A code alignment example: (a) a shape-distorted QR code; (b) affine-transformed code. 3.6 Module reconstruction This module is solving two problems they are shifted modules and invaded module problem. 3.6.1 Shifted Modules: Sometimes the result of the affine transformation is not always giving correct result. Because may be shifted from original position to another position. To overcome this problem, calculate the proportion of pixels in disagreement with the predominant color in the module. This proposition is above a vale then that module is considered as shifted. The shifted modules number is estimated then compensating by calculating the number of lines containing a number of mis matched pixels. Figure 9 Examples of the shifted module problem 3.6.2 Invaded Modules Blurring causes a strong erosion of the modules that are surrounded by modules of the opposite color this is called invaded modules. In Fig. 8. Two clear examples are shown. To overcome this problem an algorithm is proposed. This algorithm check whether or not the peripheral color could have been inherited from the surrounding blocks the algorithm works as follows, for each module m the proportion of white pixels P w is computed and the following decision is made: Lm= White if Pm w th w Black if Pm w th b Unknown if th b Pm w th w L m is a label associated with the module m, and thw and thb are thresholds. Here thw=0.01 and thb=0.05 are used as threshold. Using these methods a low quality QR code is easily and correctly restored and then decoded it. 4. CONCLUSIONS Here propose a pre-processing system for restoring lowquality QR code images and remove scratches. QR code are the matrix barcode or two dimensional codes. These codes are mostly used due to its higher information storage capacity and their high-speed decoding. To remove the scratches on the QR code the procedures consist of Image Segmentation. It is performed by HSV, Dilation. Using median filter the scratches can be removed. This is very effective method for QR code decoding. REFERENCES [1] International Standard. ISO/IEC 18004. Information technology Automatic identification and data capture techni ques- QR Code 2005 bar code symbology specification. Second Edition. 2006-09-01. [2] E Ohbuchi, H Hanaizumi, LA Hock, Barcode reader using the camera device in mobile phones Cyberworlds, 2004 Page 8

International Conference on (2004), pp. 260-265. [3] Aidong Sun, Yan Sun, Caixing Liu. The QR-code reorganization in illegible snapshots taken by mobile phones. International Conference on Computational Science and its Applications, 2007. ICCSA 2007. [4] Chung-Hua Chu, De-Nian Yang and Ming- Syan Chen. Extracting barcodes from a camera-shaken image on cameraphones. ICME2007. [5] C.-H. Chu, D.-N. Yang and M.-S Chen, Image stabilization for 2D barcode in handheld devices, Proc. of the 15th ACM Int. Conf. on Multimedia, Augsburg, Germany, pp.697-706, Sep. 2007. [6] C T. H. Li and K. S. Lii, A Joint Es timation Approach for Two-Tone Image Deblurring, IEEE transactions on image processing ISSN 1057-7149 2002, vol. 11, no8, pp. 847-858. [7] David Muñoz-Mejías, Iván González-Díaz, and Fernando Díaz-de-María, A Low- Complexity Pr-Processing System for Restoring Low-Quality QR Code Images IEEE Transactions on Consumer Electronics, Vol. 57, No. 3, August 2011. [8] Kamon Homkajorn, Mahasak Ketcham, and Sartid Vongpradhip A Technique to Remove Scratches from QR Code Images International Conference on Computer and Communication Technologies (ICCCT'2012) May 26-27, 2012. Page 9