# US 2022/0292731 A1 · Method and apparatus for text effect processing

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

- Number: US 2022/0292731 A1
- Document ID: US20220292731A1
- Status: Published application
- Kind: A1
- Application number: 17/631,889
- Filed: 2020-07-29
- Published: 2022-09-15
- Earliest claimed: 2019-08-01
- Assignees: Beijing Bytedance Network Technology Co., Ltd.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.
- Inventors: Yanhao SHEN; Guangyao NI; Hui YANG
- Web page: https://patentgrep.com/patent/US20220292731A1

## CPC

- G06T 11/60: Creating or editing images; Combining images with text
- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/109: Font handling; Temporal or kinetic typography
- G06T 3/02: Affine transformations (for image registration G06T3/147; for image mosaicing G06T3/4038)
- G06T 11/00: Two-dimensional [2D] image generation
- H04N 21/234336: {by media transcoding, e.g. video is transformed into a slideshow of still pictures or audio is converted into text}
- H04N 21/4316: {for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window}
- H04N 21/8133: {specifically related to the content, e.g. biography of the actors in a movie, detailed information about an article seen in a video programme}
- H04N 21/8146: {involving graphical data, e.g. 3D object, 2D graphics}
- H04L 67/60: Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources (admission control or resource allocation H04L47/70)
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method and an apparatus for text effect processing, an electronic device, and a computer readable storage medium. The method comprises: sending to a server a request to acquire a text effect resource, the text effect resource being used to implement a display effect of text associated with multimedia; receiving a text effect resource sent by the server; and on the basis of the text effect resource, performing effect processing on text, causing the text to be displayed on a terminal screen following playback progress of the multimedia, and gradually disappear from the terminal screen.

## Claims

### Claim 1

A method for text effect processing, comprising:
transmitting a request for obtaining a text effect resource to a server, wherein the text effect resource is used for realizing a display effect of texts associated with a multimedia;
receiving the text effect resource from the server; and
performing effect processing on the texts based on the text effect resource to gradually display the texts on a screen of a terminal with a playback progress of the multimedia and gradually disappear the texts from the screen of the terminal.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the performing effect processing on the texts based on the text effect resource to gradually display the texts on a screen of a terminal with a playback progress of the multimedia and gradually disappear the texts from the screen of the terminal comprises:
obtaining a time stamp corresponding to the playback progress of the multimedia and texts corresponding to the time stamp;
determining a display transparency of the texts corresponding to the time stamp based on the time stamp; and
performing effect processing on the texts corresponding to the time stamp based on the display transparency to gradually display the texts on the screen of the terminal with the playback progress of the multimedia and gradually disappear the texts from the screen of the terminal.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
generating a displacement map based on a resolution of the terminal, wherein the displacement map comprises an initial displacement of each of pixel points; and
the performing effect processing on the texts corresponding to the time stamp based on the display transparency to gradually display the texts on the screen of the terminal with the playback progress of the multimedia and gradually disappear the texts from the screen of the terminal comprises:
determining a playback percentage based on the time stamp, wherein the playback percentage is a ratio of a current playback progress of the texts to a total progress;
determining a target displacement based on the playback percentage and the initial displacement; and
performing effect processing on the texts corresponding to the time stamp based on the display transparency and the target displacement to gradually display the texts on the screen of the terminal with the playback progress of the multimedia and gradually disappear the texts from the screen of the terminal.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the performing effect processing on the texts corresponding to the time stamp based on the display transparency and the target displacement to gradually display the texts on the screen of the terminal with the playback progress of the multimedia and gradually disappear the texts from the screen of the terminal comprises:
typesetting the texts corresponding to the time stamp based on a typesetting parameter in the text effect resource, and generating a bitmap;
determining a pixel value of each of pixel points in the bitmap based on the display transparency; and
displaying the text on the screen of the terminal, moving each of the pixel points along the target displacement, and gradually disappearing the texts with the playback progress of the multimedia.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the generating a displacement map based on a resolution of the terminal comprises:
generating a template picture based on the resolution of the terminal, wherein the template picture comprises n feature points, and n is a positive integer;
performing triangulation processing on the template picture based on the feature points to obtain m triangles, wherein m is a positive integer; and
generating the displacement map based on a displacement of each of pixel points in the m triangles.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the generating the displacement map based on a displacement of each of pixel points in the m triangles comprises:
traversing each of the triangles, and determining a triangle being currently traversed as a current triangle;
moving three vertices of the current triangle to obtain three target vertices;
obtaining an affine transformation matrix of the current triangle based on the three vertices and the three target vertices;
calculating a displacement of each of pixel points in the current triangle based on the affine transformation matrix; and
generating the displacement map based on the displacement of each of the pixel points in the m triangles.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
running a local script program based on a script file in the text effect resource; and
performing effect processing on the texts based on the script program to gradually display the texts on the screen of the terminal with the playback progress of the multimedia and gradually disappear the texts from the screen of the terminal.

### Claim 8

(canceled)

### Claim 9

An apparatus for text effect processing, comprising:
at least one processor; and
at least one memory communicatively coupled to the at least one processor and storing instructions that upon execution by the at least one processor cause the apparatus to:
transmit a request for obtaining a text effect resource to a server, wherein the text effect resource is used for realizing a display effect of texts associated with a multimedia;
receive the text effect resource from the server; and
perform effect processing on the texts based on the text effect resource to gradually display the texts on a screen of a terminal with a playback progress of the multimedia and gradually disappear the texts from the screen of the terminal.

### Claim at position 10

10-11. (canceled)

### Claim 12

A non-transitory computer readable storage medium, storing non-transitory computer readable instructions, wherein the non-transitory computer readable instructions, when executed by a computer, cause the computer to:
transmit a request for obtaining a text effect resource to a server, wherein the text effect resource is used for realizing a display effect of texts associated with a multimedia;
receive the text effect resource from the server; and
perform effect processing on the texts based on the text effect resource to gradually display the texts on a screen of a terminal with a playback progress of the multimedia and gradually disappear the texts from the screen of the terminal.

### Claim 13 (depends on 9)

The apparatus of claim 9, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
obtain a time stamp corresponding to the playback progress of the multimedia and texts corresponding to the time stamp;
determine a display transparency of the texts corresponding to the time stamp based on the time stamp; and
perform effect processing on the texts corresponding to the time stamp based on the display transparency to gradually display the texts on the screen of the terminal with the playback progress of the multimedia and gradually disappear the texts from the screen of the terminal.

### Claim 14 (depends on 13)

The apparatus of claim 13, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
generate a displacement map based on a resolution of the terminal, wherein the displacement map comprises an initial displacement of each of pixel points; and
the perform effect processing on the texts corresponding to the time stamp based on the display transparency to gradually display the texts on the screen of the terminal with the playback progress of the multimedia and gradually disappear the texts from the screen of the terminal comprises:
determine a playback percentage based on the time stamp, wherein the playback percentage is a ratio of a current playback progress of the texts to a total progress;
determine a target displacement based on the playback percentage and the initial displacement; and
perform effect processing on the texts corresponding to the time stamp based on the display transparency and the target displacement to gradually display the texts on the screen of the terminal with the playback progress of the multimedia and gradually disappear the texts from the screen of the terminal.

### Claim 15 (depends on 14)

The apparatus of claim 14, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
typeset the texts corresponding to the time stamp based on a typesetting parameter in the text effect resource, and generating a bitmap;
determine a pixel value of each of pixel points in the bitmap based on the display transparency; and
display the text on the screen of the terminal, moving each of the pixel points along the target displacement, and gradually disappearing the texts with the playback progress of the multimedia.

### Claim 16 (depends on 14)

The apparatus of claim 14, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
generate a template picture based on the resolution of the terminal, wherein the template picture comprises n feature points, and n is a positive integer;
perform triangulation processing on the template picture based on the feature points to obtain m triangles, wherein m is a positive integer; and
generate the displacement map based on a displacement of each of pixel points in the m triangles.

### Claim 17 (depends on 16)

The apparatus of claim 16, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
traverse each of the triangles, and determining a triangle being currently traversed as a current triangle;
move three vertices of the current triangle to obtain three target vertices;
obtain an affine transformation matrix of the current triangle based on the three vertices and the three target vertices;
calculate a displacement of each of pixel points in the current triangle based on the affine transformation matrix; and
generate the displacement map based on the displacement of each of the pixel points in the m triangles.

### Claim 18 (depends on 9)

The apparatus of claim 9, the at least one memory further storing instructions that upon execution by the at least one processor cause the apparatus to:
run a local script program based on a script file in the text effect resource; and
perform effect processing on the texts based on the script program to gradually display the texts on the screen of the terminal with the playback progress of the multimedia and gradually disappear the texts from the screen of the terminal.
