# US 2021/0287006 A1 · Video query method, apparatus, and 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/0287006 A1
- Document ID: US20210287006A1
- Status: Published application
- Kind: A1
- Application number: 17/333,001
- Filed: 2021-05-27
- Published: 2021-09-16
- Earliest claimed: 2019-04-29
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Yang FENG; Lin MA; Wei LIU; Jiebo LUO
- Web page: https://patentgrep.com/patent/US20210287006A1

## CPC

- G06F 16/7328: {Query by example, e.g. a complete video frame or video sequence (graphical querying G06F16/7335)}
- G06F 16/7837: {using objects detected or recognised in the video content}
- 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/41: {Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items (segmenting video sequences G06V20/49)}
- 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}
- G06T 2207/10016: Video; Image sequence
- G06V 2201/07: Target detection
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A video query method includes obtaining a media feature of a query media and a static image feature corresponding to a candidate video. The query media includes the target object, and the candidate video includes the moving object. A video feature of the candidate video is determined according to the static image feature and motion time sequence information of the moving object in the candidate video. Whether the moving object in the candidate video is related to the target object in the query media can be determined according to the media feature and the video feature.

## Claims

### Claim 1

A video query method, implemented by an electronic device, comprising:
obtaining a media feature of a query media and a static image feature corresponding to a candidate video, the query media comprising a target object, the candidate video comprising a moving object;
determining a video feature of the candidate video according to the static image feature and motion time sequence information of the moving object in the candidate video; and
determining, according to the media feature and the video feature, whether the moving object in the candidate video is related to the target object.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the video feature comprises sub-features corresponding to n video segments in the candidate video; a tth video segment corresponds to a tth sub-feature; the motion time sequence information reflects motion trends of the moving object between adjacent video segments, t being a positive integer greater than 1 and not greater than n, n being an integer greater than 1; and
the determining a video feature of the candidate video according to the static image feature and motion time sequence information of the moving object in the candidate video comprises:
determining, in the tth video segment, a target motion trend of the moving object from a (t−1)th sub-feature;
adjusting a target region corresponding to the moving object in a feature plane of the (t−1)th sub-feature according to the target motion trend; and
determining the tth sub-feature according to the adjusted (t−1)th sub-feature and a static image feature corresponding to the tth video segment.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the adjusting a target region corresponding to the moving object in a feature plane of the (t−1)th sub-feature according to the target motion trend comprises:
determining a deviation value corresponding to a control point in the target region according to the target motion trend; and
moving the control point according to the deviation value, and adjusting the target region corresponding to the moving object in the feature plane of the (t−1)th sub-feature based on the moved control point.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the determining, according to the media feature and the video feature, whether the moving object in the candidate video is related to the target object comprises:
determining a target region having an association relationship with the target object in a feature plane of the tth sub-feature;
determining a region feature corresponding to the target region according to the tth sub-feature; and
determining, according to the region feature and the media feature, whether the moving object in the tth video segment is related to the target object.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the query media is a query video, and the determining, according to the region feature and the media feature, whether the moving object in the tth video segment is related to the target object comprises:
determining a weight between video frame content in the query video and the target object by using an attention model;
determining a query video feature of the query video according to the weight; and
determining, according to the region feature and the query video feature, whether the moving object in the tth video segment is related to the target object.

### Claim 6 (depends on 4)

The method according to claim 4, wherein when the moving object in the tth video segment is related to the target object, the method further comprises:
identifying the target region in the tth video segment of the candidate video.

### Claim 7 (depends on 5)

The method according to claim 5, wherein when the moving object in the tth video segment is related to the target object, the method further comprises:
identifying the target region in the tth video segment of the candidate video.

### Claim 8

A video query device, comprising a processor and a memory:
the memory being configured to store program code, and transmit the program code to the processor; and
the processor being configured to execute the program code to perform:
obtaining a media feature of a query media and a static image feature corresponding to a candidate video, the query media comprising a target object, the candidate video comprising a moving object;
determining a video feature of the candidate video according to the static image feature and motion time sequence information of the moving object in the candidate video; and
determining, according to the media feature and the video feature, whether the moving object in the candidate video is related to the target object.

### Claim 9 (depends on 8)

The device according to claim 8, wherein the video feature comprises sub-features corresponding to n video segments in the candidate video; a tth video segment corresponds to a tth sub-feature; the motion time sequence information reflects motion trends of the moving object between adjacent video segments, t being a positive integer greater than 1 and not greater than n, n being an integer greater than 1; and
the determining a video feature of the candidate video according to the static image feature and motion time sequence information of the moving object in the candidate video comprises:
determining, in the tth video segment, a target motion trend of the moving object from a (t−1)th sub-feature;
adjusting a target region corresponding to the moving object in a feature plane of the (t−1)th sub-feature according to the target motion trend; and
determining the tth sub-feature according to the adjusted (t−1)th sub-feature and a static image feature corresponding to the tth video segment.

### Claim 10 (depends on 9)

The device according to claim 9, wherein the adjusting a target region corresponding to the moving object in a feature plane of the (t−1)th sub-feature according to the target motion trend comprises:
determining a deviation value corresponding to a control point in the target region according to the target motion trend; and
moving the control point according to the deviation value, and adjusting the target region corresponding to the moving object in the feature plane of the (t−1)th sub-feature based on the moved control point.

### Claim 11 (depends on 9)

The device according to claim 9, wherein the determining, according to the media feature and the video feature, whether the moving object in the candidate video is related to the target object comprises:
determining a target region having an association relationship with the target object in a feature plane of the tth sub-feature;
determining a region feature corresponding to the target region according to the tth sub-feature; and
determining, according to the region feature and the media feature, whether the moving object in the tth video segment is related to the target object.

### Claim 12 (depends on 11)

The device according to claim 11, wherein the query media is a query video, and the determining, according to the region feature and the media feature, whether the moving object in the tth video segment is related to the target object comprises:
determining a weight between video frame content in the query video and the target object by using an attention model;
determining a query video feature of the query video according to the weight; and
determining, according to the region feature and the query video feature, whether the moving object in the tth video segment is related to the target object.

### Claim 13 (depends on 12)

The device according to claim 12, wherein when the moving object in the tth video segment is related to the target object, the method further comprises:
identifying the target region in the tth video segment of the candidate video.

### Claim 14 (depends on 12)

The device according to claim 12, wherein when the moving object in the tth video segment is related to the target object, the method further comprises:
identifying the target region in the tth video segment of the candidate video.

### Claim 15

A non-transitory computer-readable storage medium, configured to store program code, the program code, when being executed by a processor, causing the processor to perform:
obtaining a media feature of a query media and a static image feature corresponding to a candidate video, the query media comprising a target object, the candidate video comprising a moving object;
determining a video feature of the candidate video according to the static image feature and motion time sequence information of the moving object in the candidate video; and
determining, according to the media feature and the video feature, whether the moving object in the candidate video is related to the target object.

### Claim 16 (depends on 15)

The storage medium according to claim 15, wherein the video feature comprises sub-features corresponding to n video segments in the candidate video; a tth video segment corresponds to a tth sub-feature; the motion time sequence information reflects motion trends of the moving object between adjacent video segments, t being a positive integer greater than 1 and not greater than n, n being an integer greater than 1; and
the determining a video feature of the candidate video according to the static image feature and motion time sequence information of the moving object in the candidate video comprises:
determining, in the tth video segment, a target motion trend of the moving object from a (t−1)th sub-feature;
adjusting a target region corresponding to the moving object in a feature plane of the (t−1)th sub-feature according to the target motion trend; and
determining the tth sub-feature according to the adjusted (t−1)th sub-feature and a static image feature corresponding to the tth video segment.

### Claim 17 (depends on 16)

The storage medium according to claim 16, wherein the adjusting a target region corresponding to the moving object in a feature plane of the (t−1)th sub-feature according to the target motion trend comprises:
determining a deviation value corresponding to a control point in the target region according to the target motion trend; and
moving the control point according to the deviation value, and adjusting the target region corresponding to the moving object in the feature plane of the (t−1)th sub-feature based on the moved control point.

### Claim 18 (depends on 16)

The storage medium according to claim 16, wherein the determining, according to the media feature and the video feature, whether the moving object in the candidate video is related to the target object comprises:
determining a target region having an association relationship with the target object in a feature plane of the tth sub-feature;
determining a region feature corresponding to the target region according to the tth sub-feature; and
determining, according to the region feature and the media feature, whether the moving object in the tth video segment is related to the target object.

### Claim 19 (depends on 18)

The storage medium according to claim 18, wherein the query media is a query video, and the determining, according to the region feature and the media feature, whether the moving object in the tth video segment is related to the target object comprises:
determining a weight between video frame content in the query video and the target object by using an attention model;
determining a query video feature of the query video according to the weight; and
determining, according to the region feature and the query video feature, whether the moving object in the tth video segment is related to the target object.

### Claim 20 (depends on 19)

The storage medium according to claim 19, wherein when the moving object in the tth video segment is related to the target object, the method further comprises:
identifying the target region in the tth video segment of the candidate video.
