# US 2022/0044054 A1 · Image generation method, electronic 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 2022/0044054 A1
- Document ID: US20220044054A1
- Status: Published application
- Kind: A1
- Application number: 17/452,388
- Filed: 2021-10-26
- Published: 2022-02-10
- Earliest claimed: 2019-04-29
- Assignees: Sensetime Group Limited; Honda Motor Co., Ltd.
- Applicants: Sensetime Group Limited; Honda Motor Co. Ltd.
- Inventors: Zhiqiang SHEN; Mingyang HUANG; Jianping SHI; Hideki MATSUNAGA
- Web page: https://patentgrep.com/patent/US20220044054A1

## CPC

- G06V 10/50: by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
- G06V 10/806: {of extracted features}
- G06F 18/253: {of extracted features}
- G06T 3/00: Geometric image transformations in the plane of the image
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/82: using neural networks
- G06V 20/64: Three-dimensional [3D] objects
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## 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.

## Claims

### Claim 1

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.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining the target style feature at least according to the overall image style feature and the object style feature comprises:
fusing the overall image style feature into the object style feature to obtain the target style feature.

### Claim 3 (depends on 1)

The method of claim 1, further comprising: extracting a background style feature of a background image block in the second image, wherein the background image block is an image block other than the local image block in the second image;
the determining the target style feature at least according to the overall image style feature and the object style feature comprises: determining the target style feature according to the overall image style feature, the object style feature, and the background style feature.

### Claim 4 (depends on 3)

The method of claim 3, wherein the determining the target style feature according to the overall image style feature, the object style feature, and the background style feature comprises:
fusing the overall image style feature into the background style feature; and
fusing the background style feature into which the overall image style feature has been fused into the object style feature to obtain the target style feature.

### Claim 5 (depends on 1)

The method of claim 1, wherein the generating the third image according to the content feature and the target style feature, so that the third image has the content corresponding to the content feature and the style corresponding to the target style feature comprises:
generating, via an image generator, an image according to the content feature and the target style feature, and discriminating, via an image discriminator, a realness of the generated image;
training the image generator on the basis of a confrontation between a discrimination result of the image discriminator and the image generated by the image generator; and
generating, via the trained image generator, the third image.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
extracting a content feature of a source image; and
inputting the content feature of the source image and the target style feature into the trained image generator to obtain a first target image, wherein the first target image has a content corresponding to the content feature of the source image and a style corresponding to the target style feature.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first image and/or the second image comprises at least one object with at least one of the following categories: motor vehicles, non-motor vehicles, persons, traffic signs, traffic lights, trees, animals, buildings, or obstacles.

### Claim 8 (depends on 1)

The method of claim 1, wherein when the second image comprises a plurality of objects, the extracting the object style feature of a local image block including an object in the second image comprises:
extract a plurality of local image blocks from the second image, wherein each local image block comprises one object; and
respectively extracting an object style feature of each of the local image blocks.

### Claim 9 (depends on 8)

The method of claim 8, wherein when the plurality of objects belong to a plurality of categories, the extracting the object style feature of a local image block, including an object, in the second image further comprises:
fusing object style features extracted from a plurality of local image blocks including objects with the same category.

### Claim 10 (depends on 5)

The method of claim 5, further comprising:
extracting a content feature of a source image; and
inputting the content feature of the source image, the target style feature, and random noise into the trained image generator to obtain a second target image, wherein the second target image has a content corresponding to the content feature of the source image and the second target image has a style corresponding to the target style feature, or the second target image has a content corresponding to the content feature of the source image and the random noise and the second target image has a style corresponding to the target style feature, or the second target image has a content corresponding to the content feature of the source image and the second target image has a style corresponding to the target style feature and the random noise, or the second target image has a content corresponding to the content feature of the source image and the random noise and the second target image has a style corresponding to the target style feature and the random noise, or the second target image has a content corresponding to the content feature of the source image and the second target image has a style corresponding to the style noise, or the second target image has a content corresponding to the content feature of the source image and the random noise and the second target image has a style corresponding to the random noise.

### Claim 11

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.

### Claim 12 (depends on 11)

The electronic device of claim 11, wherein the processor is further configured to execute the processor executable instruction to cause the electronic device to fuse the overall image style feature into the object style feature to obtain the target style feature.

### Claim 13 (depends on 11)

The electronic device of claim 11, wherein the processor is further configured to execute the processor executable instruction to cause the electronic device to:
extract a background style feature of a background image block in the second image, wherein the background image block is an image block other than the local image block in the second image; and
determine the target style feature according to the overall image style feature, the object style feature, and the background style feature.

### Claim 14 (depends on 13)

The electronic device of claim 13, wherein the processor is further configured to execute the processor executable instruction to cause the electronic device to fuse the overall image style feature into the background style feature, and fuse the background style feature into which the overall image style feature has been fused into the object style feature to obtain the target style feature.

### Claim 15 (depends on 11)

The electronic device of claim 11, wherein the processor is further configured to execute the processor executable instruction to cause the electronic device to:
generate, via an image generator, an image according to the content feature and the target style feature;
discriminate, via an image discriminator, a realness of the generated image;
train the image generator on the basis of a confrontation between a discrimination result of the image discriminator and the image generated by the image generator; and
generate, via the trained image generator, the third image.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein the processor is further configured to execute the processor executable instruction to cause the electronic device to:
extract a content feature of a source image; and
input the content feature of the source image and the target style feature into the trained image generator to obtain a first target image, wherein the first target image has a content corresponding to the content feature of the source image and a style corresponding to the target style feature.

### Claim 17 (depends on 11)

The electronic device of claim 11, wherein the processor is further configured to execute the processor executable instruction to cause the electronic device to:
extract a plurality of local image blocks from the second image when the second image comprises a plurality of objects, wherein each local image block comprises one object, and
extract an object style feature of each of the local image blocks respectively.

### Claim 18 (depends on 17)

The electronic device of claim 17, wherein the processor is further configured to execute the processor executable instruction to cause the electronic device to, when the plurality of objects belong to a plurality of categories, fuse object style features extracted from a plurality of local image blocks including objects with the same category.

### Claim 19 (depends on 15)

The electronic device of claim 15, wherein the processor is further configured to execute the processor executable instruction to cause the electronic device to:
extract a content feature of a source image; and
input the content feature of the source image, the target style feature, and random noise into the trained image generator to obtain a second target image, wherein the second target image has a content corresponding to the content feature of the source image and the second target image has a style corresponding to the target style feature, or the second target image has a content corresponding to the content feature of the source image and the random noise and the second target image has a style corresponding to the target style feature, or the second target image has a content corresponding to the content feature of the source image and the second target image has a style corresponding to the target style feature and the random noise, or the second target image has a content corresponding to the content feature of the source image and the random noise and the second target image has a style corresponding to the target style feature and the random noise, or the second target image has a content corresponding to the content feature of the source image and the second target image has a style corresponding to the style noise, or the second target image has a content corresponding to the content feature of the source image and the random noise and the second target image has a style corresponding to the random noise.

### Claim 20

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.
