A method for extracting key frames from internet video advertisements

Through I-Frame extraction and multi-level image quality assessment, the problem of key frame extraction in Internet video advertising is solved, and the clear representativeness of video content is improved.

CN113676752BActive Publication Date: 2024-10-01SHANGHAI MEDIAV ADVERTISING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111022635.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-01
Publication Date
2024-10-01
Estimated Expiration
2041-09-01

Smart Images

  • Figure CN113676752B_ABST
    Figure CN113676752B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for extracting key frames of Internet video advertisements, comprising the following steps: Step 1, realizing parsing and extracting video frames, specifically realizing I-Frame extraction according to the video compression format; for video formats without I-Frame frames, traversing all video frames, obtaining the difference between frames, placing frames with a difference less than a certain value in a group, and finally selecting a frame from each group, the present invention analyzes and sorts the video content to obtain the clearest image that best represents the video. The present invention analyzes and sorts the video content to obtain the clearest image that best represents the video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of advertisements, and in particular to a method for extracting key frames of Internet video advertisements. Background Art

[0002] When Internet video ads are preloaded, a frame of the video will be provided as the ad cover. The quality of the cover image affects the user's interest in the video.

[0003] The prior art usually clusters video image frames based on image clustering methods (such as K-means) to obtain key frames representing the video. Summary of the invention

[0004] The purpose of the present invention is to provide a method for extracting key frames of Internet video advertisements to solve the problems raised in the above-mentioned background technology.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A method for extracting key frames from an Internet video advertisement comprises the following steps:

[0007] Step 1: Implement parsing and extracting video frames, specifically extracting I-Frames according to the video compression format; for video formats without I-Frames, traverse all video frames, obtain the difference between frames, put frames with a difference less than a certain value in a group, and finally select a frame from each group;

[0008] Step 2: Implement filtering based on image quality;

[0009] Step 3: Implement image quality BRSIQUE-SVM model scoring. The BRSIQUE-SVM model is a binary classification model that can predict scores based on images by defining a series of image features and training the model based on existing scored images.

[0010] Step 4: Implement the image similarity scoring module; image similarity is the Hamming distance between hash values ​​calculated based on image hash values; if the distance is less than the threshold T, they are considered similar; the steps for selecting the best K images are: select the image with the highest score from the remaining image set.

[0011] As a further technical solution of the present invention, the method comprises the following two steps: step 2A, realizing image brightness score calculation filtering, the image brightness score is a normalized score of the image average brightness score value; setting a minimum value min_brightness and a maximum value max_brightness, filtering out images whose scores are not between the two; step 2B, realizing image entropy calculation filtering, the image entropy value score is the average value of the local entropy value calculated pixel by pixel of the image; setting a minimum value min_entropy and a maximum value max_entropy, filtering out images whose scores are not between the two; step 2C, realizing an image Laplace score value calculation filtering module; the Laplace score of the image is the variance value of the Laplace operator of the whole image; setting a minimum value min_laplacian (based on experience, set to 50), filtering out images whose scores are lower than the minimum value.

[0012] As a further technical solution of the present invention, the minimum value min_brightness is set to 10, and the maximum value max_brightness is set to 90.

[0013] As a further technical solution of the present invention, the minimum value min_entropy and the maximum value max_entropy are set to 1 and 10 respectively.

[0014] As a further technical solution of the present invention, the minimum value min_laplacian is set to 50.

[0015] As a further technical solution of the present invention, in step 4, if there is no image similar to it in the image set that has been selected, the selection is successful and it is added to the selected image set until the number of selected image sets meets the condition.

[0016] The technical benefits of the present invention include:

[0017] The present invention analyzes and sorts video contents to obtain the clearest image that best represents the video. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] See also Figure 1 Embodiment 1: A method for extracting key frames of Internet video advertisements, comprising the following steps:

[0021] Step 1: Implement a parsing and extraction module for video frames;

[0022] The specific implementation is to extract I-Frame according to the video compression format; for a video format without I-Frame, execute step 1A;

[0023] Step 1A, traverse all video frames, obtain the difference between frames, put the frames with a difference less than a certain value into a group, and finally select a frame from each group;

[0024] Step 2: Implement a filtering module based on image quality;

[0025] Step 2A, implement an image brightness score calculation and filtering module, where the image brightness score is a normalized score of the image average brightness score, set a minimum value min_brightness and a maximum value max_brightness, and filter out images whose scores are not between the two;

[0026] Step 2B, implement the image entropy calculation and filtering module; the entropy score of the image is the average value of the local entropy values ​​calculated pixel by pixel; set the minimum value min_entropy and the maximum value max_entropy, and filter out images whose scores are not between the two

[0027] Step 2C, implement the image Laplace score value calculation and filtering module; the Laplace score of the image is the variance value of the Laplace operator of the whole image; set the minimum value min_laplacian, and filter out images with scores lower than the minimum value;

[0028] Step 3: Implement the image quality BRSIQUE-SVM model scoring module; the BRSIQUE-SVM model is a binary classification model that can predict scores based on images by defining a series of image features and training the model based on existing scored images;

[0029] Step 4, implement the image similarity scoring module; image similarity is the Hamming distance between hash values ​​calculated based on image hash values; if the distance is less than the threshold T, they are considered similar; the steps for selecting the best K images are: select the image with the highest score from the remaining image set, if there is no image similar to it in the selected image set, the selection is successful and it is added to the selected image set, until the number of selected image sets meets the conditions.

[0030] Embodiment 2, based on embodiment 1, according to experience, the minimum value min_brightness can be set to 10, and the maximum value max_brightness can be set to 90. The minimum value min_entropy and the maximum value max_entropy are set to 1 and 10 respectively. The minimum value min_laplacian is set to 50.

[0031] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

[0032] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A method for extracting key frames from Internet video advertisements. It is characterized in that The following steps are involved: Step 1: Implement parsing and extracting video frames, specifically extracting I-Frames according to the video compression format; for video formats without I-Frames, traverse all video frames, obtain the difference between frames, put frames with a difference less than a certain value in a group, and finally select a frame from each group; Step 2, implement filtering based on image quality, including the following steps: Step 2A, implement image brightness score calculation filtering, the image brightness score is the normalized score of the image average brightness score value; set the minimum value min_brightness and the maximum value max_brightness, and filter out images whose scores are not between the two; Step 2B, implement image entropy calculation filtering, the image entropy score is the average value of the local entropy value calculated pixel by pixel of the image; set the minimum value min_entropy and the maximum value max_entropy, and filter out images whose scores are not between the two; Step 2C, implement the image Laplace score value calculation filtering module, the image Laplace score is the variance value of the Laplace operator of the whole image; set the minimum value min_laplacian (based on experience, set to 50), and filter out images with scores lower than the minimum value; Step 3: Implement image quality BRSIQUE-SVM model scoring. The BRSIQUE-SVM model is a binary classification model that can predict scores based on images by defining a series of image features and training the model based on existing scored images. Step 4: Implement the image similarity scoring module; image similarity is the Hamming distance between hash values ​​calculated based on image hash values; if the distance is less than the threshold T, they are considered similar; the steps for selecting the best K images are: select the image with the highest score from the remaining image set, if there is no image similar to it in the selected image set, then the selection is successful and added to the selected image set, until the number of selected image sets meets the conditions; The minimum value min_brightness is set to 10, and the maximum value max_brightness is set to 90; The minimum value min_entropy and the maximum value max_entropy are set to 1 and 10 respectively; The minimum value min_laplacian is set to 50.