# US 2022/0292697 A1 · Dense feature scale detection for image matching

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

- Number: US 2022/0292697 A1
- Document ID: US20220292697A1
- Status: Published application
- Kind: A1
- Application number: 17/825,994
- Filed: 2022-05-26
- Published: 2022-09-15
- Earliest claimed: 2016-09-23
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Shenlong Wang; Linjie Luo; Ning Zhang; Jia Li
- Web page: https://patentgrep.com/patent/US20220292697A1

## CPC

- G06T 7/248: {involving reference images or patches}
- G06T 7/33: using feature-based methods
- 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
- G06T 7/40: Analysis of texture (depth or shape recovery from texture G06T7/529)
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Dense feature scale detection can be implemented using multiple convolutional neural networks trained on scale data to more accurately and efficiently match pixels between images. An input image can be used to generate multiple scaled images. The multiple scaled images are input into a feature net, which outputs feature data for the multiple scaled images. An attention net is used to generate an attention map from the input image. The attention map assigns emphasis as a soft distribution to different scales based on texture analysis. The feature data and the attention data can be combined through a multiplication process and then summed to generate dense features for comparison.

## Claims

### Claim 1

A method comprising:
identifying, using one or more processors of a machine, an image;
generating a plurality of scaled images from the image;
generating image features for the plurality of scaled images using one or more convolutional neural networks;
generating an attention map based on texture data of pixels of the image using the one or more convolutional neural networks;
generating dense features by combining image features with attention values of the attention map; and
identifying, using the dense features, a location within one or more images of an object depicted in each of the one or more images.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
generating attention values of the attention map, the attention values being one or more numerical values that modify values of the dense features based at least in part on the scale of the plurality of scaled images.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
identifying a source image having a source dense feature;
identifying a target image having a target dense feature; and
training the one or more convolutional neural networks by at least maximizing a product of the source dense feature and the target dense feature.

### Claim 4 (depends on 3)

The method of claim 3, wherein maximizing the product comprises adjusting parameters in the one or more convolutional networks to maximize the product.

### Claim 5 (depends on 4)

The method of claim 4, wherein the product is an inner product.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
storing, in a memory of the machine, the location of the object within each of the one or more images; and
generating one or more modified images from the one or more images using the location of the object in the one or more images.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
publishing the one or more modified images on a social network site as an electronic message.

### Claim 8 (depends on 1)

The method of claim 1, wherein the attention values are a range of numerical values in a distribution, and wherein the image features are combined using a multiplication operation.

### Claim 9 (depends on 1)

The method of claim 1, wherein the plurality of scaled images comprises a first scaled image and a second scaled image, wherein the first scaled image is used to generate a first set of attention values and a first image feature dataset, wherein the second scaled image is used to generate a second set of attention values and a second image feature dataset.

### Claim 10 (depends on 9)

The method of claim 9, wherein the first set of attention values and the first image feature dataset are multiplied together to produce a first multiplication output; and wherein the second set of attention values and the second image feature dataset are multiplied together to produce a second multiplication output,
wherein the method further comprises summing the first multiplication output and the second multiplication output to generate a dense feature dataset,
wherein the dense feature dataset comprises a plurality of vectors for a plurality of pixels of the image.

### Claim 11

A system comprising:
one or more processors of a machine; and
a memory storing instructions that, when executed by the one or more processors, cause the machine to perform operations comprising:
identifying an image;
generating a plurality of scaled images from the image;
generating image features for the plurality of scaled images using one or more convolutional neural networks;
generating an attention map based on texture data of pixels of the image using the one or more convolutional neural networks;
generating dense features by combining image features with attention values of the attention map; and
identifying, using the dense features, a location within one or more images of an object depicted in each of the one or more images.

### Claim 12 (depends on 11)

The system of claim 11, wherein the operations further comprise:
generating attention values of the attention map, the attention values being one or more numerical values that modify values of the dense features based at least in part on the scale of the plurality of scaled images.

### Claim 13 (depends on 11)

The system of claim 11, wherein the operations further comprise:
identifying a source image having a source dense feature;
identifying a target image having a target dense feature; and
training the one or more convolutional neural networks by at least maximizing a product of the source dense feature and the target dense feature.

### Claim 14 (depends on 13)

The system of claim 13, wherein maximizing the product comprises adjusting parameters in the one or more convolutional networks to maximize the product.

### Claim 15 (depends on 14)

The system of claim 14, wherein the product is an inner product.

### Claim 16 (depends on 11)

The system of claim 11, wherein the operations further comprise:
storing, in a memory of the system, the location of the object within each of the one or more images; and
generating one or more modified images from the one or more images using the location of the object in the one or more images.

### Claim 17 (depends on 16)

The system of claim 16, wherein the operations further comprise:
publishing the one or more modified images on a social network site as an electronic message.

### Claim 18 (depends on 11)

The system of claim 11, wherein the attention values are a range of numerical values in a distribution, and wherein the image features are combined using a multiplication operation.

### Claim 19 (depends on 11)

The system of claim 11, wherein the plurality of scaled images comprises a first scaled image and a second scaled image, wherein the first scaled image is used to generate a first set of attention values and a first image feature dataset, wherein the second scaled image is used to generate a second set of attention values and a second image feature dataset.

### Claim 20

A non-transitory machine-readable storage device embodying instructions that, when executed by a machine, cause the machine to perform operations comprising:
identifying an image;
generating a plurality of scaled images from the image;
generating image features for the plurality of scaled images using one or more convolutional neural networks;
generating an attention map based on texture data of pixels of the image using the one or more convolutional neural networks;
generating dense features by combining image features with attention values of the attention map; and
identifying, using the dense features, a location within one or more images of an object depicted in each of the one or more images.
