# US 2020/0402242 A1 · Image analysis method and apparatus, and electronic device and readable storage medium

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

- Number: US 2020/0402242 A1
- Document ID: US20200402242A1
- Status: Published application
- Kind: A1
- Application number: 16/770,433
- Filed: 2018-08-13
- Published: 2020-12-24
- Earliest claimed: 2017-12-26
- Assignees: Zhejiang Uniview Technologies Co., Ltd.
- Applicants: Zhejiang Uniview Technologies Co., Ltd.
- Inventors: Lei Zhang
- Web page: https://patentgrep.com/patent/US20200402242A1

## CPC

- G06V 40/10: Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06T 7/187: involving region growing; involving region merging; involving connected component labelling
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/267: {by performing operations on regions, e.g. growing, shrinking or watersheds}
- 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 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G06V 20/52: Surveillance or monitoring of activities, e.g. for recognising suspicious objects (recognising microscopic objects G06V20/69)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Provided are a method and apparatus for analyzing an image, an electronic device, and a readable storage medium. The method includes: obtaining an image to be analyzed, the image including a target object; segmenting the image based on a pre-configured full convolution network to obtain multiple regions of the target object; obtaining a minimum circumscribed geometric frame of each region; extracting a feature of a corresponding region of each minimum circumscribed geometric frame based on a pre-configured convolution neural network and connecting the features of the corresponding regions of the minimum circumscribed geometric frames to obtain a target object feature of the target object; and comparing the target object feature against an image feature of each image in a pre-stored image library and outputting an image analysis result for the image to be analyzed according to a comparison result.

## Claims

### Claim 1

A method of analyzing an image, applied to an electronic device, the method comprising:
obtaining an image to be analyzed, the image comprising a target object;
segmenting the image based on a pre-configured full convolution network to obtain a plurality of regions of the target object;
obtaining a minimum circumscribed geometric frame of each of the plurality of regions;
extracting a feature of a corresponding region of each minimum circumscribed geometric frame based on a pre-configured convolution neural network, and connecting the features of the corresponding regions of the minimum circumscribed geometric frames to obtain a target object feature of the target object; and
comparing the target object feature against an image feature of each image in a pre-stored image library, and outputting an image analysis result for the image to be analyzed according to a comparison result.

### Claim 2 (depends on 1)

The method as recited in claim 1, further comprising, prior to obtaining the image to be analyzed:
configuring the full convolution network, by:
receiving an image sample set, the image sample set comprising a plurality of image samples; and
labelling a plurality of regions of a target object in each of the plurality of image samples, inputting labelled image samples into the full convolution network for training, to obtain the trained full convolution network.

### Claim 3 (depends on 1)

The method as recited in claim 1, further comprising, prior to obtaining the image to be analyzed:
configuring the convolution neural network, by:
receiving an image sample set, the image sample set comprising a plurality of image samples; and
inputting each of the plurality of image samples into the convolution neural network for training by using a Softmax regression function, to obtain the trained convolution neural network.

### Claim 4 (depends on 3)

The method as recited in claim 3, wherein extracting the feature of the corresponding region of each minimum circumscribed geometric frame based on the pre-configured convolution neural network comprises:
inputting image data in each minimum circumscribed geometric frame into the trained convolution neural network model for processing, and using a plurality of features obtained from a last layer of the convolution neural network model as the features of the corresponding regions of the minimum circumscribed geometric frames.

### Claim 5 (depends on 1)

The method recited in claim 1, further comprising:
processing each image in the pre-stored image library through the full convolution network and the convolution neural network to obtain the corresponding image feature of each image in the pre-stored image library.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein obtaining the minimum circumscribed geometric frame of each of the plurality of regions comprises:
obtaining a minimum circumscribed rectangular frame of each of the plurality of regions; or
obtaining a minimum circumscribed circle of each of the plurality of regions.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein
comparing the target object feature against the image feature of each image in the pre-stored image library and outputting the image analysis result for the image to be analyzed according to the comparison result comprises:
calculating a cosine distance between the target object feature and the image feature of each image in the pre-stored image library; and
sequencing the images in the pre-stored image library based on their respective cosine distances to generate a sequencing result, the sequencing result being the image analysis result for the image to be analyzed.

### Claim 8 (depends on 7)

The method as recited in claim 7, wherein the cosine distance between the target object feature and the image feature of each image in the pre-stored image library is calculated by the following formula:
d

(
f
i
,
f
j
)
=
f
i
→
·
f
j
→

f
i

2
·

f
j

2
wherein fi and fj denote a feature extracted of image i and a feature extracted of image j, respectively, ∥•∥2 denotes a two norm, and d(•) denotes the cosine distance between the target object feature and the image feature of each image in the pre-stored image library.

### Claim 9 (depends on 7)

The method as recited in claim 7, wherein sequencing the images in the pre-stored image library based on their respective cosine distances to generate the sequencing result is performed using the following sequencing formula:
Top
n

(
i
)
=
{
j
|
sort
j
∈
Ω

(
d

(
f
i
,
f
j
)
)
}
wherein n denotes a number of images in the sequencing result, and Q denotes the pre-stored image library.

### Claim 10

An apparatus for analyzing an image, applied to an electronic device, the apparatus comprising:
an obtaining module, configured to obtain an image to be analyzed, the image to be analyzed comprising a target object;
a segmentation module, configured to segment the image to be analyzed based on a pre-configured full convolution network to obtain a plurality of regions of the target object;
an acquisition module, configured to obtain a minimum circumscribed geometric frame of each of the plurality of regions;
an extraction module, configured to extract a feature of a corresponding region of each minimum circumscribed geometric frame based on a pre-configured convolution neural network, and connect the features of the corresponding regions of the minimum circumscribed geometric frames to obtain a target object feature of the target object; and
a comparison module, configured to compare the target object feature against an image feature of each image in a pre-stored image library, and output an image analysis result for the image to be analyzed according to a comparison result.

### Claim 11 (depends on 10)

The apparatus as recited in claim 10, further comprising:
a first training module, configured to configure the full convolution network, by:
receiving an image sample set that comprises a plurality of image samples, labelling a plurality of regions of a target object in each of the plurality of image samples; and
inputting the labelled image samples into the full convolution network for training, to obtain a trained full convolution network.

### Claim 12 (depends on 10)

The apparatus as recited in claim 10, further comprising:
a second training module, configured to configure the convolution neural network, by:
receiving an image sample set that comprises a plurality of image samples; and
inputting each of the plurality of image samples into the convolution neural network for training by using a Softmax regression function, to obtain a trained convolution neural network.

### Claim 13 (depends on 12)

The apparatus as recited in claim 12, wherein the extraction module is configured to input image data in each minimum circumscribed geometric frame into the trained convolution neural network for processing, and use a plurality of features obtained from a last layer of the convolution neural network model as the features of the corresponding regions of the minimum circumscribed geometric frames.

### Claim 14 (depends on 10)

The apparatus as recited in claim 10, further comprising:
an image-library feature processing module, configured to process each image in the pre-stored image library through the full convolution network and the convolution neural network to obtain the corresponding image feature of each image in the pre-stored image library.

### Claim 15 (depends on 10)

The apparatus as recited in claim 10, wherein the acquisition module is configured to obtain a minimum circumscribed rectangular frame of each of the plurality of regions, or obtain a minimum circumscribed circle of each of the plurality of regions.

### Claim 16 (depends on 10)

The apparatus as recited in claim 10, wherein the comparison module is configured to calculate a cosine distance between the target object feature and the image feature of each image in the pre-stored image library, sequence the images in the pre-stored image library based on their respective cosine distances to generate a sequencing result, the sequencing result being the image analysis result for the image to be analyzed.

### Claim 17 (depends on 16)

The apparatus as recited in claim 16, wherein the cosine distance between the target object feature and the image feature of each image in the pre-stored image library is calculated by the following formula:
d

(
f
i
,
f
j
)
=
f
i
→
·
f
j
→

f
i

2
·

f
j

2
wherein fi and fj denote a feature extracted of image i and a feature extracted of image j, respectively, ∥•∥2 denotes a two norm, and d(•) denotes the cosine distance between the target object feature and the image feature of each image in the pre-stored image library.

### Claim 18 (depends on 16)

The apparatus as recited in claim 16, wherein sequencing the images in the pre-stored image library based on their respective cosine distances to generate the sequencing result is performed using the following sequencing formula:
Top
n

(
i
)
=
{
j
|
sort
j
∈
Ω

(
d

(
f
i
,
f
j
)
)
}
wherein n denotes a number of images in the sequencing result, and Ω denotes the pre-stored image library.

### Claim 19

An electronic device, comprising:
a storage medium;
a processor; and
an apparatus for analyzing an image, the apparatus being stored in the storage medium and comprising software functional modules executable by the processor, the apparatus comprising:
an obtaining module, configured to obtain an image to be analyzed, the image comprising a target object;
a segmentation module, configured to segment the image to be analyzed based on a pre-configured full convolution network to obtain a plurality of regions of the target object;
an acquisition module, configured to obtain a minimum circumscribed geometric frame of each of the plurality of regions;
an extraction module, configured to extract a feature of a corresponding region of each minimum circumscribed geometric frame based on a pre-configured convolution neural network, and connect the features of the corresponding regions of the minimum circumscribed geometric frames to obtain a target object feature of the target object; and
a comparison module, configured to compare the target object feature against an image feature of each image in a pre-stored image library, and output an image analysis result for the image to be analyzed according to a comparison result.

### Claim 20 (depends on 1)

A readable storage medium, storing a computer program that when executed causes the method of analyzing an image as recited in claim 1 to be performed.
