Artificial intelligence-based collection video generation method and apparatus, and electronic device
Through the artificial intelligence-based highlight video generation method, the video highlight material and material processing sub-model are used to extract key video clips, which solves the problem of traditional methods being difficult to adapt to non-specific scene videos, and achieves efficient and accurate highlight video generation.
Patent Information
- Application Number
- CN202410789135.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-24
AI Technical Summary
Existing highlight video generation methods mainly rely on fixed traditional video processing frameworks, which are difficult to apply to videos of non-specific scenes, resulting in low processing efficiency.
An artificial intelligence-based method is used to obtain video highlight materials, determine the matching highlight processing process, use the material processing sub-model of multiple nodes to extract key video clips in the original video, and generate highlight videos, which are suitable for various scenarios.
It improves the accuracy and processing efficiency of video highlights, can be applied to videos in different scenes, and avoids the limitations of specific scenes in traditional methods.
Smart Images

Figure CN118690049A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to the technical fields of deep learning, natural language processing, computer vision, speech technology, large models, and in particular to a method, device, and electronic device for generating a highlight video based on artificial intelligence. Background Art
[0002] At present, the main method for generating highlight videos is to use a fixed highlight processing flow to perform highlight processing on the video to be processed to obtain the highlight video. Among them, the fixed highlight processing flow is constructed by the object based on the traditional video processing framework, which can only be applied to videos of specific scenes, such as sports event videos, etc., and is difficult to be applied to videos of non-specific scenes, resulting in poor processing efficiency of videos of non-specific scenes. Summary of the invention
[0003] The present invention provides a method, device and electronic device for generating a highlight video based on artificial intelligence.
[0004] According to one aspect of the present disclosure, a method for generating a highlight video based on artificial intelligence is provided, the method comprising: obtaining a video highlight material; the video highlight material comprises an original video to be processed; based on the video highlight material, determining a highlight processing flow that matches the video highlight material; the highlight processing flow comprises a plurality of nodes, each node corresponding to a material processing sub-model; based on the video highlight material and the material processing sub-models corresponding to each node in the highlight processing flow, determining key video clips in the original video; based on the key video clips, generating a highlight video corresponding to the original video.
[0005] According to another aspect of the present disclosure, there is provided a device for generating a highlight video based on artificial intelligence, the device comprising: a first acquisition module for acquiring video highlight materials; the video highlight materials comprising original videos to be processed; a first determination module for determining a highlight processing flow matching the video highlight materials based on the video highlight materials; the highlight processing flow comprising a plurality of nodes, each node corresponding to a material processing sub-model; a second determination module for determining key video clips in the original video based on the video highlight materials and the material processing sub-models corresponding to the nodes in the highlight processing flow; and a generation module for generating a highlight video corresponding to the original video based on the key video clips.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the artificial intelligence-based highlight video generation method proposed above in the present disclosure.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method for generating a highlight video based on artificial intelligence proposed above in the present disclosure.
[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the method for generating a highlight video based on artificial intelligence proposed above in the present disclosure.
[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0011] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure;
[0012] Figure 2 is a schematic diagram according to a second embodiment of the present disclosure;
[0013] Figure 3 It is a schematic diagram of the native video processing framework;
[0014] Figure 4 It is a confirmed schematic diagram of the key video clip;
[0015] Figure 5 is a schematic diagram according to a third embodiment of the present disclosure;
[0016] Figure 6 It is a schematic diagram of the processing of feedback results by the electronic device;
[0017] Figure 7 is a schematic diagram according to a fourth embodiment of the present disclosure;
[0018] Figure 8 It is a block diagram of an electronic device used to implement the method for generating highlight videos based on artificial intelligence according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0019] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0020] At present, the main method for generating highlight videos is to use a fixed highlight processing flow to perform highlight processing on the video to be processed to obtain the highlight video. Among them, the fixed highlight processing flow is constructed by the object based on the traditional video processing framework, which can only be applied to videos of specific scenes, such as sports event videos, etc., and is difficult to be applied to videos of non-specific scenes, resulting in poor processing efficiency of videos of non-specific scenes.
[0021] In view of the above problems, the present disclosure proposes a method, device and electronic device for generating highlight videos based on artificial intelligence.
[0022] Figure 1 This is a schematic diagram according to the first embodiment of the present disclosure. It should be noted that the method for generating a highlight video based on artificial intelligence in the embodiment of the present disclosure can be applied to a device for generating a highlight video based on artificial intelligence, and the device can be configured in an electronic device so that the electronic device can perform the function of generating a highlight video based on artificial intelligence. The following embodiments are described by taking the execution subject as an electronic device as an example.
[0023] Among them, the electronic device can be any device with computing capabilities, such as a personal computer (PC), a mobile terminal, a server, a platform, a system, etc. The mobile terminal can be, for example, a vehicle-mounted device, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, a smart speaker, a server, a server cluster, and other hardware devices with various operating systems, touch screens and / or display screens.
[0024] The device for generating highlights video based on artificial intelligence may also be software in an electronic device, such as software for generating highlights video based on artificial intelligence, etc. In the following embodiments, the device for generating highlights video based on artificial intelligence is described as an electronic device.
[0025] like Figure 1 As shown, the method for generating a highlight video based on artificial intelligence may include the following steps:
[0026] Step 101, obtaining video highlights material; the video highlights material includes the original video to be processed.
[0027] In the disclosed embodiment, the original video to be processed may be a video that needs to be processed for video highlights. For example, the original video is long in duration and includes some wonderful video clips and a large number of non-wonderful video clips. In order to improve the video viewing efficiency, it is necessary to process the original video for video highlights, that is, to intercept the wonderful video clips in the original video to obtain a shorter highlight video.
[0028] The original video may be a video in any scenario. The scenario may be, for example, a sports event scenario, a short video scenario, a security monitoring scenario, etc. The video in the sports event scenario may be, for example, a sports event video. The video in the short video scenario may be, for example, a short video. The video in the security monitoring scenario may be, for example, a road monitoring video.
[0029] It should be noted that the number of original videos to be processed may be one or more. In the case where there are multiple original videos to be processed, if the scenes to which the multiple original videos belong are the same, video highlights processing may be performed directly based on the multiple original videos. If the scenes to which the multiple original videos belong are different, the multiple original videos may be split based on the scenes to obtain the original videos corresponding to the respective scenes; for each scene, the original videos corresponding to the scene may be processed as video highlights.
[0030] In the disclosed embodiment, in addition to the original video to be processed, the video collection material may also include at least one of the following: audio corresponding to the original video, text corresponding to the original video, etc. The audio corresponding to the original video may be the supporting audio of the original video, or the audio obtained by dubbing the original video. The text corresponding to the original video may be the lines in the original video, or a text description of the details in the original video, etc.
[0031] Among them, the material type of the original video in the video collection material can be a video type; the material type of the audio can be an audio type; and the material type of the text can be a text type.
[0032] Among them, the provision of multiple modal materials in the video highlights material enables the electronic device to combine multiple modal materials to determine the key video segments in the original video, improve the extraction accuracy of the key video segments, and thereby improve the accuracy of the determined highlights video.
[0033] Step 102, determining a highlight processing flow that matches the video highlight material according to the video highlight material; the highlight processing flow includes a plurality of nodes, each node corresponding to a material processing sub-model.
[0034] In the disclosed embodiment, the material processing sub-model corresponding to the node in the highlight processing flow can be used to process the material in the video highlight material. In the case where the video highlight material only includes the original video, the material processing sub-model corresponding to the node in the highlight processing flow is, for example, at least one of the following: image recognition model, image content extraction model, image description generation model, image classification model, image-text matching model, key video segment extraction model, etc.
[0035] Among them, when the video highlight material includes the original video, the audio and text corresponding to the original video, the material processing sub-model corresponding to the node in the highlight processing flow is, for example, at least one of the following: image recognition model, image content extraction model, image description generation model, image classification model, text classification model, text keyword extraction model, audio recognition model, key audio frame extraction model, image-text matching model, audio-video matching model, key video clip extraction model, etc.
[0036] In the embodiment of the present disclosure, the process of the electronic device executing step 102 may, for example, be: obtaining a historical record library, wherein the historical record library is provided with historical video highlight materials and a historical highlight processing flow adopted when the historical video highlight materials are processed for video highlights; querying the historical record library according to the current video highlight material, obtaining candidate historical highlight materials in the historical record library that have the same scene and the same material type as the current video highlight material; and using the historical highlight processing flow adopted by the candidate historical highlight material as the highlight processing flow that matches the current video highlight material.
[0037] In the embodiments of the present disclosure, it should be noted that, in one example, the material processing sub-model can be a model with a small number of parameters. Correspondingly, the material processing sub-model can be trained based on the sample original video of the scene to which the original video belongs, the sample collection video corresponding to the sample original video, and the large model used for material processing as a teacher model.
[0038] Specifically, taking the material processing sub-model as an image content extraction model as an example, the electronic device can input the candidate video frames in the sample original video into the material processing sub-model and the large model respectively, obtain the first prediction content output by the material processing sub-model, and obtain the second prediction content output by the large model; determine the value of the loss function according to the first prediction content, the second prediction content and the loss function of the material processing sub-model; and then adjust the parameters of the material processing sub-model according to the value of the loss function to obtain a trained material processing sub-model.
[0039] In another example, the material processing sub-model may be a model with a large number of parameters. Correspondingly, the material processing sub-model may be a large model for material processing with prompt words. The prompt words are prompt words related to the processing function of the material processing sub-model. For example, taking the material processing sub-model as an image content extraction model, the corresponding prompt words may be, for example, image content extraction.
[0040] Among them, the material processing sub-model is obtained by training a large model as a teacher model and a sample original video in the scene to which the original video belongs; or, it is a large model for material processing with prompt words, so that more features in the original video can be improved, thereby further improving the accuracy of the key video clips determined, and then further improving the efficiency of video highlight processing, and further improving the accuracy of the determined highlight video.
[0041] Step 103, determining the key video clips in the original video according to the video highlight material and the material processing sub-model corresponding to each node in the highlight processing flow.
[0042] In the disclosed embodiment, the electronic device may sequentially call the material processing sub-models corresponding to the nodes in the highlight processing flow according to the node connection relationship in the highlight processing flow to obtain the key video clips in the original video.
[0043] It should be noted that, in order to reduce the amount of data in the highlight processing flow, the nodes in the highlight processing flow can be provided with a corresponding material processing sub-model calling interface, rather than directly provided with a material processing sub-model. For each node in the highlight processing flow, if the node is the node that currently needs to be executed, the material processing sub-model can be called through the calling interface to obtain the processing result of the material processing sub-model.
[0044] Step 104, generating a highlight video corresponding to the original video according to the key video clips.
[0045] In an embodiment of the present disclosure, the electronic device may input key video clips into a video fusion model to obtain a highlight video output by the video fusion model.
[0046] The method for generating a highlight video based on artificial intelligence in the embodiment of the present disclosure is as follows: obtaining a video highlight material; the video highlight material includes an original video to be processed; based on the video highlight material, determining a highlight processing flow that matches the video highlight material; the highlight processing flow includes multiple nodes, each node corresponds to a material processing sub-model; based on the video highlight material and the material processing sub-models corresponding to each node in the highlight processing flow, determining key video clips in the original video; based on the key video clips, generating a highlight video corresponding to the original video; wherein, based on the video highlight material, determining a highlight processing flow that matches the video highlight material, thereby avoiding the use of a highlight processing flow that is only applicable to specific scenarios for processing, thereby improving the accuracy of the determined highlight video.
[0047] In order to further improve the matching degree between the determined highlight processing flow and the video highlight material, and further improve the accuracy of the determined highlight video, the highlight processing flow can be determined in combination with the material type in the video highlight material and the scene to which the original video in the video highlight material belongs. Figure 2 As shown, Figure 2 is a schematic diagram according to a second embodiment of the present disclosure, Figure 2 The illustrated embodiment may include the following steps:
[0048] Step 201, obtaining video highlights material; the video highlights material includes the original video to be processed.
[0049] Step 202: determine the scene to which the original video belongs.
[0050] In the embodiment of the present disclosure, the process of the electronic device executing step 202 may, for example, be to input the original video into a scene classification model to obtain the probability that the original video belongs to each scene; and determine the scene corresponding to the maximum probability among each probability as the scene to which the original video belongs.
[0051] Step 203, determining the highlight processing flow according to the material type and scene in the video highlight material.
[0052] In the disclosed embodiment, in addition to the original video to be processed, the video collection material may also include at least one of the following: audio corresponding to the original video, text corresponding to the original video, etc. Among them, the material type of the original video in the video collection material may be a video type; the material type of the audio may be an audio type; and the material type of the text may be a text type.
[0053] In the embodiment of the present disclosure, the process of the electronic device executing step 203 may, for example, be to determine, based on the material type, a material processing branch corresponding to the material type; determine, based on the scene and the material type, each node in the material processing branch for the material processing sub-operation; and generate a highlight processing flow based on each node in the material processing branch.
[0054] Among them, taking the video type as an example, the nodes in the material processing branch include, for example, an object recognition node, a face recognition node, a body recognition node, an action recognition node, a text extraction node, etc. Taking the audio type as an example, the nodes in the material processing branch include, for example, a speech recognition node, a sound detection node, etc.
[0055] Among them, the material processing branch corresponding to the material type, and the determination of each node used for material processing sub-operations in the material processing branch, can accurately generate a highlight processing flow suitable for video highlight materials, thereby further improving the accuracy of the determined key video clips, and further improving the video highlight processing accuracy of video highlight materials in various scenarios.
[0056] In the disclosed embodiment, when there are multiple material types in the video highlight material and multiple material processing branches, the electronic device may also perform the following process: determine the nodes for material processing sub-operations between the multiple material processing branches. Correspondingly, the process of the electronic device generating a highlight processing flow may be, for example, generating a highlight processing flow according to each node in each material processing branch and the nodes between each material processing branch. Among them, the nodes between each material processing branch are, for example, image-text matching nodes, video-audio matching nodes, etc.
[0057] Among them, the determination of nodes used for material processing sub-operations between multiple material processing branches facilitates the matching processing between materials of multiple modalities, so that the video frames in the original video can be associated with more information; combining more information associated with the video frames in the original video to perform key video segment determination processing can further improve the accuracy of the determined key video segments.
[0058] It should be noted that the method for generating highlight videos based on artificial intelligence in the present disclosure can be based on a native video processing framework, that is, the highlight processing flow and material processing sub-model required in the generation process of the highlight video can be provided by the native video processing framework. Figure 3 As shown. Figure 3In the video processing framework, the native layer can be provided with an application layer, a logic layer, a basic layer and a data layer. Among them, the application layer is provided with scenes such as sports events, short videos, video surveillance, and film and television variety shows. Among them, the logic layer is provided with multimodal representation technology, cross-modal matching technology, material arrangement technology and rendering synthesis technology. Among them, the multimodal representation technology is used to perform material processing on each material in the video highlight material. Cross-modal matching technology, such as image and text matching, audio and video matching, etc. Among them, the material arrangement technology refers to determining the various material processing sub-operations required for the video highlight material for a specific video highlight material, and then determining the highlight processing flow that matches the video highlight material. Among them, the rendering synthesis technology refers to rendering the generated highlight video to display the highlight video.
[0059] Among them, the basic layer is provided with video processing operations such as content recognition, semantic analysis, cross-modal large model, media processing, and the large model used. Among them, content recognition refers to the recognition and processing of elements in the original video. Among them, semantic analysis refers to the determination of structured labels based on the recognition processing results. Among them, structured labels refer to the structured information corresponding to each video frame in the original video, such as the corresponding text, audio, elements, etc. Among them, the cross-modal large model is used to train multiple material processing sub-models. Among them, media processing refers to the determination of key video clips in the original video based on the structured information corresponding to each video frame in the original video.
[0060] The data layer includes training data, test data, evaluation data, video material library and other data. The training data can be used to train the material processing sub-model. The test data and evaluation data can be used to test the material processing sub-model. The video material library can store various video collection materials and corresponding collection videos.
[0061] Step 204, determining the key video clips in the original video according to the video highlight material and the material processing sub-model corresponding to each node in the highlight processing flow.
[0062] In the disclosed embodiments, the electronic device can determine the structured label corresponding to each video frame of the original video in the video highlight material based on the video highlight material and the material processing sub-model corresponding to each node in the highlight processing flow, including the text, audio, and recognized elements corresponding to the video frame; and determine the key video clips in the original video by combining the structured haul label corresponding to each video frame of the original video in the video highlight material and the material processing sub-model corresponding to each node in the highlight processing flow.
[0063] Among them, Figure 4 The following is a schematic diagram of determining key video clips. Figure 4 In the example, the original video may be a basketball game video in a sports event scenario. The number of basketball game videos may be 3. In the first basketball game video, a shooting action A is provided; in the second basketball game video, a shooting action B and a shooting action C are provided. In the third basketball game video, a shooting action D, a shooting action E and a shooting action F are provided. After the original video is processed by the highlight processing flow, for example, the behavior recognition predicts the start time, the time point of each shooting action in the original video can be extracted; the original video is cropped based on the time point of each shooting action, and new segments (i.e., key video segments) can be extracted to generate video highlights (i.e., highlight videos).
[0064] Step 205: Generate a highlight video corresponding to the original video based on the key video clips.
[0065] It should be noted that the details of step 201, step 204 to step 205 can be found in Figure 1 Step 101, step 103 to step 104 in the illustrated embodiment will not be described in detail here.
[0066] The method for generating a highlight video based on artificial intelligence in the embodiment of the present disclosure is as follows: obtaining a video highlight material; the video highlight material includes an original video to be processed; determining the scene to which the original video belongs; determining a highlight processing flow according to the material type and scene in the video highlight material; determining key video clips in the original video according to the video highlight material and the material processing sub-model corresponding to each node in the highlight processing flow; generating a highlight video corresponding to the original video according to the key video clips; wherein, determining the highlight processing flow in combination with the material type in the video highlight material and the scene to which the original video in the video highlight material belongs can further improve the matching degree between the determined highlight processing flow and the video highlight material, thereby further improving the accuracy of the determined highlight video.
[0067] In order to further improve the accuracy of the generated highlight video, the highlight processing flow and / or the highlight processing sub-model may be adjusted based on the feedback results corresponding to the highlight video, thereby improving the accuracy of the highlight processing sub-model and / or the highlight processing flow. Figure 5 As shown, Figure 5 is a schematic diagram according to a third embodiment of the present disclosure, Figure 5 The illustrated embodiment may include the following steps:
[0068] Step 501, obtaining video highlights material; the video highlights material includes the original video to be processed.
[0069] Step 502, determining a highlight processing flow matching the video highlight material according to the video highlight material; the highlight processing flow includes a plurality of nodes, each node corresponding to a material processing sub-model.
[0070] Step 503, determining the key video clips in the original video according to the video highlight material and the material processing sub-model corresponding to each node in the highlight processing flow.
[0071] Step 504: Generate a highlight video corresponding to the original video based on the key video clips.
[0072] Step 505, obtaining feedback results corresponding to the highlight video.
[0073] In the embodiments of the present disclosure, the feedback result may include at least one of the following: candidate video frames, candidate audios, candidate texts, etc. in the original video. The candidate video frames may be candidate key video frames of the object feedback. The candidate audios may be candidate key audios of the object feedback. The candidate texts may be candidate key texts of the object feedback. In addition, the feedback result may also include candidate key image areas in the candidate video frames, or candidate key image areas in the key video frames in the key video clips, etc.
[0074] Step 506, based on the feedback result, adjusting the highlight processing flow for determining the highlight video; and / or, based on the feedback result, fine-tuning the material processing sub-model corresponding to at least one node in the highlight processing flow for determining the highlight video.
[0075] In the disclosed embodiments, the feedback result may come from at least one object. In one example, for the feedback result of each object, the highlight video processing flow can be adjusted in combination with the feedback result to obtain an adjusted highlight processing flow applicable to the object; and / or, the model can be fine-tuned in combination with the feedback result to obtain an adjusted material processing sub-model applicable to the object; thereafter, the adjusted highlight processing flow applicable to the object and / or the adjusted material processing sub-model applicable to the object are stored for subsequent calls. Correspondingly, for the video highlight material provided after the object, it can be preferentially determined whether the storage stores a highlight processing flow and / or a material processing sub-model applicable to the video highlight material provided by the object; and then the video highlight processing is performed.
[0076] In another example, the highlight video processing flow can be adjusted in combination with the feedback results of all objects to obtain an adjusted highlight processing flow; and / or, the model can be fine-tuned in combination with the feedback results to obtain an adjusted material processing sub-model; then, the adjusted highlight processing flow and / or the adjusted material processing sub-model are stored. Correspondingly, when receiving the video highlight material provided by any object, it can be preferentially determined whether the adjusted highlight processing flow and / or the adjusted material processing sub-model are stored in the storage, and then the video highlight processing is performed.
[0077] Among them, for the above two examples, when the stored adjusted highlight processing flow and / or the adjusted material processing sub-model have not determined the highlight processing flow that matches the video highlight material, the highlight processing flow that matches the video highlight material can be determined in combination with the content of step 502; or, the highlight processing flow that matches the video highlight material can be determined in combination with the content of any one of the embodiments.
[0078] Among them, the highlight processing flow for determining the highlight video is adjusted in combination with the feedback results of the object for the highlight video; and / or the material processing sub-model corresponding to at least one node in the highlight processing flow for determining the highlight video is fine-tuned, and the highlight processing flow and / or the material processing sub-model corresponding to the node therein can be updated in real time, thereby further improving the accuracy of the determined key video clips and further improving the efficiency of video highlight processing.
[0079] In the disclosed embodiment, in order to avoid the influence of low-quality feedback results on the highlight processing flow and ensure the accuracy of the highlight processing flow, the obtained feedback results can be filtered, that is, the low-quality feedback results are ignored. Correspondingly, the electronic device can also perform the following process: determine the matching degree between the feedback result and the highlight video; if the matching degree is less than or equal to the preset matching degree threshold, ignore the feedback result.
[0080] Wherein, in the case where the feedback result includes candidate video frames, candidate audios and candidate texts in the original video, for the candidate video frames in the feedback result, the electronic device can determine the degree of match between the candidate video frames and each video frame in the highlight video; select the maximum degree of match from multiple degrees of match; when the maximum degree of match is greater than a preset degree of match threshold, perform fine-tuning of the highlight processing flow and / or fine-tuning of the material processing sub-model based on the candidate video frame; when the maximum degree of match is less than the preset degree of match threshold, ignore the candidate video frame, that is, stop performing fine-tuning of the highlight processing flow and / or fine-tuning of the material processing sub-model based on the candidate video frame. For the candidate audio, the degree of match between the candidate audio and each video frame in the highlight video can be determined; select the maximum degree of match from multiple degrees of match; when the maximum degree of match is greater than the preset degree of match threshold, perform fine-tuning of the highlight processing flow and / or fine-tuning of the material processing sub-model based on the candidate audio; when the maximum degree of match is less than the preset degree of match threshold, ignore the candidate audio. For the candidate text in the feedback results, the degree of text and image matching between the candidate text and each video frame in the highlight video can be determined; when the maximum matching degree is greater than the preset matching degree threshold, the highlight processing flow and / or the material processing sub-model are fine-tuned based on the candidate text; when the maximum matching degree is less than the preset matching degree threshold, the candidate text is ignored.
[0081] For example, when the feedback result is a ROI region of interest (the region of interest in the video frame of the original video) + text (the text corresponding to the region of interest), the electronic device may process the feedback result as follows: Figure 6 As shown. Figure 6 In the embodiment, the electronic device can perform the following steps. (1) Detect the operation of the object in the interface and determine the ROI region + text of interest on the screen. (2) Obtain the ROI region + text of interest on the screen submitted by the object through the operation in the interface. (3) Based on the defense mode of video understanding, for example, whether the timestamp verification is successful, whether the image representation information is extracted, whether the image similarity meets the conditions, etc., determine whether to use the submitted ROI region + text of interest on the screen as feedback data; if the timestamp verification is unsuccessful, the image representation information is not extracted, or the image similarity does not meet the conditions, the submitted ROI region + text of interest on the screen is ignored. (4) Based on the feedback data, adjust the customer training set (used to adjust the highlight processing flow and / or material processing sub-model applicable to the customer) and the main sample training set (used to adjust the highlight processing flow and / or material processing sub-model applicable to all customers).
[0082] It should be noted that the details of steps 501 to 504 can be found in Figure 1Steps 101 to 104 in the illustrated embodiment will not be described in detail herein.
[0083] The method for generating a highlight video based on artificial intelligence of the embodiment of the present disclosure is as follows: obtaining a video highlight material; the video highlight material includes an original video to be processed; according to the video highlight material, determining a highlight processing flow that matches the video highlight material; the highlight processing flow includes multiple nodes, each node corresponding to a material processing sub-model; according to the video highlight material and the material processing sub-model corresponding to each node in the highlight processing flow, determining the key video clips in the original video; according to the key video clips, generating a highlight video corresponding to the original video; obtaining feedback results corresponding to the highlight video; according to the feedback results, adjusting the highlight processing flow for determining the highlight video; and / or, according to the feedback results, fine-tuning the material processing sub-model corresponding to at least one node in the highlight processing flow for determining the highlight video; wherein, adjusting the highlight processing flow and / or the highlight processing sub-model in combination with the feedback results corresponding to the highlight video can improve the accuracy of the highlight processing sub-model and / or the highlight processing flow, thereby improving the accuracy of the generated highlight video.
[0084] In order to implement the above embodiment, the present disclosure also provides a device for generating a highlight video based on artificial intelligence. Figure 7 As shown, Figure 7 The device 70 for generating a highlight video based on artificial intelligence may include: a first acquisition module 701 , a first determination module 702 , a second determination module 703 and a generation module 704 .
[0085] Among them, the first acquisition module 701 is used to obtain video highlight materials; the video highlight materials include the original video to be processed; the first determination module 702 is used to determine the highlight processing flow matching the video highlight materials based on the video highlight materials; the highlight processing flow includes multiple nodes, each node corresponds to a material processing sub-model; the second determination module 703 is used to determine the key video clips in the original video based on the video highlight materials and the material processing sub-models corresponding to each node in the highlight processing flow; the generation module 704 is used to generate a highlight video corresponding to the original video based on the key video clips.
[0086] As a possible implementation method of the embodiment of the present disclosure, the first determination module 702 includes a first determination unit and a second determination unit; the first determination unit is used to determine the scene to which the original video belongs; the second determination unit is used to determine the highlight processing flow according to the material type in the video highlight material and the scene.
[0087] As a possible implementation method of the embodiment of the present disclosure, the second determination unit is specifically used to determine, according to the material type, a material processing branch corresponding to the material type; determine, according to the scene and the material type, each node in the material processing branch for material processing sub-operations; and generate the highlight processing flow according to each node in the material processing branch.
[0088] As a possible implementation method of the embodiment of the present disclosure, there are multiple material types in the video highlight material; there are multiple material processing branches; the second determination unit is also used to determine the nodes for material processing sub-operations between the multiple material processing branches; the second determination unit is specifically used to generate the highlight processing flow according to each node in each of the material processing branches and the nodes between each of the material processing branches.
[0089] As a possible implementation method of the embodiment of the present disclosure, the video highlight material also includes at least one of the following: audio corresponding to the original video, text corresponding to the original video; the material type in the material highlight material includes video type and at least one of the following types: audio type, text type.
[0090] As a possible implementation of the embodiment of the present disclosure, the material processing sub-model is trained based on a sample original video of the scene to which the original video belongs, a sample highlight video corresponding to the sample original video, and a large model used for material processing as a teacher model; or, the material processing sub-model is the large model used for material processing provided with prompt words.
[0091] As a possible implementation method of the embodiment of the present disclosure, the device also includes: a second acquisition module and an adjustment processing module; the second acquisition module is used to obtain the feedback result corresponding to the highlight video; the adjustment processing module is used to adjust the highlight processing flow for determining the highlight video according to the feedback result; and / or, according to the feedback result, fine-tune the material processing sub-model corresponding to at least one node in the highlight processing flow for determining the highlight video.
[0092] As a possible implementation method of an embodiment of the present disclosure, the feedback result includes at least one of the following: candidate video frames, candidate audios, and candidate texts in the original video; the device also includes: a third determination module and an ignore processing module; the third determination module is used to determine the matching degree between the feedback result and the highlight video; the ignore processing module is used to ignore the feedback result when the matching degree is less than or equal to a preset matching degree threshold.
[0093] The device for generating a highlight video based on artificial intelligence in the embodiment of the present disclosure obtains a video highlight material; the video highlight material includes an original video to be processed; based on the video highlight material, a highlight processing flow matching the video highlight material is determined; the highlight processing flow includes multiple nodes, each node corresponds to a material processing sub-model; based on the video highlight material and the material processing sub-models corresponding to each node in the highlight processing flow, key video clips in the original video are determined; based on the key video clips, a highlight video corresponding to the original video is generated; wherein, based on the video highlight material, a highlight processing flow matching the video highlight material is determined, thereby avoiding the use of a highlight processing flow that is only applicable to specific scenarios for processing, thereby improving the accuracy of the determined highlight video.
[0094] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information are all carried out with the user's consent, comply with the relevant laws and regulations, and do not violate public order and good morals.
[0095] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0096] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0097] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0098] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0099] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as a method for generating a highlight video based on artificial intelligence. For example, in some embodiments, a method for generating a highlight video based on artificial intelligence may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the method for generating a highlight video based on artificial intelligence described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute the method for generating a highlight video based on artificial intelligence in any other appropriate manner (for example, by means of firmware).
[0100] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0101] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0102] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0103] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0104] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0105] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0106] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0107] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for generating a highlight video based on artificial intelligence, the method include: Get video highlights; The video collection material includes the original video to be processed; According to the video highlight material, determining a highlight processing flow matching the video highlight material; the highlight processing flow includes a plurality of nodes, each node corresponding to a material processing sub-model; Determine the key video clips in the original video according to the video highlight material and the material processing sub-model corresponding to each node in the highlight processing flow; A highlight video corresponding to the original video is generated according to the key video clips.
2. The method according to claim 1, in, The step of determining a highlight processing flow matching the video highlight material according to the video highlight material comprises: Determining the scene to which the original video belongs; The highlight processing flow is determined according to the material type in the video highlight material and the scene.
3. The method according to claim 2, in, The step of determining the highlight processing flow according to the material type in the video highlight material and the scene includes: According to the material type, determining a material processing branch corresponding to the material type; Determine, according to the scene and the material type, each node in the material processing branch for a material processing sub-operation; The highlight processing flow is generated according to each node in the material processing branch.
4. The method according to claim 3, in, The number of material types in the video collection material is multiple; the number of the material processing branches is multiple; Determining the highlight processing flow according to the material type and the scene in the video highlight material further includes: determining nodes for material processing sub-operations between a plurality of the material processing branches; Correspondingly, generating the highlight processing flow according to each node in the material processing branch includes: generating the highlight processing flow according to each node in each material processing branch and the nodes between each material processing branch.
5. The method according to claim 4, in, The video collection material also includes at least one of the following: audio corresponding to the original video, text corresponding to the original video; The material types in the material collection material include a video type and at least one of the following types: an audio type and a text type.
6. The method according to claim 1, in, The material processing sub-model is obtained by training based on a sample original video of the scene to which the original video belongs, a sample collection video corresponding to the sample original video, and a large model used for material processing as a teacher model; or, The material processing sub-model is the large model for material processing provided with prompt words.
7. The method according to claim 1, in, The method further comprises: Obtaining feedback results corresponding to the highlight video; Based on the feedback results, the highlight processing flow for determining the highlight video is adjusted; and / or, based on the feedback results, the material processing sub-model corresponding to at least one node in the highlight processing flow for determining the highlight video is fine-tuned.
8. The method according to claim 7, in, The feedback result includes at least one of the following: candidate video frames, candidate audio, and candidate text in the original video; The method further comprises: Determining a matching degree between the feedback result and the highlight video; When the matching degree is less than or equal to a preset matching degree threshold, the feedback result is ignored.
9. A device for generating a highlight video based on artificial intelligence, the device include: The first acquisition module is used to acquire video highlights materials; The video collection material includes the original video to be processed; A first determination module is used to determine a highlight processing flow matching the video highlight material according to the video highlight material; the highlight processing flow includes a plurality of nodes, each node corresponding to a material processing sub-model; A second determination module is used to determine the key video clips in the original video according to the video highlight material and the material processing sub-model corresponding to each node in the highlight processing flow; A generation module is used to generate a highlight video corresponding to the original video according to the key video clips.
10. The device according to claim 9, in, The first determination module includes a first determination unit and a second determination unit; The first determining unit is used to determine the scene to which the original video belongs; The second determining unit is used to determine the highlight processing flow according to the material type in the video highlight material and the scene.
11. The device according to claim 10, in, The second determining unit is specifically configured to: According to the material type, determining a material processing branch corresponding to the material type; Determine, according to the scene and the material type, each node in the material processing branch for a material processing sub-operation; The highlight processing flow is generated according to each node in the material processing branch.
12. The device according to claim 11, in, The number of material types in the video highlights material is multiple; the number of the material processing branches is multiple; the second determining unit is further used to determine nodes for material processing sub-operations between the multiple material processing branches; The second determining unit is specifically configured to generate the highlight processing flow according to each node in each of the material processing branches and the nodes between each of the material processing branches.
13. The device according to claim 12, in, The video collection material also includes at least one of the following: audio corresponding to the original video, text corresponding to the original video; The material types in the material collection material include a video type and at least one of the following types: an audio type and a text type.
14. The device according to claim 9, in, The material processing sub-model is obtained by training based on a sample original video of the scene to which the original video belongs, a sample collection video corresponding to the sample original video, and a large model used for material processing as a teacher model; or, The material processing sub-model is the large model for material processing provided with prompt words.
15. The device according to claim 9, in, The device further comprises: a second acquisition module and an adjustment processing module; The second acquisition module is used to obtain the feedback result corresponding to the highlight video; The adjustment processing module is used to adjust the highlight processing flow used to determine the highlight video according to the feedback results; and / or, according to the feedback results, fine-tune the material processing sub-model corresponding to at least one node in the highlight processing flow used to determine the highlight video.
16. The device according to claim 15, in, The feedback result includes at least one of the following: candidate video frames, candidate audio, and candidate text in the original video; the device also includes: a third determination module and an ignore processing module; The third determination module is used to determine the matching degree between the feedback result and the highlight video; The ignoring processing module is used to ignore the feedback result when the matching degree is less than or equal to a preset matching degree threshold.
17. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.
19. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Video processing method and device
CN110166828A
System and method for crowdsourcing a video summary for creating an enhanced video summary
US20220366169A1
Cited By
Video generation method and device, equipment, medium and program product
CN119364131A
Video generation method and apparatus, and device, medium and program product
WO2026092347A1
