Invention Grant
- Patent Title: Two-dimensional code encoding method, two-dimensional code decoding method, and electronic device
-
Application No.: US18496052Application Date: 2023-10-27
-
Publication No.: US12118431B2Publication Date: 2024-10-15
- Inventor: Haoren Wang , Dequan Yu , Haosheng Gao
- Applicant: Huawei Technologies Co., Ltd.
- Applicant Address: CN Shenzhen
- Assignee: HUAWEI TECHNOLOGIES CO., LTD.
- Current Assignee: HUAWEI TECHNOLOGIES CO., LTD.
- Current Assignee Address: CN Shenzhen
- Agency: Slater Matsil, LLP
- Priority: CN 2110486582.9 2021.04.30
- Main IPC: G06K7/14
- IPC: G06K7/14

Abstract:
In a method, an electronic device obtains to-be-encoded text, where the to-be-encoded text includes N characters; the electronic device determines a target coding mode for each of the N characters from X optional coding modes; the electronic device groups the N characters into M character fields based on the target coding mode for each character, and determines a target coding mode for each of the M character fields, where M is less than or equal to N; the electronic device encodes the M character fields based on the target coding mode for each character field to obtain a first binary character string; and the electronic device generates, based on the first binary character string, a two-dimensional code of a version corresponding to a length of the first binary character string.
Public/Granted literature
- US20240062027A1 TWO-DIMENSIONAL CODE ENCODING METHOD, TWO-DIMENSIONAL CODE DECODING METHOD, AND ELECTRONIC DEVICE Public/Granted day:2024-02-22
Information query