# US 2021/0174135 A1 · Method of matching image and apparatus thereof, device, medium and program product

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

- Number: US 2021/0174135 A1
- Document ID: US20210174135A1
- Status: Published application
- Kind: A1
- Application number: 17/056,900
- Filed: 2020-04-24
- Published: 2021-06-10
- Earliest claimed: 2019-05-29
- Assignees: Boe Technology Group Co., Ltd.
- Applicants: BOE Technology Group Co., Ltd.
- Inventors: Xiangyang Liu; Tong Liu
- Web page: https://patentgrep.com/patent/US20210174135A1

## CPC

- G06F 16/5838: {using colour}
- G06F 16/532: Query formulation, e.g. graphical querying
- G06F 16/55: Clustering; Classification
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 18/23: Clustering techniques
- G06F 18/2431: Multiple classes
- G06F 18/253: {of extracted features}
- G06V 10/462: {Salient features, e.g. scale invariant feature transforms [SIFT]}
- G06V 10/56: relating to colour
- G06V 10/757: {Matching configurations of points or features}
- G06V 10/758: {Involving statistics of pixels or of feature values, e.g. histogram matching}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/762: using clustering, e.g. of similar faces in social networks
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/806: {of extracted features}
- G06V 20/30: in albums, collections or shared content, e.g. social network photos or video
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments of the present disclosure provide a method of matching image, an apparatus of matching image, a device, and a computer-readable storage medium. The method includes: acquiring an image to be matched; determining a key point feature similarity between any image in an image library and the image to be matched, and determining a color feature similarity between the any image and the image to be matched; determining a fusion similarity between the any image and the image to be matched according to the key point feature similarity and the color feature similarity; and determining whether an image matching the image to be matched exists in the image library or not according to the fusion similarity between each of at least one image in the image library and the image to be matched.

## Claims

### Claim at position 1

1-18. (canceled)

### Claim 19

A method of matching image, comprising:
acquiring an image to be matched;
determining a key point feature similarity between any image in an image library and the image to be matched, and determining a color feature similarity between the any image and the image to be matched;
determining a fusion similarity between the any image and the image to be matched according to the key point feature similarity and the color feature similarity; and
determining whether an image matching the image to be matched exists in the image library or not according to the fusion similarity between each of at least one image in the image library and the image to be matched.

### Claim 20 (depends on 19)

The method according to claim 19, further comprising: prior to the determining a key point feature similarity between any image in an image library and the image to be matched,
extracting key point features of a plurality of sample images in a preset sample library, and the preset sample library comprising the image library;
clustering the key point features of the plurality of sample images to obtain a plurality of feature categories;
extracting at least one key point feature of the any image;
for each key point feature of the any image, classifying the key point feature to determine, from the plurality of feature categories, a feature category to which the key point feature belongs; and
determining key point feature distribution information of the any image according to the feature category to which each of at least one key point feature of the any image belongs.

### Claim 21 (depends on 20)

The method according to claim 20, wherein the determining a key point feature similarity between the any image and the image to be matched comprises:
extracting at least one key point feature of the image to be matched;
for each key point feature of the image to be matched, classifying the key point feature to determine, from the plurality of feature categories, a feature category to which the key point feature belongs;
determining key point feature distribution information of the image to be matched according to the feature category to which each of at least one key point feature of the image to be matched belongs; and
determining a key point feature similarity between the any image and the image to be matched according to the key point feature distribution information of the any image and the key point feature distribution information of the image to be matched.

### Claim 22 (depends on 21)

The method according to claim 21, wherein the determining a key point feature similarity between the any image and the image to be matched according to the key point feature distribution information of the any image and the key point feature distribution information of the image to be matched comprises:
determining a first number of key point features contained in the any image and the image to be matched and belonging to same feature category according to the key point feature distribution information of the any image and the key point feature distribution information of the image to be matched; and
determining a key point feature similarity between the any image and the image to be matched according to the first number.

### Claim 23 (depends on 22)

The method according to claim 22, wherein the first number is Nsame, the any image comprises a second number Nn key point features, and the image to be matched comprises a third number Ncheck key point features, wherein Nsame, Nn, and Ncheck are all integers greater than or equal to 0;
the determining a key point feature similarity between the any image and the image to be matched according to the first number comprises: determining a key point feature similarity between the any image and the image to be matched according to a following formula Psift:
P
sift
=
N
same
N
check
+
N
n
.

### Claim 24 (depends on 22)

The method according to claim 22, further comprising:
prior to the determining a key point feature similarity between the any image and the image to be matched, determining a reverse index table according to the key point feature distribution information of each of at least one image in the image library, and the reverse index table indicating a mapping relationship from each of the plurality of feature categories to the at least one image;
wherein the determining a first number of key point features contained in the any image and the image to be matched and belonging to same feature category comprises:
setting an initial value of the first number to 0;
for each key point feature contained in the image to be matched, searching an image that has a mapping relationship with a feature category to which the key point feature belongs in the reverse index table, and when the image having a mapping relationship comprising the any image, adding 1 to the value of the first number; and
in response to traverse the key point features contained in the image to be matched, determining the value of the first number.

### Claim 25 (depends on 19)

The method according to claim 19, wherein the key point feature comprises: a scale invariant feature transform SIFT key point feature.

### Claim 26 (depends on 19)

The method according to claim 19, further comprising: prior to the determining a color feature similarity between the any image and the image to be matched,
acquiring a plurality of color categories;
calculating a color feature value of each pixel in the any image;
determining a color category to which each pixel in the any image belongs from the plurality of color categories according to the color feature value of each pixel in the any image; and
determining a color feature of the any image according to the color category to which each of a plurality of pixels in the any image belongs.

### Claim 27 (depends on 26)

The method according to claim 26, wherein the determining a color feature similarity between the any image and the image to be matched comprises:
calculating a color feature value of each pixel in the image to be matched;
determining a color category to which each pixel in the image to be matched belongs from the plurality of color categories according to the color feature value of each pixel in the image to be matched; and
determining a color feature of the image to be matched according to the color category to which each of the plurality of pixels in the image to be matched belongs.

### Claim 28 (depends on 27)

The method according to claim 27, wherein the determining a color feature similarity between the any image and the image to be matched further comprises:
determining an Euclidean distance between the color feature of the any image and the color feature of the image to be matched; and
determining a color feature similarity between the any image and the image to be matched according to the Euclidean distance.

### Claim 29 (depends on 27)

The method according to claim 27, wherein:
the calculating a color feature value of each pixel in the any image comprises:
for each pixel in the any image, converting a color mode RGB value of each pixel into an HSV value, performing an integer processing on the HSV value, and calculating a color feature value of each pixel in the any image according to integer processed HSV value; and
wherein the calculating a color feature value of each pixel in the image to be matched comprises:
for each pixel in the image to be matched, converting a color mode RGB value of each pixel into an HSV value, performing an integer processing on the HSV value, and determining a color feature value of each pixel in the image to be matched according to integer processed HSV value.

### Claim 30 (depends on 19)

The method according to claim 19, wherein the determining a fusion similarity between the any image and the image to be matched according to the key point feature similarity and the color feature similarity comprises:
setting a first weight and a second weight, wherein a sum of the first weight and the second weight equals to 1;
performing a weighted summation on the key point feature similarity between the any image and the image to be matched and the color feature similarity between the any image and the image to be matched according to the first weight and the second weight to obtain a fusion similarity between the any image and the image to be matched.

### Claim 31 (depends on 30)

The method according to claim 30, wherein the setting a first weight comprises:
determining the first weight a by a following formula:
α
=
N
check
-
M
L
-
M
wherein Ncheck indicates a number of key point features of the image to be matched, M indicates a first threshold number of key point features, and L indicates a second threshold number of key point features.

### Claim 32 (depends on 19)

The method according to claim 19, wherein the determining whether an image matching the image to be matched exists in the image library or not according to the fusion similarity between each of at least one image in the image library and the image to be matched comprises:
sorting fusion similarities between each of at least one image in the image library and the image to be matched in descending order to obtain a fusion similarity sequence;
using an image for which a fusion similarity greater than a fusion similarity threshold in the fusion similarity sequence as an image matching the image to be matched.

### Claim 33 (depends on 19)

An electronic device, comprising: at least one processor and a memory;
wherein the memory is configured to store a computer program; and
the processor is configured to execute the method according to claim 19 by calling the computer program.

### Claim 34 (depends on 19)

A computer non-transitory readable storage medium having a computer program stored thereon, wherein the computer program is configured to implement the method according to claim 19 when executed by a processor.

### Claim 35 (depends on 19)

A computer program product comprising executable instructions that, when executed by a processor, implement the method according to claim 19.

### Claim 36 (depends on 23)

The method according to claim 23, further comprising:
prior to the determining a key point feature similarity between the any image and the image to be matched, determining a reverse index table according to the key point feature distribution information of each of at least one image in the image library, and the reverse index table indicating a mapping relationship from each of the plurality of feature categories to the at least one image;
wherein the determining a first number of key point features contained in the any image and the image to be matched and belonging to same feature category comprises:
setting an initial value of the first number to 0;
for each key point feature contained in the image to be matched, searching an image that has a mapping relationship with a feature category to which the key point feature belongs in the reverse index table, and when the image having a mapping relationship comprising the any image, adding 1 to the value of the first number; and
in response to traverse the key point features contained in the image to be matched, determining the value of the first number.

### Claim 37 (depends on 28)

The method according to claim 28, wherein:
the calculating a color feature value of each pixel in the any image comprises:
for each pixel in the any image, converting a color mode RGB value of each pixel into an HSV value, performing an integer processing on the HSV value, and calculating a color feature value of each pixel in the any image according to integer processed HSV value; and
wherein the calculating a color feature value of each pixel in the image to be matched comprises:
for each pixel in the image to be matched, converting a color mode RGB value of each pixel into an HSV value, performing an integer processing on the HSV value, and determining a color feature value of each pixel in the image to be matched according to integer processed HSV value.
