Custom-Color Two-Dimensional Code Generation With Dynamic Mapping

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improvedata capacityVSAvoidcolor customization complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

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

Inventive Principle:
Principle #35Parameter changes

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

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Adaptability or versatility

If preset codebook colors are used in chromatic two-dimensional codes, then manufacturing is simplified, but user customization capability is reduced

Engineering Contradiction:
Improvecolor customization capabilityVSAvoidcolor mapping system complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

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

Inventive Principle:
Principle #15Dynamics

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

Inventive Principle:
Principle #10Preliminary action

3Quantity of substance

If multiple chromatic colors are used to increase data capacity, then encoding capability is improved, but color identification accuracy may deteriorate

Engineering Contradiction:
Improvedata capacityVSAvoidcolor identification accuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

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

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS12437175B2Two-dimensional code generation method and related device
Publication Date: 2025.10.07 HUAWEI TECH CO LTD
  • US12437175B2 patent drawing
  • US12437175B2 patent drawing
  • US12437175B2 patent drawing

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.