Method for image processing, computer device, and storage medium
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorShengchen ZHU
Life of this patent
Estimating the term…
Abstract
A method for image processing, a computer device, and a storage medium are provided in implementations of the present application. The method include the following. A foreground image and a background image are obtained by segmenting an original image. A transferred image is obtained by performing style transfer on an image to-be-transferred based on style selection information, where the image to-be-transferred includes the foreground image and/or the background image, and the style selection information includes n transfer styles, where n is a positive integer. An output image is generated based on the transferred image.
Claims20
A method for image processing, comprising:
- obtaining a foreground image and a background image by segmenting an original image;
- obtaining a transferred image by performing style transfer on an image to-be-transferred based on style selection information, the image to-be-transferred comprising at least one of the foreground image and the background image, the style selection information comprising n transfer styles, n being a positive integer;
- and
- generating an output image based on the transferred image.
A computer device, comprising:
- a processor;
- and
- a memory storing a computer program which, when executed by the processor, causes the processor to:
- obtain a foreground image and a background image by segmenting an original image;
- obtain a transferred image by performing style transfer on an image to-be-transferred based on style selection information, the image to-be-transferred comprising at least one of the foreground image and the background image, the style selection information comprising n transfer styles, n being a positive integer;
- and
- generate an output image based on the transferred image.
A non-transitory computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to:
- obtain a foreground image and a background image by segmenting an original image;
- obtain a transferred image by performing style transfer on an image to-be-transferred based on style selection information, the image to-be-transferred comprising at least one of the foreground image and the background image, the style selection information comprising n transfer styles, n being a positive integer;
- and
- generate an output image based on the transferred image.
Dependencies are inferred from the claim text.