# US 2024/0202983 A1 · Computer-implemented method, apparatus, and computer-program product

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0202983 A1
- Document ID: US20240202983A1
- Status: Published application
- Kind: A1
- Application number: 17/907,012
- Filed: 2021-12-28
- Published: 2024-06-20
- Earliest claimed: 2021-12-28
- Assignees: Boe Technology Group Co., Ltd.
- Applicants: BOE Technology Group Co., Ltd.
- Inventors: Dan Zhu; Guannan Chen; Hanwen Liu
- Web page: https://patentgrep.com/patent/US20240202983A1

## CPC

- G06T 3/4046: using neural networks
- G06T 11/00: Two-dimensional [2D] image generation
- G06T 3/4053: based on super-resolution, i.e. the output image resolution being higher than the sensor resolution
- G06T 5/20: using local operators
- G06T 7/73: using feature-based methods
- G06V 10/751: {Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching}
- G06V 10/7715: {Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods}
- G06V 10/776: Validation; Performance evaluation
- G06V 10/82: using neural networks
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30201: Face
- G06T 2210/44: Morphing
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A computer-implemented method is provided. The computer-implemented method includes inputting a low-resolution image and a plurality of high-resolution images into a feature extractor, the low-resolution image and the plurality of high-resolution images including images of a target object; obtaining, by the feature extractor, feature maps of the low-resolution image and the plurality of high-resolution images; comparing similarities between the feature maps of the low-resolution image and the plurality of high-resolution images; obtaining selected feature maps of one or more selected high-resolution images of the plurality of high-resolution images most similar to the low-resolution image; inputting the selected feature maps into a generator to output a repair image; enhancing the low-resolution image using a pre-processing image enhancing process to generate an enhanced image; and morphing the repair image with the enhanced image.

## Claims

### Claim 1

A computer-implemented method, comprising:
inputting a low-resolution image and a plurality of high-resolution images into a feature extractor, the low-resolution image and the plurality of high-resolution images comprising images of a target object;
obtaining, by the feature extractor, feature maps of the low-resolution image and the plurality of high-resolution images;
comparing similarities between the feature maps of the low-resolution image and the plurality of high-resolution images;
obtaining selected feature maps of one or more selected high-resolution images of the plurality of high-resolution images most similar to the low-resolution image;
inputting the selected feature maps into a generator to output a repair image;
enhancing the low-resolution image using a pre-processing image enhancing process to generate an enhanced image; and
morphing the repair image with the enhanced image.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the low-resolution image is a facial image, and the target object is a face of a subject.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the low-resolution image and the plurality of high-resolution images are facial images of frames of images in a video.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising establishing a first database comprising the plurality of high-resolution images and a second database comprising a plurality of image parameters associated with the plurality of high-resolution images by:
receiving a plurality of frames of image of a video;
determining presence or absence of at least one target object in a respective frame of image of the plurality of frames of image, a number of target object in the respective frame of image, and a position of target object in the respective frame of image; and
determining a resolution of a target image of the target object, when present, in the respective frame of image.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, further comprising storing a sequential number of the respective frame of image, the presence or absence of at least one target object in the respective frame of image, the number of target object in the respective frame of image, the position of target object in the respective frame of image, and a target identifier in the second database.

### Claim 6 (depends on 4)

The computer-implemented method of claim 4, further comprising performing target recognition on the respective frame of image in which at least one target object is present; and
storing one or more target images having a resolution greater than a threshold resolution and a target identifier associated with the target object in the first database, the plurality of high-resolution images comprising the one or more target images.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising calculating similarity scores among the feature maps of the low-resolution image and the plurality of high-resolution images;
wherein the one or more selected high-resolution images most similar to the low-resolution image are selected based on their differences in similarity scores with respect to the low-resolution image being below a threshold value.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein the feature extractor comprises:
a first concatenation layer configured to concatenate the low-resolution image and the plurality of high-resolution images;
a plurality of convolutional layers connected in series; and
one or more fully connected layer;
wherein the feature extractor is configured to output similarity scores of the low-resolution image and similarity scores of the plurality of high-resolution images from a last one of the one or more fully connected layer, and configured to output feature maps of the low-resolution image and the plurality of high-resolution images from an intermediate convolutional layer of the plurality of convolutional layers.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein inputting the selected feature maps into a generator to output a repair image comprises:
permuting and combining the selected feature maps of the one or more selected high-resolution images to obtain a fused feature map;
extracting features from the fused feature map; and
reconfiguring the features from the fused feature map into the repair image.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein the generator comprises:
a second concatenation layer configured to permute and combine the selected feature maps of the one or more selected high-resolution images to obtain a fused feature map;
a resize layer connected to the second concatenation layer, and configured to resample the fused feature map into a fixed size;
a plurality of encoding modules arranged in series;
a plurality of decoding modules arranged in series; and
at least one concatenation between a respective one of the plurality of encoding modules and a respective one of the plurality of decoding modules;
wherein through the at least one concatenation between a respective one of the plurality of encoding modules and a respective one of the plurality of decoding modules, an output from the respective one of the plurality of encoding modules and an output from a decoding module at an immediate previous stage to the respective one of the plurality of decoding modules are concatenated as input to the respective one of the plurality of decoding modules.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein a difference between a number of the plurality of decoding modules and a number of the plurality of encoding modules is correlated to a number of times image resolution has increased from the low-resolution image to the repair image.

### Claim 12 (depends on 10)

The computer-implemented method of claim 10, wherein a respective one of the plurality of encoding modules comprises a convolutional layer, a rectified linear unit connected to the convolutional layer, and a plurality of residual blocks arranged in series; and
a respective one of the plurality of decoding modules comprises a plurality of residual blocks arranged in series, a deconvolutional layer or a pixel shuffle layer, a rectified linear unit connected to the deconvolutional layer or the pixel shuffle layer, and a convolutional layer connected to the rectified linear unit.

### Claim 13 (depends on 1)

The computer-implemented method of claim 1, wherein morphing the repair image with the enhanced image comprises:
constructing a mask having a target area corresponding to a respective target image and a background area outside the target area; and
performing a filtering process on the mask to generate a filtered mask having a target portion corresponding to the respective target image and a background portion outside the target portion.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, wherein morphing the repair image with the enhanced image comprises generating a morphed image according to GMtarget*Itarget+(1−GMtarget)*Isr;
wherein GMtarget stands for the target portion of the filtered mask;
Itarget stands for the repair image; and
Isr stands for the enhanced image generated by enhancing the low-resolution image using a pre-processing image enhancing process.

### Claim 15 (depends on 1)

The computer-implemented method of claim 1, further comprising using a feedback loop to train the generator based on at least one of a generator loss function and a discriminator loss function;
wherein the generator is configured to output the repair image to a loss function calculator, and to a discriminator configured to determine whether the repair image is real or fake;
the loss function calculator is configured to compute a generator loss function and a discriminator loss function based on the repair image;
the feedback loop is configured to mutually train the generator and the discriminator, based on the generator loss function and the discriminator loss function; and
the feedback loop comprises a first feedback loop for optimizing parameters of the generator and a second feedback loop for optimizing parameters of the discriminator.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, wherein the generator loss function is configured to calculate one or more of a content loss, a first generative adversarial network (GAN) loss, a weighted Ll loss, and an eye area loss;
wherein the content loss is expressed as:
L
content
=
1
2
⁢
C
⁢
1
⁢
∑
ij
⁢
(
F
ij
l
-
P
ij
l
)
2
,
wherein Lcontent stands for the content loss, C1 is a constant for standardizing results; Pl stands for a feature map output from a l-th layer of the loss function calculator with the low-resolution image as an input; and Fl stands for a feature map output from the l-th layer of the loss function calculator with the repair image as an input;
wherein the first GAN loss is expressed as LG=−Ex˜Pdata(x)[logD(x)]−Ez˜Pz(z)[1−LogD(G(z))];
wherein LG stands for the first GAN loss; z stands for an input of the generator; Pz stands for an input set of the generator; x stands for a true sample, Pdata stands for a set of true samples; D(x) stands for a result obtained after the true sample is input to the discriminator; G(z) stands for an output result of the generator; Ex˜Pdata(x) stands for that x is sampled from the true sample set, and subsequent operations are performed for any x; and Ez˜Pz(z) stands for that z is sampled from the input set Pz, and subsequent operations are performed for any z;
wherein the weighted Ll loss is expressed as L1=w1*(abs(Ri−Rg))+w2* (abs(Gi−Gg))+w3*(abs(Bi−Bg));
wherein Ri, Gi, and Bi stands for R, G, and B channels of the repair image from the generator, respectively, and Rg, Gg, and Bg stands for R, G, and B channels of a reference image; w1, w2, and w3 stands for weights, respectively;
wherein the eye area loss is expressed as Leye=Lcontent(Oeye, Geye)+Lcontent(Oeye[:,0: 0.5w], Oeye[:,0.5w: w])+Lcontent(Geye[:,0: 0.5w], Geye[:,0.5w: w]);
wherein Oeye stands for a total eye area of the repair image; Geye stands for a total eye area of the reference image; and Lcontent(Oeye, Geye) stands for a content loss between the reference image and the repair image; Oeye[:,0: 0.5w] stands for a left half of the total eye area of the repair image and Oeye[:, 0.5w: w] stands for a right half of the total eye area of the repair image, provided a value of a width of the total eye area of the repair image increases from 0 on the left to w on the right; Geye[:,0: 0.5w] stands for a left half of the total eye area of the reference image and Geye[:,0.5w: w]) stands for a right half of the total eye area of the reference image, provided a value of a width of the total eye area of the reference image increases from 0 on the left to w on the right; Lcontent(Oeye[:,0: 0.5w], Oeye[:,0.5w: w]) stands for a content loss between the left half and the right half of the total eye area of the repair image; and Lcontent(Geye[:,0: 0.5w], Geye[:, 0.5w: w]) stands for a content loss between the left half and the right half of the total eye area of the reference image.

### Claim 17 (depends on 15)

The computer-implemented method of claim 15, wherein the discriminator loss function is configured to calculate a second adversarial network (GAN) loss;
wherein the second GAN loss is expressed as LD=−Ex˜Pdata(x)[logD(x)]−Ez˜Pz(z)[1−LogD(G(z))];
wherein LD stands for the second GAN loss; z stands for an input of the generator; Pz stands for an input set of the generator; x stands for a true sample, Pdata stands for a set of true samples; D(x) stands for a result obtained after the true sample is input to the discriminator; G(z) stands for an output result of the generator; Ex˜Pdata(x) stands for that x is sampled from the true sample set, and subsequent operations are performed for any x; and Ez˜Pz(z) stands for that z is sampled from the input set Pz, and subsequent operations are performed for any z.

### Claim 18 (depends on 1)

The computer-implemented method of claim 1, further comprising pre-training the generator using a feedback loop based on at least one of a generator loss function and a discriminator loss function;
wherein the generator is pre-trained using a plurality of pairs of high-resolution reference images and low-resolution reference images;
a plurality of low-resolution reference images in the plurality of pairs are generated using the plurality of high-resolution reference images in the plurality of pairs by:
down-sampling the plurality of high-resolution reference images to generate a plurality of down-sampled reference images;
performing Gaussian blurring on the plurality of down-sampled reference images to generate a plurality of down-sampled and blurred reference images; and
applying compression noise on the plurality of down-sampled and blurred reference images, thereby generating the plurality of low-resolution reference images.

### Claim 19

An apparatus, comprising:
one or more memory; and
one or more processors;
wherein the one or more memory and the one or more processors are connected with each other; and
the one or more memory stores computer-executable instructions for controlling the one or more processors to:
input a low-resolution image and a plurality of high-resolution images into a feature extractor, the low-resolution image and the plurality of high-resolution images comprising images of a target object;
obtain, by the feature extractor, feature maps of the low-resolution image and the plurality of high-resolution images;
compare similarities between the feature maps of the low-resolution image and the plurality of high-resolution images;
obtain selected feature maps of one or more selected high-resolution images of the plurality of high-resolution images most similar to the low-resolution image;
input the selected feature maps into a generator to output a repair image;
enhance the low-resolution image using a pre-processing image enhancing process to generate an enhanced image; and
morph the repair image with the enhanced image.

### Claim 20

A computer-program product comprising a non-transitory tangible computer-readable medium having computer-readable instructions thereon, the computer-readable instructions being executable by a processor to cause the processor to perform:
inputting a low-resolution image and a plurality of high-resolution images into a feature extractor, the low-resolution image and the plurality of high-resolution images comprising images of a target object;
obtaining, by the feature extractor, feature maps of the low-resolution image and the plurality of high-resolution images;
comparing similarities between the feature maps of the low-resolution image and the plurality of high-resolution images;
obtaining selected feature maps of one or more selected high-resolution images of the plurality of high-resolution images most similar to the low-resolution image;
inputting the selected feature maps into a generator to output a repair image;
enhancing the low-resolution image using a pre-processing image enhancing process to generate an enhanced image; and
morphing the repair image with the enhanced image.
