Method and mobile terminal for previewing and retrieving video
First Claim
1. A method for previewing and retrieving a video, comprising:
- setting a variable-length buffer sequence; and
further comprising;
acquiring and processing a video file to obtain images;
detecting scene shots in the obtained images and key frames of the scene shots, and storing the detected scene shots and key frames in the variable-length buffer sequence; and
acquiring the scene shots and key frames from the variable-length buffer sequence, and performing video retrieval by matching and comparing the scene shots and key frames with a specified target image,wherein the performing video retrieval by matching and comparing the scene shots and key frames with the target image is;
calculating degrees of match between the scene shots and the target image, and degrees of match between the key frames and the target image;
determining whether the degrees of match between the scene shots and the target image reach a threshold of degree of match;
when none of the degrees of match between the scene shots and the target image reaches the threshold of degree of match, determining whether the degrees of match between the key frames and the target image reach the threshold of degree of match;
when none of the degrees of match between the key frames and the target image reaches the threshold of degree of match, determining that the matching fails, and ending the video retrieval;
when a degree of match between a key frame and the target image reaches the threshold of degree of match, determining that the matching succeeds, ending the video retrieval, and executing a notification mechanism of successful retrieval.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for previewing and retrieving a video is disclosed. The method includes: (101) setting a variable-length buffer sequence; (102) acquiring and processing a video file to obtain images; (103) detecting scene shots in the obtained images and key frames of the scene shots, and storing the detected scene shots and key frames into the variable-length buffer sequence; and (104) acquiring the scene shots and key frames from the variable-length buffer sequence, matching and comparing the scene shots and key frames with a specified target image to perform image retrieval. A mobile terminal for previewing and retrieving a video is further disclosed. With the technical solution, content preview and fast retrieval of a video file are achieved in a mobile terminal with relatively limited processing capacity and memory resources.
7 Citations
13 Claims
-
1. A method for previewing and retrieving a video, comprising:
setting a variable-length buffer sequence; and
further comprising;acquiring and processing a video file to obtain images; detecting scene shots in the obtained images and key frames of the scene shots, and storing the detected scene shots and key frames in the variable-length buffer sequence; and acquiring the scene shots and key frames from the variable-length buffer sequence, and performing video retrieval by matching and comparing the scene shots and key frames with a specified target image, wherein the performing video retrieval by matching and comparing the scene shots and key frames with the target image is; calculating degrees of match between the scene shots and the target image, and degrees of match between the key frames and the target image;
determining whether the degrees of match between the scene shots and the target image reach a threshold of degree of match;
when none of the degrees of match between the scene shots and the target image reaches the threshold of degree of match, determining whether the degrees of match between the key frames and the target image reach the threshold of degree of match;
when none of the degrees of match between the key frames and the target image reaches the threshold of degree of match, determining that the matching fails, and ending the video retrieval;
when a degree of match between a key frame and the target image reaches the threshold of degree of match, determining that the matching succeeds, ending the video retrieval, and executing a notification mechanism of successful retrieval.- View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
12. A mobile terminal for previewing and retrieving a video, the mobile terminal comprising one or more processors for implementing:
-
an acquisition module is configured to acquire and process a video file to obtain images and send the obtained images to the detection module; a detection module is configured to detect scene shots in the obtained images and key frames of the scene shots, and store the detected scene shots and key frames into the variable-length buffer sequence; a variable-length buffer sequence is configured to store the scene shots and key frames sent by the detection module; and a video retrieval module is configured to acquire the scene shots and key frames from the variable-length buffer sequence, and match and compare the scene shots and key frames with a specified target image to perform video retrieval, wherein the performing video retrieval by matching and comparing the scene shots and key frames with the target image is; calculating degrees of match between the scene shots and the target image, and degrees of match between the key frames and the target image;
determining whether the degrees of match between the scene shots and the target image reach a threshold of degree of match;
when none of the degrees of match between the scene shots and the target image reaches the threshold of degree of match, determining whether the degrees of match between the key frames and the target image reach the threshold of degree of match;
when none of the degrees of match between the key frames and the target image reaches the threshold of degree of match, determining that the matching fails, and ending the video retrieval;
when a degree of match between a key frame and the target image reaches the threshold of degree of match, determining that the matching succeeds, ending the video retrieval, and executing a notification mechanism of successful retrieval. - View Dependent Claims (13)
-
Specification