IP Library › Granted Patent US 11,468,255
Granted Patent B2
US 11,468,255 · App. 17/101,957 · Granted Oct 11, 2022

Two-dimensional code and method, terminal, and apparatus for recognizing two-dimensional code

Inventors: Dianping Xu (Guangdong, CN); Yugeng Lin (Guangdong, CN); Chen Ran (Guangdong, CN); Jingjing Li (Guangdong, CN); Hongyang Wang (Guangdong, CN); Leteng Weng (Guangdong, CN); Hao Chen (Guangdong, CN)
Assignee: Tencent Technology (Schenzhen) Company Limited
G06K7/1421G06K7/015G06K7/1417G06K7/1473G06K19/06037
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,468,255
App. No.
17/101,957
Granted
Oct 11, 2022
Kind
B2
Abstract

A method, an apparatus, and a terminal for recognizing a two-dimensional code are provided. The two-dimensional code includes an image region and an encoding region. The image region and the encoding region have no overlap. The method includes selecting, from pixels of the two-dimensional code, a pixel included in a code element in an encoding region. The method further includes determining a value of the code element in the encoding region according to the pixel included in the code element in the encoding region. The method further includes recognizing the two-dimensional code according to the value of the code element in the encoding region.

Claims (37)

1. A method for recognizing a radially-distributed two-dimensional code, comprising:

selecting, from pixels of the radially-distributed two-dimensional code, a pixel comprised in a code element in an encoding region of the radially-distributed two-dimensional code;

determining a value of the code element in the encoding region according to the pixel comprised in the code element in the encoding region; and

recognizing the radially-distributed two-dimensional code according to the value of the code element in the encoding region, wherein the radially-distributed two-dimensional code comprises at least two strip-shaped regions evenly distributed around a center of the radially-distributed two-dimensional code, the at least two strip-shaped regions formed by aggregation of code elements of the radially-distributed two-dimensional code.

2. The method according to claim 1 , wherein the selecting, from pixels of the radially-distributed two-dimensional code, a pixel comprised in a code element in an encoding region of the radially-distributed two-dimensional code comprises:

dividing the encoding region according to pre-recorded position information, to obtain a region occupied by each code element in the encoding region, the position information being used for indicating a position of each code element in the encoding region; and

selecting, from the pixels of the radially-distributed two-dimensional code, pixels falling into the region occupied by each code element, as pixels comprised in each code element.

3. The method according to claim 1 , wherein the selecting, from pixels of the radially-distributed two-dimensional code, a pixel comprised in a code element in an encoding region of the radially-distributed two-dimensional code comprises:

determining a pixel comprised in each code element by querying a pre-established mapping relationship according to an identifier of each code element in the encoding region, the mapping relationship being a mapping relationship between the identifier of each code element and the pixel comprised in each code element in the radially-distributed two-dimensional code.

4. The method according to claim 1 , wherein one code element in the encoding region comprises at least two pixels.

5. The method according to claim 1 , wherein the radially-distributed two-dimensional code comprises an image region, the image region being located at the center of the radially-distributed two-dimensional code.

6. The method according to claim 1 , wherein the at least two strip-shaped regions comprise a strip-shaped region with a first length and a strip-shaped region with a second length that are distributed in a staggered manner, the first length being greater than the second length.

7. The method according to claim 1 , wherein the at least two strip-shaped regions radially extends from the center to an edge of the radially-distributed two-dimensional code.

8. An apparatus for recognizing a radially-distributed two-dimensional code, comprising: a processor and a memory, the memory storing computer readable instructions, and the computer readable instructions being executed by the processor to perform operations comprising:

selecting, from pixels of the radially-distributed two-dimensional code, a pixel comprised in a code element in an encoding region of the radially-distributed two-dimensional code;

determining a value of the code element in the encoding region according to the pixel comprised in the code element in the encoding region; and

recognizing the radially-distributed two-dimensional code according to the value of the code element in the encoding region, wherein the radially-distributed two-dimensional code comprises at least two radially-distributed strip-shaped regions radially extending from a center region of the radially-distributed two-dimensional code to an edge region of the radially-distributed two-dimensional code, the at least two strip-shaped regions formed by aggregation of code elements of the radially-distributed two-dimensional code.

9. The apparatus according to claim 8 , wherein the selecting, from pixels of the radially-distributed two-dimensional code, a pixel comprised in a code element in an encoding region of the radially-distributed two-dimensional code comprises:

dividing the encoding region according to pre-recorded position information, to obtain a region occupied by each code element in the encoding region, the position information being used for indicating a position of each code element in the encoding region; and

selecting, from the pixels of the radially-distributed two-dimensional code, pixels falling into the region occupied by each code element, as pixels comprised in each code element.

10. The apparatus according to claim 8 , wherein the selecting, from pixels of the radially-distributed two-dimensional code, a pixel comprised in a code element in an encoding region of the radially-distributed two-dimensional code comprises:

determining a pixel comprised in each code element by querying a pre-established mapping relationship according to an identifier of each code element in the encoding region, the mapping relationship being a mapping relationship between the identifier of each code element and the pixel comprised in each code element in the radially-distributed two-dimensional code.

11. The apparatus according to claim 8 , wherein one code element in the encoding region comprises at least two pixels.

12. The apparatus according to claim 8 , wherein the radially-distributed two-dimensional code comprises an image region, the image region being located at the center region of the radially-distributed two-dimensional code.

13. The apparatus according to claim 12 , wherein the at least two strip-shaped regions are evenly distributed.

14. The apparatus according to claim 13 , wherein the at least two strip-shaped regions comprise a strip-shaped region with a first length and a strip-shaped region with a second length that are distributed in a staggered manner, the first length being greater than the second length.

15. A terminal, comprising:

a processor, configured to:

select, from pixels of a radially-distributed two-dimensional code, a pixel comprised in a code element in an encoding region of the radially-distributed two-dimensional code;

determine a pixel comprised in each code element by querying a pre-established mapping relationship according to an identifier of each code element in the encoding region, the mapping relationship being a mapping relationship between the identifier of each code element and the pixel comprised in each code element in the radially-distributed two-dimensional code;

determine a value of the code element in the encoding region according to the pixel comprised in the code element in the encoding region; and recognize the radially-distributed two-dimensional code according to the value of the code element in the encoding region; and

a display device, configured to display an identification result of the radially-distributed two-dimensional code.

16. The terminal according to claim 15 , wherein the processor is further configured to: divide the encoding region according to pre-recorded position information, to obtain an region occupied by each code element in the encoding region, the position information being used for indicating a position of each code element in the encoding region; and select, from the pixels of the radially-distributed two-dimensional code, pixels falling into the region occupied by each code element, as pixels comprised in each code element.

17. The terminal according to claim 15 , wherein one code element in the encoding region comprises at least two pixels.

18. The terminal according to claim 15 , wherein the radially-distributed two-dimensional code comprises an image region, the image region being located at a center of the radially-distributed two-dimensional code.

19. The terminal according to claim 18 , wherein the radially-distributed two-dimensional code comprises at least two strip-shaped regions are evenly distributed around the image region, the at least two strip-shaped regions formed by aggregation of code elements of the radially-distributed two-dimensional code.

20. The terminal according to claim 15 , wherein the radially-distributed two-dimensional code comprises at least two radially-distributed strip-shaped regions extending from a center region of the radially-distributed two-dimensional code to an edge region of the radially-distributed two-dimensional code, the at least two strip-shaped regions formed by aggregation of code elements of the radially-distributed two-dimensional code.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 23, 2020
From: XU, DIANPING; LIN, YUGENG; RAN, CHEN; LI, JINGJING; WANG, HONGYANG; WENG, LETENG; CHEN, HAO
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 054506/0509 →
Priority Claims (1)
CN 201710208336.0 · Mar 31, 2017 · national
Continuity (3)
Continuation 16450666 · Jun 24, 2019
Continuation PCTCN2018079124 · Mar 15, 2018
Related Publication 20210073498A1 · Mar 11, 2021
Cited By (1)
US 12,561,541