# US 2023/0274543 A1 · Real-time tracking-compensated image effects

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

- Number: US 2023/0274543 A1
- Document ID: US20230274543A1
- Status: Published application
- Kind: A1
- Application number: 18/312,479
- Filed: 2023-05-04
- Published: 2023-08-31
- Earliest claimed: 2017-09-15
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Samuel Edward Hare; Fedir Poliakov; Guohui Wang; Xuehan Xiong; Jianchao Yang; Linjie Yang; Shah Tanmay Anilkumar
- Web page: https://patentgrep.com/patent/US20230274543A1

## CPC

- G06T 7/174: involving the use of two or more images
- G06V 20/40: in video content (extracting overlay text G06V20/62; video retrieval G06F16/70; processing of video elementary streams in video servers H04N21/234; processing of video elementary streams in video clients H04N21/44)
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 7/11: Region-based segmentation
- G06T 7/20: Analysis of motion (motion estimation for coding, decoding, compressing or decompressing digital video signals H04N19/43, H04N19/51)
- G06T 7/215: Motion-based segmentation
- G06T 7/248: {involving reference images or patches}
- G06V 10/82: using neural networks
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G06T 2200/28: involving image processing hardware
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A mobile device can generate real-time complex visual image effects using asynchronous processing pipeline. A first pipeline applies a complex image process, such as a neural network, to keyframes of a live image sequence. A second pipeline generates flow maps that describe feature transformations in the image sequence. The flow maps can be used to process non-keyframes on the fly. The processed keyframes and non-keyframes can be used to display a complex visual effect on the mobile device in real-time or near real-time.

## Claims

### Claim 1

A method comprising:
generating, using one or more processors of a device, a video sequence comprising a plurality of frames;
detecting a lag of an editing engine configured to apply a machine learning scheme to the video sequence, a previous frame having a corresponding modified previous frame and a current frame that does not have a corresponding modified current frame;
in response to detecting the lag, generating a map between the previous frame and the current frame; and
generating the corresponding modified current frame by applying the map to the modified previous frame.

### Claim 2 (depends on 1)

The method of claim 1, wherein detecting the lag of the editing engine comprises:
determining that the editing engine is still processing images preceding the current frame, where the current frame is a next image to be processed.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
generating modified images in a first pipeline by applying the machine learning scheme to the video sequence, the first pipeline comprising the previous frame having the corresponding modified previous frame and the current frame that does not have the corresponding modified current frame in the first pipeline.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
in response to detecting the lag, generating, in a second pipeline, the map between the previous frame and the current frame.

### Claim 5 (depends on 4)

The method of claim 4, wherein the second pipeline is asynchronous to the first pipeline.

### Claim 6 (depends on 4)

The method of claim 4, wherein the first pipeline and the second pipeline are implemented on different threads of the one or more processors of the device.

### Claim 7 (depends on 1)

The method of claim 1, wherein the previous frame and the current frame are separated by a plurality of other frames in the video sequence.

### Claim 8 (depends on 1)

The method of claim 1, wherein the machine learning scheme is trained to apply an image manipulation, and wherein the modified previous frame exhibits the image manipulation.

### Claim 9 (depends on 1)

The method of claim 1, wherein the map is a flow map that describes changes of image features in the video sequence.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
displaying a modified video sequence on the device, the modified video sequence comprising the modified previous frame and the modified current frame,
wherein the modified video sequence collates the modified previous frame and the modified current frame.

### Claim 11

A device comprising:
one or more processors;
a memory storing instructions that, when executed by the one or more processors, cause the device to perform operations comprising:
generating, using one or more processors of a device, a video sequence comprising a plurality of frames;
detecting a lag of an editing engine configured to apply a machine learning scheme to the video sequence, a previous frame having a corresponding modified previous frame and a current frame that does not have a corresponding modified current frame;
in response to detecting the lag, generating a map between the previous frame and the current frame; and
generating the corresponding modified current frame by applying the map to the modified previous frame.

### Claim 12 (depends on 11)

The device of claim 11, wherein detecting the lag of the editing engine comprises:
determining that the editing engine is still processing images preceding the current frame, where the current frame is a next image to be processed.

### Claim 13 (depends on 11)

The device of claim 11, wherein the operations further comprise:
generating modified images in a first pipeline by applying the machine learning scheme to the video sequence, the first pipeline comprising the previous frame having the corresponding modified previous frame and the current frame that does not have the corresponding modified current frame in the first pipeline.

### Claim 14 (depends on 13)

The device of claim 13, wherein the operations further comprise:
in response to detecting the lag, generating, in a second pipeline, the map between the previous frame and the current frame.

### Claim 15 (depends on 14)

The device of claim 14, wherein the second pipeline is asynchronous to the first pipeline.

### Claim 16 (depends on 14)

The device of claim 14, wherein the first pipeline and the second pipeline are implemented on different threads of the one or more processors of the device.

### Claim 17 (depends on 11)

The device of claim 11, wherein the previous frame and the current frame are separated by a plurality of other frames in the video sequence.

### Claim 18 (depends on 11)

The device of claim 11, wherein the machine learning scheme is trained to apply an image manipulation, and wherein the modified previous frame exhibits the image manipulation.

### Claim 19 (depends on 11)

The device of claim 11, wherein the map is a flow map that describes changes of image features in the video sequence.

### Claim 20

A non-transitory machine readable medium embodying instructions that, when executed by a machine, cause the machine to perform operations comprising:
generating, using one or more processors of a device, a video sequence comprising a plurality of frames;
detecting a lag of an editing engine configured to apply a machine learning scheme to the video sequence, a previous frame having a corresponding modified previous frame and a current frame that does not have a corresponding modified current frame;
in response to detecting the lag, generating a map between the previous frame and the current frame; and
generating the corresponding modified current frame by applying the map to the modified previous frame.
