Matrix type two-dimensional code and encoding method and decoding method thereof
A matrix-type two-dimensional code and matrix technology, which is applied to recording carriers used in machines, instruments, computer components, etc., can solve the problems of large module size and achieve small quantities, strong error correction capabilities, and simple data encoding methods Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] figure 1 The matrix two-dimensional code in this embodiment is shown. The matrix-type two-dimensional code includes a matrix composed of N×N modules, the matrix includes a data area 1 for storing data information and an image finding pattern 2 arranged around the data area 1, it can be understood that the data area 1 consists of ( N-2)×(N-2) modules, where N is an integer greater than 6. Preferably, the value of N is 9, 10 or 11.
[0046] Such as figure 2 As shown, in the data area 1, the data is represented by a binary data bit stream, and each module (ie figure 2 Each square in ) represents a binary data bit stream, which is used to store two binary data of 1 or 0. In this embodiment, the value of N is 10, and the corresponding data area 1 includes:
[0047] The default module 11 is set on a vertex of the data area 1, such as figure 2 As shown, the default module 11 is a default module among the 8×8 modules in the figure.
[0048] An information storage unit, in...
Embodiment 2
[0067] Figure 4 The encoding method of the matrix two-dimensional code in this embodiment is shown. The encoding method of the two-dimensional code comprises the following steps:
[0068] S11: Receive user information, and convert the user information into a binary data bit stream according to a preset encoding method. Understandably, the preset encoding method may use the encoding methods in Table 1 and Table 2 in Embodiment 1.
[0069] S12: Store the binary data bit stream in the information bit 15 in a preset sequence. It can be understood that the preset order is a serpentine order in which rows are connected end to end, and the binary data bit stream is filled sequentially from the first row of information bits 15 in a serpentine order, and the remaining information bits 15 are filled with 0s.
[0070] S13: Generate a CRC check code and store it in the corresponding CRC check bit 14. It can be understood that in this embodiment, the 8-bit CRC check code is filled in t...
Embodiment 3
[0082] Image 6 The decoding method of the matrix two-dimensional code in this embodiment is shown. The decoding method of the two-dimensional code comprises the following steps:
[0083] S21: Scan the two-dimensional code and receive the two-dimensional code information.
[0084] S22: Compare and judge whether the two-dimensional code information includes the aforementioned image finding pattern 2, if yes, execute the steps after step S23, if not, end the decoding.
[0085] S23: Extract the data in the information bit 15 of the two-dimensional code information.
[0086] S24: Calculate the column parity codes of each column and the column parity codes of each row according to the extracted data, and compare them with the column parity codes placed in the column parity bits 12 and the row parity codes respectively The row parity code in the position 13 is compared, judges whether consistent, if consistent then execute the step of step S25, if inconsistent then execute the er...
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