US 12,437,175 B2
Two-dimensional code generation method and related device
Tingrui Han, Hangzhou (CN); Fuyang Rao, Shenzhen (CN); Huajingling Wu, Hangzhou (CN); and Chengqian Deng, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Jun. 28, 2023, as Appl. No. 18/215,378.
Application 18/215,378 is a continuation of application No. PCT/CN2021/140891, filed on Dec. 23, 2021.
Claims priority of application No. 202011607876.4 (CN), filed on Dec. 29, 2020.
Prior Publication US 2023/0342579 A1, Oct. 26, 2023
Int. Cl. G06K 19/06 (2006.01)
CPC G06K 19/06037 (2013.01) 19 Claims
OG exemplary drawing
 
1. A two-dimensional code generation method, comprising:
obtaining M colors input by a user and a characteristic value of each color in a target color path, wherein the M colors comprise at least one chromatic color, and M is an integer greater than 1;
determining a target mapping relationship based on a magnitude relationship between characteristic values of the M colors in the target color path, wherein the target mapping relationship comprises element information corresponding to each of the M colors;
obtaining a target link, and generating a bitstream corresponding to the target link, wherein the bitstream comprises a plurality of pieces of element information; and
determining, based on the target mapping relationship, 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.