SlideShare a Scribd company logo
WELCOME
A low pre-processing system for
restoring low quality QR code
images
Presenting by-
Shameed C M
Roll No:49
S7 CS
Reg No:12123852
College of Engineering Attingal
Contents
 Introduction
 What is a QR code ?
 History of QR code
 Bar code VS QR code
 Inside QR codes
 What can a QR code do?
 Application of QR code
 Pre-processing
 QR code decoding
 Conclusion
 References
Introduction
 2D barcodes are the mainstream of recognition technologies used
for mobile marketing.
 Easily conversion of physical printed data to digital data
 2D barcodes are called two-dimensional because their information
is encoded in two directions, both horizontally and vertically.
WHAT IS A QR CODE ?
QR code: Quick Response
code
Is a 2-D bar code
Used to encode
information(URLs, automated
SmS, text data) in two
dimensional space.
HISTORY
Created by a Japanese
company- Toyota subsidiary
Denso-wave in 1994.
Used to track parts during vehicle
manufacture
Barcodes V/S QR Codes
 Stores data in two
dimensions unlike the 1-D
barcodes.
 High storage capacity in
less space.
 Can be scanned by any
smart phone with the
app installed.
Inside QR codes
 Finder Patterns: Finds if the given code
is a QR Code
 Timing Pattern: Tracks the timing of the
incoming code
 Separators: Separates data from the
patterns
 Alignment Pattern: Tells about initiation
& Separation of data.
 Dark Module: A black module placed
beside the bottom left finder pattern.
Cont…
 Many Alignment patterns
 Long timing pattern
Versions of QR code
Version 1 (21×21)
Version 2 (25×25)
Version 3 (29×29)
Versions of QR code cont…
Version 4 (33×33)
Version 10 (57×57)
Version 25 (117×117 enlarged to
640x640)
Versions of QR code cont…
Version 40 (177×177)
What can a QR code do?
 View a web page
 Dial telephone number
 Send a template text message
 Send an e-mail
 View a message or special offer
 Download contact details (vcard)
 View a google maps location
 View a social media profile
 Take a snap and view web page
What can a QR code do?
 View a web page
 Dial telephone number
 Send a template text message
 Send an e-mail
 View a message or special offer
 Download contact details (vcard)
 View a google maps location
 View a social media profile
 Capture and call
What can a QR code do?
 View a web page
 Dial telephone number
 Send a template text message
 Send an e-mail
 View a message or special offer
 Download contact details (vcard)
 View a google maps location
 View a social media profile
 Take a snap and send a template
message
What can a QR code do?
 View a web page
 Dial telephone number
 Send a template text message
 Send an e-mail
 View a message or special offer
 Download contact details (vcard)
 View a google maps location
 View a social media profile
 snap and send a default mail
What can a QR code do?
 View a web page
 Dial telephone number
 Send a template text message
 Send an e-mail
 View a message or special offer
 Download contact details (vcard)
 View a google maps location
 View a social media profile
 Take a snap
and see the
message
What can a QR code do?
 View a web page
 Dial telephone number
 Send a template text message
 Send an e-mail
 View a message or special offer
 Download contact details (vcard)
 View a google maps location
 View a social media profile
 Capture and save contact
What can a QR code do?
 View a web page
 Dial telephone number
 Send a template text message
 Send an e-mail
 View a message or special offer
 Download contact details (vcard)
 View a google maps location
 View a social media profile
 Capture and recognize the exact place
What can a QR code do?
 View a web page
 Dial telephone number
 Send a template text message
 Send an e-mail
 View a message or special offer
 Download contact details (vcard)
 View a google maps location
 View a social media profile
 Snap and see the media profile
Applications
 Conference/event displays
 Print advertisements
 Business cards
 Brochures , posters, & flyers
 Post cards & mail
Applications
 Conference/event displays
 Print advertisements
 Business cards
 Brochures , posters, & flyers
 Post cards & mail
Applications
 Conference/event displays
 Print advertisements
 Business cards
 Brochures , posters, & flyers
 Post cards & mail
Applications
 Conference/event displays
 Print advertisements
 Business cards
 Brochures , posters, & flyers
 Post cards & mail
Applications
 Conference/event displays
 Print advertisements
 Business cards
 Brochures , posters, & flyers
 Post cards & mail
Pre-processing
 Capturing image
 Contrast enhancement
 QR code extraction
 Deblurring the code
 Code alignment : corner and pattern detection and
transformation
 Scanning the code
Pre-processing
 Capturing image
 Contrast enhancement
 QR code extraction
 Deblurring the QR code
 Pattern detection
 Scanning the code
 The images are captured by a 3 Megapixel-sensor
 continuously refreshed on the screen to provide the user
with some feedback during the image capture process
Pre-processing
 Capturing image
 Contrast enhancement
 QR code extraction
 Deblurring the QR code
 Pattern detection
 Scanning the code
To balance environment light effect
Histogram equalization
 It is a method in image processing of contrast adjustment
using the image's histogram.
 Employs a monotonic, non-linear mapping which re-assigns
the intensity values of pixels in the input image such that the
output image contains a uniform distribution of intensities
Pre-processing
 Capturing image
 Contrast enhancement
 QR code extraction
 Deblurring the QR code
 Pattern detection
 Scanning the code
Cropping out external surroundings
 Image binarisation
 Edge detection
 Morphological operations
 Quality index
QR code extraction
1. Image binarisation
Binarization image by multi-level
thresholding method.
Captured image
The simplest way to use image binarisation is to
choose a threshold value, and classify all pixels
with values above this threshold as white, and all
other pixels as black.
There are only two levels of intensity in the binary
image. We consider the pixels that have low
intensity is an image pixel where high intensity as
background pixel.
QR code extraction cont…
2. Edge detection
I. Smoothing
II. Finding gradients
III. Non maximum suppression
IV. Double thresholding
V. Edge tracking by hysteresis
QR code extraction cont…
2. Edge detection
I. Smoothing
II. Finding gradients
III. Non maximum suppression
IV. Double thresholding
V. Edge tracking by hysteresis
Blurring the image to avoid noise.
QR code extraction cont…
2. Edge detection
I. Smoothing
II. Finding gradients
III. Non maximum suppression
IV. Double thresholding
V. Edge tracking by hysteresis
The edges should be marked where the gradients
of the image has large magnitudes.
The algorithm basically finds edges where the
greyscale intensity of the image changes the most.
These areas are found by determining gradients of
the image.
QR code extraction cont…
2. Edge detection
I. Smoothing
II. Finding gradients
III. Non maximum suppression
IV. Double thresholding
V. Edge tracking by hysteresis
Only local maxima should be marked as edges.
The purpose of this step is to convert the “blurred”
edges in the image of the gradient magnitudes to
“sharp” edges.
Basically this is done by preserving all local
maxima in the gradient image and deleting
everything else.
QR code extraction cont…
2. Edge detection
I. Smoothing
II. Finding gradients
III. Non maximum suppression
IV. Double thresholding
V. Edge tracking by hysteresis
The edge-pixels remaining after the non-
maximum suppression step are marked with their
strength pixel-by-pixel.
The edge detection algorithm uses double
thresholding.
QR code extraction cont…
2. Edge detection
I. Smoothing
II. Finding gradients
III. Non maximum suppression
IV. Double thresholding
V. Edge tracking by hysteresis
Final edges are determined by suppressing all
edges that are not connected to a true (strong)
edge.
Thus strong edges will (almost) only be due to true
edges in the original image.
The weak edges can either be due to true edges
or noise/color variations.
QR code extraction cont…
3. Morphological operations
I. Morphological dilation
II. Morphological closing
Morphological operations are affecting the form, structure or shape of
an object.
used for getting a representation or description of the shape of
objects/regions.
QR code extraction cont…
3. Morphological operations
I. Morphological dilation
II. Morphological closing
Dilation adds pixels to the boundaries of objects
in an image.
The number of pixels added to the objects in an
image depends on the size and shape of the
structuring element used to process the image.
QR code extraction cont…
3. Morphological operations
I. Morphological dilation
II. Morphological closing Closing removes small holes(islands) and other
thin filaments of background pixels.
i.e.; it can fill holes in the regions while keeping
the initial region sizes.
QR code extraction cont…
4. Quality index
I. Error correction
II. Discard low quality images
Used in further modules as a parameter to check the quality.
QI has been designed so that it can be readily computed for every
input image once the QR code area has been extracted.
QR code extraction cont…
4. Quality index
I. Error correction
II. Discard low quality images
For error correction the Reed-Solomon code is
used.
It is a non binary cyclic-error correcting code.
It is has some steps
Takes block of data.
Adds “redundant” bits to form a code
word.
The code word can be decoded to
correct for lost or corrupted bits.
QR code extraction cont…
4. Quality index
I. Error correction
II. Discard low quality images The very low quality images are more complex
in the deblurring module, so the image will be
avoided
QR code extraction cont…
Contrast adjustment and code extraction: (a) captured image; (b) contrast- enhanced image;
(c) Binarized image; (d) external elements removal;(e) edge detection; (f) high edge density area
identification after dilation; (g) high edge density area identification after dilation and closing;
and (h) codeextraction
Pre-processing
 Capturing image
 Contrast enhancement
 QR code extraction
 Deblurring the QR code
 Pattern detection
 Scanning the code
Although ideally QR codes are two-tone images.
Used some deblurring algorithms.
Pre-processing
 Capturing image
 Contrast enhancement
 QR code extraction
 Deblurring the QR code
 Pattern detection
 Scanning the code
determine the proper compensating transform, the four
corners of the code have to be determined and the patterns
of the QR code detected.
The corner coordinates associated with the three finder
patterns are considered precise enough.
the fourth corner must be refined since it may be actually
defined by position of the finder patterns, which is
undetectable by the scanning, causing pixel loses.
Pre-processing
 Capturing image
 Contrast enhancement
 QR code extraction
 Deblurring the QR code
 Pattern detection
 Scanning the code
Decoding the printed data to the digital data
Decoding QR code
The QR code to decoding
Decoding QR code cont…
Grouping to octets…
Decoding QR code cont…
Decoding QR code cont…
Decoding QR code cont…
Conclusion
 In this paper, a practical image Pre-processing method was
proposed for QR code recognition.
 The influence by background noise and inhomogeneous light and
geometric distortion was minimized.
 In additional, it used alignment patterns to adaptively sample the
barcode in terms of regions, which greatly improved the recognition
rate.
 The number of calculation of this algorithm is reduced, its
recognition speed is higher.
References
 [1]IEEE Explore ,Munoz-mejias,Gonzalez-Diaz,Diaz-de-Maria:” A low
pre-processing system for restoring low quality QR code images”
 [2]Wikipedia/QR-code
 [3]Yunhua Gu,Weixiang Zhang,"QR code recognition Based on
Image Processing",International Conference on Information Science
and Technology ,March 26-28, 2011 Nanjing, Jiangsu, China
 [4]M.Sun,LS.Fu,XTYang,S.H.zhang,"Image Analysis Method for QR
Code's Automatic Recognition",Journal of University of Electronic
Science and Technology of China, Vo1.38,No.6,pp.122-
125,Nov.2009.
QUERIES
A low pre processing system for low quality QR code

More Related Content

PPTX
Qr codes
PPTX
QR code
PPTX
Qr codes
PPT
QR codes
PPT
QR Codes: What, Why, How & Where
PPT
Qr code (quick response code)
PPTX
QR-CODE presentation slide
DOCX
QR Codes seminar
Qr codes
QR code
Qr codes
QR codes
QR Codes: What, Why, How & Where
Qr code (quick response code)
QR-CODE presentation slide
QR Codes seminar

What's hot (20)

PPTX
Qr code ppt
PPTX
QR Codes PowerPoint Presentation
PPTX
Sixth sense technology ppt
PPTX
Qr code
PPTX
Application of QR Codes in Academic Libraries: With Special Reference to Cent...
PDF
Automated attendance system using Face recognition
PPTX
Attendance system based on face recognition using python by Raihan Sikdar
PPTX
Barcode technology ppt
PPTX
Iris scanner technology
PPT
Automated Face Detection System
PPTX
Biometrics iris recognition
PPTX
FAKE CURRENCY DETECTION PDF NEW PPT.pptx
PPTX
ECG BIOMETRICS
PDF
What goes on during haar cascade face detection
PDF
5 Pen PC technology seminar report
PDF
Attendance Using Facial Recognition
PPTX
The sixth sense technology complete ppt
PDF
Iris recognition system
PPTX
Bar code- Techlogogy : Seminar PPT
PDF
License Plate Recognition Using Python and OpenCV
Qr code ppt
QR Codes PowerPoint Presentation
Sixth sense technology ppt
Qr code
Application of QR Codes in Academic Libraries: With Special Reference to Cent...
Automated attendance system using Face recognition
Attendance system based on face recognition using python by Raihan Sikdar
Barcode technology ppt
Iris scanner technology
Automated Face Detection System
Biometrics iris recognition
FAKE CURRENCY DETECTION PDF NEW PPT.pptx
ECG BIOMETRICS
What goes on during haar cascade face detection
5 Pen PC technology seminar report
Attendance Using Facial Recognition
The sixth sense technology complete ppt
Iris recognition system
Bar code- Techlogogy : Seminar PPT
License Plate Recognition Using Python and OpenCV
Ad

Similar to A low pre processing system for low quality QR code (20)

PPTX
DETECTION OF QR CODE.pptx
PPTX
CREATION AND DETECTION OF QR CODE.pptx
PDF
IRJET - Secure Watermarking through Optimized Embedding of Images in QR C...
PPTX
QR code optimization
PPTX
Scan Me! Using QR Codes in Libraries
PPTX
Using qr codes in libraries
PDF
PPTX
Scan Me! Using QR Codes in Libraries
PPTX
Scan Me! Using QR Codes in Libraries
PPTX
Understanding_QR_Codes_Presentation.pptx
PPTX
Libraries Thriving QR Code Seminar
PPT
Qr codes web
PPTX
research plan
PPT
Cracking the QR Code
PPT
Cracking the QR Code
PPTX
Making Smartphones Smarter in the Library: Reaching Mobile Users with QR Code
PPT
QR CODES IN AN ACADEMIC SETTING
PPT
ConceitosInterativos_02
PDF
QR Codes and You
POTX
QR Codes in Libraries
DETECTION OF QR CODE.pptx
CREATION AND DETECTION OF QR CODE.pptx
IRJET - Secure Watermarking through Optimized Embedding of Images in QR C...
QR code optimization
Scan Me! Using QR Codes in Libraries
Using qr codes in libraries
Scan Me! Using QR Codes in Libraries
Scan Me! Using QR Codes in Libraries
Understanding_QR_Codes_Presentation.pptx
Libraries Thriving QR Code Seminar
Qr codes web
research plan
Cracking the QR Code
Cracking the QR Code
Making Smartphones Smarter in the Library: Reaching Mobile Users with QR Code
QR CODES IN AN ACADEMIC SETTING
ConceitosInterativos_02
QR Codes and You
QR Codes in Libraries
Ad

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Cloud computing and distributed systems.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
Teaching material agriculture food technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Spectroscopy.pptx food analysis technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Cloud computing and distributed systems.
The Rise and Fall of 3GPP – Time for a Sabbatical?
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation_ Review paper, used for researhc scholars
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Teaching material agriculture food technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...

A low pre processing system for low quality QR code

  • 2. A low pre-processing system for restoring low quality QR code images Presenting by- Shameed C M Roll No:49 S7 CS Reg No:12123852 College of Engineering Attingal
  • 3. Contents  Introduction  What is a QR code ?  History of QR code  Bar code VS QR code  Inside QR codes  What can a QR code do?  Application of QR code  Pre-processing  QR code decoding  Conclusion  References
  • 4. Introduction  2D barcodes are the mainstream of recognition technologies used for mobile marketing.  Easily conversion of physical printed data to digital data  2D barcodes are called two-dimensional because their information is encoded in two directions, both horizontally and vertically.
  • 5. WHAT IS A QR CODE ? QR code: Quick Response code Is a 2-D bar code Used to encode information(URLs, automated SmS, text data) in two dimensional space.
  • 6. HISTORY Created by a Japanese company- Toyota subsidiary Denso-wave in 1994. Used to track parts during vehicle manufacture
  • 7. Barcodes V/S QR Codes  Stores data in two dimensions unlike the 1-D barcodes.  High storage capacity in less space.  Can be scanned by any smart phone with the app installed.
  • 8. Inside QR codes  Finder Patterns: Finds if the given code is a QR Code  Timing Pattern: Tracks the timing of the incoming code  Separators: Separates data from the patterns  Alignment Pattern: Tells about initiation & Separation of data.  Dark Module: A black module placed beside the bottom left finder pattern.
  • 9. Cont…  Many Alignment patterns  Long timing pattern
  • 10. Versions of QR code Version 1 (21×21) Version 2 (25×25) Version 3 (29×29)
  • 11. Versions of QR code cont… Version 4 (33×33) Version 10 (57×57) Version 25 (117×117 enlarged to 640x640)
  • 12. Versions of QR code cont… Version 40 (177×177)
  • 13. What can a QR code do?  View a web page  Dial telephone number  Send a template text message  Send an e-mail  View a message or special offer  Download contact details (vcard)  View a google maps location  View a social media profile  Take a snap and view web page
  • 14. What can a QR code do?  View a web page  Dial telephone number  Send a template text message  Send an e-mail  View a message or special offer  Download contact details (vcard)  View a google maps location  View a social media profile  Capture and call
  • 15. What can a QR code do?  View a web page  Dial telephone number  Send a template text message  Send an e-mail  View a message or special offer  Download contact details (vcard)  View a google maps location  View a social media profile  Take a snap and send a template message
  • 16. What can a QR code do?  View a web page  Dial telephone number  Send a template text message  Send an e-mail  View a message or special offer  Download contact details (vcard)  View a google maps location  View a social media profile  snap and send a default mail
  • 17. What can a QR code do?  View a web page  Dial telephone number  Send a template text message  Send an e-mail  View a message or special offer  Download contact details (vcard)  View a google maps location  View a social media profile  Take a snap and see the message
  • 18. What can a QR code do?  View a web page  Dial telephone number  Send a template text message  Send an e-mail  View a message or special offer  Download contact details (vcard)  View a google maps location  View a social media profile  Capture and save contact
  • 19. What can a QR code do?  View a web page  Dial telephone number  Send a template text message  Send an e-mail  View a message or special offer  Download contact details (vcard)  View a google maps location  View a social media profile  Capture and recognize the exact place
  • 20. What can a QR code do?  View a web page  Dial telephone number  Send a template text message  Send an e-mail  View a message or special offer  Download contact details (vcard)  View a google maps location  View a social media profile  Snap and see the media profile
  • 21. Applications  Conference/event displays  Print advertisements  Business cards  Brochures , posters, & flyers  Post cards & mail
  • 22. Applications  Conference/event displays  Print advertisements  Business cards  Brochures , posters, & flyers  Post cards & mail
  • 23. Applications  Conference/event displays  Print advertisements  Business cards  Brochures , posters, & flyers  Post cards & mail
  • 24. Applications  Conference/event displays  Print advertisements  Business cards  Brochures , posters, & flyers  Post cards & mail
  • 25. Applications  Conference/event displays  Print advertisements  Business cards  Brochures , posters, & flyers  Post cards & mail
  • 26. Pre-processing  Capturing image  Contrast enhancement  QR code extraction  Deblurring the code  Code alignment : corner and pattern detection and transformation  Scanning the code
  • 27. Pre-processing  Capturing image  Contrast enhancement  QR code extraction  Deblurring the QR code  Pattern detection  Scanning the code  The images are captured by a 3 Megapixel-sensor  continuously refreshed on the screen to provide the user with some feedback during the image capture process
  • 28. Pre-processing  Capturing image  Contrast enhancement  QR code extraction  Deblurring the QR code  Pattern detection  Scanning the code To balance environment light effect Histogram equalization  It is a method in image processing of contrast adjustment using the image's histogram.  Employs a monotonic, non-linear mapping which re-assigns the intensity values of pixels in the input image such that the output image contains a uniform distribution of intensities
  • 29. Pre-processing  Capturing image  Contrast enhancement  QR code extraction  Deblurring the QR code  Pattern detection  Scanning the code Cropping out external surroundings  Image binarisation  Edge detection  Morphological operations  Quality index
  • 30. QR code extraction 1. Image binarisation Binarization image by multi-level thresholding method. Captured image The simplest way to use image binarisation is to choose a threshold value, and classify all pixels with values above this threshold as white, and all other pixels as black. There are only two levels of intensity in the binary image. We consider the pixels that have low intensity is an image pixel where high intensity as background pixel.
  • 31. QR code extraction cont… 2. Edge detection I. Smoothing II. Finding gradients III. Non maximum suppression IV. Double thresholding V. Edge tracking by hysteresis
  • 32. QR code extraction cont… 2. Edge detection I. Smoothing II. Finding gradients III. Non maximum suppression IV. Double thresholding V. Edge tracking by hysteresis Blurring the image to avoid noise.
  • 33. QR code extraction cont… 2. Edge detection I. Smoothing II. Finding gradients III. Non maximum suppression IV. Double thresholding V. Edge tracking by hysteresis The edges should be marked where the gradients of the image has large magnitudes. The algorithm basically finds edges where the greyscale intensity of the image changes the most. These areas are found by determining gradients of the image.
  • 34. QR code extraction cont… 2. Edge detection I. Smoothing II. Finding gradients III. Non maximum suppression IV. Double thresholding V. Edge tracking by hysteresis Only local maxima should be marked as edges. The purpose of this step is to convert the “blurred” edges in the image of the gradient magnitudes to “sharp” edges. Basically this is done by preserving all local maxima in the gradient image and deleting everything else.
  • 35. QR code extraction cont… 2. Edge detection I. Smoothing II. Finding gradients III. Non maximum suppression IV. Double thresholding V. Edge tracking by hysteresis The edge-pixels remaining after the non- maximum suppression step are marked with their strength pixel-by-pixel. The edge detection algorithm uses double thresholding.
  • 36. QR code extraction cont… 2. Edge detection I. Smoothing II. Finding gradients III. Non maximum suppression IV. Double thresholding V. Edge tracking by hysteresis Final edges are determined by suppressing all edges that are not connected to a true (strong) edge. Thus strong edges will (almost) only be due to true edges in the original image. The weak edges can either be due to true edges or noise/color variations.
  • 37. QR code extraction cont… 3. Morphological operations I. Morphological dilation II. Morphological closing Morphological operations are affecting the form, structure or shape of an object. used for getting a representation or description of the shape of objects/regions.
  • 38. QR code extraction cont… 3. Morphological operations I. Morphological dilation II. Morphological closing Dilation adds pixels to the boundaries of objects in an image. The number of pixels added to the objects in an image depends on the size and shape of the structuring element used to process the image.
  • 39. QR code extraction cont… 3. Morphological operations I. Morphological dilation II. Morphological closing Closing removes small holes(islands) and other thin filaments of background pixels. i.e.; it can fill holes in the regions while keeping the initial region sizes.
  • 40. QR code extraction cont… 4. Quality index I. Error correction II. Discard low quality images Used in further modules as a parameter to check the quality. QI has been designed so that it can be readily computed for every input image once the QR code area has been extracted.
  • 41. QR code extraction cont… 4. Quality index I. Error correction II. Discard low quality images For error correction the Reed-Solomon code is used. It is a non binary cyclic-error correcting code. It is has some steps Takes block of data. Adds “redundant” bits to form a code word. The code word can be decoded to correct for lost or corrupted bits.
  • 42. QR code extraction cont… 4. Quality index I. Error correction II. Discard low quality images The very low quality images are more complex in the deblurring module, so the image will be avoided
  • 43. QR code extraction cont… Contrast adjustment and code extraction: (a) captured image; (b) contrast- enhanced image; (c) Binarized image; (d) external elements removal;(e) edge detection; (f) high edge density area identification after dilation; (g) high edge density area identification after dilation and closing; and (h) codeextraction
  • 44. Pre-processing  Capturing image  Contrast enhancement  QR code extraction  Deblurring the QR code  Pattern detection  Scanning the code Although ideally QR codes are two-tone images. Used some deblurring algorithms.
  • 45. Pre-processing  Capturing image  Contrast enhancement  QR code extraction  Deblurring the QR code  Pattern detection  Scanning the code determine the proper compensating transform, the four corners of the code have to be determined and the patterns of the QR code detected. The corner coordinates associated with the three finder patterns are considered precise enough. the fourth corner must be refined since it may be actually defined by position of the finder patterns, which is undetectable by the scanning, causing pixel loses.
  • 46. Pre-processing  Capturing image  Contrast enhancement  QR code extraction  Deblurring the QR code  Pattern detection  Scanning the code Decoding the printed data to the digital data
  • 47. Decoding QR code The QR code to decoding
  • 48. Decoding QR code cont… Grouping to octets…
  • 49. Decoding QR code cont…
  • 50. Decoding QR code cont…
  • 51. Decoding QR code cont…
  • 52. Conclusion  In this paper, a practical image Pre-processing method was proposed for QR code recognition.  The influence by background noise and inhomogeneous light and geometric distortion was minimized.  In additional, it used alignment patterns to adaptively sample the barcode in terms of regions, which greatly improved the recognition rate.  The number of calculation of this algorithm is reduced, its recognition speed is higher.
  • 53. References  [1]IEEE Explore ,Munoz-mejias,Gonzalez-Diaz,Diaz-de-Maria:” A low pre-processing system for restoring low quality QR code images”  [2]Wikipedia/QR-code  [3]Yunhua Gu,Weixiang Zhang,"QR code recognition Based on Image Processing",International Conference on Information Science and Technology ,March 26-28, 2011 Nanjing, Jiangsu, China  [4]M.Sun,LS.Fu,XTYang,S.H.zhang,"Image Analysis Method for QR Code's Automatic Recognition",Journal of University of Electronic Science and Technology of China, Vo1.38,No.6,pp.122- 125,Nov.2009.