# US 2023/0410314 A1 · Gaze-based control of device operations

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

- Number: US 2023/0410314 A1
- Document ID: US20230410314A1
- Status: Published application
- Kind: A1
- Application number: 18/241,179
- Filed: 2023-08-31
- Published: 2023-12-21
- Earliest claimed: 2015-10-15
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Fedir POLIAKOV
- Web page: https://patentgrep.com/patent/US20230410314A1

## CPC

- G06T 7/11: Region-based segmentation
- G06T 7/136: involving thresholding
- G06T 7/62: of area, perimeter, diameter or volume
- G06T 7/66: of image moments or centre of gravity
- G06T 7/73: using feature-based methods
- G06T 7/90: Determination of colour characteristics
- G06V 10/255: {Detecting or recognising potential candidate objects based on visual cues, e.g. shapes}
- G06V 10/28: Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
- G06V 40/162: {using pixel segmentation or colour matching}
- G06V 40/19: Sensors therefor
- G06V 40/193: {Preprocessing; Feature extraction}
- G06V 40/197: {Matching; Classification}
- G06T 2207/10024: Color image
- G06T 2207/30041: Eye; Retina; Ophthalmic
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Systems, devices, media, and methods are presented for gaze-based control of device operations. One method includes receiving a video stream from an imaging device, the video stream depicting one or more eyes, determining a gaze direction for the one or more eyes depicted in the video stream, detecting a change in the gaze direction of the one or more eyes, and triggering an operation in a client device based on the change in the gaze direction.

## Claims

### Claim 1

A method for segmenting a video stream, comprising:
receiving, at a first client device, a first portion of the video stream from an imaging device;
generating a binary mask indicative of pixels representing an object of interest within one or more images of the first portion of the video stream, the binary mask comprising a set of first pixels having a first value;
determining an approximate center of mass of the set of first pixels;
receiving, at the first client device, one or more images of a second portion of the video stream;
receiving, at the first client device, at least one of the binary mask or tracking data representative of a location of the object of interest within the one or more images of the first portion of the video stream;
modifying, using the at least one of the binary mask or tracking data, one or more values for pixels of the binary mask representing the object of interest within the second portion of the video stream to generate a modified video stream; and
determining a direction of the object of interest relative to the imaging device and a display device in the modified video stream by calculating a line of sight extending from the center of mass of the set of first pixels to the display device.

### Claim 2 (depends on 1)

The method of claim 1, wherein the modifying comprises modifying a color of the object of interest.

### Claim 3 (depends on 2)

The method of claim 2, wherein the object of interest is an iris of an eye and modifying the color of the iris comprises applying a new mean color to the pixels representing the iris.

### Claim 4 (depends on 3)

The method of claim 3, further comprising tracking at least one of a final pupil location and a final iris radius across one or more images included in the second portion of the video stream.

### Claim 5 (depends on 4)

The method of claim 4, further comprising determining the final pupil location and the final iris radius across the one or more images included in the second portion of the video stream by identifying an initial pupil location of a pupil of the eye within the first portion of the video stream, determining an initial iris radius for an iris of the eye from the first portion of the video stream, and, based on the initial pupil location and the initial iris radius, determining the final pupil location and the final iris radius.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first set of pixels has an area greater than a predetermined percentage of the first portion of the video stream.

### Claim 7 (depends on 1)

The method of claim 1, wherein the modifying comprises aligning and matching changes to the pixels representing an eye within the second portion of the video stream using the tracking data and the binary mask as the eye moves among images of the second portion of the video stream.

### Claim 8

A system, comprising:
one or more processors; and
a memory accessible by the one or more processors, the memory including instructions for execution by the one or more processors that configure the one or more processors to segment a video stream by performing operations including:
receiving a first portion of the video stream from an imaging device;
generating a binary mask indicative of pixels representing an object of interest within one or more images of the first portion of the video stream, the binary mask comprising a set of first pixels having a first value;
determining an approximate center of mass of the set of first pixels;
receiving one or more images of a second portion of the video stream;
receiving at least one of the binary mask or tracking data representative of a location of the object of interest within the one or more images of the first portion of the video stream;
modifying, using the at least one of the binary mask or tracking data, one or more values for pixels of the binary mask representing the object of interest within the second portion of the video stream to generate a modified video stream; and
determining a direction of the object of interest relative to the imaging device and a display device in the modified video stream by calculating a line of sight extending from the center of mass of the set of first pixels to the display device.

### Claim 9 (depends on 8)

The system of claim 8, wherein the modifying comprises modifying a color of the object of interest.

### Claim 10 (depends on 9)

The system of claim 9, wherein the object of interest is an iris of an eye and modifying the color of the iris comprises applying a new mean color to the pixels representing the iris.

### Claim 11 (depends on 10)

The system of claim 10, wherein the memory further includes instructions for execution by the one or more processors that configure the one or more processors to segment a video stream by tracking at least one of a final pupil location and a final iris radius across one or more images included in the second portion of the video stream.

### Claim 12 (depends on 11)

The system of claim 11, wherein the memory further includes instructions for execution by the one or more processors that configure the one or more processors to segment a video stream by determining the final pupil location and the final iris radius across the one or more images included in the second portion of the video stream by identifying an initial pupil location of a pupil of the eye within the first portion of the video stream, determining an initial iris radius for an iris of the eye from the first portion of the video stream, and, based on the initial pupil location and the initial iris radius, determining the final pupil location and the final iris radius.

### Claim 13 (depends on 8)

The system of claim 8, wherein the set of first pixels has an area greater than a predetermined percentage of the first portion of the video stream.

### Claim 14 (depends on 8)

The system of claim 8, wherein the modifying comprises aligning and matching changes to the pixels representing an eye within the second portion of the video stream using tracking data and the binary mask as the eye moves among images of the second portion of the video stream.

### Claim 15

A non-transitory machine-readable storage medium storing processor executable instructions that, when executed by a processor of a machine, cause the machine to segment a video stream by performing operations comprising:
receiving, at a first client device, a first portion of the video stream from an imaging device;
generating a binary mask indicative of pixels representing an object of interest within one or more images of the first portion of the video stream, the binary mask comprising a set of first pixels having a first value;
determining an approximate center of mass of the set of first pixels;
receiving, at the first client device, one or more images of a second portion of the video stream;
receiving at least one of the binary mask or tracking data representative of a location of the object of interest within the one or more images of the first portion of the video stream;
modifying, using the at least one of the binary mask or tracking data, one or more values for pixels of the binary mask representing the object of interest within the second portion of the video stream to generate a modified video stream; and
determining a direction of the object of interest relative to a display device in the modified video stream by calculating a line of sight extending from the center of mass of the set of first pixels to the display device.

### Claim 16 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the modifying comprises the processor executing instructions to perform operations comprising modifying a color of the object of interest.

### Claim 17 (depends on 16)

The non-transitory machine-readable storage medium of claim 16, wherein the object of interest is an iris of an eye and modifying the color of the iris comprises the processor executing instructions to perform operations comprising applying a new mean color to the pixels representing the iris.

### Claim 18 (depends on 17)

The non-transitory machine-readable storage medium of claim 17, further comprising the processor executing instructions to perform operations comprising tracking at least one of a final pupil location and a final iris radius across one or more images included in the second portion of the video stream.

### Claim 19 (depends on 18)

The non-transitory machine-readable storage medium of claim 18, further comprising the processor executing instructions to perform operations comprising determining the final pupil location and the final iris radius across the one or more images included in the second portion of the video stream by:
identifying an initial pupil location of a pupil of the eye within the first portion of the video stream by identifying the set of first pixels within the binary mask having the first value as the pupil of the eye;
determining an initial iris radius for an iris of the eye from the first portion of the video stream; and
based on the initial pupil location and the initial iris radius, determining the final pupil location and the final iris radius.

### Claim 20 (depends on 15)

The non-transitory machine-readable storage medium of claim 15, wherein the modifying comprises the processor executing instructions to perform operations comprising aligning and matching changes to the pixels representing an eye within the second portion of the video stream using tracking data and the binary mask as the eye moves among images of the second portion of the video stream.
