# US 2025/0095185 A1 · Artificial intelligence smoothed object detection and tracking in video

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

- Number: US 2025/0095185 A1
- Document ID: US20250095185A1
- Status: Published application
- Kind: A1
- Application number: 18/466,970
- Filed: 2023-09-14
- Published: 2025-03-20
- Earliest claimed: 2023-09-14
- Assignees: Shopify Inc.
- Applicants: Shopify Inc.
- Inventors: Neil Leonard PADGETT; Russ MASCHMEYER; Eric Andrew FLORENZANO; Brennan LETKEMAN; James LEPP; Diego Macario BELLO
- Web page: https://patentgrep.com/patent/US20250095185A1

## CPC

- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06V 10/62: relating to a temporal dimension, e.g. time-based feature extraction; Pattern tracking
- G06T 7/20: Analysis of motion (motion estimation for coding, decoding, compressing or decompressing digital video signals H04N19/43, H04N19/51)
- G06V 10/764: using classification, e.g. of video objects
- 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}
- G06V 20/49: {Segmenting video sequences, i.e. computational techniques such as parsing or cutting the sequence, low-level clustering or determining units such as shots or scenes}
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- 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
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Methods and systems for object detection and tracking in video that use at least two different AI-assisted object detection algorithms. A first AI-assisted object detection algorithm selected to be used to detect an object in a video frame and determine a mask defining location of the object on the basis that the video frame is a keyframe. A second AI-assisted object detection algorithm may be used to track location of the mask in temporally subsequent frames until the next keyframe is detected.

## Claims

### Claim 1

A computer-implemented method, comprising:
identifying an object in a first video frame of a video by applying a first AI-assisted object detection algorithm that outputs a mask defining location of the object in the first video frame;
tracking the mask and defining its location in at least one temporally subsequent frame of the video using a second AI-assisted object detection algorithm; and
determining that a further frame of the video is a keyframe and, on that basis, re-applying the first AI-assisted objected detection algorithm to identify the object in the further frame and to output a next mask defining the location of the object in the further frame before repeating the tracking and defining using the second AI-assisted object detection algorithm for one or more frames subsequent to the keyframe.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first AI-assisted object detection algorithm includes a promptable image segmentation model using prompt engineering.

### Claim 3 (depends on 1)

The method of claim 1, wherein the second AI-assisted object detection algorithm includes a diffusion-based generative model.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first AI-assisted object detection algorithm determines the mask defining location of the object in the first video frame without reference to preceding frames of the video or previously-determined masks for the video, and wherein the second AI-assisted object detection algorithm tracks the mask and defines its location in the at least one temporally subsequent frame of the video based on a location of the mask in a preceding frame and a determination of correspondence between the preceding frame and the at least one temporally subsequent frame.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining that the further frame is a keyframe includes receiving keyframe identification data from at least one of a video encoder and a video decoder regarding the video.

### Claim 6 (depends on 5)

The method of claim 5, wherein the keyframe identification data includes data identifying frames within decoded video that are keyframes.

### Claim 7 (depends on 5)

The method of claim 5, wherein receiving keyframe identification data includes extracting the keyframe identification data from decoded video.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining that the further frame is a keyframe in based on determining that the further frame was intra-coded by an encoder.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining that the subsequent frame is a keyframe includes performing scene change analysis on the video and determining that the subsequent frame is a scene change.

### Claim 10 (depends on 1)

The method of claim 1, wherein determining that the further frame is a keyframe includes tracking the mask and defining its location in the further frame of the video using the second AI-assisted object detection algorithm, applying the first AI-assisted object detection algorithm to identify a new mask defining a location of the object in the further frame, comparing the new mask to the location of the mask determined by the second AI-assisted object detection algorithm, and determining that an error measurement exceeds a threshold value.

### Claim 11 (depends on 10)

The method of claim 10, wherein the operations of tracking the mask and defining its location in the further frame, applying the first AI-assisted object detection algorithm to identify the new mask, comparing the new mask to the location of the mask determined by the second AI-assisted object detection algorithm, and determining the error measurement are carried out only on frames of the video that were intra-coded.

### Claim 12 (depends on 1)

The method of claim 1, further comprising displaying the video on a display screen with a visual overlay indicating the object based on the mask and the next mask.

### Claim 13

A non-transitory processor-readable medium storing processor-executable instructions that, when executed by one or more processors, are to cause the one or more processors to:
identify an object in a first video frame of a video by applying a first AI-assisted object detection algorithm that outputs a mask defining location of the object in the first video frame;
track the mask and define its location in at least one temporally subsequent frame of the video using a second AI-assisted object detection algorithm; and
determine that a further frame of the video is a keyframe and, on that basis, re-apply the first AI-assisted objected detection algorithm to identify the object in the further frame and to output a next mask defining the location of the object in the further frame before repeating the tracking and defining using the second AI-assisted object detection algorithm for one or more frames subsequent to the keyframe.

### Claim 14 (depends on 13)

The non-transitory processor-readable medium of claim 13, wherein the first AI-assisted object detection algorithm includes a promptable image segmentation model using prompt engineering.

### Claim 15 (depends on 13)

The non-transitory processor-readable medium of claim 13, wherein the second AI-assisted object detection algorithm includes a diffusion-based generative model.

### Claim 16 (depends on 13)

The non-transitory processor-readable medium of claim 13, wherein the first AI-assisted object detection algorithm determines the mask defining location of the object in the first video frame without reference to preceding frames of the video or previously-determined masks for the video, and wherein the second AI-assisted object detection algorithm tracks the mask and defines its location in the at least one temporally subsequent frame of the video based on a location of the mask in a preceding frame and a determination of correspondence between the preceding frame and the at least one temporally subsequent frame.

### Claim 17 (depends on 13)

The non-transitory processor-readable medium of claim 13, wherein the instructions, when executed, are to cause the one or more processors to determine that the further frame is a keyframe by at least receiving keyframe identification data from at least one of a video encoder and a video decoder regarding the video.

### Claim 18 (depends on 17)

The non-transitory processor-readable medium of claim 17, wherein the keyframe identification data includes data identifying frames within decoded video that are keyframes.

### Claim 19 (depends on 17)

The non-transitory processor-readable medium of claim 17, wherein receiving keyframe identification data includes extracting the keyframe identification data from decoded video.

### Claim 20 (depends on 13)

The non-transitory processor-readable medium of claim 13, wherein the instructions, when executed, are to cause the one or more processors to determine that the further frame is a keyframe by determining that the further frame was intra-coded by an encoder.

### Claim 21 (depends on 13)

The non-transitory processor-readable medium of claim 13, wherein the instructions, when executed, are to cause the one or more processors to determine that the subsequent frame is a keyframe by performing scene change analysis on the video and determining that the subsequent frame is a scene change.

### Claim 22 (depends on 13)

The non-transitory processor-readable medium of claim 13, wherein the instructions, when executed, are to cause the one or more processors to determine that the further frame is a keyframe by tracking the mask and defining its location in the further frame of the video using the second AI-assisted object detection algorithm, applying the first AI-assisted object detection algorithm to identify a new mask defining a location of the object in the further frame, comparing the new mask to the location of the mask determined by the second AI-assisted object detection algorithm, and determining that an error measurement exceeds a threshold value.

### Claim 23 (depends on 22)

The non-transitory processor-readable medium of claim 22, wherein the operations of tracking the mask and defining its location in the further frame, applying the first AI-assisted object detection algorithm to identify the new mask, comparing the new mask to the location of the mask determined by the second AI-assisted object detection algorithm, and determining the error measurement are carried out only on frames of the video that were intra-coded.

### Claim 24 (depends on 13)

The non-transitory processor-readable medium of claim 13, wherein the instructions, when executed, are to cause the one or more processors to display the video on a display screen with a visual overlay indicating the object based on the mask and the next mask.

### Claim 25

A computing system, comprising:
one or more processors; and
memory coupled to at least one of the one or more processors, the memory storing computer-executable instructions that, when executed by the one or more processors, are to cause the one or more processors to:
identify an object in a first video frame of a video by applying a first AI-assisted object detection algorithm that outputs a mask defining location of the object in the first video frame;
track the mask and define its location in at least one temporally subsequent frame of the video using a second AI-assisted object detection algorithm; and
determine that a further frame of the video is a keyframe and, on that basis, re-apply the first AI-assisted objected detection algorithm to identify the object in the further frame and to output a next mask defining the location of the object in the further frame before repeating the tracking and defining using the second AI-assisted object detection algorithm for one or more frames subsequent to the keyframe.
