QR two-dimensional code binarization method and system
A binarization, two-dimensional code technology, applied in the field of communication, can solve the problems of poor, QR two-dimensional code image light and dark reading effect, QR two-dimensional code image effect is not good, etc., to improve the binarization effect. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] This embodiment provides a processing flow of a QR two-dimension code binarization method such as figure 1 As shown, the following processing steps are included:
[0041] Step 11, obtaining the grayscale image of the QR two-dimensional code, and obtaining the grayscale range of the grayscale image;
[0042] Specifically, grayscale the QR two-dimensional code image, calculate the grayscale, and the calculation process:
[0043] f(x,y)=0.299×R(x,y)+0.5866×G(x,y)+0.1145×B(x,y)
[0044] Assume that the gray value of the pixel in the gray image of the QR code is expressed as a i , the gray range is [0,l-][0l].
[0045] Step 12, dividing the grayscale image into several grayscale fuzzy areas according to the grayscale range;
[0046] Preferably, K-1 grayscale values are randomly selected within the grayscale range and expressed as a 1 ,a 2 ,...,a k-1 , and satisfy a 1 2 k-1 ;
[0047] Wherein, K-1 grayscale values divide the grayscale image into K grayscale fuzzy...
Embodiment 2
[0061] This embodiment provides a kind of QR two-dimension code binarization system, and its concrete realization module is as follows figure 2 As shown, it can specifically include the following modules:
[0062] Obtaining module 21: it is used for obtaining the grayscale image of the QR two-dimensional code, and obtains the grayscale range of the grayscale image;
[0063] Division module 22: it is used to divide the grayscale image into several grayscale fuzzy areas according to the grayscale range;
[0064] Threshold value module 23: it is used for respectively obtaining the corresponding gray scale threshold value of each gray scale fuzzy area;
[0065] Binarization module 24: perform area binarization on each grayscale blurred area according to the corresponding threshold value of each grayscale blurred area.
[0066] A kind of QR two-dimension code binarization system, divides module 22, comprises:
[0067] A division unit 221, which is used to randomly select K-1 gr...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com