A kind of qr two-dimension code binarization method and system
A binarization, two-dimensional code technology, applied in the field of communication, can solve problems such as bad, poor QR two-dimensional code image effect, QR two-dimensional code image light and dark reading effect, 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
[0042] 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:
[0043] Step 11, obtaining the grayscale image of the QR two-dimensional code, and obtaining the grayscale range of the grayscale image;
[0044] Specifically, grayscale the QR two-dimensional code image, calculate the grayscale, and the calculation process:
[0045] f(x,y)=0.299×R(x,y)+0.5866×G(x,y)+0.1145×B(x,y)
[0046] Assume that the gray value of the pixel in the gray image of the QR code is expressed as a i , the gray scale range is [0,l].
[0047] Step 12, dividing the grayscale image into several grayscale fuzzy areas according to the grayscale range;
[0048] Preferably, k-1 gray-scale values are randomly selected within the gray-scale range as a1, a2,...,ak-1, and a1
[0049] Wherein, k-1 grayscale values divide the grayscale image into k grayscale fuzzy areas; k g...
Embodiment 2
[0064] 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:
[0065] 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;
[0066] Division module 22: it is used to divide the grayscale image into several grayscale fuzzy areas according to the grayscale range;
[0067] Threshold value module 23: it is used for respectively obtaining the corresponding gray scale threshold value of each gray scale fuzzy area;
[0068] Binarization module 24: perform area binarization on each grayscale blurred area according to the corresponding threshold value of each grayscale blurred area.
[0069] A kind of QR two-dimension code binarization system, divides module 22, comprises:
[0070] 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