# US 2021/0287380 A1 · Method and system for detecting peripheral device displacement

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

- Number: US 2021/0287380 A1
- Document ID: US20210287380A1
- Status: Published application
- Kind: A1
- Application number: 17/332,554
- Filed: 2021-05-27
- Published: 2021-09-16
- Earliest claimed: 2018-08-03
- Assignees: Logitech Europe S.A.
- Applicants: Logitech Europe S.A.
- Inventors: Nicolas Chauvin; Francois Morier; Helmut Grabner
- Web page: https://patentgrep.com/patent/US20210287380A1

## CPC

- G06T 7/74: {involving reference images or patches}
- G06F 3/0317: {in co-operation with a patterned surface, e.g. absolute position or relative movement detection for an optical mouse or pen positioned with respect to a coded surface}
- G06F 3/03543: {Mice or pucks (G06F3/03541 takes precedence)}
- G06F 3/0383: {Signal control means within the pointing device}
- G06F 18/2113: by ranking or filtering the set of features, e.g. using a measure of variance or of feature cross-correlation
- G06F 18/22: Matching criteria, e.g. proximity measures
- 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 7/248: {involving reference images or patches}
- G06V 10/75: Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V 10/751: {Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching}
- G06V 10/82: using neural networks
- G06V 40/20: Movements or behaviour, e.g. gesture recognition (recognition of facial expressions G06V40/16)
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Methods and systems for determining a displacement of a peripheral device are provided. In one example, a peripheral device comprises: an image sensor, and a hardware processor configured to: control the image sensor to capture a first image of a surface when the peripheral device is at a first location on the surface, the first image comprising a feature of the first location of the surface; execute a trained machine learning model using data derived from the first image to estimate a displacement of the feature between the first image and a reference image captured at a second location of the surface; and determine a displacement of the peripheral device based on the estimated displacement of the feature.

## Claims

### Claim 1

A method, comprising:
capturing, from an image sensor at a first location on a surface, a first image of a surface, the first image comprising a feature of the first location of the surface;
generating a comparison results array between the first image and a reference image, the comparison results array representing a distribution of comparison results between the first image and the reference image for a set of coarse displacements each having a pixel precision;
providing the comparison results array as an input to a trained machine-learning model to refine one or more estimated displacements from the pixel precision to a sub-pixel precision;
operating the trained machine-learning model to compute, based on the comparison results array as the input, an estimated displacement having the subpixel precision as an output; and
determining a displacement of the image sensor based on the estimated displacement having the subpixel precision.

### Claim 2 (depends on 1)

The method of claim 1, wherein the comparison results array represents the distribution of comparison results between the first image and the reference image with respect to the set of coarse displacements between the first image and the reference image.

### Claim 3 (depends on 2)

The method of claim 2, wherein each comparison result of the distribution of comparison results is based on a sum of differences between pixels of the first image and the reference image.

### Claim 4 (depends on 1)

The method of claim 1, wherein the comparison results array comprises a distribution of cross-correlation values between the first image and the reference image with respect to the set of coarse displacements between the first image and the reference image.

### Claim 5 (depends on 1)

The method of claim 1, wherein the image sensor is part of a computer peripheral device positioned on the surface; and
wherein the displacement is to be provided to a computer to update content displayed by the computer.

### Claim 6 (depends on 1)

The method of claim 1, wherein the comparison results array is derived from at least one of a subset of pixels of the first image or a subset of pixels of the reference image.

### Claim 7 (depends on 1)

The method of claim 1, wherein the trained machine-learning model is a first trained machine learning model;
wherein the displacement is a first displacement; and
wherein the method further comprises:
providing pixel data of the first image to a second trained machine-learning model; and
operating a second trained machine learning model to perform:
computing, based on the pixel data, a cross-correlation values distribution between the first image and the reference image, the cross-correlation values distribution corresponding to a set of candidate displacements and representing the comparison between the first image and the reference image;
interpolating the set of candidate displacements based on the cross-correlation values distribution; and
estimating a second displacement based on a result of the interpolation.

### Claim 8 (depends on 1)

The method of claim 1, wherein the machine-learning model comprises an artificial neural network, the artificial neural network comprising at least one of a fully connected neural network or a convolutional neural network.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
selecting, based on an operation condition and from a plurality of machine-learning models, the machine-learning model.

### Claim 10 (depends on 9)

The method of claim 9, wherein the operation condition comprises at least one of: a type of the surface, or a configuration of the image sensor.

### Claim 11 (depends on 1)

The method of claim 1, wherein the machine-learning model is trained based on a training data set comprising:
a set of reference images;
a set of displacement images paired with the set of reference images; and
a set of displacements of a feature between the set of reference images and the set of displacement images.

### Claim 12 (depends on 1)

The method of claim 1, wherein the machine-learning model is trained based on a training data set comprising:
a set of cross-correlation values between a set of reference images and a set of displacement images paired with the set of reference images; and
a set of displacements of a feature between the set of reference images and the set of displacement images.

### Claim 13 (depends on 1)

The method of claim 1,
wherein the machine learning model is trained to minimize errors between a set of displacements output by the machine learning model for a training data set comprising a set of cross-correlation values distributions and a set of corresponding displacements.

### Claim 14

A peripheral device, comprising:
an image sensor; and
a hardware processor configured to:
control the image sensor to capture a first image of a surface when the peripheral device is at a first location on the surface, the first image comprising a feature of the first location of the surface;
generate a comparison results array between the first image and a reference image, the comparison results array representing a distribution of comparison results between the first image and the reference image for a set of coarse displacements each having a pixel precision;
provide the comparison results array as an input to a trained machine-learning model to refine one or more estimated displacements from the pixel precision to a sub-pixel precision;
operate the trained machine-learning model to compute, based on the comparison results array as the input, an estimated displacement having the subpixel precision as an output; and
determine a displacement of the image sensor based on the estimated displacement having the subpixel precision.

### Claim 15 (depends on 14)

The peripheral device of claim 14, wherein the comparison results array represents the distribution of comparison results between the first image and the reference image with respect to the set of coarse displacements between the first image and the reference image.

### Claim 16 (depends on 15)

The peripheral device of claim 15, wherein each comparison result of the distribution of comparison results is based on a sum of differences between pixels of the first image and the reference image.

### Claim 17 (depends on 14)

The peripheral device of claim 14, wherein the comparison results array comprises a distribution of cross-correlation values between the first image and the reference image with respect to the set of coarse displacements between the first image and the reference image.

### Claim 18 (depends on 14)

The peripheral device of claim 14, wherein the machine-learning model comprises an artificial neural network, the artificial neural network comprising at least one of a fully connected neural network or a convolutional neural network.

### Claim 19 (depends on 14)

The peripheral device of claim 14, further comprising:
selecting, based on an operation condition and from a plurality of machine-learning models, the machine-learning model.

### Claim 20 (depends on 19)

The peripheral device of claim 19, wherein the operation condition comprises at least one of: a type of the surface, or a configuration of the image sensor.
