Color-based stacked three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium
An encoding method and a decoding method technology, which are applied in the field of decoding devices and storage media, can solve the problems of slow transmission speed and low data volume expression, and achieve the effects of fast decoding speed, simple implementation method, and guaranteed security
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] Such as figure 1 as well as Figure 5 As shown, this embodiment provides a color-based stacked three-dimensional code encoding method, including:
[0055] S102: Obtain data to be encoded, divide the data to be decoded into blocks according to predetermined specifications, and generate data blocks.
[0056] Specifically, the data to be encoded in this embodiment is usually decimal or hexadecimal data, such as the hexadecimal data that conforms to the 104 protocol forwarded by the power plant through the data acquisition equipment. It can also be that the user can input data information such as URLs, texts, numbers, and letters to be encoded, so as to obtain a certain data information to be encoded, and then need to generate a three-dimensional code based on the data information to be encoded, and the terminal scans the three-dimensional code The data information to be encoded can be obtained. Those skilled in the art should understand that the user can input a backgro...
Embodiment 2
[0069] Such as figure 2 As shown, this embodiment provides a color-based stacked three-dimensional code encoding device, including:
[0070] The data segmentation module 10 is used to obtain the data to be encoded, divide the data to be decoded into blocks according to predetermined specifications, and generate data blocks; specifically, calculate the capacity of each data block information in the data to be decoded; when the data The capacity of the block information meets the threshold, and the coded data block information is equally divided into three data blocks.
[0071] The two-dimensional code generation module 20 is used to generate two-dimensional codes of the same specification for each data block; specifically, generate three two-dimensional codes of the same specification according to the information of the three data blocks, and generate the two-dimensional codes of the same specification according to a predetermined order. The black pixels in the QR code are re...
Embodiment 3
[0074] Such as image 3 As shown, this embodiment provides a color-based stacked three-dimensional code decoding method, including:
[0075] S202: Acquire three-dimensional code image information, and strip pixel values of stacked two-dimensional codes from each pixel in the three-dimensional code image information. Specifically, the three-dimensional code image information in this embodiment is encoded by the method in Embodiment 1. Read the RGB color value of each pixel in the three-dimensional code image information, use the first and second bits of the RGB color value as the pixel color value of the decoded first two-dimensional code, and use the first and second bits of the RGB color value 3. The 4th bit is used as the pixel color value for decoding the second QR code, and the 5th and 6th bits of the RGB color value are used as the pixel color value for decoding the third QR code.
[0076] S204: Output the image information of the two-dimensional code according to the...
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