# US 2019/0294938 A1 · Method and apparatus for generating two-dimensional barcode picture having dynamic effect

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

- Number: US 2019/0294938 A1
- Document ID: US20190294938A1
- Status: Published application
- Kind: A1
- Application number: 16/440,489
- Filed: 2019-06-13
- Published: 2019-09-26
- Earliest claimed: 2016-05-10
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Jiasheng HUANG
- Web page: https://patentgrep.com/patent/US20190294938A1

## CPC

- G06K 19/06037: {multi-dimensional coding}
- G06T 13/80: Two-dimensional [2D] animation, e.g. using sprites
- G06K: GRAPHICAL DATA READING (image or video recognition or understanding G06V); PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A system for generating a two-dimensional barcode picture with an animation effect may receive an animation effect definition and a target character set. The system may encode the target character set into a barcode sequence comprising a plurality of feature bits. The system may generate two-dimensional barcode image data comprising pixel values corresponding to the feature bits. The system may transmit a dynamic picture comprising a plurality of frames that represent an animation based on the animation effect definition. Each of the frames may include at least a portion of the two-dimensional barcode image data. The respective locations of the pixel values for the two-dimensional barcode image data within the frames may be different in each of the frames according to the animation effect definition.

## Claims

### Claim 1

A method for generating a two-dimensional barcode picture with an animation effect, the method comprising:
receiving an animation effect definition representative of the animation effect;
receiving a target character set;
encoding the target character set into a barcode sequence comprising a plurality of feature bits;
generating two-dimensional barcode image data comprising pixel values corresponding to the feature bits; and
transmitting a dynamic picture comprising a plurality of frames that represent an animation based on the animation effect definition, each of the frames comprising at least a portion of the two-dimensional barcode image data, wherein respective locations of the pixel values for the two-dimensional barcode image data within the frames is different in each of the frames, wherein the respective locations are based on the animation effect definition.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
generating an instruction to:
display the dynamic picture in a display area,
detect an input trigger indicative of interaction with the dynamic picture, and
display, in response to detection of the input trigger, a cover layer in a display area of the dynamic picture, the cover layer comprising the two-dimensional barcode image data; and
transmitting the instruction to a terminal device configured to execute the instruction.

### Claim 3 (depends on 1)

The method of claim 1, wherein the frames of the dynamic picture comprise an end frame for an end or periodic end of the animation, wherein the end frame comprises all of the pixel values corresponding to the feature bits.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
generating an instruction to:
display the dynamic picture in a display area,
detect an input trigger indicative of interaction with the dynamic picture,
display, in response to detection of the input trigger, a cover layer in a display area of the dynamic picture, the cover layer comprising the two-dimensional barcode image data,
detect a release trigger indicative of no interaction with the dynamic picture, and
stop, in response to detection of the release trigger, display of the cover layer; and
transmitting the instruction to a terminal device configured to execute the instruction.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
obtaining a grayscale mean value of background pixels in a preset drawing area of the dynamic picture; and
determining pixel values corresponding to the feature bits based on the grayscale mean value of the background pixels in the preset drawing area.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
converting, based on a two-dimensional barcode image standard, the barcode sequence into the two-dimensional barcode image data; and
determining coordinates of the pixel values of the two-dimensional barcode image data based on the respective locations of the feature bits in the two-dimensional barcode image data.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
mapping the coordinates of the pixel values of the two-dimensional bar code image to respective locations in a preset drawing area for the dynamic picture.

### Claim 8

A system, comprising,
a hardware processor configured to:
receive an animation effect definition representative of an animation effect;
receive a target character set;
encode the target character set into a barcode sequence comprising a plurality of feature bits;
generate two-dimensional barcode image data comprising pixel values corresponding to the feature bits; and
transmit a dynamic picture comprising a plurality of frames that represent an animation based on the animation effect definition, each of the frames comprising at least a portion of the two-dimensional barcode image data, wherein respective locations of the pixel values for the two-dimensional barcode image data within the frames is different in each of the frames, wherein the respective locations are based on the animation effect definition.

### Claim 9 (depends on 8)

The system of claim 8, further comprising the hardware processor configured to:
transmit an instruction that causes a terminal to:
display the dynamic picture in a display area;
detect an input trigger indicative of interaction with the dynamic picture; and
display, in response to detection of the input trigger, a cover layer in a display area of the dynamic picture, the cover layer comprising the two-dimensional barcode image data.

### Claim 10 (depends on 8)

The system of claim 8, wherein the frames of the dynamic picture comprise an end frame for an end or periodic end of the animation, wherein the end frame comprises all of the pixel values corresponding to the feature bits.

### Claim 11 (depends on 8)

The system of claim 8, further comprising the hardware processor configured to:
transmit an instruction that causes a terminal to:
display the dynamic picture in a display area;
detect an input trigger indicative of interaction with the dynamic picture; and
display, in response to detection of the input trigger, a cover layer in a display area of the dynamic picture, the cover layer comprising the two-dimensional barcode image data
detect a release trigger indicative of no interaction with the dynamic picture; and
stop, in response to detection of the release trigger, display of the cover layer.

### Claim 12 (depends on 8)

The system of claim 8, further comprising the hardware processor configured to:
obtain a grayscale mean value of background pixels in a preset drawing area of the dynamic picture; and
determine pixel values corresponding to the feature bits based on the grayscale mean value of the background pixels in the preset drawing area.

### Claim 13 (depends on 8)

The system of claim 8, further comprising the hardware processor configured to:
convert, based on a two-dimensional barcode image standard, the barcode sequence into the two-dimensional barcode image data; and
determine coordinates of the pixel values of the two-dimensional barcode image data based on the respective locations of the feature bits in the two-dimensional barcode image data.

### Claim 14 (depends on 13)

The system of claim 13, wherein the hardware processor configured to determine the coordinates of the pixel values of the two-dimensional barcode image data based on the respective locations of the feature bits in the two-dimensional barcode image data further comprise the hardware processor configured to:
map the coordinates of the pixel values of the two-dimensional bar code image to respective locations in a preset drawing area of the dynamic picture.

### Claim 15

A non-transitory computer readable storage medium, comprising,
a plurality of instructions executable a processor to:
receive an animation effect definition representative of an animation effect;
receive a target character set;
encode the target character set into a barcode sequence comprising a plurality of feature bits;
generate two-dimensional barcode image data comprising pixel values corresponding to the feature bits; and
transmit a dynamic picture comprising a plurality of frames that represent an animation based on the animation effect definition, each of the frames comprising at least a portion of the two-dimensional barcode image data, wherein respective locations of the pixel values for the two-dimensional barcode image data within the frames is different in each of the frames, wherein the respective locations are based on the animation effect definition.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15, further comprising instructions executable by the processor to:
transmit an instruction that causes a terminal to:
display the dynamic picture in a display area;
detect an input trigger indicative of interaction with the dynamic picture; and
display, in response to detection of the input trigger, a cover layer in a display area of the dynamic picture, the cover layer comprising the two-dimensional barcode image data.

### Claim 17 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the frames of the dynamic picture comprise an end frame for an end or periodic end of the animation, wherein the end frame comprises all of the pixel values corresponding to the feature bits.

### Claim 18 (depends on 15)

The non-transitory computer readable storage medium of claim 15, further comprising instructions executable by the processor to:
transmit an instruction that causes a terminal to:
display the dynamic picture in a display area;
detect an input trigger indicative of interaction with the dynamic picture; and
display, in response to detection of the input trigger, a cover layer in a display area of the dynamic picture, the cover layer comprising the two-dimensional barcode image data
detect a release trigger indicative of no interaction with the dynamic picture; and
stop, in response to detection of the release trigger, display of the cover layer.

### Claim 19 (depends on 15)

The non-transitory computer readable storage medium of claim 15, further comprising instructions executable by the processor to:
obtain a grayscale mean value of background pixels in a preset drawing area of the dynamic picture; and
determine pixel values corresponding to the feature bits based on the grayscale mean value of the background pixels in the preset drawing area.

### Claim 20 (depends on 15)

The non-transitory computer readable storage medium of claim 15, further comprising instructions executable by the processor to:
convert, based on a two-dimensional barcode image standard, the barcode sequence into the two-dimensional barcode image data; and
determine coordinates of the pixel values of the two-dimensional barcode image data based on the respective locations of the feature bits in the two-dimensional barcode image data.
