Cover determination method, device, electronic device and storage medium

Through the two-step frame extraction strategy and similarity definition analysis, the problem of frame interval when extracting covers from video websites is solved, the efficiency and speed of cover image selection are improved, and cover omissions and processing pressure are avoided.

CN115914775BActive Publication Date: 2024-08-30BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211457157.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-21
Publication Date
2024-08-30
Estimated Expiration
2042-11-21

AI Technical Summary

Technical Problem

In the existing technology, when extracting cover images from videos on video websites, the frame extraction interval is too large, causing clear images to be ignored, and the frame extraction interval is too short, resulting in too many images, causing storage and algorithm processing pressure, and low efficiency.

Method used

A two-step frame extraction strategy is adopted: first, the candidate video frames are extracted at a larger interval to determine the cover video frame, and then the second candidate video frame is extracted at a smaller interval within the video clip containing the cover video frame, and the second candidate video frame is extracted through the similarity and Sharpness analysis determines the most suitable cover video frame.

Benefits of technology

It effectively avoids cover omissions caused by too large frame intervals, reduces the problem of too many images caused by too small frame intervals, and improves the efficiency and speed of cover image selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914775B
    Figure CN115914775B
Patent Text Reader

Abstract

The embodiments of the present invention provide a cover determination method, device, electronic device and storage medium, which extracts a plurality of first video frames to be selected from a target video according to a first extraction interval, and then determines a first cover video frame therefrom. Then, according to a second extraction interval, extract a plurality of second video frames to be selected from a video segment containing the first cover video frame, wherein because the second extraction interval is smaller than the first extraction interval, the extracted video frames can be made denser. Determining a second cover video frame from a plurality of second video frames to be selected as the cover of the target video can avoid missing a more suitable video frame due to a large frame extraction interval, thereby improving the efficiency of cover image selection. At the same time, the present application only needs to determine the second cover video frame from a plurality of second video frames to be selected, which can avoid excessive pressure on subsequent storage and algorithm processing due to too many extracted video frames.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video processing technology, and in particular to a cover determination method, device, electronic equipment and storage medium. Background Art

[0002] On video websites, in order to provide users with high-quality covers to attract clicks, facilitate users to quickly locate target videos, and improve visual and retrieval experience, how to extract cover images from videos has become a relatively important issue.

[0003] At present, the commonly used method is to evenly extract images from the video, and then analyze these images for information such as facial information, sound, and subtitles, and extract the best images as the cover image. For example, extract a frame of image every 10 seconds, and then select all the images after the video frame extraction, but sometimes some clearer images are ignored due to the large frame extraction interval. If the density of video frame decomposition is increased, such as extracting a frame of image every 1 second, although the occurrence of ignoring clearer images can be reduced, in this way, too many images will be obtained due to the short frame extraction interval, which will cause too much pressure on subsequent storage or algorithm processing, resulting in slow speed and low efficiency in cover image selection. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a cover determination method, device, electronic device and storage medium, so as to efficiently and quickly determine the cover in the target video. The specific technical solution is as follows:

[0005] According to a first aspect of an embodiment of the present invention, a cover determination method is provided, the method comprising:

[0006] Extracting a plurality of first video frames to be selected from the target video according to a first extraction interval;

[0007] Determine a first cover video frame from the plurality of first video frames to be selected;

[0008] Extracting a plurality of second video frames to be selected from the video segment containing the first cover video frame in the target video according to a second extraction interval, wherein the second extraction interval is smaller than the first extraction interval;

[0009] A second cover video frame is determined from the multiple second video frames to be selected as the cover of the target video.

[0010] In a possible embodiment, determining a second cover video frame from the plurality of second video frames to be selected as the cover of the target video includes:

[0011] respectively calculating the similarity between each of the second candidate video frames and the first cover video frame;

[0012] Determine, from the second video frames to be selected, a third video frame to be selected whose similarity satisfies a preset similarity condition;

[0013] A second cover video frame is determined from each of the third candidate video frames as the cover of the target video.

[0014] In a possible embodiment, determining a second cover video frame from each of the third candidate video frames as the cover of the target video includes:

[0015] Calculating the clarity of each of the third to-be-selected video frames respectively;

[0016] A second cover video frame whose definition meets a preset definition condition is determined from each of the third candidate video frames as the cover of the target video.

[0017] In a possible embodiment, respectively calculating the definition of each of the third candidate video frames includes:

[0018] For each of the third video frames to be selected, the gradient of the pixel value at each pixel point in the third video frame to be selected is counted to obtain the clarity of the third video frame to be selected, wherein the clarity is positively correlated with the gradient.

[0019] In a possible embodiment, if there is no second cover video frame in the second video frames to be selected, the first cover video frame is determined as the cover of the target video.

[0020] According to a second aspect of an embodiment of the present invention, a cover determination device is provided, characterized in that the device comprises:

[0021] A first extraction module, used for extracting a plurality of first video frames to be selected from the target video according to a first extraction interval;

[0022] A first determining module, configured to determine a first cover video frame from the plurality of first video frames to be selected;

[0023] A second extraction module, configured to extract a plurality of second video frames to be selected from the video segment containing the first cover video frame in the target video according to a second extraction interval, wherein the second extraction interval is smaller than the first extraction interval;

[0024] The second determination module is used to determine a second cover video frame from the multiple second video frames to be selected as the cover of the target video.

[0025] In a possible embodiment, determining a second cover video frame from the plurality of second video frames to be selected as the cover of the target video includes:

[0026] respectively calculating the similarity between each of the second candidate video frames and the first cover video frame;

[0027] Determine, from the second video frames to be selected, a third video frame to be selected whose similarity satisfies a preset similarity condition;

[0028] A second cover video frame is determined from each of the third candidate video frames as the cover of the target video.

[0029] In a possible embodiment, determining a second cover video frame from each of the third candidate video frames as the cover of the target video includes:

[0030] Calculating the clarity of each of the third to-be-selected video frames respectively;

[0031] A second cover video frame whose definition meets a preset definition condition is determined from each of the third candidate video frames as the cover of the target video.

[0032] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, characterized in that it comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0033] Memory, used to store computer programs;

[0034] The processor is used to implement any of the above-mentioned cover determination methods when executing the program stored in the memory.

[0035] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the above-mentioned cover determination methods is implemented.

[0036] Beneficial effects of the embodiments of the present invention:

[0037] A cover determination method provided by an embodiment of the present invention extracts a plurality of first video frames to be selected from a target video according to a first extraction interval, and determines a first cover video frame from the plurality of first video frames to be selected. According to a second extraction interval, extract a plurality of second video frames to be selected from a video segment containing the first cover video frame in the target video. Because the second extraction interval is smaller than the first extraction interval, a video frame with a shorter time interval with the first cover video frame can be found as the second video frame to be selected, and then the second cover video frame is determined from the plurality of second video frames to be selected as the cover of the target video. In this way, it is possible to avoid the situation where a more suitable cover is ignored due to excessive frame splitting density. And compared with preventing the occurrence of the aforementioned problem by directly increasing the density of frame splitting of the target video, extracting a plurality of second video frames to be selected from a video segment containing the first cover video frame in the target video according to the second extraction interval can prevent the increase in complexity and time consumption in the subsequent image selection process due to too many extracted images. By means of the above method, the purpose of efficiently and quickly determining the cover can be achieved when determining the cover.

[0038] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0040] Figure 1 An exemplary cover image selection scheme diagram provided by an embodiment of the present invention;

[0041] Figure 2 A flowchart of a cover determination method provided by an embodiment of the present invention;

[0042] Figure 3 Another exemplary cover image selection scheme diagram provided by an embodiment of the present invention;

[0043] Figure 4 A diagram of another exemplary cover image selection scheme provided by an embodiment of the present invention;

[0044] Figure 5 A flowchart of another cover determination method provided by an embodiment of the present invention;

[0045] Figure 6 A flowchart of another cover determination method provided by an embodiment of the present invention;

[0046] Figure 7 A schematic structural diagram of a cover determination device provided by an embodiment of the present invention;

[0047] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] 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 in the present invention, all other embodiments obtained by ordinary technicians in this field based on this application belong to the scope of protection of the present invention.

[0049] In order to help users quickly locate the target video and improve their visual and search experience, video websites often need to attract users to click on the video by displaying the most representative and high-quality cover in the video. Currently, the selection of video cover is done by decomposing the video frame to obtain an image sequence, and then analyzing multiple images in the image sequence for various information such as face information, sound information, subtitles, etc., and then determining the video cover based on the information analysis results. Figure 1 As shown, Figure 1 is an exemplary cover image selection scheme. Figure 1 In the example, a video frame is extracted from the target video every 10 seconds to obtain multiple video frames to be selected. However, extracting a frame every 10 seconds may cause some good video frames to be ignored due to the large frame extraction interval. For example, starting from the time stamp of t = 0 seconds, a video frame is extracted every 10 seconds to obtain the following Figure 1 As shown in the figure, there are multiple video frames. Assume that at the timestamp of t=5 seconds, there is a 5-second video frame that is more suitable as the cover. At this time, if the frame is extracted every 10 seconds, the 5-second video frame will be ignored because the frame extraction interval is too large. In order to avoid better video frames being ignored, you can choose to shorten the frame extraction interval. For example, extract one frame every 1 second. However, if you simply shorten the frame extraction interval, although the number of extracted video frames can be increased tenfold and more video frames can be obtained, too many video frames will cause great pressure on subsequent storage or algorithm processing.

[0050] In order to improve the efficiency of image selection by avoiding ignoring more suitable covers when selecting images for the cover, the present application provides a method for determining the cover, such as Figure 2 As shown, Figure 2 A flowchart of a cover determination method provided by an embodiment of the present invention, wherein:

[0051] Step S101: extract a plurality of first video frames to be selected from a target video according to a first extraction interval.

[0052] Step S102: determining a first cover video frame from a plurality of first video frames to be selected.

[0053] Step S103: extracting a plurality of second video frames to be selected from the video segment including the first cover video frame in the target video according to a second extraction interval, wherein the second extraction interval is smaller than the first extraction interval.

[0054] Step S104, determining a second cover video frame from a plurality of second video frames to be selected as the cover of the target video.

[0055] In this embodiment, first, after extracting a plurality of first video frames to be selected from the target video at a first extraction interval, a first cover video frame is determined therefrom. Then, at a second extraction interval, a plurality of second video frames to be selected are extracted from the video segment containing the first cover video frame. The second extraction interval is smaller than the first extraction interval, so that the frame extraction is more intensive, which can avoid missing more suitable video frames due to excessively large frame extraction intervals. At the same time, compared to the aforementioned solution of shortening the frame extraction interval of the entire target video in order to prevent ignoring more suitable video frames, the present application only needs to determine the second cover video frame from a plurality of second video frames to be selected, which can avoid excessive pressure on subsequent storage and algorithm processing due to excessive extraction of video frames.

[0056] The above S101-S104 will be described below:

[0057] Among them, in step S101, if Figure 3 As shown, the first extraction interval can be set to 10 seconds, and multiple first selected video frames can be extracted from a 30-second target video at a frequency of extracting one video frame every 10 seconds. Four video frames with timestamps of t=0 seconds, t=10 seconds, t=20 seconds, and t=30 seconds can be extracted, and are named the 0th second video frame, the 10th second video frame, the 20th second video frame, and the 30th second video frame, respectively.

[0058] In step S102, various information analyses are performed on the plurality of first candidate video frames, such as face, sound, subtitle and other information, and then the information is identified and compared with the understood video content to determine the first cover video frame. For example, after comparing the 0th second video frame, the 10th second video frame, the 20th second video frame and the 30th second video frame in step S101, combined with various information analyses, it is concluded that the 20th second video frame is more suitable as the target video cover, and finally the 20th second video frame can be determined as the first cover video frame.

[0059] In step S103, a plurality of second video frames to be selected are extracted from the video segment containing the first cover video frame in the target video. The second video frame to be selected may be determined as the first cover video frame at the Tth second, and then extracted from the video segment starting from K seconds before to K seconds after the first cover video frame, such as Figure 4 As shown, the specific value of K can be determined by relevant personnel based on experience and / or actual needs.

[0060] For example, assuming that the K value is 2 seconds, the second sampling interval is 1 second. Figure 3 As shown, when the 20th second video frame is determined to be the first cover video frame, a video frame is extracted every 1 second from the video clips from the 18th second to the 22nd second of the target video to obtain a plurality of second video frames to be selected. Similarly, when the 10th second video frame is determined to be the first cover video frame, a frame is extracted every 1 second from the video clips from the 8th second to the 12th second of the target video to obtain a plurality of second video frames to be selected. Because the second extraction interval is smaller than the first extraction interval, it is possible to avoid ignoring a more suitable cover.

[0061] In step S104, a second cover video frame is determined from a plurality of second video frames to be selected as the cover of the target video.

[0062] Among them, determining the second cover video frame from multiple second video frames to be selected can reduce the pressure of algorithm processing during subsequent image selection and improve the efficiency of cover image selection.

[0063] Because the first cover video frame is suitable as the target video cover after information analysis, in order to make the selected second cover video also suitable as the target video cover, when selecting the second cover video frame, it should also be selected from video frames similar to the first cover video frame. Similarity in this article means that the similarity meets the preset similarity condition. Figure 5 As shown, Figure 5 A flowchart of another cover determination method is shown in Figure 2 On the basis of, step S104 may include:

[0064] Step S1041, respectively calculating the similarity between each second candidate video frame and the first cover video frame.

[0065] The similarity between each second video frame to be selected and the first cover video frame can be calculated by a similarity calculation formula. For example, the first cover video frame is I_bst1, and the sequence composed of multiple second video frames to be selected is { i}, through the formula Vi=ssim(I_bst1,I i) can obtain the similarity of the second candidate video frame. The ssim (structural similarity index) in the formula is a function used to calculate the similarity of video frames.

[0066] Step S1042: determining a third candidate video frame whose similarity satisfies a preset similarity condition from the second candidate video frames.

[0067] The preset similarity condition may be a video frame whose similarity after calculation is greater than a Threshold, wherein the value of the Threshold is determined by relevant personnel based on experience and / or actual needs. For example, after the similarity calculation formula is obtained, Vi1=1, Vi2=0.7, Vi3=1.1, Vi4=1.2, and the relevant personnel preset Threshold=0.9, then Vi1, Vi3, and Vi4 can be selected as the third candidate video frame.

[0068] Step S1043, determining a second cover video frame from each third candidate video frame as the cover of the target video.

[0069] Among them, each third candidate video frame is a video frame that is calculated to meet the preset similarity conditions. When selecting the cover picture later, you only need to select from multiple third candidate video frames, which reduces the workload of subsequent picture selection and improves the efficiency of cover picture selection.

[0070] In this embodiment, by calculating the similarity between each second video frame to be selected and the first cover video frame, and then comparing them, a video frame that meets the preset similarity condition can be determined as the third video frame to be selected. By determining all video frames similar to the first cover video frame in the second video frame to be selected as the third video frame to be selected, it is convenient to make the determined cover as similar to the first cover video frame as much as possible in the subsequent cover determination. At the same time, because the third video frames to be selected are all video frames that meet the preset similarity condition, compared with directly determining the target cover from the entire target video, determining the cover from multiple third video frames to be selected can reduce the algorithm processing pressure in the subsequent image selection process and improve the efficiency of image selection.

[0071] In order to make it possible to select a clearer cover when determining the cover, such as Figure 6 As shown, Figure 6 A flowchart of another method for determining a cover is shown in Figure 5 On the basis of, step S1043 may include:

[0072] Step S105 , respectively calculating the definition of each third candidate video frame.

[0073] Among them, the clarity calculation function D(I) = ∑x ∑ y |I(x+2,y)-I(x,y)| calculates the definition of each third candidate video frame.

[0074] Step S106, determining a second cover video frame whose definition meets a preset definition condition from each third candidate video frame as the cover of the target video.

[0075] The preset definition condition may be a video frame whose definition is greater than a preset threshold value among the third video frames to be selected, for example, the preset threshold value may be the definition of the first cover video. In addition, the preset definition condition may also be a video frame with the highest definition among multiple third video frames to be selected.

[0076] For example, there are five video frames X1, X2, X3, X4 and X5 in the third video frame to be selected, and the corresponding sharpness obtained by the sharpness calculation function is D1, D2, D3, D4 and D5 respectively. Assume that D1, D3 and D4 are all greater than the sharpness of the first cover video frame, and D1 is the maximum sharpness. If the preset sharpness condition is the video frame with a sharpness greater than the preset threshold in the third video frame to be selected, any video frame among X1, X3 and X4 can be selected as the cover of the target video. If the preset sharpness condition is the video frame with the highest sharpness in the third video frame to be selected, X1 is selected as the cover of the target video.

[0077] In this embodiment, by calculating the clarity of each third candidate video frame and then comparing the clarity of each third candidate video frame, a clearer video frame can be selected as the cover of the target video when the cover is determined.

[0078] In this embodiment, for each third video frame to be selected, the gradient of the pixel value at each pixel point in the third video frame to be selected is counted to obtain the clarity of the third video frame to be selected, wherein the clarity is positively correlated with the gradient. When the gradient is larger, the clarity of the video frame is larger, and the video frame is clearer. On the contrary, when the gradient is smaller, the clarity of the video frame is smaller, and the video frame is more blurred. The gradient refers to the rate of change of a certain pixel of the video frame compared with the adjacent pixels in the x and y directions. When the gradient is larger, the rate of change is also larger, that is, the contrast with the adjacent pixels is also larger, and the video frame will be clearer. When the gradient is smaller, the rate of change is smaller, and similarly, the contrast with the adjacent pixels is also smaller, and the video frame will be more blurred.

[0079] In addition, in the present application, if the second cover video frame does not exist in the second video frame to be selected, the first cover video frame is determined as the cover of the target video. Because when the second cover video frame does not exist in the second video frame to be selected, it means that the current first cover video frame is the most suitable cover, so the first cover video frame can be directly selected as the cover of the target video.

[0080] For example, the preset similarity condition is a video frame whose similarity after calculation is greater than Threshold. Vi1=0.6, Vi2=0.7, Vi3=0.8, Vi4=0.5 are obtained through the similarity calculation formula. If the relevant personnel preset Threshold=0.9. At this time, the values ​​of Vi1, Vi2, Vi3 and Vi4 are all less than the value of Threshold, so they do not meet the preset similarity condition. Therefore, there is no second cover video frame in the second video frame to be selected. In this case, the first cover video frame can be directly selected as the cover of the target video.

[0081] Based on the same inventive concept, the present application accordingly provides a cover determination device, such as Figure 7 As shown, Figure 7 A schematic structural diagram of a cover determination device provided by an embodiment of the present invention includes:

[0082] A first extraction module 701 is used to extract a plurality of first video frames to be selected from a target video according to a first extraction interval;

[0083] A first determining module 702 is used to determine a first cover video frame from a plurality of first video frames to be selected;

[0084] A second extraction module 703 is used to extract a plurality of second video frames to be selected from the video segment including the first cover video frame in the target video according to a second extraction interval, wherein the second extraction interval is smaller than the first extraction interval;

[0085] The second determination module 704 is used to determine a second cover video frame from a plurality of second video frames to be selected as the cover of the target video.

[0086] In this embodiment, after the first extraction module 701 extracts a plurality of first video frames to be selected from the target video according to the first extraction interval, the first determination module 702 determines the first cover video frame from the plurality of first video frames to be selected. Then, the second extraction module 703 extracts a plurality of second video frames to be selected from the video clip containing the first cover video frame in the target video according to the second extraction interval. Because the second extraction interval is smaller than the first extraction interval, frame extraction according to the second extraction interval can make the frame extraction more intensive, avoiding the situation where more suitable video frames are missed due to the excessive extraction interval. The second determination module 704 determines the second cover video frame from the plurality of second video frames to be selected as the cover of the target video. Compared with the aforementioned solution of obtaining more intensive video frames by shortening the extraction interval of the entire target video, the present application only needs to determine the second cover video frame from the plurality of second video frames to be selected. Therefore, the storage pressure and algorithm processing pressure in the subsequent image selection process can be reduced, and the efficiency of determining the cover can be improved.

[0087] In a possible embodiment, determining a second cover video frame from a plurality of second video frames to be selected as the cover of the target video includes:

[0088] Calculating the similarity between each second candidate video frame and the first cover video frame respectively;

[0089] Determine a third video frame to be selected from the second video frame to be selected, the similarity of which satisfies a preset similarity condition;

[0090] A second cover video frame is determined from each third candidate video frame as the cover of the target video.

[0091] In a possible embodiment, determining a second cover video frame from each third candidate video frame as the cover of the target video includes:

[0092] Calculating the clarity of each third to-be-selected video frame respectively;

[0093] A second cover video frame whose definition meets a preset definition condition is determined from each third candidate video frame as the cover of the target video.

[0094] In a possible embodiment, respectively calculating the definition of each third candidate video frame includes:

[0095] For each third video frame to be selected, the gradient of the pixel value at each pixel point in the third video frame to be selected is counted to obtain the definition of the third video frame to be selected, wherein the definition is positively correlated with the gradient.

[0096] In a possible embodiment, if the second cover video frame does not exist in the second video frame to be selected, the first cover video frame is determined as the cover of the target video.

[0097] The embodiment of the present invention further provides an electronic device, such as Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.

[0098] Memory 803, used for storing computer programs;

[0099] The processor 801 is used to execute the program stored in the memory 803, and implements the following steps:

[0100] Extracting a plurality of first video frames to be selected from the target video according to a first extraction interval;

[0101] Determine a first cover video frame from a plurality of first video frames to be selected;

[0102] Extracting a plurality of second video frames to be selected from the video segment containing the first cover video frame in the target video according to a second extraction interval, wherein the second extraction interval is smaller than the first extraction interval;

[0103] A second cover video frame is determined from a plurality of second video frames to be selected as the cover of the target video.

[0104] The communication bus 804 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0105] The communication interface 802 is used for communication between the above electronic device and other devices.

[0106] The memory 803 may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0107] The above-mentioned processor 801 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0108] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned cover determination methods are implemented.

[0109] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute any one of the cover determination methods in the above embodiments.

[0110] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0111] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0112] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, electronic device, computer-readable storage medium, and computer program product, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0113] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A cover determination method, characterized in that: The method comprises: Extracting a plurality of first video frames to be selected from the target video according to a first extraction interval; Performing information analysis on the plurality of first candidate video frames, identifying and comparing the understood content of the target video, and determining a first cover video frame; Extracting a plurality of second video frames to be selected from the video segment containing the first cover video frame in the target video according to a second extraction interval, wherein the second extraction interval is smaller than the first extraction interval; A second cover video frame is determined from the multiple second video frames to be selected as the cover of the target video.

2. The method according to claim 1, characterized in that The step of determining a second cover video frame from the plurality of second video frames to be selected as the cover of the target video includes: respectively calculating the similarity between each of the second candidate video frames and the first cover video frame; Determine, from the second video frames to be selected, a third video frame to be selected whose similarity satisfies a preset similarity condition; A second cover video frame is determined from each of the third candidate video frames as the cover of the target video.

3. The method according to claim 2, characterized in that The step of determining a second cover video frame from each of the third selected video frames as the cover of the target video includes: Calculating the clarity of each of the third to-be-selected video frames respectively; A second cover video frame whose definition meets a preset definition condition is determined from each of the third candidate video frames as the cover of the target video.

4. The method according to claim 3, characterized in that: The respectively calculating the definition of each of the third selected video frames includes: For each of the third video frames to be selected, the gradient of the pixel value at each pixel point in the third video frame to be selected is counted to obtain the clarity of the third video frame to be selected, wherein the clarity is positively correlated with the gradient.

5. The method according to claim 1, characterized in that If there is no second cover video frame in the second video frames to be selected, the first cover video frame is determined as the cover of the target video.

6. A cover determination device, characterized in that: The device comprises: A first extraction module, used for extracting a plurality of first video frames to be selected from the target video according to a first extraction interval; A first determination module is used to analyze the information of the plurality of first candidate video frames, identify and compare the content of the target video with the understood content, and determine a first cover video frame; A second extraction module, configured to extract a plurality of second video frames to be selected from the video segment containing the first cover video frame in the target video according to a second extraction interval, wherein the second extraction interval is smaller than the first extraction interval; The second determination module is used to determine a second cover video frame from the multiple second video frames to be selected as the cover of the target video.

7. The device according to claim 6, characterized in that The step of determining a second cover video frame from the plurality of second video frames to be selected as the cover of the target video includes: respectively calculating the similarity between each of the second candidate video frames and the first cover video frame; Determine, from the second video frames to be selected, a third video frame to be selected whose similarity satisfies a preset similarity condition; A second cover video frame is determined from each of the third candidate video frames as the cover of the target video.

8. The device according to claim 7, characterized in that The step of determining a second cover video frame from each of the third selected video frames as the cover of the target video includes: Calculating the clarity of each of the third to-be-selected video frames respectively; A second cover video frame whose definition meets a preset definition condition is determined from each of the third candidate video frames as the cover of the target video.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 5 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Safety warning method and device

    CN104270619A

  • Image selection method and device, electronic equipment and storage medium

    CN111711771A