Two-dimensional code generation method and system and document anti-counterfeiting method and system
A two-dimensional code and document technology, applied in the field of anti-counterfeiting, can solve the problems of complicated operation and high cost, and achieve the effect of direct verification, simple application operation and enhanced vulnerability.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Benefits of technology
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0061] Embodiment 1, a method for generating a two-dimensional code, such as figure 1 shown, including the following steps:
[0062] S100. Obtain information to be stored, and obtain a matching two-dimensional code template based on the information to be stored;
[0063] Take the QR code as an example, it has 40 versions, different versions correspond to different capacities and sizes, from 21x21 (version 1) to 177x177 (version 40), and each version symbol has 4 more modules on each side than the previous version.
[0064] Selecting a suitable version based on the information to be stored belongs to the prior art, and the two-dimensional code template is the two-dimensional code template corresponding to the version, which will not be described in detail in this embodiment.
[0065] S200. Generate first encoded data corresponding to the two-dimensional code template based on the information to be stored, where the first encoded data includes a data code sequence and an error cor
Embodiment 2
[0090] Embodiment 2, a method for generating a two-dimensional code, making the size of the generated two-dimensional code consistent with the target size, which further improves step S100 in embodiment 1. In this embodiment, step S100 obtains the information to be stored, The specific implementation steps of obtaining a matching two-dimensional code template based on the information to be stored are as follows:
[0091] S110. Obtain the information to be stored and the preset target size;
[0092] S120. Acquire initial configuration information based on the information to be stored;
[0093] S130. Obtain a template size corresponding to the initial configuration information, where the initial configuration information includes a version number and an error correction level;
[0094] Select the appropriate version based on the information to be stored, and obtain the initial version number. The size of the QR code corresponding to each version is different. The size of the QR co
Embodiment 3
[0109] Embodiment 3: Add a color value modification step in step S400 of embodiment 1, and the rest are the same as embodiment 1. Step S400 is based on the specific steps of generating a corresponding two-dimensional code on the two-dimensional code template based on the data code sequence and the interference sequence as follows:
[0110] S410. Based on the data code sequence and the interference sequence, generate a corresponding color value verification two-dimensional code on the two-dimensional code template according to the preset RGBA data;
[0111] That is, according to the method described in steps S411 to S414 in Embodiment 1, according to the preset RGBA data (such as 211, 211, 211), color the colored block corresponding to the first codeword in the data code sequence and the interference sequence, and obtain the corresponding color value calibration. Check the QR code.
[0112] Further, the RGBA data includes a first RGBA value and a second RGBA value. Based on the f
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap