# US 2023/0058876 A1 · Image processing method and apparatus based on image processing model, electronic device, storage medium, 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 2023/0058876 A1
- Document ID: US20230058876A1
- Status: Published application
- Kind: A1
- Application number: 17/980,439
- Filed: 2022-11-03
- Published: 2023-02-23
- Earliest claimed: 2021-03-18
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Jun ZHANG; Kuan TIAN; Han XIAO
- Web page: https://patentgrep.com/patent/US20230058876A1

## CPC

- G06T 5/94: based on local image properties, e.g. for local contrast enhancement
- G06T 7/0014: {using an image reference approach}
- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/60: using machine learning, e.g. neural networks
- G06T 5/70: Denoising; Smoothing
- G06T 7/0012: {Biomedical image inspection}
- G06T 2207/10056: Microscopic image
- G06T 2207/10068: Endoscopic image
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30024: Cell structures in vitro; Tissue sections in vitro
- G06T 2207/30096: Tumor; Lesion
- G06T 2207/30168: Image quality inspection
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image processing method includes: acquiring a standard image matched with an image processing model; determining light field variation parameters of a use environment of the image processing model based on the standard image; determining an image training sample set based on the light field variation parameters, the image training sample set including images of different light field backgrounds; training a correction network of the image processing model through the image training sample set to obtain a model updating parameter adapted to the correction network, and generating a trained image processing model based on the model updating parameter; acquiring a single image in the use environment, and performing prediction processing on the single image through the trained image processing model to obtain light field information corresponding to the single image; and correcting a light field of the single image based on the light field information.

## Claims

### Claim 1

An image processing method based on an image processing model, applied to an electronic device, the method comprising:
acquiring a standard image matched with an image processing model;
determining light field variation parameters corresponding to a use environment of the image processing model based on the standard image;
determining an image training sample set matched with the use environment of the image processing model based on the light field variation parameters, the image training sample set comprising images of different light field backgrounds;
training a correction network of the image processing model through the image training sample set to obtain a model updating parameter adapted to the correction network, and generating a trained image processing model based on the model updating parameter;
acquiring a single image in the use environment, and performing prediction processing on the single image through the trained image processing model to obtain light field information corresponding to the single image; and
correcting a light field of the single image based on the light field information.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining light field variation parameters corresponding to the use environment comprises:
determining a real image matched with the standard image;
determining a mapping relationship between pixels of the standard image and pixels of the real image based on the standard image and the real image; and
determining the light field variation parameters corresponding to the use environment of the image processing model based on the mapping relationship.

### Claim 3 (depends on 1)

The method according to claim 1, wherein determining the image training sample set matched with the use environment comprises:
determining a light field brightness variation range matched with the use environment of the image processing model;
performing simulation processing on the standard image based on the light field brightness variation range and the light field variation parameters to obtain a simulated image and a light field image matched with the simulated image; and
taking a set of the simulated image and the light field image matched with the simulated image as an image training sample set matched with the use environment of the image processing model.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the method further comprises:
determining a target smoothness parameter based on the use environment of the image processing model; and
performing smoothness adjustment processing on the simulated image according to the target smoothness parameter to obtain an adjusted simulated image, a smoothness of the adjusted simulated image being adapted to the use environment of the image processing model.

### Claim 5 (depends on 1)

The method according to claim 1, wherein training the correction network of the image processing model comprises:
determining initial parameters of an encoder block and a decoder block of the correction network in the image processing model;
performing back-propagation processing based on the initial parameters and the image training sample set to obtain updated parameters of the encoder block and the decoder block of the correction network; and
iteratively updating, based on the updated parameters of the encoder block and the decoder block of the correction network, parameters of the encoder block and the decoder block of the correction network with the image training sample set, to obtain the model updating parameter adapted to the correction network.

### Claim 6 (depends on 5)

The method according to claim 5, wherein performing back-propagation processing comprises:
substituting a training sample from the image training sample set into a loss function corresponding to the encoder block and the decoder block of the correction network; and
performing back-propagation processing based on the loss function to obtain the updated parameters corresponding to the encoder block and the decoder block of the correction network.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
performing noise reduction processing on the image through an image preprocessing network of the image processing model to obtain a noise-reduced image;
performing down-sampling processing on the noise-reduced image through a convolutional layer and a maximum value pooling layer in the image preprocessing network to obtain a down-sampled image;
performing normalization processing on the down-sampled image through a fully connected layer of the image preprocessing network to obtain a normalized image; and
performing deep decomposition processing on the normalized image through the image preprocessing network to obtain a light field feature vector matched with the image.

### Claim 8 (depends on 7)

The method according to claim 7, wherein performing noise reduction processing on the image comprises:
determining, based on a position of a target region corresponding to the image, a dynamic noise threshold matched with the use environment of the image processing model; and
performing noise reduction processing on the image based on the dynamic noise threshold to obtain an image matched with the dynamic noise threshold.

### Claim 9 (depends on 7)

The method according to claim 7, wherein performing noise reduction processing on the image through an image preprocessing network of the image processing model comprises:
determining, based on an image type of the imaging image, a fixed noise threshold matched with the use environment of the image processing model; and
performing noise reduction processing on the image based on the fixed noise threshold to obtain an image matched with the fixed noise threshold.

### Claim 10 (depends on 1)

The method according to claim 1, wherein acquiring the single image in the use environment comprises:
in accordance with a determination that the use environment of the image processing model includes capturing an image with a microscope, setting an original image collected by the microscope as the single image.

### Claim 11 (depends on 1)

The method according to claim 1, further comprising:
transmitting a model identifier of the trained image processing model, the single image and the single image subjected to light field correction to a block chain network;
filling a node of the block chain network with the model identifier of the trained image processing model, the single image and the single image subjected to optical field correction into a new block; and in accordance with a determination that an agreement is reached for the new block, appending the new block to a tail part of the block chain.

### Claim 12

An electronic device, comprising:
one or more processors; and
memory storing one or more programs, the one or more programs comprising instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
acquiring a standard image matched with an image processing model;
determining light field variation parameters corresponding to a use environment of the image processing model based on the standard image;
determining an image training sample set matched with the use environment of the image processing model based on the light field variation parameters, the image training sample set comprising images of different light field backgrounds;
training a correction network of the image processing model through the image training sample set to obtain a model updating parameter adapted to the correction network, and generating a trained image processing model based on the model updating parameter;
acquiring a single image in the use environment, and performing prediction processing on the single image through the trained image processing model to obtain light field information corresponding to the single image; and
correcting a light field of the single image based on the light field information.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein determining light field variation parameters corresponding to the use environment comprises:
determining a real image matched with the standard image;
determining a mapping relationship between pixels of the standard image and pixels of the real image based on the standard image and the real image; and
determining the light field variation parameters corresponding to the use environment of the image processing model based on the mapping relationship.

### Claim 14 (depends on 12)

The electronic device according to claim 12, wherein determining the image training sample set matched with the use environment comprises:
determining a light field brightness variation range matched with the use environment of the image processing model;
performing simulation processing on the standard image based on the light field brightness variation range and the light field variation parameters to obtain a simulated image and a light field image matched with the simulated image; and
taking a set of the simulated image and the light field image matched with the simulated image as an imaging image training sample set matched with the use environment of the image processing model.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein the instructions cause the one or more processors to perform operations that further comprise:
determining a target smoothness parameter based on the use environment of the image processing model; and
performing smoothness adjustment processing on the simulated image according to the target smoothness parameter to obtain an adjusted simulated image, a smoothness of the adjusted simulated image being adapted to the use environment of the image processing model.

### Claim 16 (depends on 12)

The electronic device according to claim 12, wherein training the correction network of the image processing model comprises:
determining initial parameters of an encoder block and a decoder block of the correction network in the image processing model;
performing back-propagation processing based on the initial parameters and the image training sample set to obtain updated parameters of the encoder block and the decoder block of the correction network; and
iteratively updating, based on the updated parameters of the encoder block and the decoder block of the correction network, parameters of the encoder block and the decoder block of the correction network with the image training sample set, to obtain the model updating parameter adapted to the correction network.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein performing back-propagation processing comprises:
substituting a training sample from the image training sample set into a loss function corresponding to the encoder block and the decoder block of the correction network; and
performing back-propagation processing based on the loss function to obtain the updated parameters corresponding to the encoder block and the decoder block of the correction network.

### Claim 18

A non-transitory computer-readable storage medium, storing a computer program, the computer program, when executed by one or more processors of an electronic device, cause the one or more processors to perform operations comprising:
acquiring a standard image matched with an image processing model;
determining light field variation parameters corresponding to a use environment of the image processing model based on the standard image;
determining an image training sample set matched with the use environment of the image processing model based on the light field variation parameters, the image training sample set comprising images of different light field backgrounds;
training a correction network of the image processing model through the image training sample set to obtain a model updating parameter adapted to the correction network, and generating a trained image processing model based on the model updating parameter;
acquiring a single image in the use environment, and performing prediction processing on the single image through the trained image processing model to obtain light field information corresponding to the single image; and
correcting a light field of the single image based on the light field information

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein determining light field variation parameters corresponding to the use environment comprises:
determining a real image matched with the standard image;
determining a mapping relationship between pixels of the standard image and pixels of the real image based on the standard image and the real image; and
determining the light field variation parameters corresponding to the use environment of the image processing model based on the mapping relationship.

### Claim 20 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein determining the image training sample set matched with the use environment comprises:
determining a light field brightness variation range matched with the use environment of the image processing model;
performing simulation processing on the standard image based on the light field brightness variation range and the light field variation parameters to obtain a simulated image and a light field image matched with the simulated image; and
taking a set of the simulated image and the light field image matched with the simulated image as an imaging image training sample set matched with the use environment of the image processing model.
