IP Library Granted Patent US 10,929,630
Granted Patent B2
US 10,929,630 · App. 16/875,937 · Granted Feb 23, 2021

Graphic code display method and apparatus

Inventor: Zhihui Tang (Hangzhou, CN)
Assignee: ADVANCED NEW TECHNOLOGIES CO., LTD.
G06K7/146G06K7/1095G06K19/06009
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 10,929,630
App. No.
16/875,937
Granted
Feb 23, 2021
Kind
B2
Abstract

A method includes: determining, by a graphic code display device, a first tilted angle of an affine plane of the graphic code displayed by the graphic code display device relative to a horizontal plane; obtaining, by the graphic code display device, a prestored second tilted angle of a scanning window plane of a scanning device relative to the horizontal plane, wherein the graphic code is displayed for the scanning device to scan; and adjusting, by the graphic code display device according to the first tilted angle and the second tilted angle, the first tilted angle of the affine plane of the graphic code to reduce an angle between the affine plane of the graphic code and the scanning window plane of the scanning device. Adjusting the first tilted angle of the affine plane of the graphic code stretches the graphic code.

Claims (70)

1. A method for displaying a graphic code, comprising:

determining, by a graphic code display device, a first tilted angle of an affine plane of the graphic code displayed by the graphic code display device relative to a horizontal plane;

obtaining, by the graphic code display device, a prestored second tilted angle of a scanning window plane of a scanning device relative to the horizontal plane, wherein the graphic code is displayed for the scanning device to scan; and

adjusting, by the graphic code display device according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code to reduce an angle between the affine plane of the graphic code and the scanning window plane of the scanning device, wherein adjusting the first tilted angle of the affine plane of the graphic code stretches the graphic code.

2. The method according to claim 1 , wherein

the first tilted angle of the affine plane is an angle clockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle clockwise from the horizontal plane to the scanning window plane; and the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code comprises: determining an angle difference by subtracting the second tilted angle from the first tilted angle of the affine plane, and adjusting, according to the angle difference, the first tilted angle of the affine plane of the graphic code; or

the first tilted angle of the affine plane is an angle counterclockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle counterclockwise from the horizontal plane to the scanning window plane; and the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code comprises: determining an angle difference by subtracting the second tilted angle from the first tilted angle of the affine plane, and adjusting, according to the determined angle difference, the first tilted angle of the affine plane of the graphic code.

3. The method according to claim 2 , wherein

when the first tilted angle of the affine plane is an angle clockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle clockwise from the horizontal plane to the scanning window plane, the adjusting, according to the angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the angle difference is a positive value, the affine plane of the graphic code counterclockwise to reduce the first tilted angle of the affine plane; or, if the angle difference is a negative value, rotating the affine plane of the graphic code clockwise to increase the first tilted angle of the affine plane; and

when the first tilted angle of the affine plane is an angle counterclockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle counterclockwise from the horizontal plane to the scanning window plane, the adjusting, according to the angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the angle difference is a positive value, the affine plane of the graphic code clockwise to reduce the first tilted angle of the affine plane; or, if the angle difference is a negative value, rotating the affine plane of the graphic code counterclockwise to increase the first tilted angle of the affine plane.

4. The method according to claim 2 , wherein

when the first tilted angle of the affine plane is an angle clockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle clockwise from the horizontal plane to the scanning window plane, the adjusting, according to the determined angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the determined angle difference is a positive value, the affine plane of the graphic code counterclockwise by the angle difference; or, rotating, if the determined angle difference is a negative value, the affine plane of the graphic code clockwise by the determined angle difference; and

when the first tilted angle of the affine plane is an angle counterclockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle counterclockwise from the horizontal plane to the scanning window plane, the adjusting, according to the determined angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the angle difference is a positive value, the affine plane of the graphic code clockwise by the determined angle difference; or, rotating, if the angle difference is a negative value, the affine plane of the graphic code counterclockwise by the angle difference.

5. The method according to claim 2 , wherein before the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code, the method further comprises:

determining whether the angle difference is greater than or equal to a preset threshold; and

the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code comprises:

if the angle difference is greater than or equal to the preset threshold, adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code.

6. The method according to claim 1 , wherein if multiple second tilted angles of scanning window planes of multiple scanning devices relative to the horizontal plane are prestored,

the obtaining a prestored second tilted angle of a scanning window plane of a scanning device relative to the horizontal plane comprises:

determining identification information of a current scanning device; and

determining, based on the identification information of the current scanning device, a second tilted angle of a scanning window plane of the current scanning device relative to the horizontal plane among the prestored second tilted angles of the scanning window planes of the multiple scanning devices relative to the horizontal plane.

7. The method according to claim 6 , wherein the determining identification information of a current scanning device comprises:

determining a scanning device nearest to a current geographical location of the graphic code display device, and obtaining the identification information of the determined scanning device; or

communicating, via a wireless communication channel of the graphic code display device, with a network device connected to the current scanning device to obtain the identification information of the current scanning device from the network device.

8. The method according to claim 1 , wherein the determining, by a graphic code display device, a first tilted angle of an affine plane of a graphic code displayed by the graphic code display device relative to a horizontal plane comprises:

performing, after detecting that the graphic code appears and that the graphic code display device is flipped and stays for a preset time interval, an operation to determine the first tilted angle of the affine plane; or

performing, when detecting movement of the graphic code display device after the graphic code appears, an operation to determine the first tilted angle of the affine plane.

9. An apparatus for displaying a graphic code, comprising:

one or more processors, and

a memory storing instructions executable by the one or more processors to causes the one or more processors to perform operations comprising:

determining a first tilted angle of an affine plane of the graphic code displayed by a graphic code display device relative to a horizontal plane;

obtaining a prestored second tilted angle of a scanning window plane of a scanning device relative to the horizontal plane, wherein the graphic code is displayed for the scanning device to scan; and

adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code to reduce an angle between the affine plane of the graphic code and the scanning window plane of the scanning device, wherein adjusting the first tilted angle of the affine plane of the graphic code stretches the graphic code.

10. The apparatus according to claim 9 , wherein

the first tilted angle of the affine plane is an angle clockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle clockwise from the horizontal plane to the scanning window plane; and the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code comprises: determining an angle difference by subtracting the second tilted angle from the first tilted angle of the affine plane, and adjusting, according to the angle difference, the first tilted angle of the affine plane of the graphic code; or

the first tilted angle of the affine plane is an angle counterclockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle counterclockwise from the horizontal plane to the scanning window plane; and the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code comprises: determining an angle difference by subtracting the second tilted angle from the first tilted angle of the affine plane, and adjusting, according to the determined angle difference, the first tilted angle of the affine plane of the graphic code.

11. The apparatus according to claim 10 , wherein

when the first tilted angle of the affine plane is an angle clockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle clockwise from the horizontal plane to the scanning window plane, the adjusting, according to the angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the angle difference is a positive value, the affine plane of the graphic code counterclockwise to reduce the first tilted angle of the affine plane; or, if the angle difference is a negative value, rotating the affine plane of the graphic code clockwise to increase the first tilted angle of the affine plane; and

when the first tilted angle of the affine plane is an angle counterclockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle counterclockwise from the horizontal plane to the scanning window plane, the adjusting, according to the angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the angle difference is a positive value, the affine plane of the graphic code clockwise to reduce the first tilted angle of the affine plane; or, if the angle difference is a negative value, rotating the affine plane of the graphic code counterclockwise to increase the first tilted angle of the affine plane.

12. The apparatus according to claim 10 , wherein

when the first tilted angle of the affine plane is an angle clockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle clockwise from the horizontal plane to the scanning window plane, the adjusting, according to the determined angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the determined angle difference is a positive value, the affine plane of the graphic code counterclockwise by the angle difference; or, rotating, if the determined angle difference is a negative value, the affine plane of the graphic code clockwise by the determined angle difference; and

when the first tilted angle of the affine plane is an angle counterclockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle counterclockwise from the horizontal plane to the scanning window plane, the adjusting, according to the determined angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the angle difference is a positive value, the affine plane of the graphic code clockwise by the determined angle difference; or, rotating, if the angle difference is a negative value, the affine plane of the graphic code counterclockwise by the angle difference.

13. The apparatus according to claim 10 , before the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code, the method further comprises:

determining whether the angle difference is greater than or equal to a preset threshold; and

the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code comprises:

if the angle difference is greater than or equal to the preset threshold, adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code.

14. The apparatus according to claim 9 , wherein if multiple second tilted angles of scanning window planes of multiple scanning devices relative to the horizontal plane are prestored,

the obtaining a prestored second tilted angle of a scanning window plane of a scanning device relative to the horizontal plane comprises:

determining identification information of a current scanning device; and

determining, based on the identification information of the current scanning device, a second tilted angle of a scanning window plane of the current scanning device relative to the horizontal plane among the prestored second tilted angles of the scanning window planes of the multiple scanning devices relative to the horizontal plane.

15. The apparatus according to claim 14 , wherein the determining identification information of a current scanning device comprises:

determining a scanning device nearest to a current geographical location of the graphic code display device, and obtaining the identification information of the determined scanning device; or

communicating, via a wireless communication channel of the graphic code display device, with a network device connected to the current scanning device to obtain the identification information of the current scanning device from the network device.

16. The apparatus according to claim 9 , wherein the determining, by a graphic code display device, a first tilted angle of an affine plane of a graphic code displayed by the graphic code display device relative to a horizontal plane comprises:

performing, after detecting that the graphic code appears and that the graphic code display device is flipped and stays for a preset time interval, an operation to determine the first tilted angle of the affine plane; or

performing, when detecting movement of the graphic code display device after the graphic code appears, an operation to determine the first tilted angle of the affine plane.

17. One or more non-transitory computer-readable storage media configured with instructions executable by one or more processors to cause the one or more processors to perform operations comprising:

determining a first tilted angle of an affine plane of the graphic code displayed by a graphic code display device relative to a horizontal plane;

obtaining a prestored second tilted angle of a scanning window plane of a scanning device relative to the horizontal plane, wherein the graphic code is displayed for the scanning device to scan; and

adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code to reduce an angle between the affine plane of the graphic code and the scanning window plane of the scanning device, wherein adjusting the first tilted angle of the affine plane of the graphic code stretches the graphic code.

18. The one or more non-transitory computer-readable storage media according to claim 17 , wherein

the first tilted angle of the affine plane is an angle clockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle clockwise from the horizontal plane to the scanning window plane; and the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code comprises: determining an angle difference by subtracting the second tilted angle from the first tilted angle of the affine plane, and adjusting, according to the angle difference, the first tilted angle of the affine plane of the graphic code; or

the first tilted angle of the affine plane is an angle counterclockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle counterclockwise from the horizontal plane to the scanning window plane; and the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code comprises: determining an angle difference by subtracting the second tilted angle from the first tilted angle of the affine plane, and adjusting, according to the determined angle difference, the first tilted angle of the affine plane of the graphic code.

19. The one or more non-transitory computer-readable storage media according to claim 18 , wherein

when the first tilted angle of the affine plane is an angle clockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle clockwise from the horizontal plane to the scanning window plane, the adjusting, according to the angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the angle difference is a positive value, the affine plane of the graphic code counterclockwise to reduce the first tilted angle of the affine plane; or, if the angle difference is a negative value, rotating the affine plane of the graphic code clockwise to increase the first tilted angle of the affine plane; and

when the first tilted angle of the affine plane is an angle counterclockwise from the horizontal plane to the affine plane, and the second tilted angle is an angle counterclockwise from the horizontal plane to the scanning window plane, the adjusting, according to the angle difference, the first tilted angle of the affine plane of the graphic code comprises: rotating, if the angle difference is a positive value, the affine plane of the graphic code clockwise to reduce the first tilted angle of the affine plane; or, if the angle difference is a negative value, rotating the affine plane of the graphic code counterclockwise to increase the first tilted angle of the affine plane.

20. The one or more non-transitory computer-readable storage media according to claim 18 , wherein before the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code, the method further comprises:

determining whether the angle difference is greater than or equal to a preset threshold; and

the adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code comprises:

if the angle difference is greater than or equal to the preset threshold, adjusting, according to the first tilted angle of the affine plane and the second tilted angle, the first tilted angle of the affine plane of the graphic code.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 16, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053796/0281 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053702/0392 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 23, 2020
From: TANG, ZHIHUI
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 053304/0687 →