Video processing method, device, electronic device and storage medium

By integrating video frames, text and text layout information in video analysis, multi-angle and multi-level analysis is performed, which solves the problem of incorrect subject judgment caused by the complexity of noise in short videos, and improves the accuracy of video content understanding and analysis efficiency.

CN116156247BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310124901.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-03
Publication Date
2024-09-20
Estimated Expiration
2043-02-03

AI Technical Summary

Technical Problem

Traditional video text analysis technology in the field of short videos cannot accurately analyze video content due to the complexity of noise and randomness of frame extraction, resulting in incorrect subject judgment.

Method used

By obtaining multiple text information and its layout information in the video, use the trained attribute classification model to classify functional attributes and source attributes, integrate video frames, text and text layout information, conduct multi-angle and multi-level analysis, and extract Frame processing to reduce computational redundancy, and text frame tilt information introduced to improve accuracy.

Benefits of technology

It significantly improves the accuracy of video content understanding, reduces the computational redundancy of the attribute classification model, and improves the inference speed and accuracy of analysis results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156247B
    Figure CN116156247B
Patent Text Reader

Abstract

The present disclosure relates to a video processing method, device, electronic device and storage medium, the method comprising: obtaining multiple text information appearing in a video to be processed; determining the text layout information of each text information in the video to be processed; inputting each video frame contained in the video to be processed, each text information and the text layout information of each text information into a trained attribute classification model for classification processing, and obtaining the functional attributes and source attributes corresponding to each text information in the video to be processed; the functional attributes are used to characterize the type of each text information, and the source attributes are used to characterize the source of the text information. The method realizes a method of analyzing the text in the video from multiple angles and multiple levels by fusing information of multiple modalities such as vision, position and text of the text in the video, which can significantly improve the accuracy of understanding the video content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of the Internet, and in particular to a video processing method, device, electronic device, storage medium and program product. Background Art

[0002] With the rise of short video media, a large number of multimodal algorithms for understanding short video content have emerged. As an important carrier for conveying video information, text plays a very important role in the intelligent analysis of videos. Multimodal label classification, search, advertising algorithms, and recommendation algorithms of videos are all highly dependent on text information in videos.

[0003] Traditional video text analysis technology mainly extracts frames from the video, then uses the OCR (optical character recognition) algorithm to obtain the text information, and then provides it to the downstream algorithm for further analysis. However, due to the large amount of content in the video, there will be a lot of noise in the results obtained by the OCR algorithm. This noise often interferes with the theme expression of the video, making it impossible to make a correct theme judgment. In the field of short videos, due to the randomness of the video frame extraction algorithm and the diversity of the creative content, the uncertainty of the text expression is greater and the noise is more complex, resulting in the traditional analysis method not being able to perform text analysis in the video well. Summary of the invention

[0004] The present disclosure provides a video processing method, device, electronic device, storage medium and program product to at least solve the problem of inaccurate video content analysis in the related art. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a video processing method is provided, including:

[0006] Obtain multiple text information appearing in the video to be processed;

[0007] Determine text layout information of each text information in the video to be processed; the text layout information is used to represent position information of a text box corresponding to each text information in the video to be processed;

[0008] The video frames, the text information and the text layout information of the text information contained in the video to be processed are input into the trained attribute classification model for classification processing to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed; the functional attributes are used to characterize the type of each text information, and the source attributes are used to characterize the source of the text information.

[0009] In an exemplary embodiment, before inputting each video frame, each text information and text layout information of each text information contained in the video to be processed into a trained attribute classification model for classification processing and obtaining the functional attribute and source attribute corresponding to each text information in the video to be processed, the method further includes:

[0010] Based on multiple text information appearing in the video to be processed, performing frame extraction processing on the video to be processed to obtain multiple target video frames of the video to be processed;

[0011] The method of inputting each video frame, each text information and text layout information of each text information contained in the video to be processed into the trained attribute classification model for classification processing to obtain the functional attribute and source attribute corresponding to each text information in the video to be processed includes:

[0012] The target video frames, the text information and the text layout information of the text information contained in the video to be processed are input into the trained attribute classification model for classification processing to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed.

[0013] In an exemplary embodiment, the extracting frames of the video to be processed based on the multiple text information appearing in the video to be processed to obtain multiple target video frames of the video to be processed includes:

[0014] Determine a current target video frame set and text information covered by the current target video frame set;

[0015] Traversing other video frames to obtain a new target video frame containing the most uncovered text information; the other video frames represent video frames in the video to be processed other than the target video frames in the current target video frame set, and the uncovered text information represents text information in multiple text information appearing in the video to be processed other than the covered text information;

[0016] The new target video frame is added to the current target video frame set to obtain a new current target video frame set, and the step of determining the text information covered in the current target video frame set is returned until the obtained new current target video frame set contains all the text information appearing in the video to be processed, and each target video frame in the new current target video frame set containing all the text information is determined as the multiple target video frames.

[0017] In an exemplary embodiment, determining text layout information of each text information in the video to be processed includes:

[0018] Obtaining text box position information of each piece of text information in the video to be processed;

[0019] Based on the text box position information of each piece of text information, respectively determine the tilt information of the text box corresponding to each piece of text information;

[0020] The text layout information of each text information is obtained according to the inclination information of the text box corresponding to each text information and the text box position information of each text information.

[0021] In an exemplary embodiment, the attribute classification model includes a feature extraction sub-model, a functional attribute classifier, and a source attribute classifier;

[0022] The method further includes: inputting each video frame, each text information and text layout information of each text information contained in the video to be processed into the trained attribute classification model for classification processing to obtain the functional attribute and source attribute corresponding to each text information in the video to be processed;

[0023] Input each video frame, each text information and text layout information of each text information contained in the video to be processed into the feature extraction submodel for feature extraction processing, and obtain the output features of the first level and the output features of the second level of the feature extraction submodel; wherein the level depth of the second level in the feature extraction submodel is greater than the level depth of the first level in the feature extraction submodel;

[0024] Input the output features of the first level into the source attribute classifier for classification processing to obtain the source attribute corresponding to each text information in the video to be processed;

[0025] The output features of the second level are input into the functional attribute classifier for classification processing to obtain the functional attributes corresponding to each text information in the video to be processed.

[0026] In an exemplary embodiment, the functional attribute classifier includes a primary classifier and a secondary classifier;

[0027] The step of inputting the output features of the second level into the functional attribute classifier for classification processing to obtain the functional attributes corresponding to each text information in the video to be processed includes:

[0028] Performing a primary classification process on the output features of the second level by a primary classifier in the functional attribute classifier to obtain primary functional information corresponding to each text information in the video to be processed;

[0029] The primary functional information is reclassified by the secondary classifier in the functional attribute classifier to obtain the functional attributes corresponding to each text information in the video to be processed.

[0030] In an exemplary embodiment, the step of obtaining a plurality of text information appearing in the video to be processed includes:

[0031] Perform text recognition processing on the video to be processed by using a video text recognition model to obtain multiple text information appearing in the video to be processed; or

[0032] Through the image text recognition model, text recognition processing is performed on each video frame contained in the video to be processed to obtain multiple text information appearing in the video to be processed.

[0033] In an exemplary embodiment, the training process of the attribute classification model includes:

[0034] Acquire a sample data set; the sample data set includes a sample video, a plurality of sample text information appearing in the sample video, text layout information of each sample text information in a corresponding sample video frame, and a function attribute label and a source attribute label of each sample text information;

[0035] Inputting each sample video frame, each sample text information and text layout information of each sample text information contained in the sample video into the attribute classification model to be trained for classification processing, and obtaining a predicted function attribute and a predicted source attribute for each sample text information;

[0036] Based on the first difference information between the predicted functional attribute and the functional attribute label, and the second difference information between the predicted source attribute and the source attribute label, the attribute classification model to be trained is trained to obtain a trained attribute classification model.

[0037] According to a second aspect of an embodiment of the present disclosure, there is provided a video processing device, including:

[0038] A text acquisition unit, configured to acquire a plurality of text information appearing in the video to be processed;

[0039] A layout determination unit is configured to determine text layout information of each text information in a corresponding video frame of the video to be processed; the text layout information is used to represent position information of a text box corresponding to each text information in the video to be processed;

[0040] The classification unit is configured to perform classification processing on each video frame, each text information and text layout information of the video to be processed, input into a trained attribute classification model to obtain functional attributes and source attributes corresponding to each text information in the video to be processed; the functional attributes are used to characterize the type of each text information, and the source attributes are used to characterize the source of the text information.

[0041] In an exemplary embodiment, the apparatus further includes a frame extraction unit configured to perform frame extraction processing on the video to be processed based on multiple text information appearing in the video to be processed, so as to obtain multiple target video frames of the video to be processed;

[0042] The classification unit is also configured to perform classification processing on each target video frame, each text information and text layout information of each text information contained in the video to be processed, inputting the trained attribute classification model to obtain functional attributes and source attributes corresponding to each text information in the video to be processed.

[0043] In an exemplary embodiment, the frame extraction unit is further configured to determine the current target video frame set and the text information covered by the current target video frame set; traverse other video frames to obtain a new target video frame containing the most uncovered text information; the other video frames represent video frames in the video to be processed other than the target video frames in the current target video frame set, and the uncovered text information represents text information other than the covered text information among multiple text information appearing in the video to be processed; add the new target video frame to the current target video frame set to obtain a new current target video frame set, and return to the step of determining the covered text information in the current target video frame set, until the obtained new current target video frame set contains all the text information appearing in the video to be processed, and determine each target video frame in the new current target video frame set containing all the text information as the multiple target video frames.

[0044] In an exemplary embodiment, the layout determination unit is further configured to execute the acquisition of text box position information of each text information in the video to be processed; based on the text box position information of each text information, respectively determine the inclination information of the text box corresponding to each text information; and according to the inclination information of the text box corresponding to each text information and the text box position information of each text information, obtain the text layout information of each text information.

[0045] In an exemplary embodiment, the attribute classification model includes a feature extraction sub-model, a functional attribute classifier and a source attribute classifier; the classification unit is also configured to execute feature extraction processing on each video frame contained in the video to be processed, the each text information and the text layout information of the each text information, so as to obtain the output features of the first level and the output features of the second level of the feature extraction sub-model; wherein the level depth of the second level in the feature extraction sub-model is greater than the level depth of the first level in the feature extraction sub-model; the output features of the first level are input into the source attribute classifier for classification processing to obtain the source attributes corresponding to each text information in the video to be processed; the output features of the second level are input into the functional attribute classifier for classification processing to obtain the functional attributes corresponding to each text information in the video to be processed.

[0046] In an exemplary embodiment, the functional attribute classifier includes a primary classifier and a secondary classifier; the classification unit is further configured to perform initial classification processing on the output features of the second level through the primary classifier in the functional attribute classifier to obtain primary functional information corresponding to each text information in the video to be processed; and perform re-classification processing on the primary functional information through the secondary classifier in the functional attribute classifier to obtain functional attributes corresponding to each text information in the video to be processed.

[0047] In an exemplary embodiment, the text acquisition unit is further configured to perform text recognition processing on the video to be processed through a video text recognition model to obtain multiple text information appearing in the video to be processed; or, to perform text recognition processing on each video frame contained in the video to be processed through an image text recognition model to obtain multiple text information appearing in the video to be processed.

[0048] In an exemplary embodiment, the device also includes a model training unit, which is configured to execute acquisition of a sample data set; the sample data set includes a sample video, multiple sample text information appearing in the sample video, text layout information of each sample text information in a corresponding sample video frame, and a functional attribute label and a source attribute label of each sample text information; each sample video frame contained in the sample video, each sample text information and the text layout information of each sample text information are input into the attribute classification model to be trained for classification processing to obtain a predicted functional attribute and a predicted source attribute for each sample text information; based on the first difference information between the predicted functional attribute and the functional attribute label, and the second difference information between the predicted source attribute and the source attribute label, the attribute classification model to be trained is trained to obtain a trained attribute classification model.

[0049] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0050] processor;

[0051] a memory for storing instructions executable by the processor;

[0052] The processor is configured to execute the instructions to implement the method as described in any one of the above items.

[0053] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the methods described above.

[0054] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute any of the methods described above.

[0055] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0056] When constructing the original input information of the attribute classification model, not only the two modal information of text information and video frame is considered, but also the text layout information of the text information is introduced to jointly participate in the understanding and analysis of the video, and the analysis results of the video are characterized from the two dimensions of functional attributes and source attributes of the text information. This method of realizing multi-angle and multi-level analysis of the text in the video by integrating multiple modal information such as vision, position and text in the video can significantly improve the accuracy of understanding the video content.

[0057] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0059] Figure 1 The figure is a flowchart of a video processing method according to an exemplary embodiment.

[0060] Figure 2 The diagram is a schematic diagram of the architecture of source attributes and functional attributes according to an exemplary embodiment.

[0061] Figure 3The figure is a flowchart showing a property determination step according to an exemplary embodiment.

[0062] Figure 4 is a flowchart of a video processing method according to another exemplary embodiment.

[0063] Figure 5 The figure is a structural block diagram of a video processing device according to an exemplary embodiment.

[0064] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0065] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0066] It should be noted that the embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0067] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in the present disclosure are all information and data authorized by the user or fully authorized by all parties.

[0068] In an exemplary embodiment, if Figure 1 As shown, a video processing method is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be but is not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented as an independent server or a server cluster composed of multiple servers. In this embodiment, the method includes the following steps:

[0069] In step S110, a plurality of text information appearing in the video to be processed is obtained.

[0070] In a specific implementation, the video to be processed may be subjected to text recognition processing by using the Optical Character Recognition (OCR) technology to obtain text information that has appeared in the video to be processed, thereby obtaining multiple text information.

[0071] In step S120, text layout information of each text information in the video to be processed is determined; the text layout information is used to represent the position information of the text box corresponding to each text information in the video to be processed.

[0072] The text layout information may include text box position information. Specifically, the upper left corner coordinates, lower right corner coordinates, and width and height information of the text box BBOX (bounding box) may be used as the position feature identifier of the text box in the video frame, which may be specifically expressed as:

[0073] I i =Concat(PosEmb2D x (x min ,x max ,width),PosEmb2D y (y min ,y max ,height))

[0074] Among them, I i Indicates the text box position information corresponding to the text information i. The Concat() function is used to connect two or more arrays. PosEmb2D x Indicates the position of the text box corresponding to the text information i on the x-axis of the two-dimensional space, x min and x max Indicates the minimum and maximum values ​​of the text box corresponding to the text information i on the x-axis. Width indicates the width of the text box corresponding to the text information i. PosEmb2D y Indicates the position of the text box corresponding to the text information i on the y-axis of the two-dimensional space, y min and max It represents the minimum and maximum value of the text box corresponding to the text information i on the y-axis, and height represents the height of the text box corresponding to the text information i.

[0075] In a specific implementation, each text information has a corresponding position in the video to be processed. For each text information, the text box BBOX corresponding to the text information can be determined, and then the upper left corner coordinates, lower right corner coordinates, and width and height of the text box are obtained, and the upper left corner coordinates, lower right corner coordinates, and width and height of the text box are determined as text layout information.

[0076] In step S130, each video frame, each text information and text layout information of each text information contained in the video to be processed is input into the trained attribute classification model for classification processing to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed; the functional attributes are used to characterize the type of each text information, and the source attributes are used to characterize the source of the text information.

[0077] The source attribute is an attribute determined according to the editing source of the text in the video. The source attribute can help understand the important process of the text in the video to express the theme from the perspective of the text editing source.

[0078] Among them, the functional attributes are attributes defined according to the different roles of text in expressing the theme of the video.

[0079] refer to Figure 2 , is a schematic diagram of the architecture of source attributes and functional attributes shown in an embodiment, such as Figure 2 As shown, from the perspective of text editing sources, source attributes can be divided into three sources: post-editing text, scene text, and electronic screen text. There are many types of functional attributes, so the present disclosure adopts a tree structure for multi-level classification. For example, it can be divided into first-level attributes such as title, main content, and auxiliary text; the first-level attributes can be further divided into second-level attributes, for example, auxiliary text can include multiple second-level attributes such as logos, annotations, and guiding text; the second-level attributes can be further divided into third-level attributes, for example, special effect text can include multiple third-level attributes such as magic watch, variety effect text, and comic special effect text.

[0080] In a specific implementation, a sample data set may be obtained in advance, and the sample data set may include a sample video, multiple sample text information appearing in the sample video, text layout information of each sample text information in the corresponding sample video frame, and functional attribute labels and source attribute labels of each sample text information. The sample video frames, the sample text information, and the text layout information of each sample text information contained in the sample video are used as input variables, and the predicted functional attributes and predicted source attributes for each sample text information are used as output variables to train the attribute classification model to be trained, and a trained attribute classification model is obtained. Further, after obtaining multiple text information appearing in the video to be processed and the text layout information of each text information, each video frame, each text information, and the text layout information of each text information contained in the video to be processed can be input into the trained attribute classification model to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed, and the functional attributes and source attributes corresponding to each text information are provided to the downstream algorithm for further analysis. For example, the functional attributes and source attributes corresponding to each text information can be used for multimodal label classification, search, advertising algorithm, recommendation algorithm, etc.

[0081] In the above video processing method, when constructing the original input information of the attribute classification model, not only the information of the two modes of text information and video frame is considered, but also the text layout information of the text information is introduced to jointly participate in the understanding and analysis of the video, and the analysis results of the video are characterized from the two dimensions of functional attributes and source attributes of the text information. This method of realizing multi-angle and multi-level analysis of the text in the video by integrating multiple modal information such as vision, position and text in the video can significantly improve the accuracy of understanding the video content.

[0082] In an exemplary embodiment, before step S130, the method further includes: performing frame extraction processing on the video to be processed based on multiple text information appearing in the video to be processed to obtain multiple target video frames of the video to be processed;

[0083] Step S130 also includes: inputting each target video frame, each text information and text layout information of each text information contained in the video to be processed into the trained attribute classification model for classification processing to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed.

[0084] In a specific implementation, since there may be redundant video frames in the video to be processed, that is, there may be a situation where the text information in two adjacent video frames is exactly the same, inputting each video frame in the video to be processed into the attribute classification model for processing will cause unnecessary waste of computing resources. Therefore, in order to solve this technical problem, the present embodiment also proposes a method of extracting frames from the video to be processed to obtain multiple target video frames of the video to be processed, combining each target video frame with each text information and text layout information of each text information, and inputting the target video frame into the attribute classification model for classification processing to determine the functional attributes and source attributes corresponding to each text information in the video to be processed.

[0085] More specifically, the frame extraction processing for the video to be processed is to extract frames according to the various text information appearing in the video to be processed, so as to reduce the redundant calculation amount of the attribute classification model and improve the reasoning speed of the whole process while retaining the video frames corresponding to the various text information and the accuracy of the video analysis results.

[0086] In an exemplary embodiment, based on a plurality of text information appearing in the video to be processed, frame extraction processing is performed on the video to be processed to obtain a plurality of target video frames of the video to be processed, including:

[0087] Step S111, determining the current target video frame set and the text information covered by the current target video frame set;

[0088] Step S112, traversing other video frames to obtain a new target video frame containing the most uncovered text information; the other video frames represent video frames in the to-be-processed video other than the target video frames in the current target video frame set, and the uncovered text information represents text information in the to-be-processed video other than the covered text information among multiple text information appearing in the to-be-processed video;

[0089] Step S113, adding the new target video frame to the current target video frame set to obtain a new current target video frame set, and returning to the step of determining the text information covered in the current target video frame set, until the obtained new current target video frame set contains all the text information appearing in the video to be processed, and determining each target video frame in the new current target video frame set containing all the text information as multiple target video frames.

[0090] In the specific implementation, the principle of minimum covering set can be used to extract frames from the entire video OCR result. Assume that there are N text objects in a video of length M seconds, {t1, t2, t3, ..., tN}, and the video OCR is calculated at a frequency of one frame per second, with a total of M frames, {f1, f2, f3, ..., fM}. A greedy algorithm can be used to implement this frame extraction strategy:

[0091] Assume that the current target video frame set is R, and the text information covered by the current target video frame set is S. The initial values ​​of R and S are both empty, and the following process is executed cyclically:

[0092] (1) Traverse the video frames in the video to be processed except the video frames in the current target video frame set R, and determine the video frame with the most text information not covered by S, denoted as f i ;

[0093] (2) f i Add to the set R to get the new current target video frame set R * , return to step (1), until S covers all text information appearing in the video to be processed, return the final current target video frame set, and determine each target video frame in the final new current target video frame set containing all text information as multiple target video frames.

[0094] In this embodiment, frame extraction is performed on each text information appearing in the video to be processed, and video frames containing the most uncovered text information are cyclically extracted as target video frames. This ensures that the obtained multiple target video frames contain each text information appearing in the video to be processed, and does not affect the accuracy of understanding the video to be processed. This ensures that the number of target video frames is minimized, thereby further reducing the redundant calculation amount of the model and improving the reasoning speed of the entire process.

[0095] In an exemplary embodiment, determining the text layout information of each text information in the video to be processed in the above step S120 can be specifically implemented by the following steps:

[0096] Step S121, obtaining text box position information of each text information in the video to be processed;

[0097] Step S122, based on the text box position information of each text information, respectively determine the tilt information of the text box corresponding to each text information;

[0098] Step S123, obtaining text layout information of each text information according to the inclination information of the text box corresponding to each text information and the text box position information of each text information.

[0099] Specifically, since the traditional method only considers the coordinate information of the upper left corner and the lower right corner of the text box in the encoding of the two-dimensional position feature (2D position embedding) of the text box, each text box is regarded as a horizontal box in this representation. But in fact, a considerable number of text boxes in videos, especially short videos, will appear in a tilted form, and the tilt information of this box has a certain influence on the judgment of the attributes. For example: many text boxes judged as scene text in the source attributes are tilted. In order to supplement this information, in the input stage of the text box, this embodiment also introduces slant information (slantion embedding) to characterize whether the text box is tilted.

[0100] More specifically, after determining the text box position information of each text message, the inclination information of the text box corresponding to each text message can be determined based on the text box position information, and the text box position information and the text box inclination information can be combined as text layout information. Further, when performing text attribute classification, the functional attributes and source attributes corresponding to each text message in the video to be processed are determined in combination with each video frame, each text message, the inclination information of the text box corresponding to each text message, and the text box position information of each text message.

[0101] In this embodiment, the influence of the tilt information of the text box on the judgment of the text attributes is taken into consideration. Based on the video frames, text information, and text box position information of each text information contained in the video to be processed, the tilt information of the text box is introduced to participate in the understanding of the video to be processed, which can further improve the accuracy of the judgment of the functional attributes and source attributes corresponding to each text information in the video to be processed.

[0102] In an exemplary embodiment, if Figure 3 As shown, before step S130, the following steps are also included:

[0103] Step S310, based on multiple text information appearing in the video to be processed, frame extraction processing is performed on the video to be processed to obtain multiple target video frames of the video to be processed;

[0104] Step S320, based on the text box position information of each text information, respectively determine the tilt information of the text box corresponding to each text information;

[0105] Step S330, obtaining text layout information of each text information according to the tilt information of the text box corresponding to each text information and the text box position information of each text information;

[0106] Step S340, input each target video frame, each text information, and text layout information of each text information contained in the video to be processed into the trained attribute classification model for classification processing to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed.

[0107] In this embodiment, on the one hand, the video to be processed is extracted according to the various text information appearing in the video to be processed, so that the redundant calculation amount of the attribute classification model can be reduced and the reasoning speed of the whole process can be improved on the basis of retaining the video frames corresponding to the various text information and retaining the accuracy of the video analysis results. On the other hand, the tilt information of the text box is introduced to participate in the understanding of the video to be processed, which can further improve the accuracy of the judgment of the functional attributes and source attributes corresponding to each text information in the video to be processed.

[0108] In an exemplary embodiment, the attribute classification model includes a feature extraction sub-model, a functional attribute classifier, and a source attribute classifier;

[0109] The above step S130 further includes:

[0110] Step S1301, inputting each video frame, each text information and text layout information of each text information contained in the video to be processed into the feature extraction submodel for feature extraction processing, and obtaining the output features of the first level and the output features of the second level of the feature extraction submodel; wherein the level depth of the second level in the feature extraction submodel is greater than the level depth of the first level in the feature extraction submodel;

[0111] Step S1302, inputting the output features of the first level into a source attribute classifier for classification processing to obtain the source attribute corresponding to each text information in the video to be processed;

[0112] Step S1303: Input the output features of the second level into a functional attribute classifier for classification processing to obtain the functional attributes corresponding to each text information in the video to be processed.

[0113] Among them, the feature extraction sub-model can be a Transformer model (transformation model) based on spatial position perception.

[0114] Among them, the output features of the first level can be understood as shallow output features, and the output features of the second level can be understood as top-level output features.

[0115] It can be understood that the present disclosure has discovered through training that the tasks of source attributes and functional attributes are mutually reinforcing, and the classification of source attributes is more inclined to visual features, while the classification of functional attributes is more inclined to comprehensive semantic features. Therefore, the present disclosure uses the shallow output of Transformer to train the source attribute classifier, and uses the top-level output of Transformer to train the functional attribute classifier. In practical applications, each video frame, each text information, and the text layout information of each text information contained in the video to be processed are input into the feature extraction submodel for feature extraction processing to obtain the shallow output features (i.e., the output features of the first level) and the top-level output features (i.e., the output features of the second level) of Transformer. The shallow output features are further input into the source attribute classifier for classification processing to obtain the source attributes corresponding to each text information in the video to be processed, and the top-level output features are input into the functional attribute classifier for classification processing to obtain the functional attributes corresponding to each text information in the video to be processed.

[0116] In this embodiment, taking into account the different inclinations of source attributes and functional attributes, the output features of different levels of the feature extraction sub-model are set to correspond to the classification and determination of source attributes and functional attributes respectively, which can improve the accuracy of the classification results.

[0117] In an exemplary embodiment, the function attribute classifier includes a primary classifier and a secondary classifier; in step S1303, the output features of the second level are input into the function attribute classifier for classification processing to obtain the function attributes corresponding to each text information in the video to be processed, including:

[0118] Step S1303a, performing a primary classification process on the output features of the second level by using a primary classifier in the functional attribute classifier, and obtaining primary functional information corresponding to each text information in the video to be processed;

[0119] Step S1303b, the primary functional information is reclassified by the secondary classifier in the functional attribute classifier to obtain the functional attributes corresponding to each text information in the video to be processed.

[0120] Specifically, the present disclosure defines Figure 2There are many kinds of functional attributes shown, and these attributes show a long-tail phenomenon in quantity distribution. There are very few text data for some attributes, and they cannot be fully trained in the training of the model. Therefore, the present disclosure designs a set of multi-level classifiers to convert functional attributes into a tree-like classification. In the primary classifier, some long-tail categories are aggregated into parent nodes, and in the secondary classifier, these aggregated parent nodes are respectively classified into child nodes to alleviate the attribute misjudgment phenomenon caused by the uneven learning degree of each attribute classifier due to the long-tail distribution of attribute labels. Therefore, after obtaining the output features of the second level of the feature extraction submodel, the primary classifier in the functional attribute classifier can be used to perform the initial classification processing on the output features of the second level to obtain the primary functional information corresponding to each text information in the video to be processed, and further the secondary classifier in the functional attribute classifier is used to classify the primary functional information again to obtain the functional attributes corresponding to each text information in the video to be processed.

[0121] It can be understood that the primary classifier and the secondary classifier in this embodiment are only used to illustrate the principle of alleviating the attribute misjudgment phenomenon caused by the uneven learning degree of each attribute classifier due to the long-tail distribution of attribute labels. In addition to using two-level classifiers of primary classifier and secondary classifier, three-level, four-level or other more-level classifiers can also be used. The specific setting can be based on actual needs, and the present disclosure does not make specific limitations on this.

[0122] In this embodiment, when determining the functional attributes of text information, the long-tail phenomenon of functional attributes is taken into consideration and the functional attribute classifier is divided into multiple levels of classifiers. After classification by the primary classifier, it is further subdivided by the secondary classifier, thereby effectively alleviating the attribute misjudgment phenomenon caused by the uneven learning degree of each attribute classifier due to the long-tail distribution of attribute labels.

[0123] In an exemplary embodiment, the step S110 of obtaining a plurality of text information appearing in the video to be processed includes:

[0124] Step S1101, performing text recognition processing on the video to be processed by using a video text recognition model to obtain multiple text information appearing in the video to be processed; or

[0125] Step S1102: Using an image text recognition model, perform text recognition processing on each video frame contained in the video to be processed to obtain multiple text information appearing in the video to be processed.

[0126] In a specific implementation, the text information in the video to be processed can be obtained by detecting and identifying it through a video text recognition model (video OCR), or by extracting one video frame per second through an arbitrary image text recognition model (image OCR) and identifying it frame by frame.

[0127] The video OCR method proposed in this embodiment can detect all the texts appearing in the video to be processed without duplication or omission, and can detect the start and end time of each text information and the bbox information in each frame of the video.

[0128] In an exemplary embodiment, the training process of the attribute classification model includes:

[0129] Acquire a sample data set; the sample data set includes a sample video, multiple sample text information appearing in the sample video, text layout information of each sample text information in a corresponding sample video frame, and a function attribute label and a source attribute label of each sample text information;

[0130] Input each sample video frame, each sample text information and text layout information of each sample text information contained in the sample video into the attribute classification model to be trained for classification processing, and obtain the predicted function attribute and predicted source attribute for each sample text information;

[0131] Based on the first difference information between the predicted functional attribute and the functional attribute label, and the second difference information between the predicted source attribute and the source attribute label, the attribute classification model to be trained is trained to obtain a trained attribute classification model.

[0132] In the specific implementation, the attribute classification model includes a feature extraction sub-model, a functional attribute classifier and a source attribute classifier. The feature extraction sub-model can be a transformer model. Through training, it is found that the tasks of source attributes and functional attributes are mutually reinforcing. Therefore, the present disclosure designs a multi-task training process. At the same time, the classification of source attributes is more inclined to visual features, and the classification of functional attributes is more inclined to comprehensive semantic features. Therefore, the present disclosure uses the shallow output of Transformer to train the source attribute classifier, and uses the top-level output of Transformer to train the classifier of functional attributes. In the end, this multimodal, multi-task, multi-level attribute classification model achieved the best performance on the test sets of functional attributes and source attributes.

[0133] More specifically, the training of the attribute classification model can take the sample video frames contained in the sample video, the sample text information and the text layout information of the sample text information as input variables, input the attribute classification model to be trained, and obtain the predicted functional attributes and the predicted source attributes; based on the first difference information between the predicted functional attributes and the functional attribute labels, a first loss value is obtained, and based on the second difference information between the predicted source attributes and the source attribute labels, a second loss value is obtained, with reducing the first loss value and the second loss value as the training goal, adjusting the model parameters of the attribute classification model for iterative training until the first loss value and the second loss value converge, or the preset number of training times is reached, to obtain a trained attribute classification model.

[0134] In addition, since there are many types of functional attributes of text, and these attributes show a long-tail phenomenon in quantity distribution. Some attributes have very little text data and cannot be fully trained in the training of the model. Therefore, the present invention designs a set of multi-level classifiers to convert functional attributes into a tree-like classification. In the primary classifier, some long-tail categories are aggregated into parent nodes, and in the secondary classifier, these aggregated parent nodes are classified into child nodes respectively, so as to alleviate the attribute misjudgment phenomenon caused by the uneven learning degree of each attribute classifier due to the long-tail distribution of attribute labels.

[0135] The training method of the attribute classification model provided in this embodiment can greatly improve the accuracy of understanding the video content through the attribute classification model obtained by multi-modal, multi-task, and multi-level training, and can solve the problem that the current OCR results of short videos are chaotic and disordered, resulting in the problem that simply splicing the OCR text information in the video may lead to semantic confusion and misunderstanding of the subject.

[0136] In another exemplary embodiment, Figure 4 FIG. 1 is a flowchart of another video processing method according to an exemplary embodiment. In this embodiment, the method includes the following steps:

[0137] Step S410, performing text recognition processing on the video to be processed by using a video text recognition model to obtain multiple text information appearing in the video to be processed;

[0138] Step S420, based on the multiple text information appearing in the video to be processed, performing frame extraction processing on the video to be processed to obtain multiple target video frames of the video to be processed;

[0139] Step S430, obtaining text box position information of each text information in the video to be processed, and determining the tilt information of the text box corresponding to each text information based on the text box position information of each text information; and obtaining text layout information of each text information based on the text box position information and the tilt information;

[0140] Step S440, inputting each video frame, each text information and text layout information of each text information contained in the video to be processed into the feature extraction submodel for feature extraction processing, and obtaining the first-level output features and the second-level output features of the feature extraction submodel;

[0141] Step S450, inputting the output features of the first level into a source attribute classifier for classification processing to obtain the source attribute corresponding to each text information in the video to be processed;

[0142] Step S460, performing a primary classification process on the output features of the second level by using a primary classifier in the functional attribute classifier to obtain primary functional information corresponding to each text information in the video to be processed;

[0143] Step S470, the primary functional information is reclassified by the secondary classifier in the functional attribute classifier to obtain the functional attributes corresponding to each text information in the video to be processed.

[0144] The video text intelligent analysis technology based on multimodal multi-task learning proposed in this embodiment can realize the analysis of the text in the video from multiple angles and multiple levels by integrating the information of the three modes of vision, position and text in the video, which can improve the accuracy of the analysis results, and thus can have a positive role in promoting the growth of terminal business when applied to various downstream businesses. For example, the search business needs to use attributes with key information such as titles and subtitles; the risk control business needs to use the station logo attributes; the local life and e-commerce business needs to use attributes such as product brands and signs.

[0145] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0146] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.

[0147] Based on the same inventive concept, the embodiment of the present disclosure also provides a video processing device for implementing the above-mentioned video processing method.

[0148] Figure 5 is a structural block diagram of a video processing device according to an exemplary embodiment. Figure 5 , the device comprises:

[0149] The text acquisition unit 510 is configured to acquire a plurality of text information appearing in the video to be processed;

[0150] The layout determination unit 520 is configured to determine the text layout information of each text information in the corresponding video frame of the video to be processed; the text layout information is used to represent the position information of the text box corresponding to each text information in the video to be processed;

[0151] The classification unit 530 is configured to execute classification processing on each video frame, each text information and text layout information of each text information contained in the video to be processed, and input the trained attribute classification model to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed; the functional attributes are used to characterize the type of each text information, and the source attributes are used to characterize the source of the text information.

[0152] In an exemplary embodiment, the apparatus further includes a frame extraction unit configured to perform frame extraction processing on the video to be processed based on multiple text information appearing in the video to be processed, so as to obtain multiple target video frames of the video to be processed;

[0153] The classification unit 530 is also configured to execute classification processing on each target video frame, each text information and text layout information of each text information contained in the video to be processed, and input the trained attribute classification model to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed.

[0154] In an exemplary embodiment, the frame extraction unit is further configured to determine the current target video frame set and the text information covered by the current target video frame set; traverse other video frames to obtain a new target video frame containing the most uncovered text information; the other video frames represent video frames in the video to be processed other than the target video frames in the current target video frame set, and the uncovered text information represents text information other than the covered text information in multiple text information appearing in the video to be processed; add the new target video frame to the current target video frame set to obtain a new current target video frame set, and return to the step of determining the covered text information in the current target video frame set, until the obtained new current target video frame set contains all the text information appearing in the video to be processed, and determine each target video frame in the new current target video frame set containing all the text information as multiple target video frames.

[0155] In an exemplary embodiment, the layout determination unit 520 is further configured to execute the acquisition of text box position information of each text information in the video to be processed; based on the text box position information of each text information, respectively determine the inclination information of the text box corresponding to each text information; according to the inclination information of the text box corresponding to each text information and the text box position information of each text information, obtain the text layout information of each text information.

[0156] In an exemplary embodiment, the attribute classification model includes a feature extraction sub-model, a functional attribute classifier and a source attribute classifier; the classification unit 530 is also configured to execute feature extraction processing on each video frame, each text information and text layout information of each text information contained in the video to be processed, to obtain the output features of the first level and the output features of the second level of the feature extraction sub-model; wherein the level depth of the second level in the feature extraction sub-model is greater than the level depth of the first level in the feature extraction sub-model; the output features of the first level are input into the source attribute classifier for classification processing to obtain the source attributes corresponding to each text information in the video to be processed; the output features of the second level are input into the functional attribute classifier for classification processing to obtain the functional attributes corresponding to each text information in the video to be processed.

[0157] In an exemplary embodiment, the functional attribute classifier includes a primary classifier and a secondary classifier; the classification unit 530 is also configured to perform initial classification processing on the output features of the second level through the primary classifier in the functional attribute classifier to obtain primary functional information corresponding to each text information in the video to be processed; and to perform re-classification processing on the primary functional information through the secondary classifier in the functional attribute classifier to obtain the functional attributes corresponding to each text information in the video to be processed.

[0158] In an exemplary embodiment, the text acquisition unit 510 is further configured to perform text recognition processing on the video to be processed through a video text recognition model to obtain multiple text information appearing in the video to be processed; or, to perform text recognition processing on each video frame contained in the video to be processed through an image text recognition model to obtain multiple text information appearing in the video to be processed.

[0159] In an exemplary embodiment, the device also includes a model training unit, which is configured to execute acquisition of a sample data set; the sample data set includes a sample video, multiple sample text information appearing in the sample video, text layout information of each sample text information in a corresponding sample video frame, and a functional attribute label and a source attribute label of each sample text information; each sample video frame, each sample text information and the text layout information of each sample text information contained in the sample video are input into the attribute classification model to be trained for classification processing to obtain a predicted functional attribute and a predicted source attribute for each sample text information; based on the first difference information between the predicted functional attribute and the functional attribute label, and the second difference information between the predicted source attribute and the source attribute label, the attribute classification model to be trained is trained to obtain a trained attribute classification model.

[0160] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0161] Figure 6 1 is a block diagram of an electronic device 600 for implementing a video processing method according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0162] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0163] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0164] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, optical disk, or graphene memory.

[0165] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0166] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0167] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting an audio signal.

[0168] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0169] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or the electronic device 600 component, the presence or absence of contact between the user and the electronic device 600, the device 600 orientation or acceleration / deceleration and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0170] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0171] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0172] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0173] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by the processor 620 of the electronic device 600 to complete the above method.

[0174] It should be noted that the above-mentioned devices, electronic devices, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments, which will not be described one by one here.

[0175] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0176] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A video processing method, characterized in that: include: Get multiple text information appearing in the video to be processed; Determine text layout information of each text information in the video to be processed; The text layout information is used to represent the position information of the text boxes corresponding to the respective text information in the video to be processed; The video frames, the text information and the text layout information of the text information contained in the video to be processed are input into the trained attribute classification model for classification processing to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed; the functional attributes are used to characterize the type of each text information, and the source attributes are used to characterize the source of the text information.

2. The method according to claim 1, characterized in that Before inputting each video frame, each text information and text layout information of each text information contained in the video to be processed into the trained attribute classification model for classification processing to obtain the functional attribute and source attribute corresponding to each text information in the video to be processed, the method further includes: Based on multiple text information appearing in the video to be processed, performing frame extraction processing on the video to be processed to obtain multiple target video frames of the video to be processed; The method of inputting each video frame, each text information and text layout information of each text information contained in the video to be processed into the trained attribute classification model for classification processing to obtain the functional attribute and source attribute corresponding to each text information in the video to be processed includes: The target video frames, the text information and the text layout information of the text information contained in the video to be processed are input into the trained attribute classification model for classification processing to obtain the functional attributes and source attributes corresponding to each text information in the video to be processed.

3. The method according to claim 2, characterized in that The step of performing frame extraction processing on the video to be processed based on the multiple text information appearing in the video to be processed to obtain multiple target video frames of the video to be processed includes: Determine a current target video frame set and text information covered by the current target video frame set; Traversing other video frames to obtain a new target video frame containing the most uncovered text information; the other video frames represent video frames in the video to be processed other than the target video frames in the current target video frame set, and the uncovered text information represents text information in multiple text information appearing in the video to be processed other than the covered text information; The new target video frame is added to the current target video frame set to obtain a new current target video frame set, and the step of determining the text information covered in the current target video frame set is returned until the obtained new current target video frame set contains all the text information appearing in the video to be processed, and each target video frame in the new current target video frame set containing all the text information is determined as the multiple target video frames.

4. The method according to claim 1, characterized in that: The determining of text layout information of each text information in the video to be processed includes: Obtaining text box position information of each piece of text information in the video to be processed; Based on the text box position information of each piece of text information, respectively determine the tilt information of the text box corresponding to each piece of text information; The text layout information of each text information is obtained according to the inclination information of the text box corresponding to each text information and the text box position information of each text information.

5. The method according to claim 1, characterized in that The attribute classification model includes a feature extraction sub-model, a functional attribute classifier and a source attribute classifier; The method further includes: inputting each video frame, each text information and text layout information of each text information contained in the video to be processed into the trained attribute classification model for classification processing to obtain the functional attribute and source attribute corresponding to each text information in the video to be processed; Input each video frame, each text information and text layout information of each text information contained in the video to be processed into the feature extraction submodel for feature extraction processing, and obtain the output features of the first level and the output features of the second level of the feature extraction submodel; wherein the level depth of the second level in the feature extraction submodel is greater than the level depth of the first level in the feature extraction submodel; Input the output features of the first level into the source attribute classifier for classification processing to obtain the source attribute corresponding to each text information in the video to be processed; The output features of the second level are input into the functional attribute classifier for classification processing to obtain the functional attributes corresponding to each text information in the video to be processed.

6. The method according to claim 5, characterized in that The functional attribute classifier includes a primary classifier and a secondary classifier; The step of inputting the output features of the second level into the functional attribute classifier for classification processing to obtain the functional attributes corresponding to each text information in the video to be processed includes: Performing a primary classification process on the output features of the second level by a primary classifier in the functional attribute classifier to obtain primary functional information corresponding to each text information in the video to be processed; The primary functional information is reclassified by the secondary classifier in the functional attribute classifier to obtain the functional attributes corresponding to each text information in the video to be processed.

7. The method according to claim 1, characterized in that The step of obtaining a plurality of text information appearing in the video to be processed includes: Perform text recognition processing on the video to be processed by using a video text recognition model to obtain multiple text information appearing in the video to be processed; or Through the image text recognition model, text recognition processing is performed on each video frame contained in the video to be processed to obtain multiple text information appearing in the video to be processed.

8. The method according to claim 1, characterized in that The training process of the attribute classification model includes: Acquire a sample data set; the sample data set includes a sample video, a plurality of sample text information appearing in the sample video, text layout information of each sample text information in a corresponding sample video frame, and a function attribute label and a source attribute label of each sample text information; Inputting each sample video frame, each sample text information and text layout information of each sample text information contained in the sample video into the attribute classification model to be trained for classification processing, and obtaining a predicted function attribute and a predicted source attribute for each sample text information; Based on the first difference information between the predicted functional attribute and the functional attribute label, and the second difference information between the predicted source attribute and the source attribute label, the attribute classification model to be trained is trained to obtain a trained attribute classification model.

9. A video processing device, characterized in that: include: A text acquisition unit, configured to acquire a plurality of text information appearing in the video to be processed; A layout determining unit, configured to determine text layout information of each text information in a corresponding video frame of the video to be processed; The text layout information is used to represent the position information of the text boxes corresponding to the respective text information in the video to be processed; The classification unit is configured to perform classification processing on each video frame, each text information and text layout information of the video to be processed, input into a trained attribute classification model to obtain functional attributes and source attributes corresponding to each text information in the video to be processed; the functional attributes are used to characterize the type of each text information, and the source attributes are used to characterize the source of the text information.

10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the video processing method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the video processing method according to any one of claims 1 to 8.