# US 2026/0100065 A1 · Text matting method and apparatus based on neural network, device, and storage medium

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

- Number: US 2026/0100065 A1
- Document ID: US20260100065A1
- Status: Published application
- Kind: A1
- Application number: 19/416,340
- Filed: 2025-12-11
- Published: 2026-04-09
- Earliest claimed: 2025-12-11
- Assignees: Boe Technology Group Co., Ltd.
- Applicants: Boe Technology Group Co., Ltd.
- Inventors: Ran DUAN
- Web page: https://patentgrep.com/patent/US20260100065A1

## CPC

- G06V 30/19127: {Extracting features by transforming the feature space, e.g. multidimensional scaling; Mappings, e.g. subspace methods}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06V 10/82: using neural networks
- G06V 30/16: Image preprocessing
- G06V 30/19147: {Obtaining sets of training patterns; Bootstrap methods, e.g. bagging or boosting}
- G06V 30/1918: {Fusion techniques, i.e. combining data from various sources, e.g. sensor fusion}
- G06V 30/19193: {Statistical pre-processing, e.g. techniques for normalisation or restoring missing data}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present disclosure provides an image style conversion method. The image style conversion method includes: acquiring a first image, wherein the first image includes text information; performing image processing on the first image by a text matting neural network model to obtain a text mask; performing style conversion on the text mask based on a preset application scenario to obtain a converted text mask; and performing image fusion on the converted text mask and a background image of the preset application scenario to obtain a converted image after image style conversion.

## Claims

### Claim 1

An image style conversion method, comprising:
acquiring a first image, wherein the first image comprises text information;
performing image processing on the first image by a text matting neural network model to obtain a text mask;
performing style conversion on the text mask based on a preset application scenario to obtain a converted text mask; and
performing image fusion on the converted text mask and a background image of the preset application scenario to obtain a converted image after image style conversion.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the text matting neural network model comprises:
a feature extracting network model, configured to process the first image to obtain feature maps, wherein the feature extraction network model comprises sequentially connected n extraction convolutional network blocks, and wherein a 1-st extraction convolutional network block processes the first image and outputs a 1-st feature map, and an i-th extraction convolutional network block processes an (i−1)-th feature map and outputs an i-th feature map;
an intermediate processing network model, configured to process the feature maps to obtain intermediate feature maps, wherein the intermediate processing network model comprises n spatial convolutional network blocks, a 1-st spatial convolutional network block processes the 1-st feature map and outputs a 1-st intermediate feature map, and an i-th spatial convolutional network block processes the i-th feature map and outputs an i-th intermediate feature map; and
a feature fusing network model, configured to process intermediate feature maps to obtain the text mask, wherein the feature fusion network model comprises sequentially connected n fusion convolutional network blocks, a 1-st fusion convolutional network block processes an n-th intermediate feature map output by an n-th spatial convolutional network block to obtain a 1-st fusion map, an i-th fusion convolutional network block processes an (n−i+1)-th intermediate feature map output by an (n−i+1)-th spatial convolutional network block and an (i−1)-th fusion map output by an (i−1)-th fusion convolutional network block to obtain an i-th fusion map,
wherein an n-th fusion map output by an n-th fusion convolutional network block serves as the text mask, and the text mask comprises a text feature extracted from the first image, and
wherein n is an integer greater than 1, and i is an integer greater than 1 but less than or equal to n.

### Claim 3 (depends on 2)

The method according to claim 2, wherein, the n extraction convolutional network blocks in the feature extraction network model are each composed of one or more of a convolutional layer, a pooling layer and a residual convolutional block; and the n fusion convolutional network blocks in the feature fusion network model are each composed of one or more of a convolutional layer, a residual convolutional block and a first connection layer; wherein the first connection layer comprises a feature merging layer and a super-resolution layer.

### Claim 4 (depends on 2)

The method according to claim 2, wherein, n is equal to 4; in the feature extraction network model, the 1-st extraction convolutional network block is composed of a convolutional layer and a maximum pooling layer, a 2-nd extraction convolutional network block is composed of a residual convolutional block, a convolutional layer and a maximum pooling layer, a 3-rd extraction convolutional network block is composed of a residual convolutional block, a convolutional layer and a maximum pooling layer, and a 4-th extraction convolutional network block is composed of a residual convolutional block and a convolutional layer, wherein
in the feature fusion network model, a 1-st fusion convolutional network block is composed of a convolutional layer and a residual convolutional block, a 2-nd fusion convolutional network block is composed of a first connection layer, a convolutional layer and a residual convolutional block, a 3-rd fusion convolutional network block is composed of a first connection layer, a convolutional layer and a residual convolutional block, and a 4-th fusion convolutional network block is composed of a first connection layer and a convolutional layer, the first connection layer comprises a feature merging layer and a super-resolution layer.

### Claim 5 (depends on 3)

The method according to claim 3, wherein, the feature merging layer is used for merging a plurality of input images by increasing a number of image channels; and the super-resolution layer is used for increasing image size by reducing the number of image channels, and
wherein the residual convolutional block is composed of a convolutional layer, a batch normalization layer and an activation function.

### Claim 6 (depends on 4)

The method according to claim 4, wherein, the feature merging layer is used for merging a plurality of input images by increasing a number of image channels; and the super-resolution layer is used for increasing image size by reducing the number of image channels, and
wherein the residual convolutional block is composed of a convolutional layer, a batch normalization layer and an activation function.

### Claim 7 (depends on 2)

The method according to claim 2, wherein, the n spatial convolutional network blocks have a same structure; each spatial convolutional network block of the n spatial convolutional network blocks comprises m parallel processing units and a second connection layer; the m processing units are respectively used for processing an input image; the second connection layer is used for merging processing results of the m processing units; the second connection layer comprises a feature merging layer, a convolutional layer and a batch normalization layer; and the feature merging layer is used for merging m images respectively output by the m processing units by increasing a number of image channels,
wherein m is an integer greater than 1.

### Claim 8 (depends on 2)

The method according to claim 2, wherein, pixel points of the n-th fusion map are represented as text probability values located in an interval of 0 to 1, and are quantified as a grayscale image in an interval of 0 to 255.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising:
performing text detection on an original image for extracting a detection image comprising texts from the original image, wherein, the detection image serves as the first image.

### Claim 10 (depends on 9)

The method according to claim 9, further comprising:
performing image processing on the text mask, to generate a mask image having a same image size as the original image; and
performing image completion on the original image with the mask image to generate an image after eliminating the text feature.

### Claim 11

An electronic device, comprising:
a processor; and
a non-transitory memory with computer-readable codes stored thereon, wherein the computer-readable codes, upon executed by the processor, cause the processor to:
acquire a first image, wherein the first image comprises text information;
perform image processing on the first image by a text matting neural network model to obtain a text mask;
perform style conversion on the text mask based on a preset application scenario to obtain a converted text mask; and
perform image fusion on the converted text mask and a background image of the preset application scenario to obtain a converted image after image style conversion.

### Claim 12 (depends on 1)

A non-transitory computer-readable storage medium with instructions stored thereon, wherein the instructions upon execution by a processor, cause the processor to perform the method according to claim 1.

### Claim 13

A subtitle elimination method, comprising:
acquiring a frame of image of a video, wherein the frame of image of the video is served as an original image;
performing text detection on the original image to obtain a first image comprising text information;
performing image processing on the first image by a text matting neural network model to obtain a text mask;
generating a subtitle mask based on the text mask, wherein a size of the subtitle mask is equal to a size of the original image; and
performing image completion on the original image based on the subtitle mask to obtain an image after subtitle elimination.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the text matting neural network model comprises:
a feature extracting network model, configured to process the first image to obtain feature maps, wherein the feature extraction network model comprises sequentially connected n extraction convolutional network blocks, and wherein a 1-st extraction convolutional network block processes the first image and outputs a 1-st feature map, and an i-th extraction convolutional network block processes an (i−1)-th feature map and outputs an i-th feature map;
an intermediate processing network model, configured to process the feature maps to obtain intermediate feature maps, wherein the intermediate processing network model comprises n spatial convolutional network blocks, a 1-st spatial convolutional network block processes the 1-st feature map and outputs a 1-st intermediate feature map, and an i-th spatial convolutional network block processes the i-th feature map and outputs an i-th intermediate feature map; and
a feature fusing network model, configured to process intermediate feature maps to obtain the text mask, wherein the feature fusion network model comprises sequentially connected n fusion convolutional network blocks, a 1-st fusion convolutional network block processes an n-th intermediate feature map output by an n-th spatial convolutional network block to obtain a 1-st fusion map, an i-th fusion convolutional network block processes an (n−i+1)-th intermediate feature map output by an (n−i+1)-th spatial convolutional network block and an (i−1)-th fusion map output by an (i−1)-th fusion convolutional network block to obtain an i-th fusion map,
wherein an n-th fusion map output by an n-th fusion convolutional network block serves as the text mask, and the text mask comprises a text feature extracted from the first image, and
wherein n is an integer greater than 1, and i is an integer greater than 1 but less than or equal to n.

### Claim 15 (depends on 14)

The method according to claim 14, wherein, the n extraction convolutional network blocks in the feature extraction network model are each composed of one or more of a convolutional layer, a pooling layer and a residual convolutional block; and the n fusion convolutional network blocks in the feature fusion network model are each composed of one or more of a convolutional layer, a residual convolutional block and a first connection layer; wherein the first connection layer comprises a feature merging layer and a super-resolution layer.

### Claim 16 (depends on 14)

The method according to claim 14, wherein, n is equal to 4; in the feature extraction network model, the 1-st extraction convolutional network block is composed of a convolutional layer and a maximum pooling layer, a 2-nd extraction convolutional network block is composed of a residual convolutional block, a convolutional layer and a maximum pooling layer, a 3-rd extraction convolutional network block is composed of a residual convolutional block, a convolutional layer and a maximum pooling layer, and a 4-th extraction convolutional network block is composed of a residual convolutional block and a convolutional layer, wherein
in the feature fusion network model, a 1-st fusion convolutional network block is composed of a convolutional layer and a residual convolutional block, a 2-nd fusion convolutional network block is composed of a first connection layer, a convolutional layer and a residual convolutional block, a 3-rd fusion convolutional network block is composed of a first connection layer, a convolutional layer and a residual convolutional block, and a 4-th fusion convolutional network block is composed of a first connection layer and a convolutional layer, the first connection layer comprises a feature merging layer and a super-resolution layer.

### Claim 17 (depends on 15)

The method according to claim 15, wherein, the feature merging layer is used for merging a plurality of input images by increasing a number of image channels; and the super-resolution layer is used for increasing image size by reducing the number of image channels, and
wherein the residual convolutional block is composed of a convolutional layer, a batch normalization layer and an activation function.

### Claim 18 (depends on 14)

The method according to claim 14, wherein, the n spatial convolutional network blocks have a same structure; each spatial convolutional network block of the n spatial convolutional network blocks comprises m parallel processing units and a second connection layer; the m processing units are respectively used for processing an input image; the second connection layer is used for merging processing results of the m processing units; the second connection layer comprises a feature merging layer, a convolutional layer and a batch normalization layer; and the feature merging layer is used for merging m images respectively output by the m processing units by increasing a number of image channels,
wherein m is an integer greater than 1.

### Claim 19 (depends on 13)

A electronic device, comprising:
a processor; and
a non-transitory memory with computer-readable codes stored thereon, wherein the computer-readable codes, upon executed by the processor, cause the processor to perform the method according to claim 13.

### Claim 20 (depends on 13)

A non-transitory computer-readable storage medium with instructions stored thereon, wherein the instructions upon execution by a processor, cause the processor to perform the method according to claim 13.
