# US 2022/0292805 A1 · Image processing method and apparatus, and device, storage medium, and image segmentation method

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

- Number: US 2022/0292805 A1
- Document ID: US20220292805A1
- Status: Published application
- Kind: A1
- Application number: 17/754,158
- Filed: 2021-04-15
- Published: 2022-09-15
- Earliest claimed: 2020-05-21
- Assignees: Boe Technology Group Co., Ltd.; Peking University
- Applicants: Boe Technology Group Co., Ltd.; Peking University
- Inventors: Jie FENG; Yadong MU; Shuai WANG; Guiyu TIAN; Yiming BAI; Xiangye WEI; Ge OU; Qiong WU
- Web page: https://patentgrep.com/patent/US20220292805A1

## CPC

- G06V 10/26: Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V 20/70: Labelling scene content, e.g. deriving syntactic or semantic representations
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/09: Supervised learning
- 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/764: using classification, e.g. of video objects
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- G06V 10/84: using probabilistic graphical models from image or video features, e.g. Markov models or Bayesian networks
- G06V 20/41: {Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items (segmenting video sequences G06V20/49)}
- G06V 30/19147: {Obtaining sets of training patterns; Bootstrap methods, e.g. bagging or boosting}
- G06V 30/274: {Syntactic or semantic context, e.g. balancing}
- G06N 3/048: Activation functions
- G06V 2201/10: Recognition assisted with metadata
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An image processing method and apparatus, and a device and a computer-readable storage medium. The method comprises: acquiring an image data set, wherein the image data set includes an image and accompanying text related to an unknown category in the image (S101); and generating a probability and/or distribution of the unknown category by means of an unknown category acquisition model (S102); wherein the probability and/or distribution of the unknown category comprises the probability of each pixel in the image being from the unknown category, the probability of the unknown category being present in the image, and a partitioning probability after the image is subdivided into a plurality of areas. By means of the method, a large amount of human labor costs and time can be saved on.

## Claims

### Claim 1

An image processing method, comprising:
obtaining an image dataset, the image dataset comprising an image and an accompanying text related to an unseen class in the image; and
generating, based on the image dataset, a probability and/or distribution of the unseen class using an unseen class obtaining model, the probability and/or distribution of the unseen class comprising a probability that each pixel in the image is from the unseen class, a probability that the unseen class is present in the image, and a regional probability after the image is subdivided into a plurality of regions.

### Claim 2 (depends on 1)

The image processing method of claim 1, wherein,
the unseen class obtaining model comprises a local branch, a semi-global branch, and a global branch,
wherein the local branch is configured to generate the probability that each pixel in the image is from the unseen class based on annotation information of a seen class, the global branch is configured to generate the probability that the unseen class is present in the image based on the accompanying text, the semi-global branch is configured to generate the regional probability after the image is subdivided into the plurality of regions based on the annotation information and the accompanying text.

### Claim 3 (depends on 2)

The image processing method of claim 2, wherein,
the global branch uses a text semantic extraction model to generate the probability that the unseen class is present in the image based on the accompanying text.

### Claim 4 (depends on 3)

The image processing method of claim 3, wherein the text semantic extraction model is a bidirectional encoder representation from transformer (BERT) model, wherein generating the probability that the unseen class is present in the image using the BERT model is represented as:
sx,c=sigmoid(Ho(ϕ(caption(x);[EOS];description(c))))
wherein Ho(·) represents a freely defined function whose output is the probability that the unseen class is present in the image without being processed by a sigmoid function, ϕ represents the BERT model, x represents an input image of the BERT model, caption(x) represents the accompanying text of the image, EOS is an end of sentence in natural language processing, c represents the unseen class, and description(c) represents a keyword or text description of the unseen class c.

### Claim 5 (depends on 2)

The image processing method of claim 2, wherein,
the local branch uses a first model to generate the probability that each pixel in the image is from the unseen class, and wherein the first model is obtained through training with the annotation information.

### Claim 6 (depends on 5)

The image processing method of claim 5, wherein the annotation information comprises coordinates of a pixel of a seen class, and the first model is trained by:
selecting a pixel of one seen class of a plurality of seen classes in one image in the image dataset as one verification data in a verification set;
selecting a pixel of another class of the plurality of seen classes as one training data in a training set; and
training the first model based on coordinates of pixels of seen classes in the verification set and the training set.

### Claim 7 (depends on 2)

The image processing method of claim 2, wherein the semi-global branch generates the regional probability using a second model, which is obtained through training with the accompanying text and the annotation information.

### Claim 8 (depends on 7)

The image processing method of claim 7, wherein the regional probability comprises a first probability distribution that each pixel in each image subdivision region of a plurality of image subdivision regions generated after the image is subdivided into the plurality of regions is from the unseen class and a second probability distribution that the unseen class is present in each image subdivision region.

### Claim 9 (depends on 8)

The image processing method of claim 8, wherein the second model is trained by:
subdividing the image into the plurality of regions in a vertical direction or a horizontal direction;
generating a first training probability distribution that the unseen class is present in each image subdivision region based on the accompanying text;
generating a second training probability distribution that each pixel in each image subdivision region of the plurality of image subdivision regions is from the unseen class based on the annotation information;
constructing a loss function according to the first training probability distribution and the second training probability distribution; and
training the second model with the loss function.

### Claim 10 (depends on 9)

The image processing method of claim 9, wherein the constructing the loss function according to the first training probability distribution and the second training probability distribution comprises:
constructing loss function image processing based on a Euclidean distance between the first training probability distribution and the second training probability distribution.

### Claim 11 (depends on 1)

The image processing method of claim 1, wherein the accompanying text comprises a user comment and/or an image caption.

### Claim 12

(canceled)

### Claim 13

An image processing apparatus, comprising:
a process; and
a memory having computer-readable program instructions stored therein,
wherein when the computer-readable program instructions are executed by the processor, an image processing method is performed, and the method comprises:
obtaining an image dataset, the image dataset comprising an image and an accompanying text related to an unseen class in the image; and
generating, based on the image dataset, a probability and/or distribution of the unseen class using an unseen class obtaining model, the probability and/or distribution of the unseen class comprising a probability that each pixel in the image is from the unseen class, a probability that the unseen class is present in the image, and a regional probability after the image is subdivided into a plurality of regions.

### Claim 14 (depends on 13)

The image processing apparatus of claim 13, wherein,
the unseen class obtaining model comprises a local branch, a semi-global branch, and a global branch,
wherein the local branch is configured to generate the probability that each pixel in the image is from the unseen class based on annotation information of a seen class, the global branch is configured to generate the probability that the unseen class is present in the image based on the accompanying text, the semi-global branch is configured to generate the regional probability after the image is subdivided into the plurality of regions based on the annotation information and the accompanying text.

### Claim 15 (depends on 14)

The image processing apparatus of claim 14, wherein,
the global branch uses a text semantic extraction model to generate the probability that the unseen class is present in the image based on the accompanying text.

### Claim 16 (depends on 14)

The image processing apparatus of claim 14, wherein,
the local branch uses a first model to generate the probability that each pixel in the image is from the unseen class, and wherein the first model is obtained through training with the annotation information.

### Claim 17 (depends on 16)

The image processing apparatus of claim 16, wherein the annotation information comprises coordinates of a pixel of a seen class, and the first model is trained by:
selecting a pixel of one seen class of a plurality of seen classes in one image in the image dataset as one verification data in a verification set;
selecting a pixel of another class of the plurality of seen classes as one training data in a training set; and
training the first model based on coordinates of pixels of seen classes in the verification set and the training set.

### Claim 18 (depends on 14)

The image processing apparatus of claim 14, wherein,
the semi-global branch generates the regional probability using a second model, which is obtained through training with the accompanying text and the annotation information.

### Claim 19

(canceled)

### Claim 20 (depends on 1)

A computer-readable storage medium for storing a computer-readable program that causes a computer to execute the image processing method of claim 1.

### Claim 21 (depends on 18)

The image processing apparatus of claim 18, wherein the regional probability comprises a first probability distribution that each pixel in each image subdivision region of a plurality of image subdivision regions generated after the image is subdivided into the plurality of regions is from the unseen class and a second probability distribution that the unseen class is present in each image subdivision region.

### Claim 22 (depends on 21)

The image processing apparatus of claim 21, wherein the second model is trained by:
subdividing the image into the plurality of regions in a vertical direction or a horizontal direction;
generating a first training probability distribution that the unseen class is present in each image subdivision region based on the accompanying text;
generating a second training probability distribution that each pixel in each image subdivision region of the plurality of image subdivision regions is from the unseen class based on the annotation information;
constructing a loss function according to the first training probability distribution and the second training probability distribution; and
training the second model with the loss function.
