Method for recognizing two-dimensional code and related apparatus

    公开(公告)号:US12229631B2

    公开(公告)日:2025-02-18

    申请号:US18264551

    申请日:2022-01-21

    Abstract: Methods and apparatuses for recognizing a two-dimensional code are disclosed. In an implementation, a method comprises: identifying, by an electronic device, a two-dimensional code, wherein the two-dimensional code comprises an image region in the center and a ring region surrounding the image region, wherein the ring region comprises a code region including a first code region and a second code region, a first spacing region, and a second spacing region, wherein the first spacing region and the second spacing region are arranged between the first code region and the second code region, determining values corresponding to a plurality of code elements in the code region, and recognizing, by the electronic device based on the values, first information corresponding to the two-dimensional code.

    Two-dimensional code encoding method, two-dimensional code decoding method, and electronic device

    公开(公告)号:US12118431B2

    公开(公告)日:2024-10-15

    申请号:US18496052

    申请日:2023-10-27

    CPC classification number: G06K7/1486 G06K7/1417

    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.

    TWO-DIMENSIONAL CODE ENCODING METHOD, TWO-DIMENSIONAL CODE DECODING METHOD, AND ELECTRONIC DEVICE

    公开(公告)号:US20240062027A1

    公开(公告)日:2024-02-22

    申请号:US18496052

    申请日:2023-10-27

    CPC classification number: G06K7/1486 G06K7/1417

    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.

Patent Agency Ranking