Audio and video summary extraction method, device, equipment and storage medium

Through the cutting of audio information, human voice recognition and keyword extraction, the problem of low audio and video summary extraction efficiency in the existing technology is solved, and intelligent extraction and accurate summary generation of audio and video are realized.

CN114461852BActive Publication Date: 2024-10-18CHINA PING AN LIFE INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210143536.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-16
Publication Date
2024-10-18
Estimated Expiration
2042-02-16

AI Technical Summary

Technical Problem

Extraction of audio and video summaries in the existing technology requires manual intervention, which is inefficient and cannot achieve intelligent extraction.

Method used

By obtaining the audio and video to be processed, the preset human voice recognition model is used to cut the audio information, human voice recognition, speech feature extraction and keyword extraction to generate video abstracts and realize intelligent extraction of audio and video abstracts.

Benefits of technology

It realizes intelligent extraction of audio and video, improves efficiency, and can automatically filter out the core content of audio and video and generate accurate video summaries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114461852B_ABST
    Figure CN114461852B_ABST
Patent Text Reader

Abstract

The present application relates to the field of artificial intelligence technology, and discloses an audio and video summary extraction method, device, equipment and storage medium. The method comprises: obtaining audio and video to be processed, cutting audio information into a plurality of audio segments according to a preset step size and a preset cutting length, analyzing each audio segment using a preset human voice recognition model to screen human voice segments from each audio segment, extracting a first user audio and a second user audio from each human voice segment, performing keyword extraction on the first user audio to obtain a first keyword set, and performing keyword extraction on the second user audio to obtain a second keyword set; screening key video frames from a video frame set according to the first keyword set and the second keyword set, and generating a video summary according to each key video frame.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of artificial intelligence, and in particular to an audio and video summary extraction method, device, equipment and storage medium. Background Art

[0002] Currently, users can learn the core content of audio and video in a short time by viewing the audio and video summaries corresponding to the audio and video. In the prior art, audio and video summaries are usually extracted manually. Although the manual extraction method extracts accurate content, this method requires manual viewing of the entire audio and video before a summary result can be given based on the audio and video content. There is an urgent need for a method to realize intelligent extraction of audio and video summaries. Summary of the invention

[0003] The main purpose of this application is to provide a method, device, equipment and storage medium for extracting audio and video summaries, aiming to realize intelligent extraction of audio and video summaries.

[0004] In a first aspect, the present application provides an audio and video summary extraction method, comprising:

[0005] Acquire audio and video to be processed, wherein the audio and video to be processed includes a video frame set and audio information, and the audio and video to be processed is an audio and video of a first user visiting a second user to explain a presentation to the second user;

[0006] Cutting the audio information into a plurality of audio segments according to a preset step length and a preset cutting length, wherein the preset step length is smaller than the preset cutting length;

[0007] Analyzing each of the audio segments using a preset human voice recognition model to select a human voice segment from each of the audio segments;

[0008] Extracting speech features of each of the vocal segments, grouping the vocal segments according to the speech features, and storing them in chronological order to obtain a first vocal segment set and a second vocal segment set;

[0009] splicing the vocal segments in the first vocal segment set to obtain first user audio, and splicing the vocal segments in the second vocal segment set to obtain second user audio;

[0010] Perform keyword extraction on the first user audio to obtain a first keyword set, and perform keyword extraction on the second user audio to obtain a second keyword set;

[0011] Key video frames are selected from the video frame set according to the first keyword set and the second keyword set, and a video summary is generated according to each of the key video frames.

[0012] In a second aspect, the present application further provides an audio and video summary extraction device, the audio and video summary extraction device comprising:

[0013] A processing object acquisition module, used to acquire audio and video to be processed, wherein the audio and video to be processed includes a video frame set and audio information, and the audio and video to be processed is an audio and video of a first user visiting a second user to explain a presentation to the second user;

[0014] An audio information cutting module, used for cutting the audio information into a plurality of audio segments according to a preset step length and a preset cutting length, wherein the preset step length is smaller than the preset cutting length;

[0015] A human voice recognition module, used for analyzing each of the audio segments using a preset human voice recognition model to select a human voice segment from each of the audio segments;

[0016] A vocal classification module, used for extracting speech features of each of the vocal segments, and grouping the vocal segments according to the speech features and storing them in chronological order to obtain a first vocal segment set and a second vocal segment set;

[0017] a vocal splicing module, configured to splice the vocal segments in the first vocal segment set to obtain a first user audio, and to splice the vocal segments in the second vocal segment set to obtain a second user audio;

[0018] A keyword extraction module, configured to extract keywords from the first user audio to obtain a first keyword set, and to extract keywords from the second user audio to obtain a second keyword set;

[0019] The video summary generating module is used to select key video frames from the video frame set according to the first keyword set and the second keyword set, and generate a video summary according to each of the key video frames.

[0020] In a third aspect, the present application further provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the audio and video summary extraction method as described above are implemented.

[0021] In a fourth aspect, the present application further provides a storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the audio and video summary extraction method as described above are implemented.

[0022] The present application provides an audio and video summary extraction method, device, equipment and storage medium. In the present application, the audio and video to be processed are obtained, the video frame set and audio information corresponding to the audio and video to be processed are obtained, the audio information is denoised and the human voice is separated to obtain the first user audio and the second user audio, and the first user audio and the second user audio are respectively subjected to keyword extraction to obtain the first keyword set and the second keyword set; key video frames are filtered from the video frame set according to the first keyword set and the second keyword set, and a video summary is generated according to each key video frame. Through the technical solution provided by the present application, the intelligent extraction of audio and video summaries is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0024] Figure 1 A schematic diagram of the steps of a method for extracting audio and video summaries provided in an embodiment of the present application;

[0025] Figure 2 A schematic block diagram of an audio and video summary extraction device provided in an embodiment of the present application;

[0026] Figure 3 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application.

[0027] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

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

[0029] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions. In addition, although the functional modules are divided in the device schematic, in some cases, the module division can be different from that in the device schematic.

[0030] The embodiments of the present application provide an audio and video summary extraction method, device, equipment and storage medium. The audio and video summary extraction method can be applied to a terminal device or a server. The terminal device can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant and a wearable device; the server can be a single server or a server cluster composed of multiple servers. The following is an explanation of the audio and video summary extraction method applied to a server as an example.

[0031] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0032] Please refer to Figure 1 , Figure 1 A schematic diagram of the steps of a method for extracting audio and video summaries provided in an embodiment of the present application.

[0033] like Figure 1 As shown, the audio and video summary extraction method includes steps S10 to S16.

[0034] Step S10, obtaining audio and video to be processed, wherein the audio and video to be processed includes a video frame set and audio information, and the audio and video to be processed is an audio and video of a first user visiting a second user to explain a presentation to the second user.

[0035] It can be understood that when the execution subject of the method receives the summary extraction instruction, the execution subject can obtain the audio and video to be processed according to the summary extraction instruction to extract the summary of the audio and video to be processed. The audio and video to be processed includes a video frame set and audio information.

[0036] The audio and video to be processed records the visit process between the first user and the second user, and the first user and the second user also used a presentation during the communication process. The video frame set is a set of video frames in the audio and video to be processed, and some video frames record the presentation information explained by the first user to the second user. Correspondingly, the audio information corresponding to the audio and video to be processed also includes the audio information of the conversation between the first user and the second user.

[0037] Step S11: cutting the audio information into a plurality of audio segments according to a preset step length and a preset cutting length, wherein the preset step length is smaller than the preset cutting length.

[0038] It can be understood that by setting the preset step length to be smaller than the preset cutting length, redundant cutting can be achieved. Through this implementation, it can be avoided that a person's voice is cut off or a word is cut into two syllables during the cutting process.

[0039] In some embodiments, the preset step length can be set to 1 second, and the preset cutting length can be set to 3 seconds. In addition, the preset step length and the preset cutting length can also be set as needed, and there is no limitation here.

[0040] Step S12: Analyze each of the audio segments using a preset human voice recognition model to select a human voice segment from each of the audio segments.

[0041] In some embodiments, the noise recognition model is a pre-trained neural network model, or other models that can recognize human voices, which are not limited here. Through the technical solution provided in this embodiment, it is possible to identify which of the audio clips are human voice clips.

[0042] Step S13: extracting speech features of each of the vocal segments, grouping the vocal segments according to the speech features, and storing them in chronological order to obtain a first vocal segment set and a second vocal segment set.

[0043] In some implementations, the speech features of the human voice segment include but are not limited to Mel-frequency cepstral coefficients, which can be applied to speech recognition. In addition, the method for extracting Mel-frequency cepstral coefficients can be extracted by a feature extraction model or by other methods, which are not limited here.

[0044] After extracting the speech features corresponding to each vocal segment, the speech features of each life segment can be compared to group the life segments according to the comparison similarity, and the life segments are stored in chronological order when grouped. Because the audio information includes the audio information of the conversation between the first user and the second user, after grouping, a first vocal segment set and a second vocal segment set can be obtained. The first vocal segment set and the second vocal segment set are respectively the sets of audio segments of the conversation between the first user and the second user.

[0045] Step S14: splicing the vocal segments in the first vocal segment set to obtain first user audio, and splicing the vocal segments in the second vocal segment set to obtain second user audio.

[0046] It can be understood that the first vocal segment set stores several vocal segments with similar voice features. Because the preset step length for cutting vocal segments is less than the preset cutting length, there may be repeated audio segments between adjacent human segments in the first vocal segment set. The vocal segments in the first vocal segment set are deduplicated on the time axis of the audio and video to be processed and then spliced ​​to obtain the first user audio. Similarly, the vocal segments in the second vocal segment set are deduplicated on the time axis of the audio and video to be processed and then spliced ​​to obtain the second user audio.

[0047] Step S15: extract keywords from the first user audio to obtain a first keyword set, and extract keywords from the second user audio to obtain a second keyword set.

[0048] It can be understood that after performing speech recognition on the first user audio and the second user audio, the text content corresponding to the first user audio can be obtained, and the first keyword set is a set of keywords extracted from the text content corresponding to the first user audio. Similarly, the second keyword set is a set of keywords extracted from the text content corresponding to the second user audio.

[0049] In some implementations, extracting keywords from the first user audio to obtain a first keyword set includes:

[0050] Performing speech recognition on the first user audio to obtain text information corresponding to the first user audio;

[0051] Performing word segmentation processing on the text information to obtain a first word set;

[0052] Using a preset useless word filtering model to filter out useless words in the first word set to obtain a second word set;

[0053] Calculating the frequency of each second word in the second word set, and setting the weight of each second word according to the calculated frequency result;

[0054] Keywords are filtered from the second word set according to the weights of the respective second words to obtain a first keyword set.

[0055] It can be understood that there are many methods for speech recognition of audio. Speech recognition can be performed by using algorithms such as GMM-HMM, DMM-HMM, etc., or other algorithms can be used as needed or trained models can be used to obtain text information corresponding to the first user's audio. There is no limitation here.

[0056] In addition, when the text information is segmented, the natural language processing (NLP) technology can be used to segment the text information, or other methods can be used to segment the text according to the situation, which is not limited here. After the text information is segmented, the set of segmented words obtained is the first word set.

[0057] There may be some useless words in the first word set, such as "can", "we", "usually", etc. These words appear frequently in people's daily conversations, but have little representational meaning. After the useless words in the first word set are filtered out by the preset useless word filtering model, the second word set is obtained.

[0058] The words in the second word set are the second words. Because the first word set has not been deduplicated, some words that appear frequently but are not useless words are still retained in the second word set. Therefore, the frequency of each second word in the second word set can be counted. The higher the frequency of the second word in the second word set, the more attention the second word has received from the first user. The weight of each second word can be set by calculating the frequency of each second word in the second word set. The higher the frequency of the second word, the greater the corresponding weight. Keywords are filtered from the second word set according to the weights, and the set of filtered keywords is the first keyword set.

[0059] In addition, the process of extracting keywords from the second user's audio to obtain the second keyword set can refer to the process of extracting keywords from the first user's audio to obtain the first keyword set, and will not be repeated here. It can be understood that because the first user and the second user's focus on the same thing cannot be exactly the same, it is necessary to obtain the first keyword set corresponding to the first user's audio and the second keyword set corresponding to the second user's audio.

[0060] Step S16: Filter key video frames from the video frame set according to the first keyword set and the second keyword set, and generate a video summary according to each of the key video frames.

[0061] It can be understood that the audio and video to be processed is an audio and video of a first user visiting a second user to explain a presentation to the second user. The video frames in the video frame set corresponding to the audio and video to be processed record the presentation information explained by the first user to the second user, that is, the text information extracted from the video frame may record the keywords in the first keyword set and the second keyword set. After the key video frames are screened out from the video frame set using the keywords in the first keyword set and the second keyword set, the video summary can be constructed using each key video frame.

[0062] The generated video summary may be a PPT (Microsoft Office PowerPoint) document, or an animated video composed of key images, or a file in other formats, which is not limited here.

[0063] In some implementations, the filtering of key video frames from the video frame set according to the first keyword set and the second keyword set includes:

[0064] Filtering out repeated video frames and useless video frames in the video frame set to obtain a target video frame set;

[0065] Extracting text features of each target video frame in the target video frame set;

[0066] Calculating a first score for each of the target video frames according to the first keyword set and the text feature;

[0067] Calculating a second score for each of the target video frames according to the second keyword set and the text feature;

[0068] Calculating a comprehensive score of each of the target video frames according to the first score and the second score;

[0069] Key video frames are selected from the target video frame set according to the comprehensive score.

[0070] It can be understood that the audio and video to be processed consists of a large number of video frames. Generally speaking, a video with a duration of one second contains a dozen to dozens of video frames. Therefore, the video frame set may contain a large number of repeated video frames. In addition, some video frames are not helpful for generating video summaries, such as the opening and ending credits, which usually do not involve the subject of the audio and video to be processed. Such video frames are useless video frames. After filtering out the repeated video frames and useless video frames in the video frame set, the set of remaining video frames is the target video frame set.

[0071] In some implementations, the text features of the target video frame may be extracted by using OCR (Optical Character Recognition) technology, or other methods may be used to extract the text features of the video frame as needed, which is not limited here.

[0072] After extracting the text features of each target video frame, the comprehensive score of the target video frame can be calculated by using the situation that the text features contain keywords in the first keyword set and the second keyword set. The higher the comprehensive score, the more critical the target video frame is. The critical video frame is selected from the target video frame set according to the comprehensive score of the target video frame.

[0073] In some implementations, filtering out repeated video frames and useless video frames in the video frame set to obtain a target video frame set includes:

[0074] Acquire the video frames in the video frame set one by one to obtain a first video frame;

[0075] Comparing the first video frame with a comparison video frame in the video frame set to obtain a comparison similarity between the first video frame and the comparison video frame, wherein the comparison video frame is a video frame in the video frame set other than the first video frame;

[0076] When the comparison similarity is greater than a preset value, determining that the compared video frame is a repeated video frame, and removing the compared video frame from the video frame set;

[0077] When all the repeated video frames in the video frame set are removed, useless video frames in the video frame set are filtered out to obtain a target video frame set.

[0078] It can be understood that by comparing the first video frame in the frame set and the comparison video frame, the similarity between the first video frame and the comparison video frame can be obtained. When the similarity is greater than a preset value, it can be determined that the comparison video frame is a repeated video frame of the first video frame.

[0079] By obtaining video frames in the video frame set one by one and comparing them with other video frames in the video frame set, it is possible to determine which video frames in the video frame set are repeated video frames. When all repeated video frames in the video frame set are removed, useless video frames in the video frame set are filtered out to obtain the target video frame set.

[0080] In some implementations, filtering out useless video frames in the video frame set to obtain a target video frame set includes:

[0081] Acquire the video frames in the video frame set one by one to obtain a second video frame;

[0082] Acquire the picture elements of the second video frame, and determine whether the picture elements include person elements and text elements;

[0083] When the picture element does not include the person element, or when the picture element does not include the text element, determining that the second video frame is a useless video frame, and removing the second video frame from the video frame set;

[0084] When all the useless video frames in the video frame set are removed, a target video frame set is obtained.

[0085] It can be understood that when all duplicate video frames in the video frame set are removed, the remaining video frames in the video frame set are all second video frames, and whether the second video frame is a useless video frame can be inferred through the picture elements of the second video frame.

[0086] In some embodiments, the method for identifying the picture elements of the second video frame may be to use a trained neural network model to identify the picture elements in the second video frame, or other methods may be used to identify the picture elements in the second video frame, which is not limited here.

[0087] When the image element of the second video frame does not include a person element or a text element, it can be inferred that the second video frame does not involve the core content of the audio and video to be processed. At this time, the second video frame is determined to be a useless video frame. When all useless video frames in the video frame set are removed, the set of remaining video frames is the target video frame set.

[0088] In some implementations, calculating the first score of each of the target video frames according to the first keyword set and the text feature includes:

[0089] Acquire sentence contents one by one from the text features, and the font size corresponding to the sentence contents when the target video frame is displayed;

[0090] When the sentence content includes a keyword in the first keyword set, calculating a score of the sentence content according to the number of keywords in the first keyword set included in the sentence content and the font size;

[0091] The scores corresponding to the contents of each sentence in the text feature are accumulated to obtain a first score of the target video frame.

[0092] It is understandable that the target video frame may contain multiple sentence contents, such as a title sentence, a subtitle sentence or an explanation sentence in a presentation, and each sentence content has a corresponding font size when displayed in the target video frame.

[0093] According to the text features of the target video frame, the sentence content contained in the target video frame and the font size corresponding to each sentence content when the target video frame is displayed can be obtained. Furthermore, the score of the sentence content can be calculated according to the number of keywords in the first keyword set contained in the sentence content and the font size of the sentence content. The sum of the scores of the various sentence contents in the target video frame is the first score of the target video frame.

[0094] Specifically, the more keywords in the first keyword set the sentence content contains, the larger the font size of the sentence content is, and the higher the score corresponding to the sentence content is.

[0095] In addition, the method for obtaining the second score of the target video frame is basically the same as the method for calculating the first score of the target video frame mentioned above, the difference is that when matching keywords, the keywords in the second keyword set are used. It should be noted that when calculating the second score of each target video frame, the score obtained when the sentence content includes the number of keywords in the second keyword set can be appropriately increased. For example, under the same font size, the same sentence content contains 3 keywords in the first keyword set, which is the same score obtained by Baoxing's 2 keywords in the second keyword set. Because the audio and video to be processed is the audio and video of the first user visiting the second user to explain the presentation to the second user, the keywords in the second keyword set reflect the focus of the second user, and the score obtained when the sentence content includes the number of keywords in the second keyword set can better screen key video frames.

[0096] In some implementations, before generating a video summary according to each of the key video frames, the method further includes:

[0097] Determine the time node where the key video frame is located in the audio and video to be processed as the target time node;

[0098] Extracting a key audio segment within a preset time range from the target time node from the audio information;

[0099] Acquire the speech text content corresponding to the key audio segment, and set the subtitle information of the key video frame according to the speech text content;

[0100] When the subtitle information corresponding to each of the key video frames has been set, a video summary is generated according to each of the key video frames.

[0101] It can be understood that after determining the key video frame, the key audio segment within the preset time range can be obtained according to the time node where the key video frame is located in the audio and video to be processed, and the subtitle information of the key video frame can be set according to the conversation text content of the extracted key audio segment.

[0102] Through this implementation, each key video frame includes the conversation content between the first user and the second user around the key video frame, and the information included in the video summary generated based on each key video frame will be more detailed.

[0103] In the present application, the audio and video to be processed are obtained, the video frame set and audio information corresponding to the audio and video to be processed are obtained, the audio information is denoised and the human voice is separated to obtain the first user audio and the second user audio, and keywords are extracted from the first user audio and the second user audio respectively to obtain the first keyword set and the second keyword set; key video frames are filtered from the video frame set according to the first keyword set and the second keyword set, and a video summary is generated according to each key video frame. Through the technical solution provided by the present application, the intelligent extraction of audio and video summaries is realized.

[0104] Please refer to Figure 2 , Figure 2 A schematic block diagram of an audio and video summary extraction device provided in an embodiment of the present application.

[0105] like Figure 2 As shown, the audio and video summary extraction device 201 includes:

[0106] The processing object acquisition module 2011 is used to acquire the audio and video to be processed, wherein the audio and video to be processed includes a video frame set and audio information, and the audio and video to be processed is the audio and video of a first user visiting a second user to explain a presentation to the second user;

[0107] An audio information cutting module 2012, used to cut the audio information into a plurality of audio segments according to a preset step length and a preset cutting length, wherein the preset step length is smaller than the preset cutting length;

[0108] A human voice recognition module 2013, used for analyzing each of the audio segments using a preset human voice recognition model to select a human voice segment from each of the audio segments;

[0109] The vocal classification module 2014 is used to extract the voice features of each vocal segment, and group each vocal segment according to the voice features and store them in chronological order to obtain a first vocal segment set and a second vocal segment set;

[0110] A vocal splicing module 2015, configured to splice the vocal segments in the first vocal segment set to obtain a first user audio, and to splice the vocal segments in the second vocal segment set to obtain a second user audio;

[0111] A keyword extraction module 2016, configured to extract keywords from the first user audio to obtain a first keyword set, and to extract keywords from the second user audio to obtain a second keyword set;

[0112] The video summary generating module 2017 is used to select key video frames from the video frame set according to the first keyword set and the second keyword set, and generate a video summary according to each of the key video frames.

[0113] In some implementations, when the keyword extraction module 2016 extracts keywords from the first user audio to obtain a first keyword set, the keyword extraction module 2016 includes:

[0114] Performing speech recognition on the first user audio to obtain text information corresponding to the first user audio;

[0115] Performing word segmentation processing on the text information to obtain a first word set;

[0116] Using a preset useless word filtering model to filter out useless words in the first word set to obtain a second word set;

[0117] Calculating the frequency of each second word in the second word set, and setting the weight of each second word according to the calculated frequency result;

[0118] Keywords are filtered from the second word set according to the weights of the respective second words to obtain a first keyword set.

[0119] In some implementations, when the video summary generation module 2017 selects key video frames from the video frame set according to the first keyword set and the second keyword set, the video summary generation module 2017 includes:

[0120] Filtering out repeated video frames and useless video frames in the video frame set to obtain a target video frame set;

[0121] Extracting text features of each target video frame in the target video frame set;

[0122] Calculating a first score for each of the target video frames according to the first keyword set and the text feature;

[0123] Calculating a second score for each of the target video frames according to the second keyword set and the text feature;

[0124] Calculating a comprehensive score of each of the target video frames according to the first score and the second score;

[0125] Key video frames are selected from the target video frame set according to the comprehensive score.

[0126] In some implementations, when filtering out repeated video frames and useless video frames in the video frame set to obtain the target video frame set, the video summary generation module 2017 includes:

[0127] Acquire the video frames in the video frame set one by one to obtain a first video frame;

[0128] Comparing the first video frame with a comparison video frame in the video frame set to obtain a comparison similarity between the first video frame and the comparison video frame, wherein the comparison video frame is a video frame in the video frame set other than the first video frame;

[0129] When the comparison similarity is greater than a preset value, determining that the compared video frame is a repeated video frame, and removing the compared video frame from the video frame set;

[0130] When all the repeated video frames in the video frame set are removed, useless video frames in the video frame set are filtered out to obtain a target video frame set.

[0131] In some implementations, when filtering out useless video frames in the video frame set to obtain the target video frame set, the video summary generation module 2017 includes:

[0132] Acquire the video frames in the video frame set one by one to obtain a second video frame;

[0133] Acquire the picture elements of the second video frame, and determine whether the picture elements include person elements and text elements;

[0134] When the picture element does not include the person element, or when the picture element does not include the text element, determining that the second video frame is a useless video frame, and removing the second video frame from the video frame set;

[0135] When all the useless video frames in the video frame set are removed, a target video frame set is obtained.

[0136] In some implementations, when the video summary generation module 2017 calculates the first score of each of the target video frames according to the first keyword set and the text feature, the following steps are performed:

[0137] Acquire sentence contents one by one from the text features, and the font size corresponding to the sentence contents when the target video frame is displayed;

[0138] When the sentence content includes a keyword in the first keyword set, calculating a score of the sentence content according to the number of keywords in the first keyword set included in the sentence content and the font size;

[0139] The scores corresponding to the contents of each sentence in the text feature are accumulated to obtain a first score of the target video frame.

[0140] In some implementations, the audio and video summary extraction device 201 further includes a subtitle information setting module 218, which is used to determine the time node where the key video frame is located in the audio and video to be processed as the target time node before the video summary generation module 217 generates the video summary according to each key video frame;

[0141] Extracting a key audio segment within a preset time range from the target time node from the audio information;

[0142] Acquire the speech text content corresponding to the key audio segment, and set the subtitle information of the key video frame according to the speech text content;

[0143] When the subtitle information corresponding to each of the key video frames has been set, a video summary is generated according to each of the key video frames.

[0144] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and each module and unit can refer to the corresponding process in the aforementioned audio and video summary extraction method embodiment, and will not be repeated here.

[0145] The apparatus provided in the above embodiment may be implemented in the form of a computer program. The computer program may be Figure 3 Runs on the computer device shown.

[0146] See also Figure 3 , Figure 3 The present invention provides a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device includes but is not limited to a server.

[0147] like Figure 3 As shown, the computer device 301 includes a processor 3011, a memory and a network interface connected via a system bus, wherein the memory may include a storage medium 3012 and an internal memory 3015, and the storage medium 3012 may be non-volatile or volatile.

[0148] The storage medium 3012 can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor 3011 can execute any audio and video summary extraction method.

[0149] Processor 3011 is used to provide computing and control capabilities and support the operation of the entire computer device.

[0150] The internal memory 3015 provides an environment for the operation of the computer program in the storage medium 3012. When the computer program is executed by the processor 3011, the processor 3011 can execute any audio and video summary extraction method.

[0151] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0152] It should be understood that the processor 3011 may be a central processing unit (CPU), and the processor 3011 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0153] In some implementations, the processor 3011 is used to run a computer program stored in the memory to implement the following steps:

[0154] Acquire audio and video to be processed, wherein the audio and video to be processed includes a video frame set and audio information, and the audio and video to be processed is an audio and video of a first user visiting a second user to explain a presentation to the second user;

[0155] Cutting the audio information into a plurality of audio segments according to a preset step length and a preset cutting length, wherein the preset step length is smaller than the preset cutting length;

[0156] Analyzing each of the audio segments using a preset human voice recognition model to select a human voice segment from each of the audio segments;

[0157] Extracting speech features of each of the vocal segments, grouping the vocal segments according to the speech features, and storing them in chronological order to obtain a first vocal segment set and a second vocal segment set;

[0158] splicing the vocal segments in the first vocal segment set to obtain first user audio, and splicing the vocal segments in the second vocal segment set to obtain second user audio;

[0159] Perform keyword extraction on the first user audio to obtain a first keyword set, and perform keyword extraction on the second user audio to obtain a second keyword set;

[0160] Key video frames are selected from the video frame set according to the first keyword set and the second keyword set, and a video summary is generated according to each of the key video frames.

[0161] In some implementations, when the processor 3011 extracts keywords from the first user audio to obtain a first keyword set, it is configured to implement:

[0162] Performing speech recognition on the first user audio to obtain text information corresponding to the first user audio;

[0163] Performing word segmentation processing on the text information to obtain a first word set;

[0164] Using a preset useless word filtering model to filter out useless words in the first word set to obtain a second word set;

[0165] Calculating the frequency of each second word in the second word set, and setting the weight of each second word according to the calculated frequency result;

[0166] Keywords are filtered from the second word set according to the weights of the respective second words to obtain a first keyword set.

[0167] In some implementations, when the processor 3011 selects key video frames from the video frame set according to the first keyword set and the second keyword set, it is configured to implement:

[0168] Filtering out repeated video frames and useless video frames in the video frame set to obtain a target video frame set;

[0169] Extracting text features of each target video frame in the target video frame set;

[0170] Calculating a first score for each of the target video frames according to the first keyword set and the text feature;

[0171] Calculating a second score for each of the target video frames according to the second keyword set and the text feature;

[0172] Calculating a comprehensive score of each of the target video frames according to the first score and the second score;

[0173] Key video frames are selected from the target video frame set according to the comprehensive score.

[0174] In some implementations, when filtering out duplicate video frames and useless video frames in the video frame set to obtain the target video frame set, the processor 3011 is configured to implement:

[0175] Acquire the video frames in the video frame set one by one to obtain a first video frame;

[0176] Comparing the first video frame with a comparison video frame in the video frame set to obtain a comparison similarity between the first video frame and the comparison video frame, wherein the comparison video frame is a video frame in the video frame set other than the first video frame;

[0177] When the comparison similarity is greater than a preset value, determining that the compared video frame is a repeated video frame, and removing the compared video frame from the video frame set;

[0178] When all the repeated video frames in the video frame set are removed, useless video frames in the video frame set are filtered out to obtain a target video frame set.

[0179] In some implementations, when filtering out useless video frames in the video frame set to obtain the target video frame set, the processor 3011 is configured to implement:

[0180] Acquire the video frames in the video frame set one by one to obtain a second video frame;

[0181] Acquire the picture elements of the second video frame, and determine whether the picture elements include person elements and text elements;

[0182] When the picture element does not include the person element, or when the picture element does not include the text element, determining that the second video frame is a useless video frame, and removing the second video frame from the video frame set;

[0183] When all the useless video frames in the video frame set are removed, a target video frame set is obtained.

[0184] In some implementations, when the processor 3011 calculates the first score of each of the target video frames according to the first keyword set and the text feature, it is configured to implement:

[0185] Acquire sentence contents one by one from the text features, and the font size corresponding to the sentence contents when the target video frame is displayed;

[0186] When the sentence content includes a keyword in the first keyword set, calculating a score of the sentence content according to the number of keywords in the first keyword set included in the sentence content and the font size;

[0187] The scores corresponding to the contents of each sentence in the text feature are accumulated to obtain a first score of the target video frame.

[0188] In some implementations, before the video summary generating module 2017 generates a video summary according to each of the key video frames, the processor 3011 is further configured to implement:

[0189] Determine the time node where the key video frame is located in the audio and video to be processed as the target time node;

[0190] Extracting a key audio segment within a preset time range from the target time node from the audio information;

[0191] Acquire the speech text content corresponding to the key audio segment, and set the subtitle information of the key video frame according to the speech text content;

[0192] When the subtitle information corresponding to each of the key video frames has been set, a video summary is generated according to each of the key video frames.

[0193] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the computer device described above can refer to the corresponding process in the aforementioned audio and video summary extraction method embodiment, and will not be repeated here.

[0194] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the audio and video summary extraction method of the present application.

[0195] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.

[0196] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0197] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0198] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for extracting audio and video summaries, characterized in that: include: Acquire audio and video to be processed, wherein the audio and video to be processed includes a video frame set and audio information, and the audio and video to be processed is an audio and video of a first user visiting a second user to explain a presentation to the second user; Cutting the audio information into a plurality of audio segments according to a preset step length and a preset cutting length, wherein the preset step length is smaller than the preset cutting length; Analyzing each of the audio segments using a preset human voice recognition model to select a human voice segment from each of the audio segments; Extracting speech features of each of the vocal segments, grouping the vocal segments according to the speech features, and storing them in chronological order to obtain a first vocal segment set and a second vocal segment set; splicing the vocal segments in the first vocal segment set to obtain first user audio, and splicing the vocal segments in the second vocal segment set to obtain second user audio; Perform keyword extraction on the first user audio to obtain a first keyword set, and perform keyword extraction on the second user audio to obtain a second keyword set; According to the first keyword set and the second keyword set, key video frames are selected from the video frame set, and a video summary is generated according to each of the key video frames; a target video frame set is obtained by filtering out duplicate video frames and useless video frames in the video frame set; text features of each target video frame in the target video frame set are extracted; a first score of each target video frame is calculated according to the first keyword set and the text features; a second score of each target video frame is calculated according to the second keyword set and the text features; a comprehensive score of each target video frame is calculated according to the first score and the second score; key video frames are selected from the target video frame set according to the comprehensive score; wherein, sentence contents are obtained one by one from the text features, and the font size corresponding to the sentence contents when the target video frame is displayed; when the sentence contents include keywords in the first keyword set, the score of the sentence contents is calculated according to the number of keywords in the first keyword set included in the sentence content and the font size; and the scores corresponding to each sentence content in the text features are accumulated to obtain the first score of the target video frame.

2. The method according to claim 1, characterized in that: The extracting keywords from the first user audio to obtain a first keyword set includes: Performing speech recognition on the first user audio to obtain text information corresponding to the first user audio; Performing word segmentation processing on the text information to obtain a first word set; Using a preset useless word filtering model to filter out useless words in the first word set to obtain a second word set; Calculating the frequency of each second word in the second word set, and setting the weight of each second word according to the calculated frequency result; Keywords are filtered from the second word set according to the weights of the respective second words to obtain a first keyword set.

3. The method according to claim 1, characterized in that The filtering out repeated video frames and useless video frames in the video frame set to obtain a target video frame set includes: Acquire the video frames in the video frame set one by one to obtain a first video frame; Comparing the first video frame with a comparison video frame in the video frame set to obtain a comparison similarity between the first video frame and the comparison video frame, wherein the comparison video frame is a video frame in the video frame set other than the first video frame; When the comparison similarity is greater than a preset value, determining that the compared video frame is a repeated video frame, and removing the compared video frame from the video frame set; When all the repeated video frames in the video frame set are removed, useless video frames in the video frame set are filtered out to obtain a target video frame set.

4. The method according to claim 3, characterized in that The filtering out useless video frames in the video frame set to obtain a target video frame set includes: Acquire the video frames in the video frame set one by one to obtain a second video frame; Acquire the picture elements of the second video frame, and determine whether the picture elements include person elements and text elements; When the picture element does not include the person element, or when the picture element does not include the text element, determining that the second video frame is a useless video frame, and removing the second video frame from the video frame set; When all the useless video frames in the video frame set are removed, a target video frame set is obtained.

5. The method according to claim 1, characterized in that Before generating a video summary according to each of the key video frames, the method further includes: Determine the time node where the key video frame is located in the audio and video to be processed as the target time node; Extracting a key audio segment within a preset time range from the target time node from the audio information; Acquire the speech text content corresponding to the key audio segment, and set the subtitle information of the key video frame according to the speech text content; When the subtitle information corresponding to each of the key video frames has been set, a video summary is generated according to each of the key video frames.

6. An audio and video summary extraction device, characterized in that: include: A processing object acquisition module, used to acquire audio and video to be processed, wherein the audio and video to be processed includes a video frame set and audio information, and the audio and video to be processed is an audio and video of a first user visiting a second user to explain a presentation to the second user; An audio information cutting module, used for cutting the audio information into a plurality of audio segments according to a preset step length and a preset cutting length, wherein the preset step length is smaller than the preset cutting length; A human voice recognition module, used for analyzing each of the audio segments using a preset human voice recognition model to select a human voice segment from each of the audio segments; A vocal classification module, used for extracting speech features of each of the vocal segments, and grouping the vocal segments according to the speech features and storing them in chronological order to obtain a first vocal segment set and a second vocal segment set; a vocal splicing module, configured to splice the vocal segments in the first vocal segment set to obtain a first user audio, and to splice the vocal segments in the second vocal segment set to obtain a second user audio; A keyword extraction module, configured to extract keywords from the first user audio to obtain a first keyword set, and to extract keywords from the second user audio to obtain a second keyword set; The video summary generation module is used to select key video frames from the video frame set according to the first keyword set and the second keyword set, and generate a video summary according to each of the key video frames; obtain a target video frame set by filtering out repeated video frames and useless video frames in the video frame set; extract text features of each target video frame in the target video frame set; calculate a first score of each target video frame according to the first keyword set and the text features; calculate a second score of each target video frame according to the second keyword set and the text features; calculate a comprehensive score of each target video frame according to the first score and the second score; select key video frames from the target video frame set according to the comprehensive score; wherein, by obtaining sentence contents one by one from the text features, and the font size corresponding to the sentence contents when the target video frame is displayed; when the sentence contents include keywords in the first keyword set, the score of the sentence contents is calculated according to the number of keywords in the first keyword set included in the sentence content and the font size; and the scores corresponding to each sentence content in the text features are accumulated to obtain the first score of the target video frame.

7. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the audio and video summary extraction method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the audio and video abstract extraction method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Video processing method and device, storage medium and electronic equipment

    CN110868632A

  • Video poster automatic generation method

    CN112004164A