Video editing processing method and system based on artificial intelligence
By identifying and semantically encoding the image frames of video clips, and combining user demand text for interactive analysis, the suitability of the editing solution is automatically evaluated, which solves the problems of low efficiency and subjectivity of traditional video editing, and achieves efficient and automatic editing. Video editing processing.
Patent Information
- Application Number
- CN202410182301.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-02-19
AI Technical Summary
Traditional video editing requires professional editors to manually select and process video materials, which limits the popularity and efficiency of video editing. It cannot automatically select the best editing solution according to user needs, is easily affected by subjective factors, and is difficult to adapt to large-scale and real-time editing needs. .
By identifying the content of the image frames of the video to be edited, obtaining the content description, performing semantic association coding, and conducting semantic feature interaction analysis based on the user demand text, the suitability of the video editing requirements and the editing plan is evaluated, and the editing plan is automatically selected.
It improves the efficiency of video editing, reduces manual intervention and subjectivity, adapts to large-scale and real-time editing needs, and provides users with a better viewing experience.
Smart Images

Figure CN118378158B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of video editing and processing, and more specifically, to a video editing and processing method and system based on artificial intelligence. Background Art
[0002] With the rapid development of the Internet and digital media, the amount and diversity of video content are increasing. However, it is becoming increasingly challenging to watch a large amount of video content and obtain useful information from it. Video editing is a technology that edits and processes raw video materials to produce more attractive and information-dense video summaries.
[0003] However, traditional video editing usually requires professional editors to manually select and process video materials, which requires editors to have rich editing experience and skills, limiting the popularity and efficiency of video editing and increasing costs and time consumption. At the same time, traditional solutions cannot automatically select the best editing solution based on user needs and preferences, and need to rely on the subjective judgment of editors. In other words, traditional video editing solutions require editors to understand user needs and are easily affected by subjective factors, resulting in the generated edited video may not meet user needs and preferences. In addition, traditional video editing solutions require editors to manually screen, crop and combine video materials, which limits the efficiency and flexibility of video editing and is not feasible for large-scale video content and real-time editing needs, especially when video summaries need to be generated quickly.
[0004] Therefore, an artificial intelligence-based video editing processing solution is desired. Summary of the invention
[0005] In order to solve the above technical problems, this application is proposed. The embodiments of this application provide a video editing processing method and system based on artificial intelligence. It can improve the efficiency of video editing, reduce manual intervention, eliminate subjectivity and personal preferences, and at the same time, it can adapt to large-scale video content and real-time editing needs, providing users with a better viewing experience.
[0006] According to one aspect of the present application, a video editing processing method based on artificial intelligence is provided, which includes:
[0007] Get the video to be edited;
[0008] Performing content recognition on each image frame in the video to be edited to obtain a content description of each image frame, wherein the content description includes characters, objects, scenes and actions;
[0009] Acquire a first video editing scheme from the video to be edited;
[0010] Performing semantic association coding on the content description of each image frame of the first video editing scheme to obtain a semantic coding feature vector of the first video editing scheme;
[0011] Get the text description of the video clipping requirement;
[0012] Performing semantic encoding on the video editing requirement text description to obtain a video editing requirement text semantic understanding feature vector;
[0013] Performing semantic feature interaction correlation analysis on the first video editing scheme semantic encoding feature vector and the video editing requirement text semantic understanding feature vector to obtain a video editing requirement-video editing scheme semantic interaction feature;
[0014] And based on the video editing requirement-video editing solution semantic interaction feature, it is determined whether the degree of compatibility between the video editing requirement and the first video editing solution exceeds a predetermined threshold.
[0015] According to another aspect of the present application, there is provided a video editing processing system based on artificial intelligence, which includes:
[0016] A video acquisition module is used to acquire the video to be edited;
[0017] A content recognition module, used for performing content recognition on each image frame in the video to be edited to obtain a content description of each image frame, wherein the content description includes characters, objects, scenes and actions;
[0018] An editing scheme acquisition module, used to acquire a first video editing scheme from the video to be edited;
[0019] A content description semantic association coding module, used for performing semantic association coding on the content description of each image frame of the first video editing scheme to obtain a semantic coding feature vector of the first video editing scheme;
[0020] A requirement text description acquisition module is used to obtain a text description of video clip requirements;
[0021] A text description semantic encoding module, used for semantically encoding the video editing requirement text description to obtain a video editing requirement text semantic understanding feature vector;
[0022] A semantic feature interaction correlation analysis module, used for performing semantic feature interaction correlation analysis on the first video editing scheme semantic encoding feature vector and the video editing requirement text semantic understanding feature vector to obtain a video editing requirement-video editing scheme semantic interaction feature;
[0023] And a compatibility judgment module is used to determine whether the compatibility between the video editing requirement and the first video editing solution exceeds a predetermined threshold based on the semantic interaction characteristics of the video editing requirement-video editing solution.
[0024] Compared with the prior art, the artificial intelligence video editing processing method and system provided by the present application first performs content recognition on each image frame in the video to be edited to obtain the content description of each image frame, then obtains the first video editing scheme from the video to be edited and performs semantic association encoding on the content description of each image frame to obtain the semantic encoding feature vector of the first video editing scheme, then performs semantic encoding on the text description of the video editing requirement to obtain the semantic understanding feature vector of the video editing requirement text, and finally, based on the video editing requirement-video editing scheme semantic interaction feature obtained by performing semantic feature interaction association analysis on the semantic encoding feature vector of the first video editing scheme and the semantic understanding feature vector of the video editing requirement text, determines whether the degree of fit between the video editing requirement and the first video editing scheme exceeds a predetermined threshold. In this way, a better viewing experience can be provided for users. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. The following drawings are not intentionally scaled to the actual size, and the focus is on illustrating the main purpose of the present application.
[0026] Figure 1 Flow chart of an artificial intelligence-based video editing processing method according to an embodiment of the present application.
[0027] Figure 2 This is a flowchart of sub-step S180 of the artificial intelligence-based video editing processing method according to an embodiment of the present application.
[0028] Figure 3 This is a flowchart of sub-step S181 of the artificial intelligence-based video editing processing method according to an embodiment of the present application.
[0029] Figure 4 This is a flowchart of sub-step S184 of the artificial intelligence-based video editing processing method according to an embodiment of the present application.
[0030] Figure 5 It is a block diagram of an artificial intelligence-based video editing processing system according to an embodiment of the present application.
[0031] Figure 6 This is an application scenario diagram of the artificial intelligence-based video editing processing method according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work also fall within the scope of protection of the present application.
[0033] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0034] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.
[0035] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. Meanwhile, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.
[0036] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0037] In response to the above technical problems, the technical concept of the present application is to obtain the video to be edited, and then perform content recognition on each image frame in the video to be edited to obtain a content description, including characters, objects, scenes and actions. In addition, by introducing semantic analysis and understanding algorithms at the back end, the semantic understanding information between each video editing scheme in the video to be edited and the text description of the user's needs is interactively associated, so as to perform a detection and evaluation of the compatibility between the video editing requirements and the first video editing scheme. In this way, the efficiency of video editing can be improved, human intervention can be reduced, and subjectivity and personal preferences can be eliminated. At the same time, it can also adapt to large-scale video content and real-time editing needs, providing users with a better viewing experience.
[0038] Figure 1FIG. 1 is a flow chart of a video editing method based on artificial intelligence according to an embodiment of the present application. Figure 1 As shown, according to the embodiment of the present application, the video editing processing method based on artificial intelligence includes the steps of: S110, obtaining the video to be edited; S120, performing content recognition on each image frame in the video to be edited to obtain the content description of each image frame, wherein the content description includes characters, objects, scenes and actions; S130, obtaining a first video editing scheme from the video to be edited; S140, performing semantic association encoding on the content description of each image frame of the first video editing scheme to obtain a semantic encoding feature vector of the first video editing scheme; S150, obtaining a text description of video editing requirements; S160, performing semantic encoding on the text description of the video editing requirements to obtain a semantic understanding feature vector of the video editing requirements text; S170, performing semantic feature interaction association analysis on the semantic encoding feature vector of the first video editing scheme and the semantic understanding feature vector of the video editing requirements text to obtain a video editing requirement-video editing scheme semantic interaction feature; and, S180, based on the video editing requirement-video editing scheme semantic interaction feature, determining whether the degree of fit between the video editing requirement and the first video editing scheme exceeds a predetermined threshold.
[0039] Specifically, in the technical solution of the present application, first, a video to be edited is obtained, and content recognition is performed on each image frame in the video to be edited to obtain a content description of each image frame, so as to better understand the content and semantics of the video material. Specifically, through content recognition, element information such as people, objects, scenes and actions in each image frame can be extracted, thereby providing a basis for subsequent editing and processing.
[0040] When actually selecting a video editing scheme based on user needs, the key is to match the semantic features of each video editing scheme with the user needs, so as to evaluate whether the two are compatible. Based on this, in the technical solution of the present application, it is necessary to obtain a first video editing scheme from the video to be edited. Then, the content description of each image frame of the first video editing scheme is semantically encoded through a semantic encoder including an embedding layer, so as to extract the global contextual semantic association feature information between the content descriptions of each image frame of the first video editing scheme, thereby obtaining the semantic encoding feature vector of the first video editing scheme.
[0041] For the user's needs, first, a text description of the video editing needs is obtained. Then, the video editing needs text description is semantically encoded, for example, the video editing needs text description can be processed by word segmentation and then processed by a context semantic encoder including an embedding layer, so as to capture the global context semantic association feature information in the video editing needs text description, thereby obtaining a video editing needs text semantic understanding feature vector.
[0042] Further, the feature-to-feature attention layer is used to perform feature interaction based on the attention mechanism on the semantic understanding feature vector of the video editing requirement text and the semantic encoding feature vector of the first video editing scheme to obtain the video editing requirement-video editing scheme semantic interaction feature vector, so as to capture the correlation and mutual influence between the semantic understanding feature of the video editing requirement text and the content description semantic association feature of each image frame of the first video editing scheme. It should be understood that since the goal of the traditional attention mechanism is to learn an attention weight matrix, a larger weight is assigned to important features and a smaller weight is assigned to secondary features, so as to select more critical information for the current task goal. This method focuses more on weighting the importance of each feature and ignores the dependency between features. The feature-to-feature attention layer can capture the correlation and mutual influence between the semantic understanding feature of the video editing requirement text and the content description semantic association feature of each image frame of the first video editing scheme through feature interaction based on the attention mechanism, and can learn the dependency between different semantic features of the two, and interact and integrate the features according to these dependencies, so as to obtain the video editing requirement-video editing scheme semantic interaction feature vector.
[0043] Correspondingly, in step S140, the content description of each image frame of the first video editing scheme is semantically associated and encoded to obtain the semantic encoding feature vector of the first video editing scheme, including: the content description of each image frame of the first video editing scheme is passed through a semantic encoder including an embedding layer to obtain the semantic encoding feature vector of the first video editing scheme. It is worth mentioning that in the video editing scheme, the content description of each image frame is semantically associated and encoded in order to obtain a feature vector representing the semantic information of the entire video editing scheme. This can be achieved by using a semantic encoder including an embedding layer. The embedding layer is a hierarchical structure in a deep learning model, which is used to convert input data into a more representative representation. In the semantic encoder, the role of the embedding layer is to convert the content description of the image frame into a low-dimensional semantic encoding feature vector. This feature vector contains the semantic information of the input description and usually has a lower dimension, which facilitates subsequent processing and analysis. The main role of the embedding layer is to learn the representation of the data so that similar inputs are closer in the embedding space, while dissimilar inputs are farther away. This helps to extract the key features of the data and can reduce the dimension of the data, thereby reducing the computational complexity and improving the generalization ability of the model. By inputting the content description of the image frame into the semantic encoder containing the embedding layer, a feature vector representing the semantic information of the video editing scheme can be obtained. This feature vector can be used for subsequent tasks such as similarity calculation, clustering analysis, semantic retrieval, etc., thereby improving the processing efficiency and accuracy of the video editing scheme.
[0044] Correspondingly, in step S170, the semantic feature interaction correlation analysis is performed on the semantic encoding feature vector of the first video editing scheme and the semantic understanding feature vector of the video editing requirement text to obtain the video editing requirement-video editing scheme semantic interaction feature, including: using the inter-feature attention layer to perform feature interaction based on the attention mechanism on the semantic understanding feature vector of the video editing requirement text and the semantic encoding feature vector of the first video editing scheme to obtain the video editing requirement-video editing scheme semantic interaction feature vector as the video editing requirement-video editing scheme semantic interaction feature. It is worth mentioning that the inter-feature attention layer is a hierarchical structure in a deep learning model, which is used to model and weight the association between different features. In the video editing task, the inter-feature attention layer can be used to perform interactive correlation analysis on the semantic understanding feature vector of the video editing requirement text and the semantic encoding feature vector of the first video editing scheme to obtain the semantic interaction feature of the video editing requirement-video editing scheme. By introducing the attention mechanism, the inter-feature attention layer can automatically learn the correlation and importance between features, and weight the features according to these association information. Specifically, for the semantic understanding feature vector of the video editing requirement text and the semantic encoding feature vector of the first video editing solution, the inter-feature attention layer calculates the similarity or correlation between them, and performs weighted summation of the two feature vectors according to the weight of the similarity to obtain the semantic interaction feature vector of the video editing requirement-video editing solution. This feature interaction based on the attention mechanism can capture the semantic association information between the video editing requirement and the video editing solution, thereby improving the accuracy and effect of video editing. By learning the attention weights between features, the model can automatically focus on important feature parts and ignore irrelevant or noisy features, thereby improving the model's expressiveness and generalization capabilities. In other words, the role of the inter-feature attention layer in the video editing task is to perform interactive correlation analysis on the semantic understanding feature vector of the video editing requirement text and the semantic encoding feature vector of the first video editing solution, and generate a semantic interaction feature vector of the video editing requirement-video editing solution, thereby improving the quality and effect of video editing.
[0045] Next, the video editing requirement-video editing scheme semantic interaction feature vector is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the degree of fit between the video editing requirement and the first video editing scheme exceeds a predetermined threshold. In other words, the degree of fit between the first video editing scheme and the user requirement is evaluated by using the interactive correlation features between the semantic understanding features of the video editing requirement text and the semantic correlation features of the content description of each image frame of the first video editing scheme, so as to determine whether the degree of fit between the two exceeds a predetermined threshold, so as to select a video editing scheme. In this way, the efficiency of video editing can be improved, human intervention can be reduced, and subjectivity and personal preferences can be eliminated. At the same time, it can also adapt to large-scale video content and real-time editing requirements, providing users with a better viewing experience.
[0046] Accordingly, if Figure 2As shown, based on the video editing requirement-video editing scheme semantic interaction feature, determining whether the degree of fit between the video editing requirement and the first video editing scheme exceeds a predetermined threshold includes: S181, passing the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic encoding feature vector through a Clip-like model to obtain an association matrix; S182, fusing the video editing requirement-video editing scheme semantic interaction feature vector with the association matrix to obtain an optimized video editing requirement-video editing scheme semantic interaction feature vector; S183, correcting each eigenvalue of the optimized video editing requirement-video editing scheme semantic interaction feature vector to obtain a corrected optimized video editing requirement-video editing scheme semantic interaction feature vector; and, S184, passing the corrected optimized video editing requirement-video editing scheme semantic interaction feature vector through a classifier to obtain a classification result, the classification result being used to indicate whether the degree of fit between the video editing requirement and the first video editing scheme exceeds a predetermined threshold. It should be understood that in step S181, a Clip-like model is used to calculate the association matrix between the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic encoding feature vector. The Clip-like model is a deep learning model that can understand and encode the semantic association between images and texts. By inputting the semantic feature vectors of the video editing requirement text and the first video editing scheme into the Clip-like model, an association matrix can be obtained, which represents the degree of semantic association between them. In step S182, the video editing requirement-video editing scheme semantic interaction feature vector is fused with the association matrix to obtain the optimized video editing requirement-video editing scheme semantic interaction feature vector. This fusion process can be achieved by simple vector multiplication or other fusion methods. The purpose is to combine the semantic interaction feature with the matching degree of the association matrix to further improve the adaptability between the video editing requirement and the first video editing scheme. In step S183, the eigenvalues of the optimized video editing requirement-video editing scheme semantic interaction feature vector are corrected to obtain the corrected optimized video editing requirement-video editing scheme semantic interaction feature vector. In step S184, the corrected optimized video editing requirement-video editing scheme semantic interaction feature vector is input into the classifier to obtain the classification result. The classifier may be a binary classifier, used to determine whether the degree of fit between the video editing requirement and the first video editing solution exceeds a predetermined threshold, and the classification result may be a probability value or a binary label, indicating the degree of fit, and through the classification result, the degree of fit between the video editing requirement and the first video editing solution may be determined, and then whether the predetermined fit threshold is met. That is, S181 to S184 are a series of steps for determining whether the degree of fit between the video editing requirement and the first video editing solution exceeds a predetermined threshold.These steps include calculating the association matrix, fusing the semantic interaction features and the association matrix, correcting each feature value, and obtaining the classification result of the fitness through the classifier. Through the combination of these steps, the semantic association between the video editing requirements and the video editing scheme can be analyzed and evaluated to determine their fitness.
[0047] More specifically, in step S181, Figure 3 As shown, the video clip requirement text semantic understanding feature vector and the first video clip scheme semantic coding feature vector are passed through a Clip-like model to obtain an association matrix, including: S1811, using the sequence encoder of the Clip-like model to process the video clip requirement text semantic understanding feature vector to obtain a requirement text feature vector; S1812, using the sequence encoder of the Clip-like model to process the first video clip scheme semantic coding feature vector to obtain a scheme feature vector; and, S1813, using the joint encoder of the Clip-like model to fuse the requirement text feature vector and the scheme feature vector to obtain the association matrix.
[0048] In particular, in the technical solution of the present application, considering that the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic coding feature vector respectively express the text semantic features of the video editing requirement text description and the image semantic features of the image content of the first video editing scheme, when using the inter-feature attention layer to perform feature interaction based on the attention mechanism on the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic coding feature vector to extract the dependency features therebetween, it is expected that the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic coding feature vector can have a semantic fusion representation that is aligned as much as possible. Therefore, it is preferred to first calculate the association matrix between the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic coding feature vector in a Clip-like model manner, and then fuse the video editing requirement-video editing scheme semantic interaction feature vector with the association matrix to optimize the video editing requirement-video editing scheme semantic interaction feature vector.
[0049] However, further considering that when the association matrix is performing vector cross-modal semantic alignment association expression, if the text semantic features and image semantic features expressed by the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic encoding feature vector are used as foreground object features, the association matrix will also introduce background distribution noise when performing vector cross-modal semantic alignment association expression, and while performing high-rank distribution representation between vectors and matrices, the spatial heterogeneous distribution of the heterogeneous high-dimensional features of the text semantic features and the image semantic features will cause probability density mapping errors of the association matrix relative to the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic encoding feature vector, resulting in the significant expression of the feature distribution information of the optimized video editing requirement-video editing scheme semantic interaction feature vector being affected, so that when the optimized video editing requirement-video editing scheme semantic interaction feature vector is subjected to class probability regression mapping through a classifier, the optimized video editing requirement-video editing scheme semantic interaction feature vector is difficult to stably focus on the local significant feature distribution during the classification training process, thereby affecting the expression effect of the optimized video editing requirement-video editing scheme semantic interaction feature vector and the training speed of the model.
[0050] Based on this, the applicant of the present application corrects each eigenvalue of the optimized video editing requirement-video editing scheme semantic interaction feature vector at each classifier iteration, which is expressed as: correcting each eigenvalue of the optimized video editing requirement-video editing scheme semantic interaction feature vector with the following correction formula to obtain the corrected optimized video editing requirement-video editing scheme semantic interaction feature vector; wherein the correction formula is:
[0051]
[0052] in, is the optimized video editing requirement-video editing solution semantic interaction feature vector, is the eigenvalue of the optimized video editing requirement-video editing solution semantic interaction feature vector, and They are the optimized video editing requirements and video editing scheme semantic interaction feature vectors The 1-norm and 2-norm squared, is the optimized video editing requirement-video editing solution semantic interaction feature vector The length of is the weight hyperparameter, represents the logarithmic function value with base 2, It is the eigenvalue of the semantic interaction feature vector of the optimized video editing requirement-video editing scheme after correction.
[0053] Specifically, based on the optimized video editing requirement-video editing scheme semantic interaction feature vector The scale and structure parameters of the optimized video clipping requirements-video clipping scheme semantic interaction feature vector can be used to perform geometric registration of its high-dimensional feature manifold shape. The features with rich feature semantic information in the feature set composed of the feature values of , that is, the distinguishable stable interest features based on the dissimilarity of local context information representation during the iterative training of the classifier, thereby realizing the optimized video editing demand-video editing scheme semantic interaction feature vector The significant annotation of feature information during the classifier training process improves the expression effect of the optimized video editing demand-video editing solution semantic interaction feature vector and the training speed of the model, as well as the accuracy of the classification results obtained by the classifier. In this way, the compatibility of the video editing solution and user needs can be evaluated based on the semantic interaction between the two to select the video editing solution, thereby improving the efficiency of video editing, reducing manual intervention, and eliminating subjectivity and personal preferences. At the same time, it can also adapt to large-scale video content and real-time editing needs to automatically complete video editing and provide users with a better viewing experience.
[0054] Further, in step S184, if Figure 4 As shown, the corrected optimized video editing requirement-video editing scheme semantic interaction feature vector is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the degree of fit between the video editing requirement and the first video editing scheme exceeds a predetermined threshold, including: S1841, using the fully connected layer of the classifier to perform fully connected encoding on the corrected optimized video editing requirement-video editing scheme semantic interaction feature vector to obtain an encoded classification feature vector; and, S1842, inputting the encoded classification feature vector into the Softmax classification function of the classifier to obtain the classification result.
[0055] That is, in the technical solution disclosed in the present invention, the label of the classifier includes the degree of fit between the video editing requirement and the first video editing scheme exceeds the predetermined threshold (first label), and the degree of fit between the video editing requirement and the first video editing scheme does not exceed the predetermined threshold (second label), wherein the classifier determines which classification label the optimized video editing requirement-video editing scheme semantic interaction feature vector belongs to by a soft maximum function. It is worth noting that the first label p1 and the second label p2 here do not contain artificially set concepts. In fact, during the training process, the computer model does not have the concept of "whether the degree of fit between the video editing requirement and the first video editing scheme exceeds the predetermined threshold". It only has two classification labels and the probability of the output feature under these two classification labels, that is, the sum of p1 and p2 is one. Therefore, the classification result of whether the degree of fit between the video editing requirement and the first video editing scheme exceeds the predetermined threshold is actually converted into a binary classification class probability distribution that conforms to the laws of nature through the classification label. In essence, the physical meaning of the natural probability distribution of the label is used, rather than the linguistic text meaning of "whether the degree of fit between the video editing requirement and the first video editing scheme exceeds the predetermined threshold".
[0056] It should be understood that the role of the classifier is to use the given categories and known training data to learn classification rules and classifiers, and then classify (or predict) unknown data. Logistic regression, SVM, etc. are often used to solve binary classification problems. For multi-class classification problems, logistic regression or SVM can also be used, but multiple binary classifications are required to form a multi-classification, but this is prone to errors and inefficient. Commonly used multi-classification methods include the Softmax classification function.
[0057] In summary, the artificial intelligence-based video editing processing method according to the embodiment of the present application is explained, which can provide users with a better viewing experience.
[0058] Figure 5 FIG. 1 is a block diagram of an artificial intelligence-based video editing processing system 100 according to an embodiment of the present application. Figure 5As shown, according to the embodiment of the present application, the video editing processing system 100 based on artificial intelligence includes: a video acquisition module 110, which is used to acquire a video to be edited; a content recognition module 120, which is used to perform content recognition on each image frame in the video to be edited to obtain a content description of each image frame, wherein the content description includes characters, objects, scenes and actions; an editing scheme acquisition module 130, which is used to acquire a first video editing scheme from the video to be edited; a content description semantic association encoding module 140, which is used to perform semantic association encoding on the content description of each image frame of the first video editing scheme to obtain a semantic encoding feature vector of the first video editing scheme; and a demand text description acquisition module 110. 50, used to obtain a text description of video editing requirements; a text description semantic encoding module 160, used to perform semantic encoding on the text description of video editing requirements to obtain a video editing requirement text semantic understanding feature vector; a semantic feature interaction correlation analysis module 170, used to perform semantic feature interaction correlation analysis on the first video editing scheme semantic encoding feature vector and the video editing requirement text semantic understanding feature vector to obtain a video editing requirement-video editing scheme semantic interaction feature; and a fitness judgment module 180, used to determine whether the fitness between the video editing requirements and the first video editing scheme exceeds a predetermined threshold based on the video editing requirement-video editing scheme semantic interaction feature.
[0059] In one example, in the above-mentioned artificial intelligence-based video editing processing system 100, the content description semantic association encoding module 140 is used to: pass the content description of each image frame of the first video editing scheme through a semantic encoder including an embedding layer to obtain the semantic encoding feature vector of the first video editing scheme.
[0060] In one example, in the above-mentioned artificial intelligence-based video editing processing system 100, the semantic feature interaction correlation analysis module 170 is used to: use the inter-feature attention layer to perform feature interaction based on the attention mechanism on the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic encoding feature vector to obtain the video editing requirement-video editing scheme semantic interaction feature vector as the video editing requirement-video editing scheme semantic interaction feature.
[0061] Here, those skilled in the art will appreciate that the specific functions and operations of each module in the above-mentioned artificial intelligence-based video editing processing system 100 have been described in detail above. Figures 1 to 4 The description of the artificial intelligence-based video editing processing method has been introduced in detail, and therefore, its repeated description will be omitted.
[0062] As described above, the video clip processing system 100 based on artificial intelligence according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with a video clip processing algorithm based on artificial intelligence. In one example, the video clip processing system 100 based on artificial intelligence according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the video clip processing system 100 based on artificial intelligence can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the video clip processing system 100 based on artificial intelligence can also be one of the many hardware modules of the wireless terminal.
[0063] Alternatively, in another example, the artificial intelligence-based video editing processing system 100 and the wireless terminal may also be separate devices, and the artificial intelligence-based video editing processing system 100 may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.
[0064] Figure 6 FIG. 1 is an application scenario diagram of the video editing processing method based on artificial intelligence according to an embodiment of the present application. Figure 6 As shown, in this application scenario, first, the video to be edited is obtained (for example, Figure 6 D1 shown in the figure), and video clips require text descriptions (e.g. Figure 6 Then, the video to be edited and the text description of the video editing requirements are input into a server that is deployed with an artificial intelligence-based video editing processing algorithm (for example, Figure 6 S), wherein the server is capable of using the artificial intelligence-based video editing processing algorithm to process the video to be edited and the text description of the video editing requirements to obtain a classification result indicating whether the degree of fit between the video editing requirements and the first video editing scheme exceeds a predetermined threshold.
[0065] In addition, it will be appreciated by those skilled in the art that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may all be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of the present application may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.
[0066] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology and should not be interpreted in an idealized or extremely formal sense, unless explicitly defined as such herein.
[0067] The above is an explanation of the present invention and should not be considered as a limitation thereof. Although several exemplary embodiments of the present invention have been described, it will be readily appreciated by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present invention. Therefore, all such modifications are intended to be included within the scope of the present invention as defined in the claims. It should be understood that the above is an explanation of the present invention and should not be considered as being limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present invention is defined by the claims and their equivalents.
Claims
1. A video editing method based on artificial intelligence, characterized in that: include: Get the video to be edited; Performing content recognition on each image frame in the video to be edited to obtain a content description of each image frame, wherein the content description includes characters, objects, scenes and actions; Acquire a first video editing scheme from the video to be edited; Performing semantic association coding on the content description of each image frame of the first video editing scheme to obtain a semantic coding feature vector of the first video editing scheme; Get the text description of the video clipping requirement; Performing semantic encoding on the video editing requirement text description to obtain a video editing requirement text semantic understanding feature vector; Performing semantic feature interaction correlation analysis on the first video editing scheme semantic encoding feature vector and the video editing requirement text semantic understanding feature vector to obtain a video editing requirement-video editing scheme semantic interaction feature; And based on the video editing requirement-video editing solution semantic interaction feature, it is determined whether the degree of compatibility between the video editing requirement and the first video editing solution exceeds a predetermined threshold.
2. The video editing processing method based on artificial intelligence according to claim 1 is characterized in that: The method of performing semantic association coding on the content description of each image frame of the first video editing scheme to obtain a semantic coding feature vector of the first video editing scheme includes: The content description of each image frame of the first video editing scheme is passed through a semantic encoder including an embedding layer to obtain a semantic coding feature vector of the first video editing scheme.
3. The video editing processing method based on artificial intelligence according to claim 2 is characterized in that: Performing semantic feature interaction correlation analysis on the first video editing scheme semantic coding feature vector and the video editing requirement text semantic understanding feature vector to obtain video editing requirement-video editing scheme semantic interaction features, including: Use the inter-feature attention layer to perform feature interaction based on the attention mechanism on the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic encoding feature vector to obtain the video editing requirement-video editing scheme semantic interaction feature vector as the video editing requirement-video editing scheme semantic interaction feature.
4. The video editing processing method based on artificial intelligence according to claim 3 is characterized in that: Determining whether the degree of compatibility between the video editing requirement and the first video editing solution exceeds a predetermined threshold based on the video editing requirement-video editing solution semantic interaction feature includes: The semantic understanding feature vector of the video editing requirement text and the semantic encoding feature vector of the first video editing scheme are passed through a Clip-like model to obtain an association matrix; The video editing requirement-video editing scheme semantic interaction feature vector is merged with the association matrix to obtain an optimized video editing requirement-video editing scheme semantic interaction feature vector; Correcting each eigenvalue of the optimized video editing requirement-video editing scheme semantic interaction feature vector to obtain a corrected optimized video editing requirement-video editing scheme semantic interaction feature vector; And the corrected optimized video editing requirement-video editing scheme semantic interaction feature vector is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the degree of fit between the video editing requirement and the first video editing scheme exceeds a predetermined threshold.
5. The video editing method based on artificial intelligence according to claim 4 is characterized in that: The semantic understanding feature vector of the video editing requirement text and the semantic encoding feature vector of the first video editing scheme are subjected to a Clip-like model to obtain an association matrix, including: Using the sequence encoder of the Clip model-like, the video clip demand text semantic understanding feature vector is processed to obtain a demand text feature vector; Using the sequence encoder of the Clip model-like method to process the semantic coding feature vector of the first video clipping scheme to obtain a scheme feature vector; And using the joint encoder of the Clip-like model to fuse the requirement text feature vector and the solution feature vector to obtain the association matrix.
6. The video editing processing method based on artificial intelligence according to claim 5 is characterized in that: Correcting each eigenvalue of the optimized video editing requirement-video editing scheme semantic interaction feature vector to obtain a corrected optimized video editing requirement-video editing scheme semantic interaction feature vector, including: correcting each eigenvalue of the optimized video editing requirement-video editing scheme semantic interaction feature vector using the following correction formula to obtain the corrected optimized video editing requirement-video editing scheme semantic interaction feature vector; Wherein, the correction formula is: ; in, is the optimized video editing requirement-video editing solution semantic interaction feature vector, is the eigenvalue of the optimized video editing requirement-video editing solution semantic interaction feature vector, and They are the optimized video editing requirements and video editing scheme semantic interaction feature vectors The 1-norm and 2-norm squared, is the optimized video editing requirement-video editing solution semantic interaction feature vector The length of is the weight hyperparameter, represents the logarithmic function value with base 2, It is the eigenvalue of the semantic interaction feature vector of the optimized video editing requirement-video editing scheme after correction.
7. The video editing method based on artificial intelligence according to claim 6 is characterized in that: The corrected optimized video editing requirement-video editing scheme semantic interaction feature vector is passed through a classifier to obtain a classification result, wherein the classification result is used to indicate whether the degree of fit between the video editing requirement and the first video editing scheme exceeds a predetermined threshold, including: using a fully connected layer of the classifier to perform fully connected encoding on the corrected optimized video editing requirement-video editing scheme semantic interaction feature vector to obtain an encoded classification feature vector; And the encoded classification feature vector is input into the Softmax classification function of the classifier to obtain the classification result.
8. A video editing system based on artificial intelligence, characterized in that: include: A video acquisition module is used to acquire the video to be edited; A content recognition module, used for performing content recognition on each image frame in the video to be edited to obtain a content description of each image frame, wherein the content description includes characters, objects, scenes and actions; An editing scheme acquisition module, used to acquire a first video editing scheme from the video to be edited; A content description semantic association coding module, used for performing semantic association coding on the content description of each image frame of the first video editing scheme to obtain a semantic coding feature vector of the first video editing scheme; A requirement text description acquisition module is used to obtain a text description of video clip requirements; A text description semantic encoding module, used for semantically encoding the video editing requirement text description to obtain a video editing requirement text semantic understanding feature vector; A semantic feature interaction correlation analysis module, used for performing semantic feature interaction correlation analysis on the first video editing scheme semantic encoding feature vector and the video editing requirement text semantic understanding feature vector to obtain a video editing requirement-video editing scheme semantic interaction feature; And a compatibility judgment module is used to determine whether the compatibility between the video editing requirement and the first video editing solution exceeds a predetermined threshold based on the semantic interaction characteristics of the video editing requirement-video editing solution.
9. The video editing processing system based on artificial intelligence according to claim 8 is characterized in that: The content description semantic association encoding module is used to: The content description of each image frame of the first video editing scheme is passed through a semantic encoder including an embedding layer to obtain a semantic coding feature vector of the first video editing scheme.
10. The video editing processing system based on artificial intelligence according to claim 9 is characterized in that: The semantic feature interaction correlation analysis module is used to: Use the inter-feature attention layer to perform feature interaction based on the attention mechanism on the video editing requirement text semantic understanding feature vector and the first video editing scheme semantic encoding feature vector to obtain the video editing requirement-video editing scheme semantic interaction feature vector as the video editing requirement-video editing scheme semantic interaction feature.
