Method and device for processing image, related electronic device and storage medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsHao SUN, Fu LI, Xin LI, Tianwei LIN
Life of this patent
Estimating the term…
Abstract
The disclosure provides a method for processing an image, an electronic device, and a storage medium, belonging to a field of computer vision and deep learning. An image including a face figure is acquired. Facial feature information matching the face figure is extracted. A style of the image is converted to a preset drawing style based on the facial feature information to obtain a style transferred image.
Claims20
A method for processing an image, including:
- acquiring an image, wherein the image comprises a face figure;
- extracting facial feature information matching the face figure;
- and
- converting the image into a style transferred image of a preset drawing style based on the facial feature information.
An electronic device, comprising:
- at least one processor;
- and
- a memory communicatively coupled to the at least one processor;
- wherein the memory is configured to store instructions executable by the at least one processor, when the instructions are executed by the at least one processor, the at least one processor is configured to:
- acquire an image, wherein the image comprises a face figure;
- extract facial feature information matching the face figure;
- and
- convert the image into a style transferred image of a preset drawing style based on the facial feature information.
A non-transitory computer-readable storage medium, having computer instructions stored thereon, wherein the computer instructions are configured to cause a computer to execute a method for processing an image, the method comprising:
- acquiring an image, wherein the image comprises a face figure;
- extracting facial feature information matching the face figure;
- and
- converting the image into a style transferred image of a preset drawing style based on the facial feature information.
The non-transitory computer-readable storage medium according to claim 20, wherein the method further comprises:
- performing at least one image preprocessing on real portrait images in the real portrait image set to obtain preprocessed real portrait images, and adding the preprocessed real portrait images to the real portrait image set.
Dependencies are inferred from the claim text.