Custom-Color Two-Dimensional Code Generation With Dynamic Mapping
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing two-dimensional codes lack visual appeal and customization, with monochrome elements limiting data capacity and security, and existing chromatic codes restrict color selection to a preset codebook.
Innovation Solution
A method for generating two-dimensional codes that allows users to customize all colors, determining a mapping relationship between color characteristic values to accurately identify encoded information, and encoding characters using different encoding rules for enhanced security and capacity.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If monochrome elements are used in two-dimensional codes, then manufacturing simplicity is maintained, but data capacity and visual appeal are limited
Solution Approach 1:
The patent changes the parameter of color representation from binary (black/white only) to multi-value (multiple chromatic colors), enabling each element to encode more than one bit of information. This parameter change directly increases data capacity while the system manages the added complexity through automated color assignment based on encoding rules
Solution Approach 2:
The patent transitions from a one-dimensional binary encoding system (black/white) to a multi-dimensional chromatic encoding system by incorporating color as an additional dimension. This allows the code to utilize both spatial arrangement and color properties to encode information, significantly increasing capacity
2Adaptability or versatility
If preset codebook colors are used in chromatic two-dimensional codes, then manufacturing is simplified, but user customization capability is reduced
Solution Approach 1:
The patent implements a dynamic color mapping system where the correspondence between colors and element information is not fixed but can be customized by users. The system allows dynamic assignment of chromatic colors to represent different data values, enabling flexibility while the scanning device restores the mapping relationship during decoding
Solution Approach 2:
The patent incorporates a preliminary color mapping relationship into the two-dimensional code structure itself. The mapping information is embedded within the code, allowing the scanning device to restore and understand the color-element correspondence without requiring external references or preset codebooks
3Quantity of substance
If multiple chromatic colors are used to increase data capacity, then encoding capability is improved, but color identification accuracy may deteriorate
Solution Approach 1:
The patent incorporates a feedback mechanism where the scanning device restores the color mapping relationship based on the magnitude relationships between characteristic values of colors. This feedback loop ensures that even with multiple chromatic colors, the system can accurately identify and decode the intended information by verifying color-element correspondences
Data Source
AI summary
A two-dimensional code generation method is disclosed, including: obtaining M colors and a characteristic value of each color in a target color path; determining a target mapping relationship based on a magnitude relationship between characteristic values of the M colors in the target color path; obtaining a target link, and generating a bitstream corresponding to the target link; and determining a color corresponding to each piece of element information in the bitstream, and generating a target two-dimensional code based on the color corresponding to each piece of element information in the bitstream. According to the two-dimensional code generation method, a code scanning side can restore, based on a magnitude relationship between characteristic values of colors of elements in the scanned two-dimensional code, a correspondence that is between colors and element information and that is used for generating the two-dimensional code, to accurately identify content in the two-dimensional code.


