# US 2021/0289139 A1 · Video Stabilization

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

- Number: US 2021/0289139 A1
- Document ID: US20210289139A1
- Status: Published application
- Kind: A1
- Application number: 17/336,194
- Filed: 2021-06-01
- Published: 2021-09-16
- Earliest claimed: 2017-10-03
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Fuhao Shi; Chia-Kai Liang; Xue Tu
- Web page: https://patentgrep.com/patent/US20210289139A1

## CPC

- H04N 23/687: {by shifting the lens or sensor position}
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/73: Deblurring; Sharpening
- G06T 7/246: using feature-based methods, e.g. the tracking of corners or segments
- H04N 23/6811: {based on the image signal}
- H04N 23/6812: {based on additional sensors, e.g. acceleration sensors}
- H04N 23/683: {performed by a processor, e.g. controlling the readout of an image memory}
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20201: Motion blur correction
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Methods, systems, and apparatus, including computer programs stored on a computer-readable storage medium, for video stabilization. In some implementations, a computer system obtains frames of a video captured by a recording device using an optical image stabilization (OIS) system. The computing system receives (i) OIS position data indicating positions of the OIS system during capture of the frames, and (ii) device position data indicating positions of the recording device during capture of the frames. The computing system determines a first transformation for a particular frame based on the OIS position data for the particular frame and device position data for the particular frame. The computing system determines a second transformation for the particular frame based on the first transformation and positions of the recording device occurring after capture of the particular frame. The computing system generates a stabilized version of the particular frame using the second transformation.

## Claims

### Claim 1

A method comprising:
receiving a series of frames of a video captured by a recording device using an optical image stabilization (OIS) system;
receiving (i) OIS position data indicating positions of the OIS system during capture of the series of frames, the OIS position data indicating, for at least some of the frames in the series of frames, multiple OIS position measurements for different times during capture of the frame, and (ii) device position data indicating positions of the recording device during capture of the series of frames;
determining one or more transformations for a particular frame in the series of frames, the one or more transformations being determined based on the OIS position data for the particular frame and the device position data for the particular frame;
determining, based on the OIS position data for the particular frame, an amount of blur in the particular frame; and
responsive to the amount of blur in the particular frame being above a threshold amount, generating a stabilized version of the particular frame using the one or more transformations, the stabilized version of the particular frame at least partially tracking the device position data for the particular frame.

### Claim 2 (depends on 1)

The method of claim 1, the method further comprising:
determining a first virtual camera position for the particular frame; and
determining, using the first virtual camera position and the device position data for the particular frame, a second virtual camera position.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining the second virtual camera position comprises interpolating, based on the amount of blur in the particular frame, between the first virtual camera position and a position of the recording device during capture of the particular frame.

### Claim 4 (depends on 3)

The method of claim 3, wherein the amount of blur in the particular frame is determined by:
determining a first projection matrix for a beginning of exposure of the particular frame;
determining a second projection matrix for an end of exposure of the particular frame;
determining a projection transformation between the first projection matrix and the second projection matrix;
applying the projection transformation to an origin point representing a center point for the particular frame to generate a projected point, the projected point being an offset from the center point; and
estimating, based on a magnitude of the offset, the amount of blur in the particular frame.

### Claim 5 (depends on 3)

The method of claim 3, wherein the one or more transformations are determined based on the second virtual camera position.

### Claim 6 (depends on 1)

The method of claim 1, the method further comprising:
determining a future transition measure for a future frame occurring after the particular frame, the future transition measure indicating a difference between a position of the recording device for the particular frame and a position of the recording device for the future frame;
determining whether the future transition measure is above a threshold amount; and
in response to determining that the future transition measure being above the threshold amount, generating the stabilized version of the particular frame based at least in part on the future transition measure.

### Claim 7 (depends on 6)

The method of claim 6, wherein the stabilized version of the particular frame is shifted to introduce apparent movement from the future frame.

### Claim 8 (depends on 1)

The method of claim 1, the method further comprising:
determining whether stabilization of a future frame occurring after the particular frame introduces cropping;
in response to determining that the stabilization of the future frame introduces the cropping, generating the stabilized version of the particular frame to introduce a portion of the cropping.

### Claim 9 (depends on 1)

The method of claim 1, wherein the one or more transformations are further based on lens focus data indicating one or more lens focus positions used during capture of the particular frame.

### Claim 10 (depends on 1)

The method of claim 1, wherein the one or more transformations comprise multiple transformations corresponding to multiple scanlines of the particular frame.

### Claim 11 (depends on 1)

The method of claim 1, wherein:
receiving the OIS position data comprises receiving lens shift data indicating positions of a movable lens of the OIS system; and
receiving the device position data comprises receiving orientation or movement data from a gyroscope or an accelerometer of the recording device.

### Claim 12 (depends on 1)

The method of claim 1, wherein:
the OIS position data indicates multiple OIS position readings for each frame in the series of frames; and
the device position data indicates multiple device position measurements for each frame in the series of frames.

### Claim 13

A system comprising:
one or more processors; and
one or more machine-readable media storing instructions that, when executed by the one or more processors, cause the one or more processors to:
receive a series of frames of a video captured by a recording device using an optical image stabilization (OIS) system;
receive (i) OIS position data indicating positions of the OIS system during capture of the series of frames, the OIS position data indicating, for at least some of the frames in the series of frames, multiple OIS position measurements for different times during capture of the frame, and (ii) device position data indicating positions of the recording device during capture of the series of frames;
determine one or more transformations for a particular frame in the series of frames, the one or more transformations being determined based on the OIS position data for the particular frame and the device position data for the particular frame;
determine, based on the OIS position data for the particular frame, an amount of blur in the particular frame; and
responsive to the amount of blur in the particular frame being above a threshold amount, generate a stabilized version of the particular frame using the one or more transformations, the stabilized version of the particular frame at least partially tracking the device position data for the particular frame.

### Claim 14 (depends on 13)

The system of claim 13, the one or more machine-readable media storing further instructions that, when executed by the one or more processors, cause the one or more processors to:
determine a first virtual camera position for the particular frame; and
determine, using the first virtual camera position and the device position data for the particular frame, a second virtual camera position.

### Claim 15 (depends on 14)

The system of claim 14, wherein a determination of the second virtual camera position comprises interpolating, based on the amount of blur in the particular frame, between the first virtual camera position and a position of the recording device during capture of the particular frame.

### Claim 16 (depends on 15)

The system of claim 15, wherein the amount of blur in the particular frame is determined by:
determining a first projection matrix for a beginning of exposure of the particular frame;
determining a second projection matrix for an end of exposure of the particular frame;
determining a projection transformation between the first projection matrix and the second projection matrix;
applying the projection transformation to an origin point representing a center point for the particular frame to generate a projected point, the projected point being an offset from the center point; and
estimating, based on a magnitude of the offset, the amount of blur in the particular frame.

### Claim 17 (depends on 15)

The system of claim 15, wherein the one or more transformations are determined based on the second virtual camera position.

### Claim 18 (depends on 13)

The system of claim 13, the one or more machine-readable media storing further instructions that, when executed by the one or more processors, cause the one or more processors to:
determine a future transition measure for a future frame occurring after the particular frame, the future transition measure indicating a difference between a position of the recording device for the particular frame and a position of the recording device for the future frame;
determine whether the future transition measure is above a threshold amount; and
in response to a determination that the future transition measure being above the threshold amount, generate the stabilized version of the particular frame based at least in part on the future transition measure.

### Claim 19 (depends on 18)

The system of claim 18, wherein the stabilized version of the particular frame is shifted to introduce apparent movement from the future frame.

### Claim 20

One or more non-transitory machine-readable media storing instructions that, when executed by one or more processors, cause the one or more processors to:
receive a series of frames of a video captured by a recording device using an optical image stabilization (OIS) system;
receive (i) OIS position data indicating positions of the OIS system during capture of the series of frames, the OIS position data indicating, for at least some of the frames in the series of frames, multiple OIS position measurements for different times during capture of the frame, and (ii) device position data indicating positions of the recording device during capture of the series of frames;
determine one or more transformations for a particular frame in the series of frames, the one or more transformations being determined based on the OIS position data for the particular frame and the device position data for the particular frame;
determine, based on the OIS position data for the particular frame, an amount of blur in the particular frame; and
responsive to the amount of blur in the particular frame being above a threshold amount, generate a stabilized version of the particular frame using the one or more transformations, the stabilized version of the particular frame at least partially tracking the device position data for the particular frame.
