Two-dimensional code decoding system and method
一种解码方法、二维码的技术,应用在电磁辐射感应、仪器、感应记录载体等方向,能够解决无法获得二值化效果、加大运算量、加大解码的难度等问题
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0119] This embodiment provides a two-dimensional code decoding method, such as figure 1 shown, including the following steps:
[0120] The two-dimensional code image is subjected to binarization processing to obtain a binarized image, and the binarization processing includes:
[0121] The two-dimensional code image is cut to obtain several block regions.
[0122] Obtain the grayscale values of all pixels in each block area, and obtain the grayscale values of each block area according to the grayscale values of all the pixels.
[0123] According to the average gray value of the predetermined range in which each sub-block region is located, the gray-scale threshold value of the sub-block region is determined.
[0124] Perform binarization processing on the pixels in the block area according to the grayscale threshold corresponding to each block area to obtain a binarized image.
[0125] The binarized image is decoded to obtain the information content contained in the t...
Embodiment 2
[0151] This embodiment makes the following improvements on the basis of Embodiment 1:
[0152] The process of decoding the binarized image to obtain the decoding information contained in the two-dimensional code includes:
[0153] Determine the original image coordinate system and the corrected coordinate system where the corrected image is located, each point in the corrected coordinate system corresponds to a point in the original image coordinate system; and respectively determine the center point of the detection pattern and the center point of the corrected image The coordinates under the original image coordinate system and the coordinates under the corrected coordinate system; the detection pattern includes a first detection pattern, a second detection pattern and a third detection pattern;
[0154] Correct the binarized image according to the coordinates of the center point of each detection pattern and the center point of the correction pattern in the original image c...
Embodiment 3
[0180] This embodiment makes the following improvements on the basis of Embodiment 2:
[0181] The process of determining the coordinates of the center point of the calibration graph in the original graph coordinate system includes:
[0182] Obtain the reference coordinates according to the relative positional relationship between the center point of the calibration pattern and the center point of the detection pattern;
[0183] Accurately position the correction figure within the predetermined range of the reference coordinates, and obtain the coordinates of the center point of the correction figure.
[0184] like Image 6 As shown, the first detection pattern 3 is a detection pattern located at the upper left corner of the entire two-dimensional code image. The second detection pattern 4 and the third detection pattern 5 may be detection patterns at the upper right corner and lower left corner of the entire two-dimensional code image, respectively, or may be detection patt...
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