# US 2021/0279473 A1 · Video processing method and apparatus, electronic device, and storage medium

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

- Number: US 2021/0279473 A1
- Document ID: US20210279473A1
- Status: Published application
- Kind: A1
- Application number: 17/330,228
- Filed: 2021-05-25
- Published: 2021-09-09
- Earliest claimed: 2019-05-15
- Assignees: Shanghai Sensetime Intelligent Technology Co., Ltd.
- Applicants: Shanghai Sensetime Intelligent Technology Co., Ltd.
- Inventors: Jiafei WU
- Web page: https://patentgrep.com/patent/US20210279473A1

## CPC

- G06T 7/00: Image analysis
- G06F 18/253: {of extracted features}
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/806: {of extracted features}
- 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}
- G06V 40/16: Human faces, e.g. facial parts, sketches or expressions
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30168: Image quality inspection
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Provided are a video processing method and apparatus, an electronic device, and a storage medium. The video processing method includes: acquiring at least one candidate video frame sequence; performing intra-sequence frame selection on each candidate video frame sequence to obtain a first frame selection result respectively corresponding to each candidate video frame sequence; and performing global frame selection based on all the first frame selection results to obtain a final frame selection result.

## Claims

### Claim 1

A method for video processing, comprising:
acquiring at least one candidate video frame sequence;
performing intra-sequence frame selection on each candidate video frame sequence to obtain a first frame selection result respectively corresponding to each candidate video frame sequence; and
performing global frame selection based on all the first frame selection results to obtain a final frame selection result.

### Claim 2 (depends on 1)

The method according to claim 1, wherein before acquiring the at least one candidate video frame sequence, the method further comprises:
acquiring a video frame sequence;
segmenting the video frame sequence to obtain a plurality of sub-video frame sequences, and
taking the sub-video frame sequence as the candidate video frame sequence.

### Claim 3 (depends on 2)

The method according to claim 2, wherein segmenting the video frame sequence to obtain the plurality of sub-video frame sequences comprises:
segmenting the video frame sequence in a time domain to obtain at least two sub-video frame sequences, each sub-video frame sequence including a same quantity of video frames.

### Claim 4 (depends on 2)

The method according to claim 2, wherein segmenting the video frame sequence to obtain the plurality of sub-video frame sequences further comprises:
determining a quantity of video frames included in each sub-video frame sequence based on a predetermined requirement; and
segmenting the video frame sequence in a time domain based on the quantity to obtain at least two sub-video frame sequences.

### Claim 5 (depends on 1)

The method according to claim 1, wherein performing intra-sequence frame selection on each candidate video frame sequence to obtain the first frame selection result respectively corresponding to each candidate video frame sequence comprises:
acquiring a quality parameter of each video frame in the at least one candidate video frame sequence;
performing sorting in the at least one candidate video frame sequence based on the quality parameter; and
performing frame extraction on the sorted at least one candidate video frame sequence based on a predetermined frame interval to obtain the first frame selection result respectively corresponding to each candidate video frame sequence.

### Claim 6 (depends on 5)

The method according to claim 5, wherein before performing frame extraction on the sorted at least one candidate video frame sequence based on the predetermined frame interval, the method further comprises:
sequentially configuring a number for each video frame in the at least one candidate frame sequence according to a time sequence of each video frame in the at least one candidate video frame sequence; and
obtaining a frame interval between video frames in the sorted at least one candidate video frame sequence based on an absolute value of a number difference between the video frames.

### Claim 7 (depends on 5)

The method according to claim 5, wherein performing frame extraction on the sorted at least one candidate video frame sequence based on a predetermined frame interval to obtain the first frame selection result respectively corresponding to each candidate video frame sequence comprises:
selecting a video frame with a highest quality parameter from each of the sorted at least one candidate video frame sequence, and taking the video frame with the highest quality parameter as the first frame selection result respectively corresponding to each candidate video frame sequence.

### Claim 8 (depends on 5)

The method according to claim 5, wherein performing frame extraction on the sorted at least one candidate video frame sequence based on a predetermined frame interval to obtain the first frame selection result respectively corresponding to each candidate video frame sequence comprises:
selecting a video frame with a highest quality parameter from each of the sorted at least one candidate video frame sequence as a first selected video frame;
sequentially selecting k1 video frames in each of the sorted at least one candidate video frame sequence according to a sorting sequence, wherein a frame interval between a currently selected video frame and any other selected video frame is greater than a predetermined frame interval, where k1 is an integer greater than or equal to 1; and
taking all the selected video frames as the first frame selection result respectively corresponding to each candidate video frame sequence.

### Claim 9 (depends on 1)

The method according to claim 1, wherein performing global frame selection based on all the first frame selection results to obtain the final frame selection result comprises:
taking the first frame selection result as the final frame selection result; or,
selecting k2 video frames with a highest quality from all the first frame selection results, and taking the k2 video frames as the final frame selection result, where k2 is an integer greater than or equal to 1.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising: executing a preset operation based on the final frame selection result.

### Claim 11 (depends on 10)

The method according to claim 10, wherein executing the preset operation based on the final frame selection result comprises:
sending the final frame selection result; or,
executing a target identification operation based on the final frame selection result.

### Claim 12 (depends on 11)

The method according to claim 11, wherein executing the target identification operation based on the final frame selection result comprises:
extracting image features of each video frame in the final frame selection result;
executing a feature fusion operation on the image features to obtain a fused feature; and
executing the target identification operation based on the fused feature.

### Claim 13

An apparatus for video processing, comprising:
a processor; and
a memory configured to store instructions executable by the processor,
wherein the processor calls the executable instructions to implement operations comprising:
acquiring at least one candidate video frame sequence;
performing intra-sequence frame selection on each candidate video frame sequence to obtain a first frame selection result respectively corresponding to each candidate video frame sequence; and
performing global frame selection based on all the first frame selection results to obtain a final frame selection result.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein the processor is further configured to:
before acquiring the at least one candidate video frame sequence, acquire a video frame sequence, segment the video frame sequence to obtain a plurality of sub-video frame sequences, and take the sub-video frame sequence as the candidate video frame sequence.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein the processor is further configured to:
segment the video frame sequence in a time domain to obtain at least two sub-video frame sequences, each sub-video frame sequence including a same quantity of video frames; or
determine a quantity of video frames included in each sub-video frame sequence based on a predetermined requirement, and segment the video frame sequence in a time domain based on the quantity to obtain at least two sub-video frame sequences.

### Claim 16 (depends on 13)

The apparatus according to claim 13, wherein the intra-sequence frame selection module comprises:
acquire a quality parameter of each video frame in the at least one candidate video frame sequence;
perform sorting in the at least one candidate video frame sequence based on the quality parameter; and
perform frame extraction on the sorted at least one candidate video frame sequence based on a predetermined frame interval to obtain the first frame selection result respectively corresponding to each candidate video frame sequence.

### Claim 17 (depends on 16)

The apparatus according to claim 16, wherein
the processor is further configured to:
before performing frame extraction on the sorted at least one candidate video frame sequence based on the predetermined frame interval, sequentially configure a number for each video frame in the at least one candidate frame sequence according to a time sequence of each video frame in the at least one candidate video frame sequence; and
obtain a frame interval between video frames in the sorted at least one candidate video frame sequence based on an absolute value of a number difference between the video frames;
or,
the processor is further configured to select a video frame with a highest quality parameter from each of the sorted at least one candidate video frame sequence, and take the video frame with the highest quality parameter as the first frame selection result respectively corresponding to each candidate video frame sequence;
or,
the processor is further configured to:
select a video frame with a highest quality parameter from each of the sorted at least one candidate video frame sequence as a first selected video frame;
sequentially select k1 video frames in each of the sorted at least one candidate video frame sequence according to a sorting sequence, wherein a frame interval between a currently selected video frame and any other selected video frame is greater than a predetermined frame interval, where k1 is an integer greater than or equal to 1; and
take all the selected video frames as the first frame selection result respectively corresponding to each candidate video frame sequence.

### Claim 18 (depends on 13)

The apparatus according to claim 13, wherein the processor is further configured to:
take the first frame selection result as the final frame selection result; or,
select k2 video frames with a highest quality from all the first frame selection results, and take the k2 video frames as the final frame selection result, where k2 is an integer greater than or equal to 1; or
execute a preset operation based on the final frame selection result.

### Claim 19 (depends on 18)

The apparatus according to claim 18, wherein the processor is configured to:
send the final frame selection result; or, execute a target identification operation based on the final frame selection result; and
extract image features of each video frame in the final frame selection result; execute a feature fusion operation on the image features to obtain a fused feature; and execute the target identification operation based on the fused feature.

### Claim 20

A non-volatile computer-readable storage medium, storing a computer program instruction thereon, wherein the computer program instruction is executed by a processor to implement operations comprising:
acquiring at least one candidate video frame sequence;
performing intra-sequence frame selection on each candidate video frame sequence to obtain a first frame selection result respectively corresponding to each candidate video frame sequence; and
performing global frame selection based on all the first frame selection results to obtain a final frame selection result.
