Text matting method and apparatus based on neural network, device, and storage medium
AssigneeBoe Technology Group Co., Ltd.
InventorRan DUAN
Life of this patent
Estimating the term…
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.
Claims20
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.
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.
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.
Dependencies are inferred from the claim text.