A video clarity classification method, device, equipment and storage medium
Through multi-dimensional feature analysis and comprehensive evaluation, the problem of low accuracy of video definition classification in the existing technology is solved, and more efficient video review and lower-cost video definition classification are achieved.
Patent Information
- Application Number
- CN201911304546.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-01-04
AI Technical Summary
The existing technology lacks a stable and reliable non-reference video definition evaluation algorithm, resulting in unsatisfactory definition scoring results for user-generated content, which cannot meet business needs, and the accuracy of video definition classification is not high.
Using a multi-dimensional feature analysis method, multiple clarity scores are obtained through wavelet domain features, spatial domain features, entropy features and aesthetic features, and multiple clarity analysis models are combined for comprehensive evaluation to achieve clarity classification of videos to be classified.
It improves the accuracy of video definition classification, reduces review costs, improves the efficiency of video review, and enables reference-free definition classification.
Smart Images

Figure CN111062439B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a video definition classification method, device, equipment and storage medium. Background Art
[0002] With the activeness of Internet users on various application platforms, user-generated content is becoming the mainstream content of various video or social applications. User-generated content refers to users displaying their own original content through Internet platforms or providing it to other users. It has emerged with the Internet concept that advocates personalization. User-generated content is not a specific business, but a new way for users to use the Internet. The output of content on the Internet is mainly by users. Every user can generate his or her own content. All content on the Internet is created by users, that is, it has changed from being mainly download-oriented to being equally important for downloading and uploading.
[0003] Due to the differences in recording equipment or processing equipment used by each user, there is no unified standard for the quality of user-uploaded content, and the quality will be uneven, requiring the platform to review and screen the content uploaded by users. One of the more important criteria for review is the clarity of the content uploaded by the user. In the prior art, the clarity can be reviewed manually. Since there is no stable and reliable no-reference clarity evaluation algorithm in the industry, the existing video no-reference clarity algorithm has poor evaluation results on user-generated content. When scoring the clarity of user-generated content in actual business, the score output by the model is low compared to the objective indicators and quality correlation evaluation indicators in the quality evaluation. At the same time, the accuracy of video clarity classification based on the above-mentioned scores is not ideal and cannot meet the actual needs of the business. Summary of the invention
[0004] The present invention provides a video definition classification method, device, equipment and storage medium, which can improve the accuracy of definition classification.
[0005] In one aspect, the present invention provides a method for classifying video definition, the method comprising:
[0006] Get the video to be classified;
[0007] Performing a multi-dimensional feature analysis on the definition of the video to be classified to obtain a plurality of definition scores of the video to be classified, wherein each definition score corresponds to a different feature dimension;
[0008] Based on the multiple clarity scores, the clarity of the video to be classified is classified to obtain a clarity category of the video to be classified.
[0009] Another aspect provides a video definition classification device, the device comprising:
[0010] The to-be-classified video acquisition module is used to acquire the to-be-classified video;
[0011] The clarity analysis module is used to perform multi-dimensional feature analysis on the clarity of the video to be classified to obtain multiple clarity scores of the video to be classified, each clarity score corresponding to a different feature dimension;
[0012] The clarity classification module is used to classify the clarity of the video to be classified based on the multiple clarity scores to obtain the clarity category of the video to be classified.
[0013] On the other hand, a device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the above-mentioned video clarity classification method.
[0014] On the other hand, a storage medium is provided, characterized in that the storage medium includes a processor and a memory, and the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the above-mentioned video clarity classification method.
[0015] The present invention provides a method, device, equipment and storage medium for classifying video clarity. The method performs multi-dimensional feature analysis on the clarity of the video to be classified, obtains multiple clarity scores from the wavelet domain features, spatial domain features, entropy features and aesthetic features of the video to be classified, and classifies the video to be classified based on the clarity scores to determine whether the video to be classified is clear or blurry. The method uses multiple clarity analysis models to perform clarity analysis on the video to be classified from the features of each dimension, and can comprehensively evaluate the clarity of the video to be classified, and based on the comprehensive evaluation, obtain more accurate classification results, thereby improving the accuracy of clarity classification. The method can perform reference-free clarity classification on the video to be classified, thereby improving the efficiency of video review and reducing review costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic diagram of an application scenario of a video definition classification method provided by an embodiment of the present invention;
[0018] Figure 2 A flowchart of a video definition classification method provided by an embodiment of the present invention;
[0019] Figure 3 A flowchart of a method for obtaining clarity scores by using multiple clarity analysis models in a video clarity classification method provided by an embodiment of the present invention;
[0020] Figure 4 A flow chart of obtaining a first clarity score by a first clarity analysis module in a video clarity classification method provided by an embodiment of the present invention;
[0021] Figure 5 A flow chart of obtaining a second clarity score by a second clarity analysis module in a video clarity classification method provided by an embodiment of the present invention;
[0022] Figure 6 A flowchart of obtaining a third clarity score by a third clarity analysis module in a video clarity classification method provided by an embodiment of the present invention;
[0023] Figure 7 A flowchart of obtaining a fourth clarity score by a fourth clarity analysis module in a video clarity classification method provided by an embodiment of the present invention;
[0024] Figure 8 A flowchart of obtaining the definition category of the video to be classified in a video definition classification method provided in an embodiment of the present invention;
[0025] Fig. 9 A schematic diagram of a training data model for a video definition classification method provided by an embodiment of the present invention;
[0026] Fig.10 A schematic diagram of a flow chart of a video definition classification method provided by an embodiment of the present invention when applied to video classification;
[0027] Fig.11 A schematic diagram of the structure of a video definition classification device provided by an embodiment of the present invention;
[0028] Fig.12 A schematic diagram of the hardware structure of a device provided in an embodiment of the present invention for implementing the method provided in an embodiment of the present invention is provided. DETAILED DESCRIPTION
[0029] To make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0030] In the description of the present invention, it is to be understood that the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. Moreover, the terms "first", "second", etc. are applicable to distinguishing similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numerals used in this way are interchangeable where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0031] See also Figure 1 , which shows a schematic diagram of an application scenario of a video clarity classification method provided by an embodiment of the present invention, the application scenario includes a user terminal 110 and a server 120, the user terminal 110 uploads a video to be classified to the server, the server 120 performs a multi-dimensional feature analysis on the clarity of the video to be classified, and scores the results of the multi-dimensional feature analysis, and classifies the clarity of the video to be classified according to the score to distinguish between clear videos and blurry videos.
[0032] In the embodiment of the present invention, the user terminal 110 includes physical devices such as smart phones, desktop computers, tablet computers, laptops, digital assistants, smart wearable devices, etc., and may also include software running in the physical devices, such as applications, etc. The operating system running on the network node in the embodiment of the present application may include but is not limited to Android system, IOS system, Linux, Unix, Windows, etc. The user terminal 110 can send the video to be classified to the server 120 based on API (Application Programming Interface).
[0033] In the embodiment of the present invention, the server 120 may include an independently operated server, a distributed server, or a server cluster composed of multiple servers. The server 120 may include a network communication unit, a processor, a memory, etc. Specifically, the server 120 may score the clarity of the video to be classified, and classify the video to be classified according to the result of the score.
[0034] See also Figure 2 , which shows a video definition classification method, which can be applied to the server side, and the method includes:
[0035] S210. Obtain the video to be classified;
[0036] Specifically, the video to be classified can be a user-generated content (UGC) video, that is, a video originally created by the user. For example, a short video shot by the user himself. When the server reviews the video shot by the user himself, the UGC video can be classified according to the video clarity classification method provided by the embodiment of the present invention, so that the clear video passes the review and enters the video library, and the blurry video cannot pass the review, thereby eliminating most of the manual review steps, improving the review efficiency, and reducing the review cost.
[0037] The video to be classified may also be a video compressed to a corresponding video bit rate, that is, a transcoded video. Based on the method for video clarity classification described in an embodiment of the present invention, the transcoded video is classified by clarity, and the video whose clarity becomes blurred after transcoding is detected. The video transcoding technology can be optimized based on the detection result.
[0038] S220. Perform multi-dimensional feature analysis on the clarity of the video to be classified to obtain multiple clarity scores of the video to be classified, each clarity score corresponding to a different feature dimension;
[0039] For further information, see Figure 3 The performing of multi-dimensional feature analysis on the definition of the video to be classified to obtain multiple definition scores of the video to be classified includes:
[0040] S310. Performing feature analysis on the clarity of the video to be classified according to the first clarity analysis model to obtain a first clarity score of the video to be classified;
[0041] S320. Performing feature analysis on the clarity of the video to be classified according to the second clarity analysis model to obtain a second clarity score of the video to be classified;
[0042] S330. Performing feature analysis on the clarity of the video to be classified according to the third clarity analysis model to obtain a third clarity score of the video to be classified;
[0043] S340. Perform feature analysis on the clarity of the video to be classified according to the fourth clarity analysis model to obtain a fourth clarity score of the video to be classified.
[0044] Specifically, the method for performing multi-dimensional feature analysis on the clarity of the video to be classified is to input the video to be classified into different clarity analysis models. Since different clarity models will perform feature analysis on the clarity of the video to be classified according to different dimensions, different scoring results may be obtained. For example, a feature extraction model based on the wavelet domain can take into account features that are consistent with human vision; a feature extraction model based on the spatial domain can take into account features of areas with high contrast in the video image; a feature extraction model based on entropy features can obtain features of edge sharpness of the video image; and a feature extraction model based on a convolutional neural network can obtain feature information of the clarity of the video image based on human aesthetic evaluation. Based on the scoring results output by different clarity analysis models, a comprehensive evaluation of the video to be classified can be performed, which can improve the accuracy of the clarity analysis of the video to be classified.
[0045] For further information, see Figure 4 , analyzing the clarity of the video to be classified according to the first clarity analysis model to obtain a first clarity score of the video to be classified includes:
[0046] S410. Perform wavelet decomposition on the video to be classified to obtain the decomposed video to be classified;
[0047] S420. Extracting features from the decomposed video to be classified to obtain first feature information;
[0048] S430. According to the first feature information, the probability of each distortion type in the video to be classified is calculated to obtain the distortion probability information of the video to be classified;
[0049] S440. Based on a preset distortion regression model and the first feature information, obtaining video quality information of the video to be classified;
[0050] S450. Determine a first clarity score of the video to be classified according to the distortion probability information and the video quality information.
[0051] Specifically, the first clarity analysis model is the DIIVINE model, which is a reference-free image quality assessment model under a two-stage framework. The feature analysis of the DIIVINE model focuses on the wavelet domain features of the image and can take into account features that are consistent with human vision.
[0052] The video to be classified is decomposed by wavelet transform to obtain sub-band video information of the video to be classified. Wavelet transform is a local transformation of space and frequency, which can extract information from the video to be classified. For example, the video to be classified is subjected to wavelet decomposition in two scales and six directions to obtain 12 sub-band video information and one high-frequency information. Statistical feature extraction is performed on all sub-band video information, and the feature extraction results are combined into a statistical feature vector of the video to be classified. The statistical feature vector is the first feature information.
[0053] The statistical feature vector is analyzed in two aspects. First, the classifier is used to obtain the distortion type of the video to be classified. Based on the statistical feature vector, the probability of each distortion type occurring under the condition of the statistical feature vector is obtained, and each probability is combined into a distortion probability vector of the video to be classified, which is the distortion probability information. Second, the regression model is used to map the statistical feature vector to the regression model of each distortion, and the video quality evaluation of the video to be classified in each distortion is obtained. The various video quality evaluations are combined into a video quality evaluation value vector, which is the video quality information.
[0054] By taking the inner product of the distortion probability vector and the video quality evaluation value vector, we can finally obtain the clarity evaluation value of the video to be classified, that is, the first clarity score.
[0055] The DIIVINE model is used to extract the wavelet domain feature information of the classified video and determine the first clarity score. The DIIVINE model extracts comprehensive and complex statistical features in the wavelet domain, and therefore achieves good consistency with human subjective evaluation.
[0056] For further information, see Figure 5 , analyzing the clarity of the video to be classified according to the second clarity analysis model to obtain the second clarity score of the video to be classified includes:
[0057] S510. Calculate the normalized pixel information of the video to be classified based on a preset spatial domain coefficient;
[0058] S520. Extracting second feature information of the video to be classified according to the normalized pixel information;
[0059] S530. Based on a preset feature distribution model, fit a distribution curve to the second feature information to obtain a second clarity score of the video to be classified.
[0060] Specifically, the second clarity analysis model is a natural image quality evaluator (NIQE) model, and the NIQE model can extract spatial features. When extracting spatial features, the NIQE model can take into account the characteristic that human vision is more sensitive to areas with high contrast in images. The specific process of performing clarity analysis by the NIQE model is to select part of the image blocks as training data according to local activity after calculating its local normalized image, and to obtain model parameters as features by fitting a generalized Gaussian model, and to use a multivariate Gaussian model to describe these features. In the evaluation process, the distance between the model parameters of the image features to be evaluated and the pre-established model parameters is used to determine the image quality.
[0061] The NIQE model first normalizes the pixels of the video to be classified and calculates the normalized brightness. During the normalization, the information of the video to be classified is transformed based on the spatial domain coefficient, and finally the normalized calculation result is obtained.
[0062] According to the result of the normalization calculation, the information in the video to be classified is selected to obtain the features of the significant image blocks, that is, the second feature information. The extracted second feature information is fitted through a multivariate Gaussian model, and the quality of the video to be classified is measured according to the distance between the fitting result and the natural image fitting result to obtain a second clarity score.
[0063] The NIQE model extracts spatial features from the video to be classified and determines a second clarity score. The NIQE model has low complexity and fast execution speed and has good real-time performance.
[0064] For further information, see Figure 6 , analyzing the clarity of the video to be classified according to the third clarity analysis model to obtain the third clarity score of the video to be classified includes:
[0065] S610. Calculate the distance between the video to be classified and a preset sample video;
[0066] S620. Using the distance as the third feature information of the video to be classified;
[0067] S630. Calculate the sum of the third feature information and the weighted sum of the third feature information;
[0068] S640. Determine a third clarity score of the video to be classified based on the sum of the third feature information and the weighted sum of the third feature information.
[0069] Specifically, the third definition analysis model is a generalized regression neural network (GRNN) model, which includes an input layer, a hidden layer, a summation layer and an output layer. The GRNN model is based on the entropy characteristics of the video to be classified, and reflects details such as edge sharpness in the video to a certain extent.
[0070] In the input layer, the number of neurons in the input layer is equal to the dimension of the input information, each neuron is a simple distribution unit, and the linear function is a transmission function, which is mainly used to transfer the input information to the hidden layer. The video to be classified is input into the input layer, and the video to be classified is transferred to the hidden layer.
[0071] In the hidden layer, the number of neurons in the hidden layer is equal to the number of sample videos, and each neuron corresponds to a different sample video. The transfer function in the hidden layer is a radial basis function, which is a monotonic function of the radial distance between the sample and the data center. After the hidden layer receives the video to be classified, the distance between the video to be classified and the sample video is calculated in the hidden layer through the radial basis transfer function to obtain the third feature information. The third feature information is used as output information and input into the summation layer for summation calculation.
[0072] In the summation layer, the summation is performed through two types of neurons. The first type of neurons performs arithmetic summation of the outputs of all hidden layer neurons, and the second type of neurons performs weighted summation of the outputs of all hidden layer neurons.
[0073] Finally, in the output layer, the output of each neuron in the summation layer is reduced in dimension, that is, the weighted sum of the outputs of the second type of neurons is divided by the arithmetic sum of the outputs of the first type of neurons to obtain the third feature score.
[0074] The GRNN model extracts entropy features from the video to be classified and determines the third feature score. The entropy features can reflect details such as the edge and texture of the video and identify the anisotropy of the video. Therefore, the GRNN model can have a good recognition ability on the detailed features of the video, and the computational complexity of the GRNN model is low.
[0075] For further information, see Figure 7 , analyzing the clarity of the video to be classified according to the fourth clarity analysis model to obtain the fourth clarity score of the video to be classified includes:
[0076] S710. Perform convolution calculation on the video to be classified to obtain fourth feature information of the video to be classified;
[0077] S720. Based on the fourth feature information, obtaining the definition distribution result of the video to be classified;
[0078] S730. Determine a fourth clarity score of the video to be classified according to the clarity distribution result and a preset empirical probability mass function.
[0079] Specifically, the fourth clarity analysis model is a natural image assessment model (Neural Image Assessment, NIMA), and the NIMA model is based on deep learning of convolutional neural networks (CNN) to obtain high-level features for clarity analysis. The CNN model can learn a clarity analysis method that is closer to human aesthetic evaluation from two types of sample sets. One type of sample is an aesthetic evaluation sample video, and the other type is a distorted sample video. The aesthetic evaluation sample video is manually scored on the aesthetic level, with a rating range from 1 to 10, where 10 is the highest aesthetic score associated with the video, and each sample video is the average of multiple ratings. The distorted sample video is manually scored on the degree of distortion, comparing two video samples, manually judging the degree of distortion, and annotating to obtain a distorted sample video.
[0080] The CNN model is trained based on the aesthetic evaluation sample videos and the distorted sample videos, so that the CNN model can analyze the clarity of the classified video based on the aesthetic degree, obtain the fourth feature information, and determine the fourth clarity score.
[0081] Convolution calculation is performed on the input video to be classified to extract the fourth feature information, quality distribution information of the video to be classified is obtained according to the fourth feature information, and the fourth clarity score of the video to be classified is determined based on the quality distribution information and a preset empirical probability mass function. The empirical probability mass function is obtained through manual scoring, that is, through aesthetic evaluation of sample videos and distorted sample videos, and the empirical probability mass function can be obtained when training a CNN model, and applied to the clarity analysis of the video to be classified.
[0082] The NIMA model can train a CNN network based on human subjective evaluation, extract advanced features of the classified video, and determine the fourth definition score. The NIMA model can predict the quality score related to human perception, and can improve the accuracy of the prediction results by predicting the distribution of quality ratings, and has a higher correlation with human subjective aesthetics.
[0083] S230. Based on the multiple clarity scores, classify the clarity of the video to be classified to obtain a clarity category of the video to be classified.
[0084] For further information, see Figure 8 , classifying the clarity of the video to be classified based on the multiple clarity scores, and obtaining the clarity category of the video to be classified includes:
[0085] S810. Using the plurality of clarity scores as input to a clarity classification model;
[0086] S820. Based on the preset linear function in the clarity classification model and the input multiple clarity scores, classify the clarity of the video to be classified to obtain the clarity category of the video to be classified.
[0087] Specifically, the clarity classification model can be a support vector machine (SVM) model for classification. The SVM model is a binary classification model that classifies each clarity score of the video to be classified through a preset linear function to determine whether the video to be classified is a clear or blurred video. The clarity category can be two categories, clear and blurred, as output information of the binary classification model.
[0088] The preset linear function is a function obtained by training the SVM model, which can classify the training sample videos into two categories: clear and fuzzy, and make the interval between the videos in the clear category and the videos in the fuzzy category closest to the linear function the largest. Therefore, based on the input multiple clarity scores, the clarity of the video to be classified can be classified to determine whether the video to be classified is clear or fuzzy. For example, if the four clarity scores of a video to be classified are 7 points, 8 points, 8 points and 9 points respectively, then these four clarity scores are input into the clarity classification model, and the clarity category of the video to be classified can be judged as clear. If the four clarity scores of a video to be classified are 1 point, 2 points, 3 points and 2 points respectively, then these four clarity scores are input into the clarity classification model, and the clarity category of the video to be classified can be judged as fuzzy.
[0089] In addition to the SVM model, other classification models that can apply a binary classification method can be used to classify the clarity of the video to be classified.
[0090] The clarity classification model built based on the SVM model can comprehensively consider multi-dimensional features to accurately and effectively classify the clarity of videos to be classified in the business, thus ensuring the accuracy of classification to a certain extent.
[0091] For further information, see Fig. 9, the method for training the clarity classification model includes:
[0092] S910. Obtain training sample videos labeled with clarity categories;
[0093] S920. Perform multi-dimensional feature analysis on the clarity of the training sample video to obtain multiple clarity scores of the training sample video;
[0094] S930. Using the plurality of clarity scores as input information of a clarity classification model, and using the clarity category of the training sample video as output information of the clarity classification model;
[0095] S940. Compare the output information of the definition classification model with the training sample video;
[0096] S950. Based on the comparison results, train and generate a clarity classification model.
[0097] Specifically, a certain number of videos to be classified are screened out so that the sample coverage covers all video categories as much as possible, such as outdoor, game, animation, etc., and the above screened videos are manually classified for clarity to generate training sample videos. Among them, the strategy for screening training sample videos is to first classify all videos in the video library, and finally randomly select an equal number of videos from all categories of videos as training sample videos to be labeled.
[0098] Select multiple general-purpose reference-free video clarity evaluation algorithms with good clarity evaluation effects, use these algorithms to score the clarity of the above-mentioned training samples, and output multiple clarity scores for each training sample video. Among them, the specific algorithm selection strategy is: because most of the video clarity evaluation algorithms in the prior art extract features of a single field to train the model to evaluate the clarity of the video. In a video clarity classification method provided by the present invention, the DIIVINE algorithm based on wavelet domain features, the NIQE algorithm based on spatial domain feature selection, and the GRNN algorithm based on image entropy features are selected from the traditional evaluation algorithms. At the same time, the NIMA algorithm based on convolutional neural network is also selected. The clarity evaluation scores of the above-selected algorithms for the video are used as the feature inputs of the subsequent clarity classification model. Then, the final model comprehensively considers the characteristics of the video in wavelet domain, spatial domain, etc., and improves the classification accuracy of the model.
[0099] Based on the clarity classification model constructed by the SVM algorithm, the multiple clarity scores of the training sample videos are used as the input of the clarity classification model, and the clarity categories of the training sample videos are used as the output of the clarity classification model. The output results are compared with the clarity categories annotated by manual clarity classification, and a video no-reference clarity classification model is trained and generated.
[0100] In a specific example, when applying a trained clarity classification model, see Fig.10 , for the UGC video to be evaluated in actual business needs, when a user submits a UCG video, the clarity of the UCG video submitted by the user can be scored based on the clarity classification model to obtain 4 clarity scores. Then the 4 clarity scores are input into the trained SVM model as the features of the UGC video to be evaluated, and the output is the clarity category of the UGC video to be evaluated. If it is clear, the UCG video is uploaded to the video library of the server, and the upload is successful to the user. If it is blurry, it cannot pass the review and the upload failure is displayed to the user.
[0101] In a specific example, when applying the trained clarity classification model, the transcoded video can be evaluated. The transcoded video is input into the clarity classification model, and the clarity of the transcoded video can be scored based on the clarity classification model to obtain four clarity scores. The four clarity scores are then input into the trained SVM model as features of the transcoded video, and the output is the clarity category of the transcoded video. According to the clarity or blurriness of the transcoded video, the transcoding technology can be evaluated. If it is blurry, the transcoding technology needs to be optimized.
[0102] The embodiment of the present invention provides a method for classifying video clarity. The method performs multi-dimensional feature analysis on the clarity of the video to be classified from the wavelet domain features, spatial domain features, entropy features and aesthetic features of the video to be classified, obtains multiple clarity scores, classifies the video to be classified based on the clarity scores, and determines whether the video to be classified is clear or blurry. The method uses multiple clarity analysis models to analyze the clarity of the video to be classified from the features of each dimension, can comprehensively evaluate the clarity of the video to be classified, and based on the comprehensive evaluation, obtains a more accurate classification result, thereby improving the accuracy of clarity classification. The method can perform reference-free clarity classification on the video to be classified, thereby improving the efficiency of video review and reducing review costs.
[0103] The embodiment of the present invention also provides a video definition classification device, see Fig.11 , the device comprises: a to-be-classified video acquisition module 1110, a clarity analysis module 1120 and a clarity classification module 1130;
[0104] The to-be-classified video acquisition module 1110 is used to acquire the to-be-classified video;
[0105] The clarity analysis module 1120 is used to perform multi-dimensional feature analysis on the clarity of the video to be classified, and obtain multiple clarity scores of the video to be classified, each clarity score corresponding to a different feature dimension;
[0106] The clarity classification module 1130 is used to classify the clarity of the video to be classified based on the multiple clarity scores to obtain the clarity category of the video to be classified.
[0107] Further, the clarity analysis module also includes a first clarity score obtaining unit, a second clarity score obtaining unit, a third clarity score obtaining unit and a fourth clarity score obtaining unit;
[0108] The first clarity score obtaining unit is used to analyze the clarity of the video to be classified according to the first clarity analysis model to obtain a first clarity score of the video to be classified;
[0109] The second definition score obtaining unit is used to analyze the definition of the video to be classified according to the second definition analysis model to obtain a second definition score of the video to be classified;
[0110] The third definition score obtaining unit is used to analyze the definition of the video to be classified according to the third definition analysis model to obtain the third definition score of the video to be classified;
[0111] The fourth clarity score obtaining unit is used to analyze the clarity of the video to be classified according to a fourth clarity analysis model to obtain a fourth clarity score of the video to be classified.
[0112] Furthermore, the device can also train the model, so the device also includes a clarity annotation module, a sample clarity score acquisition module, a sample clarity classification module, a comparison module and a model generation module:
[0113] The clarity labeling module is used to obtain training sample videos labeled with clarity categories;
[0114] The sample definition score acquisition module is used to perform multi-dimensional feature analysis on the definition of the training sample video to obtain multiple definition scores of the training sample video;
[0115] The sample definition classification module uses the multiple definition scores as input information of a definition classification model, and uses the definition category of the training sample video as output information of the definition classification model;
[0116] The comparison module is used to compare the output information of the clarity classification model with the training sample video;
[0117] The model generation module is used to train and generate a clarity classification model according to the comparison results.
[0118] The device provided in the above embodiment can execute the method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiment, please refer to a video definition classification method provided in any embodiment of the present invention.
[0119] This embodiment further provides a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are loaded by a processor and execute the video definition classification method described above in this embodiment.
[0120] This embodiment further provides a video clarity classification device, which includes a processor and a memory, wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned video clarity classification method of this embodiment.
[0121] The device may be a computer terminal, a mobile terminal or a server, and the device may also participate in constituting the apparatus or system provided in the embodiment of the present invention. Fig.12 As shown, the mobile terminal 12 (or computer terminal 12 or server 12) may include one or more (1202a, 1202b, ..., 1202n are used to illustrate) processors 1202 (the processor 1202 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1204 for storing data, and a transmission device 1206 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Fig.12 The structure shown is for illustration only and does not limit the structure of the above electronic device. Fig.12 More or fewer components as shown, or with Fig.12 Different configurations shown.
[0122] It should be noted that the one or more processors 1202 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 12 (or mobile terminal). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0123] The memory 1204 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the method in the embodiment of the present invention. The processor 1202 executes various functional applications and data processing by running the software programs and modules stored in the memory 1204, that is, to implement the above-mentioned method for generating a temporal behavior capture frame based on a self-attention network. The memory 1204 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1204 may further include a memory remotely arranged relative to the processor 1202, and these remote memories may be connected to the computer terminal 12 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0124] The transmission device 1206 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 12. In one example, the transmission device 1206 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 1206 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0125] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 12 (or mobile terminal).
[0126] This specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on conventional or non-creative labor. The steps and sequence listed in the embodiments are only one way of executing the sequence of many steps and do not represent the only execution sequence. When the actual system or interrupt product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment).
[0127] The structure shown in this embodiment is only a partial structure related to the scheme of the present application, and does not constitute a limitation on the device to which the scheme of the present application is applied. The specific device may include more or fewer components than shown, or combine certain components, or have different arrangements of components. It should be understood that the method, device, etc. disclosed in this embodiment can be implemented in other ways. For example, the device embodiment described above is only schematic. For example, the division of the modules is only a division of a logical function. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or unit modules.
[0128] Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or the whole or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.
[0129] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0130] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A video definition classification method, characterized in that: The method comprises: Get the video to be classified; A third clarity score of the video to be classified is obtained according to a third clarity analysis model, wherein the third clarity analysis model includes a hidden layer, a summation layer and an output layer; the summation layer performs summation through two types of neurons, wherein the first type of neurons performs arithmetic summation on the outputs of all hidden layer neurons, and the second type of neurons performs weighted summation on the outputs of all hidden layer neurons; the distance between the video to be classified and a preset sample video is calculated through the hidden layer to obtain third feature information, and the third feature information is input into the summation layer to calculate the sum value of the third feature information and the weighted sum value of the third feature information; the output of each neuron in the summation layer is reduced in dimension through the output layer, and the third clarity score is obtained by dividing the weighted sum result of the output of the second type of neurons by the arithmetic sum result of the output of the first type of neurons; Obtaining a fourth clarity score of the video to be classified according to a fourth clarity analysis model; the fourth clarity analysis model learns a clarity analysis method close to human aesthetic evaluation through two types of samples, wherein the two types of samples are aesthetic evaluation sample videos and distorted sample videos, respectively, and determines the fourth clarity score by analyzing the clarity of the video to be classified in terms of aesthetic degree; Based on the obtained clarity scores, the clarity of the video to be classified is classified to obtain a clarity category of the video to be classified.
2. A video definition classification method according to claim 1, characterized in that: Before classifying the clarity of the video to be classified based on the obtained clarity scores and obtaining the clarity category of the video to be classified, the method further includes: Performing feature analysis on the clarity of the video to be classified according to a first clarity analysis model to obtain a first clarity score of the video to be classified; A feature analysis is performed on the clarity of the video to be classified according to the second clarity analysis model to obtain a second clarity score of the video to be classified.
3. A video definition classification method according to claim 2, characterized in that: Analyzing the clarity of the video to be classified according to the first clarity analysis model to obtain a first clarity score of the video to be classified includes: Performing wavelet decomposition on the video to be classified to obtain a decomposed video to be classified; Extracting features from the decomposed video to be classified to obtain first feature information; Calculating the probability of each distortion type in the video to be classified according to the first feature information to obtain distortion probability information of the video to be classified; Based on a preset distortion regression model and the first feature information, obtaining video quality information of the video to be classified; A first clarity score of the video to be classified is determined according to the distortion probability information and the video quality information.
4. A video definition classification method according to claim 2, characterized in that: Analyzing the clarity of the video to be classified according to the second clarity analysis model to obtain a second clarity score of the video to be classified includes: Calculating normalized pixel information of the video to be classified based on a preset spatial domain coefficient; Extracting second feature information of the video to be classified according to the normalized pixel information; Based on a preset feature distribution model, a distribution curve is fitted to the second feature information to obtain a second clarity score of the video to be classified.
5. The video definition classification method according to claim 1, characterized in that: The step of obtaining a fourth definition score of the video to be classified according to the fourth definition analysis model includes: Performing convolution calculation on the video to be classified to obtain fourth feature information of the video to be classified; Based on the fourth feature information, obtaining a definition distribution result of the video to be classified; A fourth clarity score of the video to be classified is determined according to the clarity distribution result and a preset empirical probability mass function.
6. A video definition classification method according to claim 1, characterized in that: The step of classifying the definition of the video to be classified based on the obtained definition scores to obtain the definition category of the video to be classified includes: Using the clarity scores as input to a clarity classification model; Based on the preset linear function in the clarity classification model and the input multiple clarity scores, the clarity of the video to be classified is classified to obtain the clarity category of the video to be classified.
7. A video definition classification method according to claim 6, characterized in that: Before obtaining the video to be classified, the method further includes: Obtain training sample videos labeled with clarity categories; Performing a multi-dimensional feature analysis on the clarity of the training sample video to obtain multiple clarity scores of the training sample video; Using the multiple clarity scores as input information of a clarity classification model, and using the clarity category of the training sample video as output information of the clarity classification model; Comparing the output information of the definition classification model with the training sample video; According to the comparison results, a clarity classification model is trained and generated.
8. A video definition classification device, characterized in that: The device comprises: a video acquisition module to be classified, a clarity analysis module and a clarity classification module; The to-be-classified video acquisition module is used to acquire the to-be-classified video; The clarity analysis module is used to obtain a third clarity score of the video to be classified according to a third clarity analysis model, and the third clarity analysis model includes a hidden layer, a summation layer and an output layer; the summation layer performs summation through two types of neurons, the first type of neurons performs arithmetic summation on the outputs of all hidden layer neurons, and the second type of neurons performs weighted summation on the outputs of all hidden layer neurons; the distance between the video to be classified and the preset sample video is calculated through the hidden layer to obtain third feature information, and the third feature information is input into the summation layer to calculate the sum of the third feature information and the third The weighted sum value of the feature information; the output of each neuron in the summing layer is reduced in dimension through the output layer, and the third clarity score is obtained based on the weighted sum result of the output of the second type of neurons divided by the arithmetic sum result of the output of the first type of neurons; the fourth clarity score of the video to be classified is obtained according to the fourth clarity analysis model; the fourth clarity analysis model learns a clarity analysis method close to human aesthetic evaluation through two types of samples, the two types of samples are aesthetic evaluation sample videos and distorted sample videos, and the clarity of the video to be classified is analyzed in terms of aesthetic degree to determine the fourth clarity score; The definition classification module is used to classify the definition of the video to be classified based on the obtained definition scores to obtain the definition category of the video to be classified.
9. A video definition classification device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a video clarity classification method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a video clarity classification method as described in any one of claims 1-7.
Citation Information
Patent Citations
Camera image quality evaluation method and device
CN105825500A
Method for assessing quality of fingerprint image
CN106650572A
Display method of hotel images, storage medium, and push method of hotel information
CN107194898A
