Image generation method, electronic device, and storage medium
AssigneesSensetime Group Limited, Honda Motor Co., Ltd.
InventorsZhiqiang Shen, Mingyang Huang, Jianping Shi, Hideki Matsunaga
Life of this patent
Estimating the term…
Abstract
An image generation method includes: extracting a content feature of a first image; respectively extracting an overall image style feature of a second image, and an object style feature of a partial image block, which includes an object, in the second image; determining a target style feature at least according to the overall image style feature and the object style feature; and generating a third image according to the content feature and the target style feature.
Claims20
An image generation method, comprising:
- extracting a content feature of a first image;
- respectively extracting an overall image style feature of a second image and an object style feature of a local image block, including an object, in the second image, wherein a style of the second image is different from that of the first image;
- determining a target style feature at least according to the overall image style feature and the object style feature;
- and
- generating a third image according to the content feature and the target style feature, so that the third image has a content corresponding to the content feature and a style corresponding to the target style feature.
An electronic device, comprising:
- a processor, and
- a memory, configured to store a processor executable instruction,
- wherein the processor is configured to execute the processor executable instruction to cause the electronic device to perform the following operations comprising:
- extracting a content feature of a first image;
- extracting an overall image style feature of a second image and an object style feature of a local image block, including an object, in the second image respectively, wherein a style of the second image is different from that of the first image;
- determining a target style feature at least according to the overall image style feature and the object style feature;
- and
- generating a third image according to the content feature and the target style feature, so that the third image has a content corresponding to the content feature and a style corresponding to the target style feature.
A non-transitory computer-readable storage medium, storing a computer program instruction thereon, wherein the computer program instruction, when being executed by a processor, causes the processor to perform an image generation method comprising:
- extracting a content feature of a first image;
- respectively extracting an overall image style feature of a second image and an object style feature of a local image block, including an object, in the second image, wherein a style of the second image is different from that of the first image;
- determining a target style feature at least according to the overall image style feature and the object style feature;
- and
- generating a third image according to the content feature and the target style feature, so that the third image has a content corresponding to the content feature and a style corresponding to the target style feature.
Dependencies are inferred from the claim text.