# US 2019/0244068 A1 · Graphic identification code generation method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0244068 A1
- Document ID: US20190244068A1
- Status: Published application
- Kind: A1
- Application number: 16/390,720
- Filed: 2019-04-22
- Published: 2019-08-08
- Earliest claimed: 2016-08-31
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Jin Kai MAI; Rui Bang HE; Yun Feng DAI; Han Jie WU; Fang Ning LUO
- Web page: https://patentgrep.com/patent/US20190244068A1

## CPC

- G06K 19/06037: {multi-dimensional coding}
- G06K 19/0614: {the marking being selective to wavelength, e.g. color barcode or barcodes only visible under UV or IR (methods or arrangements for sensing record carriers using a selected wavelength, see G06K7/12)}
- G06K 2019/06225: {using wavelength selection, e.g. colour code}
- G06K: GRAPHICAL DATA READING (image or video recognition or understanding G06V); PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS

## Abstract

A method, apparatus, and computer readable medium are provided. The method includes receiving, from a terminal, target information to be coded in a graphic identification code, and personalized effect information. First lattice data is generated according to the target information. Each data point in the first lattice data is processed according to first-type effect information included in the personalized effect information, to obtain second lattice data. The second lattice data is processed according to second-type effect information included in the personalized effect information, to obtain the graphic identification code.

## Claims

### Claim 1

A method comprising:
receiving, by at least one processor from a terminal, target information to be coded in a graphic identification code, and personalized effect information;
generating, by the at least one processor, first lattice data according to the target information;
processing, by the at least one processor, each data point in the first lattice data according to first-type effect information included in the personalized effect information, to obtain second lattice data; and
processing, by the at least one processor, the second lattice data according to second-type effect information included in the personalized effect information, to obtain the graphic identification code.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the first-type effect information comprises liquefaction effect information, three-dimensional effect information, or rounded corner effect information, and
the second-type effect information comprises effect information other than the first-type effect information.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the processing each data point in the first lattice data according to the first-type effect information comprises:
in response to the first-type effect information being liquefaction effect information, dividing the data point into a plurality of squares having a same size;
performing, according to the value of the data point, color filling on each of the plurality of squares; and
superposing a rounded corner square with a filled color on the data point, a length of a side of the rounded corner square being the same as a length of a side of the data point, and the filled color of the rounded corner square set according to the value of the data point.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the performing color filling comprises:
in response to the value of the data point being a first value and all values of other data points connected to a current to-be-filled square being a second value, filling the current to-be-filled square with a background color; or
in response to the value of the data point being the first value and the current to-be-filled square not being connected to other data points, filling the current to-be-filled square with a background color; or
in response to the value of the data point being the second value and all values of other data points adjacent to the current to-be-filled square being the first value, filling the current to-be-filled square with a foreground color,
the foreground color being indicated by a foreground color identifier included in the personalized effect information and the background color being indicated by a background color identifier included in the personalized effect information.

### Claim 5 (depends on 2)

The method according to claim 2, wherein the processing each data point in the first lattice data according to the first-type effect information comprises:
in response to the first-type effect information being three-dimensional effect information, determining whether the data point is to be filled with a background color, according to the value of the data point;
filling the data point with the background color if the data point is to be filled with the background color;
drawing at least one parallelogram based on an outline of the data point;
performing color filling on each of the at least one parallelogram, according to the value of the data point;
determining whether the data point is to be filled with a foreground color, according to the value of the data point; and
filling the data point with the foreground color if the data point is to be filled with the foreground color,
the foreground color being indicated by a foreground color identifier included in the personalized effect information and the background color being indicated by a background color identifier included in the personalized effect information.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the performing color filling comprises:
in response to the value of the data point being a first value and all values of other data points adjacent to a current to-be-filled parallelogram are a second value, filling the current to-be-filled parallelogram with another color other than the foreground color and the background color.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the performing color filling comprises:
in response to the value of the data point being a first value and a current to-be-filled parallelogram not being adjacent to other data points, filling the current to-be-filled parallelogram with another color other than the foreground color and the background color.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the performing color filling comprises:
in response to the value of the data point being a second value and all values of other data points adjacent to a current to-be-filled parallelogram being a first value, filling the current to-be-filled parallelogram with another color other than the foreground color and the background color.

### Claim 9 (depends on 2)

The method according to claim 2, wherein the processing each data point in the first lattice data according to the first-type effect information comprises:
in response to the first-type effect information being rounded corner effect information, changing a shape of the data point from a square to a circle;
in response to the value of the data point being a first value, filling the circle-shaped data point with a foreground color indicated by a foreground color identifier included in the personalized effect information; and
in response to the value of the data point being a second value, filling the circle-shaped data point with a background color indicated by a background color identifier included in the personalized effect information.

### Claim 10 (depends on 2)

The method according to claim 2, wherein the processing the second data lattice comprises:
in response to the second-type effect information being code eye information, determining a code eye type indicated by the code eye information;
obtaining a code eye image and first location information according to the code eye type;
performing horizontally flipping, vertically flipping, and diagonally flipping on the code eye image in response to the code eye image being a non-axially symmetric image, to obtain a first flipped image, a second flipped image, and a third flipped image, respectively; and
adding a code eye in the second data lattice at a vertex angle location indicated by the first location information, based on the code eye image, the first flipped image, the second flipped image, and the third flipped image, to obtain the graphic identification code.

### Claim 11 (depends on 2)

The method according to claim 2, wherein the processing the second data lattice comprises:
in response to the second-type effect information being logo information, obtaining a logo and second location information, and adding the logo in the second data lattice at a location indicated by the second location information, to obtain the graphic identification code.

### Claim 12 (depends on 2)

The method according to claim 2, wherein the processing the second data lattice comprises:
in response to the second-type effect information being size information, performing scaling processing on the second data lattice according to the size information, to obtain the graphic identification code.

### Claim 13 (depends on 2)

The method according to claim 2, wherein the processing the second data lattice comprises:
in response to the second-type effect information being format information, storing the second data lattice as an image format indicated by the format information, to obtain the graphic identification code.

### Claim 14 (depends on 2)

The method according to claim 2, wherein the processing the second data lattice comprises:
in response to the second-type effect information being boundary information, adding a boundary box for the second data lattice according to the boundary information, to obtain the graphic identification code.

### Claim 15 (depends on 2)

The method according to claim 2, wherein the processing the second data lattice comprises:
in response to the second-type effect information being scenario information, obtaining a scenario image and third location information, and embedding the second data lattice in the scenario image at a location indicated by the third location information, to obtain the graphic identification code.

### Claim 16 (depends on 1)

The method according to claim 1, further comprising:
uploading the graphic identification code to a content delivery network (CDN) server; and
receiving, from the CDN server, a CDN address of the graphic identification code.

### Claim 17

An apparatus comprising:
at least one memory configured to store computer program code; and
at least one processor configured to access the at least one memory and operate according to the computer program code, the computer program code including:
receiving code configured to cause the at least one processor to receive, from a terminal, target information to be coded in a graphic identification code, and personalized effect information;
first lattice generation code configured to cause the at least one processor to generate first lattice data according to the target information; and
first processing code configured to cause the at least one processor to process each data point in the first lattice data according to first-type effect information included in the personalized effect information, to obtain second lattice data; and
graphic generation code configured to cause the at least one processor to process the second lattice data according to second-type effect information included in the personalized effect information, to obtain the graphic identification code.

### Claim 18 (depends on 17)

The apparatus according to claim 17, wherein the first-type effect information comprises liquefaction effect information, three-dimensional effect information, or rounded corner effect information, and
the second-type effect information comprises effect information other than the first-type effect information.

### Claim 19

A non-transitory computer readable medium storing computer program code which, when executed by at least one processor, performs:
receiving, from a terminal, target information to be coded in a graphic identification code, and personalized effect information;
generating first lattice data according to the target information;
processing each data point in the first lattice data according to first-type effect information included in the personalized effect information, to obtain second lattice data; and
processing the second lattice data according to second-type effect information included in the personalized effect information, to obtain the graphic identification code.

### Claim 20 (depends on 19)

The non-transitory computer readable medium according to claim 19, wherein the first-type effect information comprises liquefaction effect information, three-dimensional effect information, or rounded corner effect information, and
the second-type effect information comprises effect information other than the first-type effect information.
