# US 2020/0394434 A1 · Method and system for image search and cropping

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

- Number: US 2020/0394434 A1
- Document ID: US20200394434A1
- Status: Published application
- Kind: A1
- Application number: 16/441,918
- Filed: 2019-06-14
- Published: 2020-12-17
- Earliest claimed: 2019-06-14
- Assignees: Huawei Technologies Co., Ltd.
- Inventors: Varshanth Ravindra RAO; Uzair AHMAD; Peng DAI; Juwei LU; Wei LI; Jianpeng XU
- Web page: https://patentgrep.com/patent/US20200394434A1

## CPC

- G06F 16/538: Presentation of query results
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06V 10/255: {Detecting or recognising potential candidate objects based on visual cues, e.g. shapes}
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06V 40/161: {Detection; Localisation; Normalisation}
- 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
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Methods and systems for processing an image are described. A saliency map is generated from the image. The saliency map indicates one or more salient portions of the image that have saliency values satisfying a saliency criterion. A scene graph is generated for at least the one or more salient portions. The scene graph represents a plurality of objects detected in the image. The scene graph further represents one or more relationships between each respective object pairs. One or more dataset entries associated with the image are generated. Each of the one or more relationships for each of the one or more object pairs is indicated by a respective dataset entry. The one or more dataset entries are stored in a first dataset.

## Claims

### Claim 1

A method for processing an image to generate a scene graph, the method comprising:
receiving an image;
generating a saliency map from the image, wherein the saliency map indicates one or more salient portions of the image that have saliency values satisfying a saliency criterion;
generating a scene graph for at least the one or more salient portions of the image, the scene graph representing a plurality of objects detected in the image, one or more object pairs being formed by the plurality of objects, and the scene graph further representing one or more relationships between each respective object pairs;
generating one or more dataset entries associated with the image, wherein each of the one or more relationships for each of the one or more object pairs is indicated by a respective dataset entry; and
storing the one or more dataset entries in a first dataset.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
the one or more dataset entries stored in the first dataset include dataset entries associated with different respective images.

### Claim 3 (depends on 2)

The method of claim 2, wherein the method further comprises:
searching the first dataset to identify a dataset entry that satisfies a query criterion;
selecting the image associated with the identified dataset entry;
cropping the selected image according to the object pair indicated by the identified dataset entry; and
outputting the cropped image.

### Claim 4 (depends on 3)

The method of claim 3, wherein the cropping further comprises:
applying one or more rules to the selected image to determine corresponding aesthetic regions of the selected image; and
further cropping the selected image according to the determined corresponding aesthetic regions.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the scene graph comprises:
detecting the plurality of objects within the image;
identifying the one or more object pairs formed by the detected objects; and
performing relationship extraction between each respective object pair within the salient portions of the image indicated by the saliency map.

### Claim 6 (depends on 5)

The method of claim 5, wherein detecting the plurality of objects further comprises:
performing object localization for each detected object to generate a bounding box of the detected object;
for each respective bounding box:
generating corresponding location parameters of the respective bounding box; and
storing an identifier of the respective bounding box and the location parameters in a second dataset.

### Claim 7 (depends on 1)

The method of claim 1, wherein generating the scene graph comprises:
generating one or more proposed regions of the image using a region proposal network (RPN);
detecting the plurality of objects in the one or more proposed regions;
identifying the one or more object pairs formed by the detected objects; and
performing relationship extraction between each respective object pair within the salient portions of the image indicated by the saliency map.

### Claim 8 (depends on 6)

The method of claim 6, wherein the method further comprising:
searching the first dataset to identify one or more dataset entries that satisfy a query criterion;
searching the second dataset to identify one or more location parameters that satisfy the one or more dataset entries; and
cropping the image according to the one or more identified location parameters.

### Claim 9 (depends on 8)

The method of claim 8, wherein cropping comprises:
combining respective bounding boxes corresponding to the one or more identified location parameters to generate a union box;
cropping the image around the union box; and
outputting the cropped image.

### Claim 10

A method comprising:
receiving a query criterion;
searching a first dataset comprising one or more dataset entries, to identify a dataset entry that satisfies the query criterion, the identified dataset entry being associated with an image, the identified dataset entry indicating a relationship for an object pair which is formed by a pair of objects detected in the image, the objects and the relationship being represented by a scene graph;
selecting the image associated with the identified dataset entry;
cropping the selected image according to the object pair indicated by the identified dataset entry; and
outputting the cropped image.

### Claim 11 (depends on 10)

The method of claim 10, wherein the cropping including:
applying one or more rules to the selected image to determine corresponding aesthetic regions of the selected image; and
cropping the selected image according to the determined corresponding aesthetic regions.

### Claim 12 (depends on 10)

The method of claim 10, wherein the method further comprising:
outputting the cropped image.

### Claim 13 (depends on 10)

The method of claim 10, wherein the method further comprises:
receiving at least one image; and
the dataset is generated by:
for each received image, generating a saliency map for the received image, wherein the saliency map indicates one or more salient portions of the image that have saliency values satisfying a saliency criterion;
generating a respective scene graph for at least the one or more salient portions of the received image;
generating the one or more dataset entries associated with the received image; and
storing the respective one or more dataset entries associated with the received image in the first dataset.

### Claim 14 (depends on 13)

The method of claim 13, wherein for the received image, generating the scene graph comprises:
generating one or more proposed regions of the image using a region proposal network (RPN);
detecting the plurality of objects in the one or more proposed regions;
identifying the one or more object pairs formed by the detected objects; and
performing relationship extraction between each respective object pair within the salient portions of the image indicated by the saliency map.

### Claim 15 (depends on 14)

The method of claim 14, wherein detecting the plurality of objects further comprises:
performing object localization for each detected object to generate a bounding box of the detected object;
for each bounding box, generating a corresponding location parameter of the respective bounding box; and
storing respective location parameters in a second dataset.

### Claim 16

A system comprising:
a memory storing instructions; and
a processor coupled to the memory and configured to execute the instructions to:
generate a saliency map for an image, wherein the saliency map indicates one or more salient portions of the image that have saliency values satisfying a saliency criterion;
generating a scene graph for at least the one or more salient portions of the image, the scene graph representing a plurality of objects detected in the image, one or more object pairs being formed by the plurality of objects, and the scene graph further representing one or more relationships between each respective object pairs;
generate one or more dataset entries associated with the image, wherein each of the one or more relationships for each of the one or more object pairs is indicated by a respective dataset entry; and
store the one or more dataset entries in a first dataset.

### Claim 17 (depends on 16)

The system of claim 16, wherein:
the one or more dataset entries stored in the first dataset include dataset entries associated with different respective images.

### Claim 18 (depends on 17)

The system of claim 17, wherein the processor is further configured to execute the instructions to:
search the first dataset to identify a dataset entry that satisfies a query criterion;
select the image associated with the identified dataset entry;
crop the selected image according to the object pair indicated by the identified dataset entry; and
output the cropped image.

### Claim 19

A system for processing at least one image, comprising:
a memory storing instructions; and
a processor coupled to the memory and configured to execute the instructions to:
receive a query criterion;
search a dataset comprising one or more dataset entries, to identify a dataset entry that satisfies the query criterion, the identified dataset entry being associated with an image, the identified dataset entry indicating a relationship for an object pair which is formed by a pair of objects detected in the image, the objects and the relationship being represented by a scene graph;
select the image associated with the identified dataset entry;
crop the selected image according to the object pair indicated by the identified dataset entry; and
output the cropped image.

### Claim 20 (depends on 19)

The system of claim 19, wherein the processor is further configured to execute the instructions to perform the cropping by:
applying one or more rules to the selected image to determine corresponding aesthetic regions of the selected image; and
cropping the selected image according to the determined corresponding aesthetic regions.
