# US 2022/0292133 A1 · Image retrieving method and apparatus, storage media and electronic device

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

- Number: US 2022/0292133 A1
- Document ID: US20220292133A1
- Status: Published application
- Kind: A1
- Application number: 17/829,958
- Filed: 2022-06-01
- Published: 2022-09-15
- Earliest claimed: 2019-12-10
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Han LI; Yi JIANG; Yaqian LI
- Web page: https://patentgrep.com/patent/US20220292133A1

## CPC

- G06F 16/5866: {using information manually generated, e.g. tags, keywords, comments, manually generated location and time information}
- G06F 16/532: Query formulation, e.g. graphical querying
- G06F 16/55: Clustering; Classification
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An image retrieval method and apparatus, a storage medium, and an electronic device. The image retrieval method comprises: receiving an input request for retrieving images; identifying whether a retrieve target carried by the request is a retrieve word or a retrieve sentence; in response to the retrieve target being the retrieve word, retrieving images with at least one of an image category matching the retrieve word and an image object matching the retrieve word; and in response to the retrieve target being the retrieve sentence, retrieving images with image semantics matching the retrieve sentence.

## Claims

### Claim 1

An image retrieving method, applied to an electronic device and comprising:
receiving an input request for retrieving images;
identifying whether a retrieve target carried by the request is a retrieve word or a retrieve sentence;
in response to the retrieve target being the retrieve word, retrieving images with at least one of an image category matching the retrieve word and an image object matching the retrieve word; and
in response to the retrieve target being the retrieve sentence, retrieving images with image semantics matching the retrieve sentence.

### Claim 2 (depends on 1)

The image retrieving method as claimed in claim 1, wherein the retrieving images with image semantics matching the retrieve sentence, comprises:
sending the retrieve sentence to a semantic matching server, instructing the semantic matching server to match target-image semantics having similarity degrees to semantics of the retrieve sentence not less than a first predetermined similarity degree; and
obtaining image identifiers corresponding to the target-image semantics from the semantic matching server and retrieving the images corresponding to the image identifiers.

### Claim 3 (depends on 1)

The image retrieving method as claimed in claim 1, further comprising:
performing a segmenting process for the retrieve sentence, to obtain a plurality of segment words;
obtaining first similar words having similarity degrees to semantics of the plurality of segment words not less than a second predetermined similarity degree;
replacing the plurality of segment words of the retrieve sentence by the first similar words, to obtain extended retrieve sentences; and
recommending the extended retrieve sentences.

### Claim 4 (depends on 3)

The image retrieving method as claimed in claim 3, wherein, after the retrieving images with image semantics matching the retrieve sentence, the method further comprises:
showing the retrieved images; and
wherein the recommending the extended retrieve sentences comprises:
recommending the extended retrieve sentences while showing the retrieved images.

### Claim 5 (depends on 1)

The image retrieving method as claimed in claim 1, further comprising:
obtaining second similarity words having similarity degrees to semantic of the retrieve word not less than a third predetermined similarity degree; and
regarding the second similarity words as extended retrieve words, and recommending the extended retrieve words.

### Claim 6 (depends on 1)

The image retrieving method as claimed in claim 1, further comprising:
acquiring to-be-labeled images which need to be labeled during an image-labeling period;
classifying the to-be-labeled images based on an image classification model, and obtaining image categories of the to-be-labeled images;
performing object recognition for the to-be-labeled images based on an object recognition model, and obtaining objects included in the to-be-labeled images; and
performing image-semantics recognition for the to-be-labeled images based on an image-semantics recognition model, and obtaining image semantics of the to-be-labeled images.

### Claim 7 (depends on 6)

The image retrieving method as claimed in claim 6, further comprising:
labelling periodically the images based on the image classification model, the object recognition model and the image-semantic recognition model.

### Claim 8 (depends on 6)

The image retrieving method as claimed in claim 6, wherein, the performing image-semantics recognition for the to-be-labeled images based on an image-semantics recognition model, and obtaining image semantics of the to-be-labeled images, comprising:
sending the to-be-labeled images to an image-semantics recognition server, instructing the image-semantics recognition server to invoke an image-semantics recognition model for performing image-semantics recognition for the to-be-labeled images, and obtaining image semantics of the to-be-labeled images; and
obtaining the image semantics of the to-be-labeled images from the image-semantics recognition server.

### Claim 9 (depends on 6)

The image retrieving method as claimed in claim 6, wherein the acquiring to-be-labeled images which need to be labeled, comprises:
regarding new-added images during the image-labeling period as the to-be-labeled images.

### Claim 10 (depends on 1)

The image retrieving method as claimed in claim 1, wherein identifying whether a retrieve target carried by the request is a retrieve word or a retrieve sentence, comprises:
comparing the retrieve target with common words pre-stored in a thesaurus, determining that the retrieve target is a retrieve word in response to the retrieve target being one of the common words pre-stored in the thesaurus, and determining that the retrieve target is a retrieve sentence in response to the retrieve target not being one of the common words pre-stored in the thesaurus.

### Claim 11

A non-transitory storage medium having a computer program stored thereon, wherein when the computer program is loaded by a processor, the processor is caused to execute:
receiving an input request for retrieving images;
identifying whether a retrieve target carried by the request is a retrieve word or a retrieve sentence;
in response to the retrieve target being the retrieve word, retrieving images with at least one of an image category matching the retrieve word and an image object matching the retrieve word; and
in response to the retrieve target being a retrieve sentence, retrieving images with image semantics matching the retrieve sentence.

### Claim 12

An electronic device comprising
a processor and a memory, the memory storing a computer program, wherein the processor, by loading the computer program, is configured to execute:
receiving an input request for retrieving images;
identifying whether a retrieve target carried by the request is a retrieve word or a retrieve sentence;
in response to the retrieve target being the retrieve word, retrieving images with at least one of an image category matching the retrieve word and an image object matching the retrieve word; and
in response to the retrieve target being a retrieve sentence, retrieving images with image semantics matching the retrieve sentence.

### Claim 13 (depends on 12)

The electronic device as claimed in claim 12, wherein, in retrieving images with image semantics matching the retrieve sentence, the processor is configured to execute:
sending the retrieve sentence to a semantic matching server, instructing the semantic matching server to match target-image semantics having similarity degrees to semantics of the retrieve sentence not less than a first predetermined similarity degree; and
obtaining image identifiers corresponding to the target-image semantics from the semantic matching server and retrieving the images corresponding to the image identifiers.

### Claim 14 (depends on 12)

The electronic device as claimed in claim 12, wherein, the processor is configured to execute:
performing a segmenting process for the retrieve sentence, to obtain a plurality of segment words;
obtaining first similar words having similarity degrees to semantics of the plurality of segment words not less than a second predetermined similarity degree;
replacing the plurality of segment words of the retrieve sentence by the first similar words, to obtain extended retrieve sentences; and
recommending the extended retrieve sentences.

### Claim 15 (depends on 14)

The electronic device as claimed in claim 14, wherein, after the retrieving images with image semantics matching the retrieve sentence, the processor is configured to execute:
showing the retrieved images; and
in the recommending the extended retrieve sentences, the processor is configured to execute:
recommending the extended retrieve sentences while showing the retrieved images.

### Claim 16 (depends on 12)

The electronic device as claimed in claim 12, wherein, the processor is configured to execute:
obtaining second similarity words having similarity degrees to semantic of the retrieve word not less than a third predetermined similarity degree; and
regarding the second similarity words as extended retrieve words, and recommending the extended retrieve words.

### Claim 17 (depends on 12)

The electronic device as claimed in claim 12, wherein, the processor is configured to execute:
acquiring to-be-labeled images which need to be labeled during an image-labeling period;
classifying the to-be-labeled images based on an image classification model, and obtaining image categories of the to-be-labeled images;
performing object recognition for the to-be-labeled images based on an object recognition model, and obtaining objects included in the to-be-labeled images; and
performing image-semantics recognition for the to-be-labeled images based on an image-semantics recognition model, and obtaining image semantics of the to-be-labeled images.

### Claim 18 (depends on 17)

The electronic device as claimed in claim 17, wherein, in performing image-semantics recognition for the to-be-labeled images based on an image-semantics recognition model, and obtaining image semantics of the to-be-labeled images the processor is configured to execute:
sending the to-be-labeled images to an image-semantics recognition server, instructing the image-semantics recognition server to invoke an image-semantics recognition model for performing image-semantics recognition for the to-be-labeled images, and obtaining image semantics of the to-be-labeled image; and
obtaining the image semantics of the to-be-labeled images from the image-semantics recognition server.

### Claim 19 (depends on 17)

The electronic device as claimed in claim 17, wherein in acquiring to-be-labeled images which need to be labeled, the processor is configured to execute:
regarding new-added images during the image-labeling period as the to-be-labeled images.

### Claim 20 (depends on 12)

The electronic device as claimed in claim 12, wherein in identifying whether a retrieve target carried by the request is a retrieve word or a retrieve sentence, the processor is used to execute:
comparing the retrieve target with common words pre-stored in a thesaurus, determining that the retrieve target is a retrieve word in response to the retrieve target being one of the common words pre-stored in a thesaurus, and determining that the retrieve target is a retrieve sentence in response to the retrieve target not being one of the common words pre-stored in the thesaurus.
