IP Library Granted Patent US 10,796,211
Granted Patent B2
US 10,796,211 · App. 16/858,096 · Granted Oct 6, 2020

Generating authentication image to verify a two-dimensional code offline

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,796,211
App. No.
16/858,096
Granted
Oct 6, 2020
Kind
B2
Abstract

The present disclosure describes technologies related to generating authentication image to verify a two-dimensional (2D) code offline. In some implementations, a 2D code is parsed to identify a plurality of black pixels and a plurality of white pixels. A target image is parsed to identify a plurality of black pixels and a plurality of white pixels. The plurality of black pixels and the plurality of white pixels of the images are converted to a first plurality of binary arrays and a second plurality of binary arrays based on a predetermined rule. At least a portion of the first plurality of binary arrays and a portion of the second plurality of binary arrays are compared, and an authentication image including a plurality of black pixels, a plurality of white pixels, and a plurality of transparent pixels is generated based on comparison results.

Claims (68)

1. A computer-implemented method, comprising:

parsing a two-dimensional (2D) code into a two-dimensional array, wherein the two-dimensional array comprises binary digits; and

generating an authentication image by using the two-dimensional array according to a target image, comprising:

parsing the target image into a binary image;

performing a bit operation on a corresponding value in the two-dimensional array according to a value of each pixel in the binary image, wherein the bit operation selects and flips some of the binary digits; and

generating the authentication image according to a result of the bit operation, wherein the target image appears when the authentication image overlaps with the 2D code, comprising:

generating black pixels in the authentication image for locations that are black in the target image but white in the 2D code,

generating white pixels in the authentication image for locations that are white in the target image but black in the 2D code, and

generating transparent pixels in the authentication image for locations having matching colors in the target image and in the 2D code.

2. The computer-implemented method of claim 1 , wherein the target image includes a predetermined pattern, and the method further comprises:

overlapping the authentication image with the 2D code to form an overlapped image;

determining the 2D code is unmodified if the overlapped image includes the predetermined pattern; and

determining the 2D code is modified if the overlapped image does not include the predetermined pattern.

3. The computer-implemented method of claim 2 , wherein the authentication image is printed on a transparent paper and overlapped with the 2D code printed on a paper to form the overlapped image.

4. The computer-implemented method of claim 1 , before parsing the target image into the binary image, the method further comprises:

converting a size of the target image to be the same as a size of the 2D code.

5. The computer-implemented method of claim 1 , wherein parsing the 2D code into a two-dimensional array comprises:

parsing the 2D code to identify a plurality of black pixels and a plurality of white pixels; and

converting the plurality of black pixels and the plurality of white pixels of the 2D code to the two-dimensional array, wherein the plurality of black pixels and the plurality of white pixels correspond to different binary digits in the two-dimensional array.

6. The computer-implemented method of claim 5 , wherein parsing the target image into the binary image comprises:

parsing the target image to identify a plurality of black pixels and a plurality of white pixels; and

converting the plurality of black pixels and the plurality of white pixels of the target image to the binary image based on a predetermined rule.

7. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

parsing a two-dimensional (2D) code into a two-dimensional array, wherein the two-dimensional array comprises binary digits; and

generating an authentication image by using the two-dimensional array according to a target image, comprising:

parsing the target image into a binary image;

performing a bit operation on a corresponding value in the two-dimensional array according to a value of each pixel in the binary image, wherein the bit operation selects and flips some of the binary digits; and

generating the authentication image according to a result of the bit operation, wherein the target image appears when the authentication image overlaps with the 2D code, comprising:

generating black pixels in the authentication image for locations that are black in the target image but white in the 2D code,

generating white pixels in the authentication image for locations that are white in the target image but black in the 2D code, and

generating transparent pixels in the authentication image for locations having matching colors in the target image and in the 2D code.

8. The non-transitory, computer-readable medium of claim 7 , wherein the target image includes a predetermined pattern, and the operations further comprise:

overlapping the authentication image with the 2D code to form an overlapped image;

determining the 2D code is unmodified if the overlapped image includes the predetermined pattern; and

determining the 2D code is modified if the overlapped image does not include the predetermined pattern.

9. The non-transitory, computer-readable medium of claim 8 , wherein the authentication image is printed on a transparent paper and overlapped with the 2D code printed on a paper to form the overlapped image.

10. The non-transitory, computer-readable medium of claim 7 , before parsing the target image into the binary image, the operations further comprise:

converting a size of the target image to be the same as a size of the 2D code.

11. The non-transitory, computer-readable medium of claim 7 , wherein parsing the 2D code into a two-dimensional array comprises:

parsing the 2D code to identify a plurality of black pixels and a plurality of white pixels; and

converting the plurality of black pixels and the plurality of white pixels of the 2D code to the two-dimensional array, wherein the plurality of black pixels and the plurality of white pixels correspond to different binary digits in the two-dimensional array.

12. The non-transitory, computer-readable medium of claim 11 , wherein parsing the target image into the binary image comprises:

parsing the target image to identify a plurality of black pixels and a plurality of white pixels; and

converting the plurality of black pixels and the plurality of white pixels of the target image to the binary image based on a predetermined rule.

13. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

parsing a two-dimensional (2D) code into a two-dimensional array, wherein the two-dimensional array comprises binary digits; and

generating an authentication image by using the two-dimensional array according to a target image, comprising:

parsing the target image into a binary image;

performing a bit operation on a corresponding value in the two-dimensional array according to a value of each pixel in the binary image, wherein the bit operation selects and flips some of the binary digits; and

generating the authentication image according to a result of the bit operation, wherein the target image appears when the authentication image overlaps with the 2D code, comprising:

generating black pixels in the authentication image for locations that are black in the target image but white in the 2D code,

generating white pixels in the authentication image for locations that are white in the target image but black in the 2D code, and

generating transparent pixels in the authentication image for locations having matching colors in the target image and in the 2D code.

14. The computer-implemented system of claim 13 , wherein the target image includes a predetermined pattern, and the operations further comprise:

overlapping the authentication image with the 2D code to form an overlapped image;

determining the 2D code is unmodified if the overlapped image includes the predetermined pattern; and

determining the 2D code is modified if the overlapped image does not include the predetermined pattern.

15. The computer-implemented system of claim 14 , wherein the authentication image is printed on a transparent paper and overlapped with the 2D code printed on a paper to form the overlapped image.

16. The computer-implemented system of claim 13 , wherein parsing the 2D code into a two-dimensional array comprises:

parsing the 2D code to identify a plurality of black pixels and a plurality of white pixels; and

converting the plurality of black pixels and the plurality of white pixels of the 2D code to the two-dimensional array, wherein the plurality of black pixels and the plurality of white pixels correspond to different binary digits in the two-dimensional array.

17. The computer-implemented system of claim 16 , wherein parsing the target image into the binary image comprises:

parsing the target image to identify a plurality of black pixels and a plurality of white pixels; and

converting the plurality of black pixels and the plurality of white pixels of the target image to the binary image based on a predetermined rule.

18. The computer-implemented system of claim 13 , before parsing the target image into the binary image, the operations further comprise:

converting a size of the target image to be the same as a size of the 2D code.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 5, 2020
From: GUO, WEI
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052570/0330 →