# US 2026/0095601 A1 · Method and apparatus for determining live streaming keyframe, storage medium, and electronic device

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

- Number: US 2026/0095601 A1
- Document ID: US20260095601A1
- Status: Published application
- Kind: A1
- Application number: 19/317,170
- Filed: 2025-09-03
- Published: 2026-04-02
- Earliest claimed: 2024-09-29
- Assignees: Alipay (Hangzhou) Information Technology Co., Ltd.
- Applicants: Alipay (Hangzhou) Information Technology Co., Ltd.
- Inventors: Hailiang ZHU; Zongwang HU
- Web page: https://patentgrep.com/patent/US20260095601A1

## CPC

- H04N 21/2187: Live feed
- H04N 21/23418: {involving operations for analysing video streams, e.g. detecting features or characteristics (television picture signal circuitry for scene change detection H04N5/147; filtering for image enhancement G06T5/00; methods or arrangements for recognising scenes G06V20/00; arrangements characterised by components specially adapted for monitoring, identification or recognition of video in broadcast systems H04H60/59)}
- H04N 21/44008: {involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream (arrangements characterised by components specially adapted for monitoring, identification or recognition of video in broadcast systems H04H60/59)}
- H04N 21/8456: {by decomposing the content in the time domain, e.g. in time segments}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments of this specification disclose a method and an apparatus for determining a live streaming keyframe, a storage medium, and an electronic device. Feature extraction is performed on a current captured frame of target live streaming by using a feature extraction module, to obtain a feature vector of the current captured frame. The feature vector of the current captured frame is stored in a cache, and a target historical captured frame that is in the cache and that corresponds to the current captured frame is deleted. A feature vector of a plurality of captured frames is read from the cache by using a keyframe calculation module, and at least one keyframe is determined based on the feature vector of the plurality of captured frames. If the current captured frame is in the at least one keyframe, it is determined that the current captured frame is a keyframe.

## Claims

### Claim 1

A method for determining a live streaming keyframe, comprising:
performing, by using a feature extraction module, feature extraction on a current captured frame of target live streaming, to obtain a feature vector of the current captured frame, wherein a frame sequence number corresponding to the current captured frame is a first sequence number;
storing the feature vector of the current captured frame in a cache, and deleting a target historical captured frame that is in the cache and that corresponds to the current captured frame, wherein a difference between the first sequence number and a target sequence number corresponding to the target historical captured frame is a target quantity;
reading, from the cache by using a keyframe calculation module, a feature vector of a plurality of captured frames whose corresponding frame sequence numbers are from a second sequence number to the first sequence number, and determining at least one keyframe based on the feature vector of the plurality of captured frames, wherein a difference between the first sequence number and the second sequence number is the target quantity minus one, and a capture time of a captured frame corresponding to the second sequence number is earlier than a capture time of a captured frame corresponding to the first sequence number; and
if the current captured frame is in the at least one keyframe, determining that the current captured frame is a keyframe.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
obtaining a sliding window corresponding to a historical captured frame of the target live streaming, wherein a window length of the sliding window is the target quantity, and a current right boundary of the sliding window is a previous historical captured frame corresponding to the current captured frame;
the deleting a target historical captured frame that is in the cache and that corresponds to the current captured frame comprises:
sliding the sliding window rightward by one step, so that the current right boundary of the sliding window becomes the current captured frame, and deleting a previous target historical captured frame of a historical captured frame that is in the cache and that corresponds to a current left boundary of the sliding window; and
the reading, from the cache by using a keyframe calculation module, a feature vector of a plurality of captured frames whose corresponding frame sequence numbers are from a second sequence number to the first sequence number comprises:
reading, from the cache based on the sliding window by using the keyframe calculation module, the feature vector of the plurality of captured frames whose corresponding frame sequence numbers are from the second sequence number to the first sequence number.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the sliding the sliding window rightward by one step, so that the current right boundary of the sliding window becomes the current captured frame, and deleting a previous target historical captured frame of a historical captured frame that is in the cache and that corresponds to a current left boundary of the sliding window comprises:
obtaining a frame quantity corresponding to the historical captured frame that is of the target live streaming and that is currently cached in the cache; and
if the frame quantity is greater than or equal to the window length of the sliding window, sliding the sliding window rightward by one step, so that the current right boundary of the sliding window becomes the current captured frame, and deleting the previous target historical captured frame of the historical captured frame that is in the cache and that corresponds to the current left boundary of the sliding window.

### Claim 4 (depends on 2)

The method according to claim 2, further comprising:
determining the window length of the sliding window based on the target live streaming.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the determining the window length of the sliding window based on the target live streaming comprises:
determining the window length of the sliding window based on streamer information and/or product information corresponding to the target live streaming.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the determining the window length of the sliding window based on streamer information and/or product information that correspond/corresponds to the target live streaming comprises:
determining the window length of the sliding window based on the streamer information and/or the product information corresponding to the target live streaming and with reference to audience information corresponding to the target live streaming.

### Claim 7 (depends on 2)

The method according to claim 2, further comprising:
performing content detection on the current captured frame by using a content detection module, to obtain a content detection result corresponding to the current captured frame.

### Claim 8 (depends on 7)

The method according to claim 7, further comprising:
determining, based on the content detection result corresponding to the current captured frame, whether the window length of the sliding window needs to be adjusted; and
sliding the current right boundary of the sliding window rightward if it is determined that the window length of the sliding window needs to be increased; or sliding the current left boundary of the sliding window rightward if it is determined that the window length of the sliding window needs to be decreased.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the determining, based on the content detection result corresponding to the current captured frame, whether the window length of the sliding window needs to be adjusted comprises:
determining, based on the content detection result corresponding to the current captured frame and a content detection result corresponding to a historical keyframe that corresponds to the target live streaming and that is located before the current captured frames, whether the window length of the sliding window needs to be adjusted.

### Claim at position 10

10-11. (canceled)

### Claim 12

An electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program, the electronic device is caused to:
perform, by using a feature extraction module, feature extraction on a current captured frame of target live streaming, to obtain a feature vector of the current captured frame, wherein a frame sequence number corresponding to the current captured frame is a first sequence number;
store the feature vector of the current captured frame in a cache, and delete a target historical captured frame that is in the cache and that corresponds to the current captured frame, wherein a difference between the first sequence number and a target sequence number corresponding to the target historical captured frame is a target quantity;
read, from the cache by using a keyframe calculation module, a feature vector of a plurality of captured frames whose corresponding frame sequence numbers are from a second sequence number to the first sequence number, and determine at least one keyframe based on the feature vector of the plurality of captured frames, wherein a difference between the first sequence number and the second sequence number is the target quantity minus one, and a capture time of a captured frame corresponding to the second sequence number is earlier than a capture time of a captured frame corresponding to the first sequence number; and
if the current captured frame is in the at least one keyframe, determine that the current captured frame is a keyframe.

### Claim 13

(canceled)

### Claim 14 (depends on 12)

The electronic device according to claim 12, is further caused to:
obtain a sliding window corresponding to a historical captured frame of the target live streaming, wherein a window length of the sliding window is the target quantity, and a current right boundary of the sliding window is a previous historical captured frame corresponding to the current captured frame;
the electronic device being caused to delete a target historical captured frame that is in the cache and that corresponds to the current captured frame comprises being caused to:
slide the sliding window rightward by one step, so that the current right boundary of the sliding window becomes the current captured frame, and delete a previous target historical captured frame of a historical captured frame that is in the cache and that corresponds to a current left boundary of the sliding window; and
the electronic device being caused to read, from the cache by using a keyframe calculation module, a feature vector of a plurality of captured frames whose corresponding frame sequence numbers are from a second sequence number to the first sequence number comprises being caused to:
read, from the cache based on the sliding window by using the keyframe calculation module, the feature vector of the plurality of captured frames whose corresponding frame sequence numbers are from the second sequence number to the first sequence number.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein the electronic device being caused to slide the sliding window rightward by one step, so that the current right boundary of the sliding window becomes the current captured frame, and delete a previous target historical captured frame of a historical captured frame that is in the cache and that corresponds to a current left boundary of the sliding window comprises being caused to:
obtain a frame quantity corresponding to the historical captured frame that is of the target live streaming and that is currently cached in the cache; and
if the frame quantity is greater than or equal to the window length of the sliding window, slide the sliding window rightward by one step, so that the current right boundary of the sliding window becomes the current captured frame, and delete the previous target historical captured frame of the historical captured frame that is in the cache and that corresponds to the current left boundary of the sliding window.

### Claim 16 (depends on 14)

The electronic device according to claim 14, is further caused to:
determine the window length of the sliding window based on the target live streaming.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the electronic device being caused to determine the window length of the sliding window based on the target live streaming comprises being caused to:
determine the window length of the sliding window based on streamer information and/or product information corresponding to the target live streaming.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein the electronic device being caused to determine the window length of the sliding window based on streamer information and/or product information that correspond/corresponds to the target live streaming comprises being caused to:
determine the window length of the sliding window based on the streamer information and/or the product information corresponding to the target live streaming and with reference to audience information corresponding to the target live streaming.

### Claim 19

A non-transitory storage medium storing a computer program, which when executed by a processor causes the processor to:
perform, by using a feature extraction module, feature extraction on a current captured frame of target live streaming, to obtain a feature vector of the current captured frame, wherein a frame sequence number corresponding to the current captured frame is a first sequence number;
store the feature vector of the current captured frame in a cache, and delete a target historical captured frame that is in the cache and that corresponds to the current captured frame, wherein a difference between the first sequence number and a target sequence number corresponding to the target historical captured frame is a target quantity;
read, from the cache by using a keyframe calculation module, a feature vector of a plurality of captured frames whose corresponding frame sequence numbers are from a second sequence number to the first sequence number, and determine at least one keyframe based on the feature vector of the plurality of captured frames, wherein a difference between the first sequence number and the second sequence number is the target quantity minus one, and a capture time of a captured frame corresponding to the second sequence number is earlier than a capture time of a captured frame corresponding to the first sequence number; and
if the current captured frame is in the at least one keyframe, determine that the current captured frame is a keyframe.

### Claim 20 (depends on 19)

The non-transitory storage medium according to claim 19, wherein the processor further comprises being caused to:
obtain a sliding window corresponding to a historical captured frame of the target live streaming, wherein a window length of the sliding window is the target quantity, and a current right boundary of the sliding window is a previous historical captured frame corresponding to the current captured frame;
the processor being caused to delete a target historical captured frame that is in the cache and that corresponds to the current captured frame comprises being caused to:
slide the sliding window rightward by one step, so that the current right boundary of the sliding window becomes the current captured frame, and delete a previous target historical captured frame of a historical captured frame that is in the cache and that corresponds to a current left boundary of the sliding window; and
the processor being caused to read, from the cache by using a keyframe calculation module, a feature vector of a plurality of captured frames whose corresponding frame sequence numbers are from a second sequence number to the first sequence number comprises being caused to:
read, from the cache based on the sliding window by using the keyframe calculation module, the feature vector of the plurality of captured frames whose corresponding frame sequence numbers are from the second sequence number to the first sequence number.

### Claim 21 (depends on 20)

The non-transitory storage medium according to claim 20, wherein the processor being caused to slide the sliding window rightward by one step, so that the current right boundary of the sliding window becomes the current captured frame, and delete a previous target historical captured frame of a historical captured frame that is in the cache and that corresponds to a current left boundary of the sliding window comprises being caused to:
obtain a frame quantity corresponding to the historical captured frame that is of the target live streaming and that is currently cached in the cache; and
if the frame quantity is greater than or equal to the window length of the sliding window, slide the sliding window rightward by one step, so that the current right boundary of the sliding window becomes the current captured frame, and delete the previous target historical captured frame of the historical captured frame that is in the cache and that corresponds to the current left boundary of the sliding window.

### Claim 22 (depends on 20)

The non-transitory storage medium according to claim 20, wherein the processor further comprises being caused to:
determine the window length of the sliding window based on the target live streaming.

### Claim 23 (depends on 22)

The non-transitory storage medium according to claim 22, wherein the processor being caused to determine the window length of the sliding window based on the target live streaming comprises being caused to:
determine the window length of the sliding window based on streamer information and/or product information corresponding to the target live streaming.
