Video cover generation method and device, medium, electronic equipment and program product

CN123020904APending Publication Date: 2026-10-30BYTEDANCE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510550132.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-28
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

其中,在进入视频发布页面时,默认将视频的第一帧作为封面,如图1所示,将图2中待发布视频的第一帧作为默认封面,有可能出现纯黑或者画面模糊的情况,此时,就需要用户额外去编辑封面,耗时耗力

Benefits of technology

[0009]在上述技术方案中,在接收到用于指示当前页面从编辑页面跳转至发布页面的页面跳转指令时,首先确定待发布视频是否合成成功;若待发布视频合成成功,则从待发布视频的视频片段中抽取多个视频帧;然后,对所抽取的多个视频帧中的每个视频帧进行质量检测;最后,基于多个视频帧中每个视频帧的质量检测结果,从多个视频帧中选取待发布视频的视频封面。这样,可以从待发布视频中自动选取质量较好的视频封面,避免出现纯黑或者画面模糊的情况,从而为用户省去额外编辑封面的繁琐步骤,提供更加便捷的视频发布体验。另外,在抽取视频帧之前,确保待发布视频合成成功,可以避免后续选取的视频封面并非是最终发布视频中的一帧的问题。此外,通过抽帧操作,可以减少视频封面的选取范围,从而提升视频封面的生成效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123020904A_ABST
    Figure CN123020904A_ABST
Patent Text Reader

Abstract

A video cover generation method, device, medium, electronic equipment and program product. The method comprises: determining whether a to-be-published video is successfully synthesized when a page jump instruction is received; if the to-be-published video is successfully synthesized, determining a plurality of video frames from a video segment of the to-be-published video; performing quality detection on each video frame in the plurality of video frames; and selecting a video cover of the to-be-published video from the plurality of video frames based on the quality detection result of each video frame in the plurality of video frames. In this way, a video cover with good quality can be automatically selected from the to-be-published video, avoiding the occurrence of a pure black or blurred screen condition, saving users from the cumbersome step of additional editing of the cover, and providing a more convenient video publishing experience. Before extracting the video frame, it is ensured that the to-be-published video is successfully synthesized, avoiding the problem that the selected video cover does not belong to a frame in the final published video. The frame extraction operation can reduce the selection range of the video cover and improve the generation efficiency of the video cover.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image processing technology, and more specifically, to a video cover generation method, apparatus, medium, electronic device, and program product. Background Technology

[0002] With the rapid development of internet technology, short video tools and platforms have attracted numerous mobile internet users and captured a huge amount of traffic. Users utilize these tools and platforms to publish a large number of short videos for entertainment, sharing, and communication purposes. In some cases, upon entering the video publishing page, the first frame of the video is used as the cover image by default. Figure 1 As shown, Figure 2 The first frame of the video to be released is used as the default cover, which may result in a completely black or blurry image. In this case, the user needs to edit the cover separately, which is time-consuming and laborious. Summary of the Invention

[0003] This summary section is provided to briefly introduce the concepts, which will be described in detail in the detailed description section below. This summary section is not intended to identify key or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] Firstly, this disclosure provides a method for generating video cover images, including: In response to receiving a page redirection instruction, determine whether the video to be published has been successfully synthesized, wherein the page redirection instruction is used to instruct the current page to redirect from the editing page to the publishing page; If the video to be published is successfully synthesized, then multiple video frames are determined from the first video, wherein the first video is a video segment of the video to be published; Perform quality detection on each of the plurality of video frames; Based on the quality detection results of each of the multiple video frames, the video cover of the video to be published is selected from the multiple video frames.

[0005] Secondly, this disclosure provides a video cover generation apparatus, comprising: The first determining module is used to determine whether the video to be published has been successfully synthesized in response to receiving a page jump instruction, wherein the page jump instruction is used to instruct the current page to jump from the editing page to the publishing page; The second determining module is used to determine multiple video frames from the first video if the video to be published is successfully synthesized, wherein the first video is a video segment of the video to be published. A quality detection module is used to perform quality detection on each of the plurality of video frames; The cover selection module is used to select a video cover for the video to be published from the multiple video frames based on the quality detection results of each video frame.

[0006] Thirdly, this disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the video cover generation method provided in the first aspect of this disclosure.

[0007] Fourthly, this disclosure provides an electronic device, comprising: A storage device on which computer programs are stored; A processing device is configured to execute the computer program in the storage device to implement the steps of the video cover generation method provided in the first aspect of this disclosure.

[0008] Fifthly, this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the video cover generation method provided in the first aspect of this disclosure.

[0009] In the above technical solution, upon receiving a page jump instruction instructing the current page to jump from the editing page to the publishing page, the system first determines whether the video to be published has been successfully synthesized. If the video to be published has been successfully synthesized, multiple video frames are extracted from the video segments of the video to be published. Then, each of the extracted video frames undergoes quality inspection. Finally, based on the quality inspection results of each video frame, a video cover for the video to be published is selected from the multiple video frames. This automatically selects a high-quality video cover from the video to be published, avoiding pure black or blurry images, thus saving users the tedious step of additional cover editing and providing a more convenient video publishing experience. Furthermore, ensuring successful synthesis of the video to be published before extracting video frames avoids the problem of the selected video cover not being a frame from the final published video. In addition, frame extraction reduces the selection range for the video cover, thereby improving the efficiency of video cover generation.

[0010] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description

[0011] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1This is a schematic diagram of a video cover for a video to be published in related technologies.

[0012] Figure 2 This is a schematic diagram illustrating a video to be published according to an exemplary embodiment.

[0013] Figure 3 This is a flowchart illustrating a video cover generation method according to an exemplary embodiment.

[0014] Figure 4 This is a schematic diagram illustrating a video cover for a video to be published, according to an exemplary embodiment.

[0015] Figure 5 This is a flowchart illustrating a video cover generation method according to another exemplary embodiment.

[0016] Figure 6 This is a flowchart illustrating a video cover generation method according to yet another exemplary embodiment.

[0017] Figure 7 This is a block diagram illustrating a video cover generation apparatus according to an exemplary embodiment.

[0018] Figure 8 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment. Detailed Implementation

[0019] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0020] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0021] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0022] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0023] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0024] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0025] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0026] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0027] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0028] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0029] Meanwhile, it is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0030] Figure 3 This is a flowchart illustrating a video cover generation method according to an exemplary embodiment. Figure 3 As shown, the video cover generation method may include the following steps S101 to S105.

[0031] In S101, in response to receiving a page redirection command, it is determined whether the video to be published has been successfully synthesized.

[0032] In this disclosure, the page jump instruction is used to instruct the current page to jump from the editing page to the publishing page. For example, a user can trigger the page jump instruction by clicking the "Next" operation button.

[0033] When users edit videos, they may add effects, audio, subtitles, and other information. Afterwards, the video is composited. To avoid the issue of the selected video cover not being a frame from the final published video, it's crucial to ensure successful composited video before extracting video frames. Therefore, upon receiving a page redirection command instructing the current page to jump from the editing page to the publishing page, it's possible to first determine if the video to be published has been successfully composited. If the video to be published is successfully composited, execute steps S102-S104; if the video to be published is not successfully composited, execute step S105.

[0034] In S102, multiple video frames are determined from the first video, wherein the first video is a video segment of the video to be published.

[0035] In this disclosure, a video to be published refers to video data that any user can pre-generate through various video applications, intending to publish it to the internet for widespread dissemination, thereby realizing online social networking. For example, a short video recorded by the user. After the user finishes editing the recorded video, a page redirection command can be triggered. Then, it is determined whether the video to be published has been successfully synthesized. If the video to be published has been successfully synthesized, steps S102-S104 can be executed to automatically select a video cover from the videos to be published, which will be used as the default cover for the video to be published on the publishing page.

[0036] The first video can be a video clip from any time period of the video to be published. Preferably, the first video is a video clip from within a preset duration of the video to be published.

[0037] If the total duration of the video to be published is greater than the preset duration (e.g., 3 seconds), then the video segments within the first preset duration of the video to be published will be used as the first video segment; if the total duration of the video to be published is less than or equal to the preset duration, then the video to be published will be used directly as the first video segment.

[0038] When shooting videos, users typically place the most important information or plot at the beginning. Choosing a cover image from the first half of the video allows the cover to better reflect the core content, giving users an initial understanding of the video's theme and style. Furthermore, special effects are usually added in the first half of the video; selecting a cover image from the first half can better showcase the video's highlights and creativity, enhancing its appeal.

[0039] In addition, multiple video frames can be determined from the first video according to a preset method. The preset method can be random sampling, sampling according to multiple preset timestamps, or uniform sampling (e.g., at intervals of a certain duration or at intervals of a certain number of frames). This disclosure does not limit this.

[0040] In S103, quality inspection is performed on each of the multiple video frames.

[0041] In this disclosure, for each of multiple video frames, a quality detection model can be used to score the quality of that video frame, which serves as the quality detection result for that video frame. The quality detection model can score the video frame's quality from multiple dimensions, including face, portrait, sharpness, contrast, and color balance.

[0042] In S104, based on the quality detection results of each video frame in multiple video frames, a video cover for the video to be published is selected from multiple video frames.

[0043] In this disclosure, after obtaining the quality scores of multiple extracted video frames, the video frame with the highest quality score among the multiple video frames can be determined as the video cover of the video to be published, and displayed as the default cover of the video to be published on the publishing page.

[0044] For example, such as Figure 4 As shown, Figure 2 The middle frame of the video to be released is displayed as the default cover on the release page.

[0045] In S105, the first frame of the video to be published is determined as the video cover.

[0046] If the video to be published has not been successfully synthesized, instead of waiting for the video to be synthesized, the first frame of the video to be published will be used directly as the video cover, thus ensuring the timely display of the video cover on the publishing page.

[0047] In the above technical solution, upon receiving a page jump instruction indicating that the current page should jump from the editing page to the publishing page, the system first determines whether the video to be published has been successfully synthesized. If the video to be published has been successfully synthesized, multiple video frames are extracted from the video segments of the video to be published. Then, each of the extracted video frames undergoes quality inspection. Finally, based on the quality inspection results of each video frame, a video cover for the video to be published is selected from the multiple video frames. This automatically selects a high-quality video cover from the video to be published, avoiding pure black or blurry images, thus saving users the tedious step of additional cover editing and providing a more convenient video publishing experience. Furthermore, ensuring the video to be published is successfully synthesized before extracting video frames avoids the problem of the selected video cover not being a frame from the final published video. In addition, frame extraction reduces the selection range for the video cover, thereby improving the efficiency of video cover generation.

[0048] Figure 5 This is a flowchart illustrating a video cover generation method according to another exemplary embodiment. For example... Figure 5 As shown, before S104 above, the video cover generation method may also include the following S106 and S107.

[0049] In S106, violation identification is performed on each of the multiple video frames to obtain multiple identification results.

[0050] In this disclosure, a classification model can be used to identify violations in video frames, distinguishing between normal and illegal behaviors. Violations may include those involving privacy. Specifically, the classification module determines whether a video frame contains illegal information by identifying the area of ​​exposed skin and key body parts of individuals within the frame.

[0051] In S107, based on multiple recognition results, illegal video frames are filtered out from multiple video frames to obtain candidate video frames.

[0052] At this point, S104 may include: selecting a video cover for the video to be published from the candidate video frames based on the quality detection results of the candidate video frames.

[0053] In the above implementation, video frames involving violations are first filtered out from the extracted video frames, and then the video cover of the video to be published is selected from the remaining video frames. This ensures that the video cover does not contain any illegal content and prevents users from encountering inappropriate images when browsing the cover.

[0054] The following is a detailed description of the specific implementation method for identifying violations in each of the multiple video frames in S106 described above. Specifically, S106 may include the following steps (a1) to (a3).

[0055] Step (a1): For each video frame in the multiple video frames, extract the image features of that video frame.

[0056] Step (a2): Input the image features of the video frame into a pre-trained image classification model to obtain the classification result.

[0057] The classification result is used to characterize whether the video frame violates regulations.

[0058] Step (a3): Based on the classification results, determine whether the video frame violates the rules.

[0059] To improve the comprehensiveness and accuracy of violation detection, in addition to detecting violations at the visual image level of video frames, violation detection can also be performed on the text content within the video frames. Specifically, before step (a3) ​​above, step S106 may also include steps (a4) and (a5).

[0060] Step (a4): For each video frame in the multiple video frames, extract the text information in that video frame.

[0061] In this disclosure, text information can be extracted from video frames using text recognition technologies, such as optical character recognition (OCR).

[0062] Step (a5): Identify whether the text information in the video frame contains preset sensitive words, and obtain the text recognition result.

[0063] Specifically, if the text information in a video frame contains preset sensitive words, the video frame is considered to be in violation; if the text information in a video frame does not contain preset sensitive words, the video frame is considered to be normal. The text recognition result is used to characterize whether a video frame is in violation.

[0064] At this point, step (a3) ​​above may include: determining whether the video frame violates regulations based on the classification results and text recognition results in the video frame.

[0065] Specifically, if the classification result of the video frame indicates that the video frame is in violation, or if the text recognition result of the video frame indicates that the video frame is in violation, then the video frame is determined to be in violation; if the classification result of the video frame indicates that the video frame is normal, and the text recognition result of the video frame indicates that the video frame is normal, then the video frame is determined to be normal.

[0066] In one possible implementation, the above-mentioned video cover generation method may further include the following steps (b1) to (b6).

[0067] Step (b1): In response to detecting that the current page has been redirected to the editing page, determine whether the video cover generation code is cached locally.

[0068] In this disclosure, the video cover generation code is used to implement the steps of the video cover generation method to automatically generate a video cover. If a user uses the video application for the first time after downloading it, the video cover generation code can be downloaded and cached from the cloud. Therefore, when navigating from the current page to the editing page, it can be determined whether the video cover generation code is cached locally. If the video cover generation code is cached locally, it means that the cached video cover generation code can be used to automatically select a video cover, and at this time, the following step (b2) can be executed; if the video cover generation code is not cached locally, the following steps (b3) and (b4) can be executed.

[0069] Step (b2): When the video to be published is successfully synthesized, execute the cached video cover generation code to achieve the above S102~S104.

[0070] Step (b3): ​​Download and cache the video cover generation code.

[0071] Step (b4): Upon receiving a page redirection instruction, determine whether the video cover generation code has been cached.

[0072] If the video cover generation code is cached and the video to be published is successfully synthesized, then proceed to step (b5); if the video cover generation code is not cached and the video to be published is successfully synthesized, then proceed to step (b6).

[0073] Step (b5): Execute the cached video cover generation code to achieve the above S102~S104.

[0074] Step (b6): Determine the first frame of the video to be published as the video cover.

[0075] Upon detecting a redirect to the editing page, the system checks if the video cover generation code is cached locally. If not, it downloads and caches the code promptly, ensuring the video cover can be generated for this publication. Furthermore, if the video cover generation code is not fully cached, the system doesn't wait for it to finish caching; instead, it uses the first frame of the video to be published as the cover, guaranteeing timely display of the video cover on the publishing page.

[0076] Figure 6 This is a flowchart illustrating a video cover generation method according to yet another exemplary embodiment. For example... Figure 6As shown, the above video cover generation method may include the following steps S201 to S214.

[0077] In S201, enter the shooting page.

[0078] In S202, enter the editing page.

[0079] When a user clicks the record button on the homepage of the video application, they are taken to the recording page. Upon completion of the recording, they are automatically taken to the editing page.

[0080] In S203, determine whether the video cover generation code is cached locally.

[0081] In this disclosure, upon entering the editing page, it can be determined whether the video cover generation code is cached locally. If the video cover generation code is not cached locally, then S204 and S205 are executed. If the video cover generation code is cached locally, then S214 is executed.

[0082] In S204, download and cache the video cover generation code.

[0083] In S205, in response to receiving a page redirection instruction, it is determined whether the video cover generation code has been cached completely.

[0084] If the video cover generation code has been cached, then execute S206 below; if the video cover generation code has not been cached, then execute S212 and S213 below.

[0085] In S206, determine whether the video to be published has been successfully synthesized.

[0086] If the video to be published is successfully synthesized, then execute steps S207~S211, followed by step S213. If the video to be published is not successfully synthesized, then execute steps S212 and S213.

[0087] In S207, multiple video frames are determined from the first video, wherein the first video is a video segment of the video to be published.

[0088] In S208, quality inspection is performed on each of the multiple video frames.

[0089] In S209, violation identification is performed on each of the multiple video frames to obtain multiple identification results.

[0090] In S210, based on multiple recognition results, illegal video frames are filtered out from multiple video frames to obtain candidate video frames.

[0091] In S211, based on the quality detection results of candidate video frames, a video cover for the video to be published is selected from the candidate video frames.

[0092] In S212, the first frame of the video to be published is determined as the video cover.

[0093] In S213, the video cover of the video to be published is displayed on the publishing page.

[0094] In S214, in response to receiving a page redirection instruction, it is determined whether the video to be published has been successfully synthesized.

[0095] If the video to be published is successfully synthesized, then execute S207~S211 above, and then execute S213 above; if the video to be published is not successfully synthesized, then execute S212 and S213 above.

[0096] Figure 7 This is a block diagram illustrating a video cover generation apparatus according to an exemplary embodiment. Figure 7 As shown, the video cover generation device 300 includes: The first determining module 301 is used to determine whether the video to be published has been successfully synthesized in response to receiving a page jump instruction, wherein the page jump instruction is used to instruct the current page to jump from the editing page to the publishing page; The second determining module 302 is used to determine multiple video frames from the first video if the video to be published is successfully synthesized, wherein the first video is a video segment of the video to be published. The quality detection module 303 is used to perform quality detection on each of the plurality of video frames; The cover selection module 304 is used to select the video cover of the video to be published from the multiple video frames based on the quality detection results of each video frame in the multiple video frames.

[0097] In the above technical solution, upon receiving a page jump instruction indicating that the current page should jump from the editing page to the publishing page, the system first determines whether the video to be published has been successfully synthesized. If the video to be published has been successfully synthesized, multiple video frames are extracted from the video segments of the video to be published. Then, each of the extracted video frames undergoes quality inspection. Finally, based on the quality inspection results of each video frame, a video cover for the video to be published is selected from the multiple video frames. This automatically selects a high-quality video cover from the video to be published, avoiding pure black or blurry images, thus saving users the tedious step of additional cover editing and providing a more convenient video publishing experience. Furthermore, ensuring the video to be published is successfully synthesized before extracting video frames avoids the problem of the selected video cover not being a frame from the final published video. In addition, frame extraction reduces the selection range for the video cover, thereby improving the efficiency of video cover generation.

[0098] Optionally, the video cover generation device 300 further includes: The violation identification module is used to identify violations in each of the multiple video frames before the cover selection module 304 selects the video cover of the video to be published from the multiple video frames based on the quality detection results of each video frame in the multiple video frames, and obtain multiple identification results; The filtering module is used to filter out illegal video frames from the multiple video frames based on the multiple recognition results to obtain candidate video frames; The cover selection module 304 is used to select the video cover of the video to be published from the candidate video frames based on the quality detection results of the candidate video frames.

[0099] Optionally, the violation detection module includes: The first extraction submodule is used to extract the image features of each video frame among the plurality of video frames; The classification submodule is used to input the image features into a pre-trained image classification model to obtain the classification result; The determination submodule is used to determine whether the video frame violates the rules based on the classification results.

[0100] Optionally, the violation detection module further includes: The first extraction submodule is used to extract text information from each of the multiple video frames before the determining submodule determines whether the video frame violates the rules based on the classification result. The recognition submodule is used to identify whether the text information contains preset sensitive words and obtain the text recognition result; The determination submodule is used to determine whether the video frame violates regulations based on the classification result and the text recognition result.

[0101] Optionally, the video cover generation device 300 further includes: The third determining module is used to determine the first frame of the video to be published as the video cover if the video to be published fails to be synthesized successfully.

[0102] Optionally, the video cover generation device 300 further includes: The fourth determining module is used to determine whether video cover generation code is cached locally in response to detecting that the current page has jumped to the editing page; The first execution module is used to execute the cached video cover generation code when the video to be published is successfully synthesized if the video cover generation code is cached locally, so as to realize the functions of the second determination module 302, the quality detection module 303 and the cover selection module 304.

[0103] Optionally, the video cover generation device 300 further includes: The caching module is used to download and cache the video cover generation code if it is not cached locally. The fifth determining module is used to determine whether the video cover generation code has been cached completely when the page jump instruction is received; The second execution module is used to execute the cached video cover generation code if the video cover generation code is cached and the video to be published is successfully synthesized, so as to realize the functions of the second determination module 302, the quality detection module 303 and the cover selection module 304.

[0104] Optionally, the video cover generation device 300 further includes: The sixth determining module is used to determine the first frame of the video to be published as the video cover if the video cover generation code has not been completely cached.

[0105] This disclosure also provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the video cover generation method described above.

[0106] This disclosure also provides an electronic device, including: A storage device on which computer programs are stored; A processing device is configured to execute the computer program in the storage device to implement the steps of the video cover generation method provided in this disclosure.

[0107] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the video cover generation method described above.

[0108] The following is for reference. Figure 8 The diagram illustrates a structural schematic of an electronic device (e.g., a terminal device or a server) 600 suitable for implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 8 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0109] like Figure 8As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing device 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.

[0110] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 8 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0111] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of embodiments of this disclosure.

[0112] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0113] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0114] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0115] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: determine whether the video to be published has been successfully synthesized in response to receiving a page jump instruction, wherein the page jump instruction is used to instruct the current page to jump from the editing page to the publishing page; if the video to be published has been successfully synthesized, determine a plurality of video frames from a first video, wherein the first video is a video segment of the video to be published; perform quality detection on each of the plurality of video frames; and select a video cover of the video to be published from the plurality of video frames based on the quality detection results of each of the plurality of video frames.

[0116] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0117] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0118] The modules described in the embodiments of this disclosure can be implemented in software or in hardware. The names of the modules do not necessarily limit the module itself; for example, a first determining module can be described as "a module for determining multiple video frames from a first video".

[0119] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0120] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0121] According to one or more embodiments of this disclosure, Example 1 provides a video cover generation method, including: In response to receiving a page redirection instruction, determine whether the video to be published has been successfully synthesized, wherein the page redirection instruction is used to instruct the current page to redirect from the editing page to the publishing page; If the video to be published is successfully synthesized, then multiple video frames are determined from the first video, wherein the first video is a video segment of the video to be published; Perform quality detection on each of the plurality of video frames; Based on the quality detection results of each of the multiple video frames, the video cover of the video to be published is selected from the multiple video frames.

[0122] According to one or more embodiments of this disclosure, Example 2 provides the method of Example 1, which, prior to the step of selecting the video cover of the video to be published from the plurality of video frames based on the quality detection result of each of the plurality of video frames, further includes: Each of the multiple video frames is subjected to violation identification, resulting in multiple identification results; Based on the multiple identification results, illegal video frames are filtered out from the multiple video frames to obtain candidate video frames; The step of selecting the video cover of the video to be published from the plurality of video frames based on the quality detection results of each video frame includes: Based on the quality detection results of the candidate video frames, the video cover of the video to be published is selected from the candidate video frames.

[0123] According to one or more embodiments of this disclosure, Example 3 provides the method of Example 2, wherein identifying violations in each of the plurality of video frames includes: For each of the plurality of video frames, extract the image features of that video frame; The image features are input into a pre-trained image classification model to obtain the classification result; Based on the classification results, determine whether the video frame violates regulations.

[0124] According to one or more embodiments of this disclosure, Example 4 provides the method of Example 3, wherein, prior to the step of determining whether the video frame violates the classification result, the step of identifying violations for each of the plurality of video frames further includes: For each of the multiple video frames, extract the text information from that video frame; The text information is identified to determine whether it contains preset sensitive words, and the text recognition result is obtained. The step of determining whether a video frame violates a rule based on the classification result includes: Based on the classification results and the text recognition results, determine whether the video frame violates regulations.

[0125] According to one or more embodiments of this disclosure, Example 5 provides the method of Example 1, the method further comprising: If the video to be published fails to be synthesized, the first frame of the video to be published will be determined as the video cover.

[0126] According to one or more embodiments of this disclosure, Example 6 provides the method of Example 1, the method further comprising: In response to detecting that the current page has redirected to the editing page, determine whether the video cover generation code is cached locally; If the video cover generation code is cached locally, the cached video cover generation code is executed when the video to be published is successfully synthesized, so as to implement the step of determining multiple video frames from the first video to the step of selecting the video cover of the video to be published from the multiple video frames based on the quality detection results of each of the multiple video frames.

[0127] According to one or more embodiments of this disclosure, Example 7 provides the method of Example 6, the method further comprising: If the video cover generation code is not cached locally, then download and cache the video cover generation code. Upon receiving the page redirection instruction, determine whether the video cover generation code has been cached completely; If the video cover generation code is cached and the video to be published is successfully synthesized, then the cached video cover generation code is executed to implement the steps from determining multiple video frames from the first video to selecting the video cover of the video to be published from the multiple video frames based on the quality detection results of each of the multiple video frames.

[0128] According to one or more embodiments of this disclosure, Example 8 provides the method of Example 7, the method further comprising: If the video cover generation code has not been completely cached, then the first frame of the video to be published will be determined as the video cover.

[0129] According to one or more embodiments of this disclosure, Example 9 provides a video cover generation apparatus, comprising: The first determining module is used to determine whether the video to be published has been successfully synthesized in response to receiving a page jump instruction, wherein the page jump instruction is used to instruct the current page to jump from the editing page to the publishing page; The second determining module is used to determine multiple video frames from the first video if the video to be published is successfully synthesized, wherein the first video is a video segment of the video to be published. A quality detection module is used to perform quality detection on each of the plurality of video frames; The cover selection module is used to select a video cover for the video to be published from the multiple video frames based on the quality detection results of each video frame.

[0130] According to one or more embodiments of the present disclosure, Example 10 provides a computer-readable medium having a computer program stored thereon that, when executed by a processing device, implements the steps of the method described in any one of Examples 1-8.

[0131] According to one or more embodiments of this disclosure, Example 11 provides an electronic device, including: A storage device on which computer programs are stored; A processing device for executing the computer program in the storage device to implement the steps of any one of the methods in Examples 1-8.

[0132] According to one or more embodiments of the present disclosure, Example 12 provides a computer program product including a computer program that, when executed by a processor, implements the steps of the method described in any one of Examples 1 to 8.

[0133] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0134] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0135] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative forms of implementing the claims. Regarding the apparatus in the above embodiments, the specific manner in which the various modules perform their operations has been described in detail in the embodiments relating to the method, and will not be elaborated upon here.

Claims

1. A method for generating video cover images, characterized in that, include: In response to receiving a page redirection instruction, determine whether the video to be published has been successfully synthesized, wherein the page redirection instruction is used to instruct the current page to redirect from the editing page to the publishing page; If the video to be published is successfully synthesized, then multiple video frames are determined from the first video, wherein the first video is a video segment of the video to be published; Perform quality detection on each of the plurality of video frames; Based on the quality detection results of each of the multiple video frames, the video cover of the video to be published is selected from the multiple video frames.

2. The method according to claim 1, characterized in that, Before the step of selecting the video cover of the video to be published from the plurality of video frames based on the quality detection results of each of the plurality of video frames, the method further includes: Each of the multiple video frames is subjected to violation identification, resulting in multiple identification results; Based on the multiple identification results, illegal video frames are filtered out from the multiple video frames to obtain candidate video frames; The step of selecting the video cover of the video to be published from the plurality of video frames based on the quality detection results of each video frame includes: Based on the quality detection results of the candidate video frames, the video cover of the video to be published is selected from the candidate video frames.

3. The method according to claim 2, characterized in that, The step of identifying violations in each of the plurality of video frames includes: For each of the plurality of video frames, extract the image features of that video frame; The image features are input into a pre-trained image classification model to obtain the classification result; Based on the classification results, determine whether the video frame violates regulations.

4. The method according to claim 3, characterized in that, Before the step of determining whether the video frame violates the classification result, the step of identifying violations for each of the plurality of video frames further includes: For each of the multiple video frames, extract the text information from that video frame; The text information is identified to determine whether it contains preset sensitive words, and the text recognition result is obtained. The step of determining whether a video frame violates a rule based on the classification result includes: Based on the classification results and the text recognition results, determine whether the video frame violates regulations.

5. The method according to claim 1, characterized in that, The method further includes: If the video to be published fails to be synthesized, the first frame of the video to be published will be determined as the video cover.

6. The method according to claim 1, characterized in that, The method further includes: In response to detecting that the current page has redirected to the editing page, determine whether the video cover generation code is cached locally; If the video cover generation code is cached locally, the cached video cover generation code is executed when the video to be published is successfully synthesized, so as to realize the step of determining multiple video frames from the first video to the step of selecting the video cover of the video to be published from the multiple video frames based on the quality detection results of each video frame in the multiple video frames.

7. The method according to claim 6, characterized in that, The method further includes: If the video cover generation code is not cached locally, then download and cache the video cover generation code. Upon receiving the page redirection instruction, determine whether the video cover generation code has been cached completely; If the video cover generation code is cached and the video to be published is successfully synthesized, then the cached video cover generation code is executed to implement the steps from determining multiple video frames from the first video to selecting the video cover of the video to be published from the multiple video frames based on the quality detection results of each of the multiple video frames.

8. The method according to claim 7, characterized in that, The method further includes: If the video cover generation code has not been completely cached, then the first frame of the video to be published will be determined as the video cover.

9. A video cover generation device, characterized in that, include: The first determining module is used to determine whether the video to be published has been successfully synthesized in response to receiving a page jump instruction, wherein the page jump instruction is used to instruct the current page to jump from the editing page to the publishing page; The second determining module is used to determine multiple video frames from the first video if the video to be published is successfully synthesized, wherein the first video is a video segment of the video to be published. A quality detection module is used to perform quality detection on each of the plurality of video frames; The cover selection module is used to select a video cover for the video to be published from the multiple video frames based on the quality detection results of each video frame.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When executed by a processing device, the computer program performs the steps of the method according to any one of claims 1-8.

11. An electronic device, characterized in that, include: A storage device on which computer programs are stored; A processing device for executing the computer program in the storage device to implement the steps of the method according to any one of claims 1-8.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.