Video tag classification method and device

By training a converged face and timbre classification model and combining the face and timbre label results, the problem of low accuracy and reliability of video tag classification in the existing technology is solved, and a more efficient and reliable video tag classification is achieved.

CN118570699APending Publication Date: 2024-08-30GUANGZHOU YOUMI INFORMATION TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410694193.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing video tag classification methods rely on human operation and have low accuracy and reliability. They are affected by factors such as background music and recording noise, resulting in high uncertainty in classification results.

Method used

Use the face classification model and timbre classification model that have been trained to converge, analyze the video to be classified, and combine the face label and timbre label results to determine the video label classification result.

Benefits of technology

It improves the accuracy and reliability of video tag classification, enhances the comprehensiveness and diversity of classification results, simplifies the classification process, and improves efficiency and convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570699A
    Figure CN118570699A
Patent Text Reader

Abstract

The invention relates to the technical field of label classification, and discloses a video label classification method and device, and the method comprises the steps: determining a to-be-classified video which needs to be subjected to label classification; inputting the to-be-classified video into the training convergent face classification model for analysis to obtain a face label classification result, and inputting the to-be-classified video into the training convergent timbre classification model for analysis to obtain a timbre label classification result; and determining a video tag classification result of the to-be-classified video according to the face tag classification result and the tone tag classification result. Therefore, the comprehensiveness and rationality of a video tag classification result determination mode can be improved, and the diversity and flexibility of a determination consideration layer (namely a face layer and a timbre layer) of the video tag classification result are improved, so that the accuracy and reliability of the determined video tag classification result are improved, and the user experience is improved. Therefore, the classification accuracy, the classification reliability, the classification efficiency and the classification convenience of the video tags are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of label classification, and in particular to a method and device for classifying video labels. Background Art

[0002] With the rapid development of the Internet and the obvious trend of globalization of e-commerce, the advertising video materials contained in e-commerce platforms are diverse and complicated. Among them, a large number of video materials themselves do not have relevant label categories, and they need to be classified into different label categories through analysis and understanding of the video content.

[0003] Currently, video label classification is mostly done manually and based on subjective identification. The timbre of the same video material may be different due to various complex situations such as background music and recording noise. The existing video materials have various image forms and the image content may have various uncertain occlusion phenomena. The above situations will affect the label classification results of the video material to a certain extent, and the accuracy and reliability of the video label classification results are low. Therefore, it is particularly important to provide a video label classification method that can improve the classification accuracy and reliability of video labels. Summary of the invention

[0004] The present invention provides a video tag classification method and device, which can improve the classification accuracy and classification reliability of video tags.

[0005] In order to solve the above technical problem, the first aspect of the present invention discloses a video tag classification method, characterized in that the method comprises:

[0006] Determine the videos to be classified that need to be labeled and classified;

[0007] Input the video to be classified into a trained and converged face classification model for analysis to obtain a face label classification result, and input the video to be classified into a trained and converged timbre classification model for analysis to obtain a timbre label classification result;

[0008] The video label classification result of the video to be classified is determined according to the face label classification result and the timbre label classification result.

[0009] As an optional implementation, in the first aspect of the present invention, before inputting the video to be classified into the trained converged face classification model for analysis to obtain the face label classification result, the method further includes:

[0010] Acquire a training image data set for training a face classification model, wherein image contents corresponding to training images in the training image data set include face contents;

[0011] Performing a corresponding image processing operation on each of the training images to obtain a processed image data set;

[0012] According to the processed image data set and the training image data set, performing corresponding model training and parameter adjustment operations on a preset basic face classification model to obtain a face classification model with converged training;

[0013] The face classification model is used to output a face detection result, and the face detection result includes a detection result of a face position corresponding to an image to be detected and / or a detection result of a face orientation category.

[0014] As an optional implementation, in the first aspect of the present invention, performing a corresponding image processing operation on each of the training images to obtain a processed image data set includes:

[0015] Performing a face position labeling operation on each of the training images to obtain a first processed image corresponding to each of the training images, and performing a face orientation category labeling operation on each of the first processed images to obtain a second processed image corresponding to each of the first processed images;

[0016] Performing a random cropping operation on the non-face area in each of the second processed images to obtain a cropped image block corresponding to each of the second processed images, and performing a rotation processing operation on each of the cropped image blocks;

[0017] According to a preset image filling requirement, a random filling operation is performed on each of the second processed images and its corresponding cropped image block to obtain a third processed image corresponding to each of the second processed images;

[0018] Performing a corresponding image enhancement operation on each of the third processed images to obtain a fourth processed image corresponding to each of the third processed images;

[0019] A corresponding data normalization operation is performed on all the fourth processed images to obtain a processed image data set.

[0020] As an optional implementation, in the first aspect of the present invention, before inputting the video to be classified into the trained and converged timbre classification model for analysis to obtain the timbre label classification result, the method further includes:

[0021] Acquire a training audio data set for training a timbre classification model, wherein the audio content corresponding to the training audio clips in the training audio data set includes multiple character voices;

[0022] Performing a corresponding audio annotation operation on each of the training audio segments to obtain a first processed audio segment corresponding to each of the training audio segments, and performing a corresponding audio enhancement operation on each of the first processed audio segments to obtain a second processed audio segment corresponding to each of the first processed audio segments;

[0023] Performing a corresponding feature extraction operation on each of the second processed audio segments to obtain a training audio feature vector corresponding to each of the second processed audio segments;

[0024] According to all the second processed audio clips, all the training audio feature vectors and the training audio data set, performing corresponding model training and parameter adjustment operations on the preset basic timbre classification model to obtain a timbre classification model with converged training;

[0025] The timbre classification model is used to output an audio object detection result, and the audio object detection result includes a detection result of an audio object identifier corresponding to the audio to be detected and / or a detection result of the number of audio objects.

[0026] As an optional implementation manner, in the first aspect of the present invention, performing a corresponding audio annotation operation on each of the training audio segments to obtain a first processed audio segment corresponding to each of the training audio segments includes:

[0027] According to each of the training audio segments, determining one or more audio character objects present in all of the training audio segments, and determining a unique object label for each of the audio character objects;

[0028] Based on the voice activity detection module in the timbre classification model, performing vocal segment extraction and cutting operations on each of the training audio segments to obtain a training vocal segment corresponding to each of the training audio segments;

[0029] According to the exclusive object label of each of the audio character objects, a corresponding labeling operation is performed on each of the training vocal segments to obtain a first processed audio segment corresponding to each of the training vocal segments.

[0030] As an optional implementation manner, in the first aspect of the present invention, performing a corresponding audio enhancement operation on each of the first processed audio segments to obtain a second processed audio segment corresponding to each of the first processed audio segments includes:

[0031] Determining an additional audio segment for audio enhancement, wherein the additional audio segment meets a preset requirement that the audio content has no human voice;

[0032] According to the additional audio segment and the preset audio preprocessing method type, performing a corresponding audio preprocessing operation on each of the first processed audio segments to obtain a preprocessed audio segment corresponding to each of the first processed audio segments;

[0033] According to the additional audio segment and the audio duration of each of the pre-processed audio segments, a corresponding segment repair operation is performed on each of the pre-processed audio segments to obtain a second processed audio segment corresponding to each of the pre-processed audio segments.

[0034] As an optional implementation, in the first aspect of the present invention, the timbre classification model includes a voice activity detection module and an audio convolution feature extraction module;

[0035] And, the video to be classified is input into the trained and converged timbre classification model for analysis to obtain the timbre label classification result, including:

[0036] Inputting the video to be classified into the voice activity detection module for analysis to obtain a voice activity detection result;

[0037] When the voice activity detection result does not include a human voice audio segment, determining a timbre label classification result is used to indicate that the audio segment of the video to be classified does not have a human voice;

[0038] When the voice activity detection result includes one or more human voice audio clips, each of the human voice audio clips is input into the audio convolution feature extraction module for analysis to obtain a first audio convolution feature corresponding to each of the human voice audio clips; according to a preset hash coding determination method, a hash coding result of each of the first audio convolution features is determined, and according to all the first audio convolution features and their hash coding results, a Hamming distance result corresponding to every two of the first audio convolution features is calculated; according to all the Hamming distance results, a result of the number of audio objects of the video to be classified is determined; according to the audio object number result, a timbre label classification result is determined.

[0039] As an optional implementation, in the first aspect of the present invention, the step of inputting the video to be classified into a trained and converged face classification model for analysis to obtain a face label classification result includes:

[0040] Performing a corresponding frame extraction operation on the video to be classified to obtain one or more image frames;

[0041] Inputting all the image frames into a face detection module in a trained and converged face classification model for analysis to obtain a face detection result;

[0042] When the face detection result does not include a face image frame, determining a face label classification result is used to indicate that the image frame of the video to be classified does not have a face;

[0043] When the face detection result includes at least one face image frame and face information corresponding to each face image frame, a face image cropping operation is performed on each face image frame according to the face detection frame coordinate information in each face information to obtain a face cropped image corresponding to each face image frame; a face similarity comparison operation is performed on all the face cropped images to obtain a face object quantity result; and a face label classification result is determined according to the face object quantity result, the face orientation result in each face information and the face image ratio.

[0044] As an optional implementation, in the first aspect of the present invention, determining the video label classification result of the video to be classified according to the face label classification result and the timbre label classification result includes:

[0045] Determine the number and proportion of faces in the video to be classified according to the face label classification result, and determine the audio status result of the video to be classified according to the timbre label classification result;

[0046] Determine the video label classification result of the video to be classified according to the number and proportion of faces and the audio status result;

[0047] The video tag classification results include one or more of deductive display tag results, oral display tag results, pure commodity display tag results and other custom tag results.

[0048] As an optional embodiment, in the first aspect of the present invention, the method further comprises:

[0049] When the audio to be identified needs to be identified as an audio object, a corresponding feature extraction operation is performed on the audio to be identified according to the preset audio feature type requirements of the timbre classification model to obtain an application audio vector result;

[0050] The applied audio vector result is input into the timbre classification model to perform an object recognition operation, and obtain an audio object identification result corresponding to the audio to be recognized.

[0051] As an optional implementation, in the first aspect of the present invention, the timbre classification model includes an audio convolution feature extraction module and a classification layer;

[0052] And, the step of inputting the applied audio vector result into the timbre classification model to perform an object recognition operation to obtain an audio object identification result corresponding to the audio to be recognized includes:

[0053] Inputting the applied audio vector result into the audio convolution feature extraction module for analysis to obtain a second audio convolution feature;

[0054] Inputting the second audio convolution feature into the classification layer for analysis to obtain a classification score for each training audio object category corresponding to the timbre classification model;

[0055] Determining, according to the classification score of each of the training audio object categories, a target training audio object category that meets a preset category screening condition from all the training audio object categories;

[0056] Determine the category identifier of the target training audio object category as the audio object identification result corresponding to the audio to be recognized;

[0057] Among them, the training audio object category corresponding to the timbre classification model includes the real audio object category of the audio to be identified.

[0058] A second aspect of the present invention discloses a video tag classification device, the device comprising:

[0059] A video determination module is used to determine the videos to be classified that need to be labeled and classified;

[0060] A face label determination module is used to input the video to be classified into a trained and converged face classification model for analysis to obtain a face label classification result;

[0061] A timbre label determination module is used to input the video to be classified into a trained and converged timbre classification model for analysis to obtain a timbre label classification result;

[0062] The video label determination module is used to determine the video label classification result of the video to be classified according to the face label classification result and the timbre label classification result.

[0063] As an optional implementation, in the second aspect of the present invention, the device further includes:

[0064] The first model training module is used to obtain a training image data set for training the face classification model before the face label determination module inputs the video to be classified into the trained converged face classification model for analysis and obtains the face label classification result, wherein the image content corresponding to the training image in the training image data set includes face content; perform corresponding image processing operations on each of the training images to obtain a processed image data set; perform corresponding model training and parameter adjustment operations on a preset basic face classification model according to the processed image data set and the training image data set to obtain a trained converged face classification model; wherein the face classification model is used to output a face detection result, and the face detection result includes a detection result of a face position corresponding to the image to be detected and / or a detection result of a face orientation category.

[0065] As an optional implementation, in the second aspect of the present invention, the first model training module performs a corresponding image processing operation on each of the training images to obtain a processed image data set, specifically comprising:

[0066] Performing a face position labeling operation on each of the training images to obtain a first processed image corresponding to each of the training images, and performing a face orientation category labeling operation on each of the first processed images to obtain a second processed image corresponding to each of the first processed images;

[0067] Performing a random cropping operation on the non-face area in each of the second processed images to obtain a cropped image block corresponding to each of the second processed images, and performing a rotation processing operation on each of the cropped image blocks;

[0068] According to a preset image filling requirement, a random filling operation is performed on each of the second processed images and its corresponding cropped image block to obtain a third processed image corresponding to each of the second processed images;

[0069] Performing a corresponding image enhancement operation on each of the third processed images to obtain a fourth processed image corresponding to each of the third processed images;

[0070] A corresponding data normalization operation is performed on all the fourth processed images to obtain a processed image data set.

[0071] As an optional implementation, in the second aspect of the present invention, the device further includes:

[0072] A second model training module is used for obtaining a training audio data set for training the timbre classification model before the timbre label determination module inputs the video to be classified into the timbre classification model that has been trained and converged for analysis, and before obtaining the timbre label classification result, the audio content corresponding to the training audio clips in the training audio data set includes multiple character voices;

[0073] Performing a corresponding audio annotation operation on each of the training audio segments to obtain a first processed audio segment corresponding to each of the training audio segments, and performing a corresponding audio enhancement operation on each of the first processed audio segments to obtain a second processed audio segment corresponding to each of the first processed audio segments;

[0074] Performing a corresponding feature extraction operation on each of the second processed audio segments to obtain a training audio feature vector corresponding to each of the second processed audio segments;

[0075] According to all the second processed audio clips, all the training audio feature vectors and the training audio data set, performing corresponding model training and parameter adjustment operations on the preset basic timbre classification model to obtain a timbre classification model with converged training;

[0076] The timbre classification model is used to output an audio object detection result, and the audio object detection result includes a detection result of an audio object identifier corresponding to the audio to be detected and / or a detection result of the number of audio objects.

[0077] As an optional implementation, in the second aspect of the present invention, the second model training module performs a corresponding audio annotation operation on each of the training audio segments to obtain a first processed audio segment corresponding to each of the training audio segments, specifically including:

[0078] According to each of the training audio segments, determining one or more audio character objects present in all of the training audio segments, and determining a unique object label for each of the audio character objects;

[0079] Based on the voice activity detection module in the timbre classification model, performing vocal segment extraction and cutting operations on each of the training audio segments to obtain a training vocal segment corresponding to each of the training audio segments;

[0080] According to the exclusive object label of each of the audio character objects, a corresponding labeling operation is performed on each of the training vocal segments to obtain a first processed audio segment corresponding to each of the training vocal segments.

[0081] As an optional implementation, in the second aspect of the present invention, the second model training module performs a corresponding audio enhancement operation on each of the first processed audio segments to obtain a second processed audio segment corresponding to each of the first processed audio segments, specifically including:

[0082] Determining an additional audio segment for audio enhancement, wherein the additional audio segment meets a preset requirement that the audio content has no human voice;

[0083] According to the additional audio segment and the preset audio preprocessing method type, performing a corresponding audio preprocessing operation on each of the first processed audio segments to obtain a preprocessed audio segment corresponding to each of the first processed audio segments;

[0084] According to the additional audio segment and the audio duration of each of the pre-processed audio segments, a corresponding segment repair operation is performed on each of the pre-processed audio segments to obtain a second processed audio segment corresponding to each of the pre-processed audio segments.

[0085] As an optional implementation, in the second aspect of the present invention, the timbre classification model includes a voice activity detection module and an audio convolution feature extraction module;

[0086] Furthermore, the timbre label determination module inputs the video to be classified into the trained and converged timbre classification model for analysis, and the method of obtaining the timbre label classification result specifically includes:

[0087] Inputting the video to be classified into the voice activity detection module for analysis to obtain a voice activity detection result;

[0088] When the voice activity detection result does not include a human voice audio segment, determining a timbre label classification result is used to indicate that the audio segment of the video to be classified does not have a human voice;

[0089] When the voice activity detection result includes one or more human voice audio clips, each of the human voice audio clips is input into the audio convolution feature extraction module for analysis to obtain a first audio convolution feature corresponding to each of the human voice audio clips; according to a preset hash coding determination method, a hash coding result of each of the first audio convolution features is determined, and according to all the first audio convolution features and their hash coding results, a Hamming distance result corresponding to every two of the first audio convolution features is calculated; according to all the Hamming distance results, a result of the number of audio objects of the video to be classified is determined; according to the audio object number result, a timbre label classification result is determined.

[0090] As an optional implementation, in the second aspect of the present invention, the face label determination module inputs the video to be classified into a trained and converged face classification model for analysis, and the method of obtaining the face label classification result specifically includes:

[0091] Performing a corresponding frame extraction operation on the video to be classified to obtain one or more image frames;

[0092] Inputting all the image frames into a face detection module in a trained and converged face classification model for analysis to obtain a face detection result;

[0093] When the face detection result does not include a face image frame, determining a face label classification result is used to indicate that the image frame of the video to be classified does not have a face;

[0094] When the face detection result includes at least one face image frame and face information corresponding to each face image frame, a face image cropping operation is performed on each face image frame according to the face detection frame coordinate information in each face information to obtain a face cropped image corresponding to each face image frame; a face similarity comparison operation is performed on all the face cropped images to obtain a face object quantity result; and a face label classification result is determined according to the face object quantity result, the face orientation result in each face information and the face image ratio.

[0095] As an optional implementation, in the second aspect of the present invention, the video tag determination module determines the video tag classification result of the video to be classified according to the face tag classification result and the timbre tag classification result, specifically including:

[0096] Determine the number and proportion of faces in the video to be classified according to the face label classification result, and determine the audio status result of the video to be classified according to the timbre label classification result;

[0097] Determine the video label classification result of the video to be classified according to the number and proportion of faces and the audio status result;

[0098] The video tag classification results include one or more of deductive display tag results, oral display tag results, pure commodity display tag results and other custom tag results.

[0099] As an optional implementation, in the second aspect of the present invention, the device further includes:

[0100] The audio object determination module is used to perform corresponding feature extraction operations on the audio to be identified when audio object identification is required, according to the audio feature type requirements of the preset timbre classification model, to obtain an application audio vector result; the application audio vector result is input into the timbre classification model to perform object recognition operations, and obtain an audio object identification result corresponding to the audio to be identified.

[0101] As an optional implementation, in the second aspect of the present invention, the timbre classification model includes an audio convolution feature extraction module and a classification layer;

[0102] Furthermore, the audio object determination module inputs the applied audio vector result into the timbre classification model to perform an object recognition operation, and the method of obtaining the audio object identification result corresponding to the audio to be recognized specifically includes:

[0103] Inputting the applied audio vector result into the audio convolution feature extraction module for analysis to obtain a second audio convolution feature;

[0104] Inputting the second audio convolution feature into the classification layer for analysis to obtain a classification score for each training audio object category corresponding to the timbre classification model;

[0105] Determining, according to the classification score of each of the training audio object categories, a target training audio object category that meets a preset category screening condition from all the training audio object categories;

[0106] Determine the category identifier of the target training audio object category as the audio object identification result corresponding to the audio to be recognized;

[0107] Among them, the training audio object category corresponding to the timbre classification model includes the real audio object category of the audio to be identified.

[0108] The third aspect of the present invention discloses another video tag classification device, the device comprising:

[0109] A memory storing executable program code;

[0110] a processor coupled to the memory;

[0111] The processor calls the executable program code stored in the memory to execute a video tag classification method disclosed in the first aspect of the present invention.

[0112] A fourth aspect of the present invention discloses a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute a video tag classification method disclosed in the first aspect of the present invention.

[0113] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0114] In an embodiment of the present invention, a video to be classified that needs to be labeled is determined; the video to be classified is input into a trained converged face classification model for analysis to obtain a face label classification result, and the video to be classified is input into a trained converged timbre classification model for analysis to obtain a timbre label classification result; and the video label classification result of the video to be classified is determined according to the face label classification result and the timbre label classification result. It can be seen that the present invention can provide a video label classification method, which determines the face label classification result and the timbre label classification result of the video to be classified according to the trained converged face classification model and the trained converged timbre classification model, and then obtains the video label classification result of the video to be classified, which is conducive to improving the comprehensiveness and rationality of the video label classification result determination method, and is also conducive to improving the diversity and flexibility of the consideration level (i.e., face level, timbre level) for determining the video label classification result, and is further conducive to improving the accuracy and reliability of the determined video label classification result, thereby facilitating the classification accuracy and classification reliability of the video label, and is also conducive to improving the classification efficiency and classification convenience of the video label. BRIEF DESCRIPTION OF THE DRAWINGS

[0115] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0116] Figure 1 It is a flow chart of a method for classifying video tags disclosed in an embodiment of the present invention;

[0117] Figure 2 It is a flowchart of another video tag classification method disclosed in an embodiment of the present invention;

[0118] Figure 3 It is a structural schematic diagram of a video tag classification device disclosed in an embodiment of the present invention;

[0119] Figure 4 It is a structural schematic diagram of another video tag classification device disclosed in an embodiment of the present invention;

[0120] Figure 5 It is a structural schematic diagram of another video tag classification device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0121] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0122] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.

[0123] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0124] The present invention discloses a video label classification method and device, which can provide a video label classification method, determine the face label classification result and the timbre label classification result of the video to be classified according to the trained converged face classification model and the trained converged timbre classification model, and then obtain the video label classification result of the video to be classified, which is conducive to improving the comprehensiveness and rationality of the video label classification result determination method, and is also conducive to improving the diversity and flexibility of the consideration level (i.e., the face level and the timbre level) for determining the video label classification result, and is further conducive to improving the accuracy and reliability of the determined video label classification result, thereby helping to improve the classification accuracy and classification reliability of the video label, and is also conducive to improving the classification efficiency and classification convenience of the video label. The following are detailed descriptions respectively.

[0125] Embodiment 1

[0126] See also Figure 1 , Figure 1 : is a flow chart of a video tag classification method disclosed in an embodiment of the present invention. Figure 1The described method may be applied to a video tag classification device, wherein the device may include a server, wherein the server includes a local server or a cloud server, which is not limited in the embodiment of the present invention. Figure 1 As shown, the video tag classification device includes the following operations:

[0127] 101. Determine the videos to be classified that need to be labeled and classified.

[0128] 102. Input the video to be classified into a trained and converged face classification model for analysis to obtain a face label classification result, and input the video to be classified into a trained and converged timbre classification model for analysis to obtain a timbre label classification result.

[0129] Optionally, the face label classification result includes, for example, a label of "multiple faces exist in multiple image frames at the same time", a label of "the face accounts for too small a proportion of the image", a label of "the face is facing the camera directly", a label of "the face is facing the back of the camera", a label of "there is only one face in each image frame", a label of "there are only two or more faces in each image frame", a label of "no face", etc., which are not limited in the embodiments of the present invention.

[0130] Optionally, the timbre label classification result includes, for example, a label such as “there is only one voice in the audio clip”, a label such as “there are multiple voices in the audio clip”, a label such as “there is a human voice in the audio clip”, a label such as “there is no voice in the audio clip”, a label such as “the human voice in the audio clip does not belong to the face in the video to be classified”, etc., which is not limited in the embodiments of the present invention.

[0131] 103. Determine the video label classification result of the video to be classified according to the face label classification result and the voice label classification result.

[0132] Optionally, the video label classification result of the video to be classified includes, for example, a “single person speaking” label, a “plot interpretation” label, a “multi-person speaking” label, a “product display with speaking” label, a “product display without speaking” label, etc., which is not limited in the embodiment of the present invention.

[0133] It can be seen that the implementation of a video label classification method described in an embodiment of the present invention can provide a video label classification method, which determines the face label classification result and the timbre label classification result of the video to be classified according to the trained converged face classification model and the trained converged timbre classification model, and then obtains the video label classification result of the video to be classified, which is conducive to improving the comprehensiveness and rationality of the method for determining the video label classification result, and is also conducive to improving the diversity and flexibility of the consideration levels (i.e., the face level and the timbre level) for determining the video label classification result, and is further conducive to improving the accuracy and reliability of the determined video label classification results, thereby helping to improve the classification accuracy and classification reliability of the video labels, and is also conducive to improving the classification efficiency and classification convenience of the video labels.

[0134] In an optional embodiment, before inputting the video to be classified into the trained and converged face classification model for analysis to obtain the face label classification result, the method may further include the following operations:

[0135] Obtaining a training image data set for training a face classification model, wherein image contents corresponding to training images in the training image data set include face contents;

[0136] Perform corresponding image processing operations on each training image to obtain a processed image data set;

[0137] According to the processed image data set and the training image data set, corresponding model training and parameter adjustment operations are performed on the preset basic face classification model to obtain a face classification model with converged training;

[0138] The face classification model is used to output face detection results, which include detection results of face positions corresponding to the image to be detected and / or detection results of face orientation categories.

[0139] Optionally, the above-mentioned acquisition of a training image dataset for training a face classification model takes the following example: collecting an image dataset containing faces as a training image dataset, which is not limited in this embodiment of the present invention.

[0140] Optionally, the training image data set includes one or more training images, which is not limited in this embodiment of the present invention.

[0141] Optionally, the above-mentioned basic face classification model is subjected to corresponding model training and parameter adjustment operations based on the processed image dataset and the training image dataset to obtain a face classification model with converged training. For example: selecting a suitable training algorithm, such as stochastic gradient descent (SGD) or its variants; setting a suitable training batch size and number of iterations according to the size of the training data (i.e., part or all of the data in the processed image dataset and the training image dataset) and the computing resources; during the training process, monitoring indicators such as the change in the loss function and the accuracy rate to determine whether the model has converged; the validation set (i.e., part or all of the data in the processed image dataset and the training image dataset that has not undergone data augmentation processing) can be used to evaluate the performance of the model, and the hyperparameters can be adjusted or the training can be stopped according to the validation results; for example, the training can be stopped when the validation accuracy is greater than a specified threshold, or the training can be stopped when the maximum number of training iterations is reached, to obtain a face classification model with converged training, which is not limited in the embodiments of the present invention.

[0142] Optionally, the model design content corresponding to the basic face classification model is illustrated by an example: the model adopts the YOLOv8 algorithm and the corresponding loss and training strategies to give the corresponding facial orientation category label while detecting the face position in the image, which is not limited in the embodiment of the present invention.

[0143] Optionally, the trained converged face classification model may output a face detection result, including a face position and a face orientation category in an image, which is not limited in the embodiment of the present invention.

[0144] It can be seen that this optional embodiment can provide a face classification model training convergence method, perform corresponding image processing operations on the training images, and train the face classification model according to the processed image data set and the training image data set. The trained converged face classification model can output face position detection results and face orientation category detection results, which is conducive to improving the comprehensiveness and rationality of the face classification model training method, and is also conducive to improving the comprehensiveness, diversity and pertinence of the training data (i.e., the processed image data set and the training image data set) used to train the face classification model, thereby helping to improve the training convergence accuracy, reliability and timeliness of the face classification model. In addition, it is also conducive to improving the diversity and flexibility of the types of face detection results (i.e., face position, face orientation category) that can be output by the face classification model, thereby helping to improve the applicability and intelligence of the face classification model.

[0145] In another optional embodiment, performing a corresponding image processing operation on each training image to obtain a processed image data set may include:

[0146] Performing a face position labeling operation on each training image to obtain a first processed image corresponding to each training image, and performing a face orientation category labeling operation on each first processed image to obtain a second processed image corresponding to each first processed image;

[0147] Performing a random cropping operation on the non-face area in each second processed image to obtain a cropped image block corresponding to each second processed image, and performing a rotation processing operation on each cropped image block;

[0148] According to a preset image filling requirement, a random filling operation is performed on each second processed image and its corresponding cropped image block to obtain a third processed image corresponding to each second processed image;

[0149] Performing a corresponding image enhancement operation on each third processed image to obtain a fourth processed image corresponding to each third processed image;

[0150] A corresponding data normalization operation is performed on all fourth processed images to obtain a processed image data set.

[0151] Optionally, the above-mentioned face position labeling operation is performed on each training image to obtain a first processed image corresponding to each training image. For example: the position of the face is marked in the training image to obtain the first processed image; further, the method of labeling the face position can be: labeling the specific position of the face in the training image, framing the face with a minimum rectangular frame, and labeling the xy coordinates corresponding to the upper left corner vertex and the lower right corner vertex of the rectangular frame, a total of 4 coordinate points, to obtain the first processed image; further, when the area blocked by the face is less than 1 / 2, the visible part of the face is also labeled, which is not limited by the embodiments of the present invention.

[0152] Optionally, the above-mentioned facial orientation category labeling operation is performed on each first processed image to obtain a second processed image corresponding to each first processed image. For example: facial orientation labeling is performed on the first processed image to mark the facial orientation category (such as straight-on shot, side shot, etc.) to obtain a second processed image. This embodiment of the present invention is not limited to this.

[0153] Optionally, the above-mentioned random cropping operation is performed on the non-face area in each second processed image to obtain a cropped image block corresponding to each second processed image, and a rotation processing operation is performed on each cropped image block. For example: the image block of the non-face area of ​​the second processed image (i.e., the cropped image block) is randomly cropped, and then the image block is rotated. The embodiment of the present invention is not limited to this.

[0154] Optionally, the above-mentioned random filling operation is performed on each second processed image and its corresponding cropped image block according to the preset image filling requirements to obtain a third processed image corresponding to each second processed image. For example: the rotated cropped image block is randomly filled into any position within the face frame marked in the second processed image to obtain the third processed image; further, the size of the filled area shall not exceed the preset proportion of the face frame area (such as 1 / 2, etc.), so as to achieve diverse random occlusion of faces, which is not limited in the embodiments of the present invention.

[0155] Optionally, the above-mentioned image enhancement operation may include but is not limited to random rotation, scaling, flipping, etc. to increase the diversity and robustness of the data, which is not limited in the embodiment of the present invention.

[0156] Optionally, the above-mentioned corresponding data normalization operation is performed on all fourth processed images to obtain a processed image data set. For example: the pixel values ​​of all fourth processed images are normalized to a certain range to obtain a processed image data set, such as [0, 1] or [-1, 1], etc., to reduce data discreteness, accelerate training convergence, and improve model generalization, which is not limited in the embodiments of the present invention.

[0157] It can be seen that this optional embodiment can obtain a processed image data set by performing image processing operations such as face position labeling operations, face orientation category labeling operations, non-face area cropping operations, cropped image block rotation and random filling operations, and image enhancement operations on the training images, which is conducive to improving the comprehensiveness, diversity and rationality of image processing methods for training images, and thus is conducive to improving the diversity and robustness of training data for face classification models, as well as improving the data discreteness of training data for face classification models, thereby facilitating the subsequent face classification model trained based on image processing results to detect various occluded faces, and is conducive to improving the training convergence rate and model generalization of the face classification model, thereby improving the classification accuracy and reliability of the face classification model.

[0158] In yet another optional embodiment, inputting the video to be classified into a trained and converged face classification model for analysis to obtain a face label classification result may include:

[0159] Perform corresponding frame extraction operations on the video to be classified to obtain one or more image frames;

[0160] Input all image frames into the face detection module in the trained and converged face classification model for analysis to obtain face detection results;

[0161] When the face detection result does not include a face image frame, determining a face label classification result is used to indicate that the image frame of the video to be classified does not have a face;

[0162] When the face detection result includes at least one face image frame and face information corresponding to each face image frame, a face image cropping operation is performed on each face image frame according to the face detection frame coordinate information in each face information to obtain a face cropped image corresponding to each face image frame; a face similarity comparison operation is performed on all face cropped images to obtain a face object quantity result; and a face label classification result is determined according to the face object quantity result, the face orientation result in each face information and the face image ratio.

[0163] Optionally, the above-mentioned corresponding frame extraction operation is performed on the classified video, and the frame extraction interval is not limited, and can be N frames per second, which is set according to actual needs; further, it can be performed through video processing related dependent libraries, such as opencv, ffmpeg libraries, etc., which are not limited in the embodiments of the present invention.

[0164] Optionally, the image frame and the face image frame, for example: the image frame may include a face or may not include a face, and the face image frame must include a face, which is not limited in the embodiment of the present invention.

[0165] Optionally, the face information of the face image frame may include, but is not limited to, face detection frame coordinate information, face orientation result, face image proportion, etc. in the face image frame, and is not limited in this embodiment of the present invention.

[0166] Optionally, the face orientation result in the face information can be understood as the orientation category of each face in the face image frame corresponding to the face information (such as a front-facing lens category, a side-facing lens category, etc.), which is not limited in the embodiment of the present invention.

[0167] Optionally, the facial image proportion in the facial information can be understood as the facial information with the maximum proportion and the facial information with the minimum proportion in the facial image frame corresponding to the facial information, which is not limited in the embodiment of the present invention.

[0168] Optionally, the above-mentioned face image cropping operation is performed on each face image frame according to the face detection frame coordinate information in each face information to obtain a face cropped image corresponding to each face image frame. For example: the face image at the corresponding position in the face image frame is cropped separately to obtain a face cropped image, which is not limited to the embodiments of the present invention.

[0169] Optionally, the above-mentioned face similarity comparison operation is performed on all the cropped face images to obtain the result of the number of face objects. For example: the face features extracted by the face classification model are converted into binary hash codes and then the Hamming distance is calculated; other image feature point matching methods can also be simply used to determine whether it is the same face, and then the number of face objects in each face image frame is obtained, which is not limited in the embodiments of the present invention.

[0170] Further optionally, since the video may be in a split-screen format (i.e. the same picture is divided into three parts, one for the top, middle and bottom or one for the left, middle and right), in this case, it is necessary to perform a similarity comparison on all faces in each frame to remove the number of identical faces; for example, a person's oral promotional picture is presented in a three-part screen format, but it can only be considered that this is one person, and the label is "single person oral broadcast", which is not limited in the embodiments of the present invention.

[0171] It can be seen that this optional embodiment can provide an application method of the face classification model, and obtain the face label classification result of the video to be classified through the face classification model, which is conducive to improving the comprehensiveness and rationality of the application of the face classification model, and then it is conducive to improving the comprehensiveness, integrity and rationality of the method for determining the face label classification result, so as to improve the accuracy and reliability of the determined face label classification result. In addition, determining the face orientation category while detecting the face is conducive to simplifying the subsequent inference logic process of determining the face label classification result, and then it is conducive to improving the efficiency and convenience of determining the face label classification result.

[0172] Embodiment 2

[0173] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of another video tag classification method disclosed in an embodiment of the present invention. Figure 2 The described method may be applied to a video tag classification device, wherein the device may include a server, wherein the server includes a local server or a cloud server, which is not limited in the embodiment of the present invention. Figure 2 As shown, the classification method of a video tag includes the following operations:

[0174] 201. Obtain a training audio data set for training a timbre classification model, wherein the audio content corresponding to the training audio clips in the training audio data set includes multiple character voices.

[0175] Optionally, the above-mentioned acquisition of a training audio data set for training a timbre classification model takes the form of collecting audio data containing voices of different characters to obtain a training audio data set, which is not limited in this embodiment of the present invention.

[0176] 202. Perform a corresponding audio annotation operation on each training audio segment to obtain a first processed audio segment corresponding to each training audio segment, and perform a corresponding audio enhancement operation on each first processed audio segment to obtain a second processed audio segment corresponding to each first processed audio segment.

[0177] Optionally, the purpose of the audio tagging operation is to tell the timbre classification model which character's voice each audio clip corresponds to, which is not limited in this embodiment of the present invention.

[0178] 203. Perform a corresponding feature extraction operation on each second processed audio segment to obtain a training audio feature vector corresponding to each second processed audio segment.

[0179] Optionally, the feature extraction operation may include, but is not limited to, Mel Frequency Cepstral Coefficient (MFCC) or Short Time Fourier Transform (STFT), etc., which is not limited in the embodiment of the present invention.

[0180] 204. According to all the second processed audio clips, all the training audio feature vectors and the training audio data set, corresponding model training and parameter adjustment operations are performed on the preset basic timbre classification model to obtain a timbre classification model with converged training.

[0181] Optionally, the model design content corresponding to the basic timbre classification model, specifically, can use a deep learning model, such as a convolutional neural network (CNN) or a recurrent neural network (RNN), to learn and classify audio features; such as a ResNetSE or CAMPPlus model, and finally use a fully connected layer to perform audio classification on the extracted convolution features; the difference between the model's prediction and annotation is measured by cross entropy loss, which is not limited in the embodiments of the present invention.

[0182] Optionally, the above-mentioned basic timbre classification model is subjected to corresponding model training and parameter adjustment operations based on all second processed audio clips, all training audio feature vectors and training audio data sets to obtain a timbre classification model with converged training. For example: select a suitable training algorithm, such as stochastic gradient descent (SGD) or AdamW optimizer; set a suitable training batch size and number of iterations according to the size of the training data and computing resources; monitor the changes in the training loss value and the accuracy rate on the verification set and other indicators during the training process through the training set and verification set divided in advance to determine whether the model has converged. When the loss value is lower than the set threshold or the accuracy rate of the verification set and other indicators are no longer improved, the model is considered to have been trained and converged, and a timbre classification model with converged training is obtained, which is not limited in the embodiments of the present invention.

[0183] Furthermore, the above-mentioned training set and validation set, specifically, the audio data used in training (i.e., the training set), will undergo data enhancement and then extract audio features, and train the model through audio features and labels; the audio data used in testing (i.e., the validation set) will adopt a batch of new audio data (i.e., not used in training and generally not data enhanced), and then extract audio features, and then input them into the model to obtain prediction results, which is not limited in the embodiments of the present invention; further, the data used in the training set and the validation set are all data that have been normalized, which is not limited in the embodiments of the present invention.

[0184] Optionally, the timbre classification model is used to output an audio object detection result, where the audio object detection result includes a detection result of an audio object identifier corresponding to the audio to be detected and / or a detection result of the number of audio objects.

[0185] 205. Determine the videos to be classified that need to be labeled and classified.

[0186] 206. Input the video to be classified into a trained and converged face classification model for analysis to obtain a face label classification result, and input the video to be classified into a trained and converged timbre classification model for analysis to obtain a timbre label classification result.

[0187] 207. Determine the video label classification result of the video to be classified according to the face label classification result and the voice label classification result.

[0188] In the embodiment of the present invention, for other descriptions of step 201 to step 207, please refer to other detailed descriptions of step 101 to step 103 in embodiment 1, and the embodiment of the present invention will not be repeated here.

[0189] It can be seen that the embodiments of the present invention can provide a video label classification method, which determines the face label classification result and the timbre label classification result of the video to be classified according to the trained converged face classification model and the trained converged timbre classification model, and then obtains the video label classification result of the video to be classified, which is conducive to improving the comprehensiveness and rationality of the method for determining the video label classification result, and is also conducive to improving the diversity and flexibility of the consideration levels (i.e., the face level and the timbre level) for determining the video label classification result, and is further conducive to improving the accuracy and reliability of the determined video label classification result, thereby helping to improve the classification accuracy and classification reliability of the video label, and is also conducive to improving the classification efficiency and classification convenience of the video label; and, it can also provide a training convergence method for the timbre classification model, which is conducive to the training convergence method for the timbre classification model. The training audio clips are subjected to audio annotation operations, audio enhancement operations and feature extraction operations to obtain training audio feature vectors, and then the timbre classification model is trained through the determined training data. The timbre classification model that has converged in training can output the detection results of the audio object identification and / or the number of audio objects, which is conducive to improving the comprehensiveness and rationality of the timbre classification model training method, and is also conducive to improving the comprehensiveness, diversity and pertinence of the training data used to train the timbre classification model, and is thus conducive to improving the training convergence accuracy, reliability and timeliness of the timbre classification model. In addition, it is also conducive to improving the diversity and flexibility of the types of timbre detection results (i.e., audio object identification, number of audio objects) that the timbre classification model can output, and is thus conducive to improving the applicability and intelligence of the timbre classification model.

[0190] In an optional embodiment, performing the corresponding audio annotation operation on each training audio segment to obtain the first processed audio segment corresponding to each training audio segment may include:

[0191] According to each training audio segment, determining one or more audio character objects present in all training audio segments, and determining a unique object label for each audio character object;

[0192] Based on the voice activity detection module in the timbre classification model, performing vocal segment extraction and cutting operations on each training audio segment to obtain a training vocal segment corresponding to each training audio segment;

[0193] According to the exclusive object label of each audio character object, a corresponding labeling operation is performed on each training vocal segment to obtain a first processed audio segment corresponding to each training vocal segment.

[0194] Optionally, the above-mentioned determination of the exclusive object tag for each audio character object is illustrated by, for example, assigning a unique identifier or tag (ie, an exclusive object tag) to each different character, which is not limited in the embodiment of the present invention.

[0195] Optionally, the above-mentioned vocal segment extraction and cutting operations are performed on each training audio segment to obtain a training vocal segment corresponding to each training audio segment. For example: the segment containing vocals in the training audio segment is extracted and cut out to obtain the speaking segment corresponding to each person (i.e., the training vocal segment). This embodiment of the present invention is not limited to this.

[0196] Optionally, the above-mentioned corresponding labeling operation is performed on each training vocal segment according to the exclusive object label of each audio character object. For example, the training vocal segment is labeled with a label corresponding to the speaker, which is not limited in this embodiment of the present invention.

[0197] It can be seen that this optional embodiment can obtain the first processed audio segment by setting an exclusive object label for the audio character object and performing a labeling operation on the training vocal segment, which is conducive to improving the comprehensiveness and rationality of the audio labeling method of the training audio segment, and further helps to improve the accuracy, rationality and reliability of the audio labeling of the training audio segment, thereby helping to improve the subsequent timbre classification model training based on the first processed audio segment. The convergence accuracy and application accuracy.

[0198] In another optional embodiment, performing the corresponding audio enhancement operation on each first processed audio segment to obtain a second processed audio segment corresponding to each first processed audio segment may include:

[0199] Determining an additional audio clip for audio enhancement, where the additional audio clip meets a preset requirement that the audio content has no voice;

[0200] According to the additional audio segment and the preset audio preprocessing method type, performing a corresponding audio preprocessing operation on each first processed audio segment to obtain a preprocessed audio segment corresponding to each first processed audio segment;

[0201] According to the additional audio segment and the audio duration of each pre-processed audio segment, a corresponding segment repair operation is performed on each pre-processed audio segment to obtain a second processed audio segment corresponding to each pre-processed audio segment.

[0202] Optionally, the additional audio clips for audio enhancement are determined as follows: for example, a batch of audio clips of pure background music without human voice (ie, additional audio clips) are prepared, which is not limited in this embodiment of the present invention.

[0203] Optionally, the above-mentioned corresponding audio preprocessing operations are performed on each first processed audio segment. For example, each audio segment containing human voice (i.e., the first processed audio segment) is subjected to preprocessing operations such as noise reduction and enhancement, such as human voice enhancement, attenuation, and addition of background music, so as to improve audio quality and diversity, which is not limited to the embodiments of the present invention.

[0204] Optionally, the above-mentioned corresponding segment repair operation is performed on each preprocessed audio segment. For example, a longer preprocessed audio segment is divided into shorter segments, for example, all preprocessed audio segments with a duration greater than 3 seconds are cut to 3 seconds, preprocessed audio segments less than 1 second are directly discarded, and preprocessed audio segments of 1 to 3 seconds are supplemented to 3 seconds by splicing the above-mentioned pure background audio segments (i.e., additional audio segments) to facilitate model learning and processing, which is not limited in the embodiments of the present invention.

[0205] It can be seen that this optional embodiment can obtain the second processed audio segment by performing audio preprocessing operations and segment repair operations on the first processed audio segment, which is beneficial to improving the comprehensiveness and rationality of the audio enhancement operation of the training audio segment, and further helps to improve the audio quality and diversity of the training audio used to train the timbre classification model. In addition, unifying the audio duration of the training audio is beneficial to improving the convenience of learning and processing the timbre classification model and thus improving the training efficiency.

[0206] In another optional embodiment, the timbre classification model includes a voice activity detection module and an audio convolution feature extraction module; further optionally, the above-mentioned inputting the video to be classified into the trained and converged timbre classification model for analysis to obtain the timbre label classification result may include:

[0207] Input the video to be classified into the voice activity detection module for analysis to obtain the voice activity detection result;

[0208] When the voice activity detection result does not include a human voice audio segment, determining a timbre label classification result is used to indicate that the audio segment of the video to be classified does not have a human voice;

[0209] When the voice activity detection result includes one or more human voice audio clips, each human voice audio clip is input into the audio convolution feature extraction module for analysis to obtain the first audio convolution feature corresponding to each human voice audio clip; according to a preset hash coding determination method, the hash coding result of each first audio convolution feature is determined, and according to all the first audio convolution features and their hash coding results, the Hamming distance result corresponding to each two first audio convolution features is calculated; according to all the Hamming distance results, the number of audio objects of the video to be classified is determined; according to the audio object number result, the timbre label classification result is determined.

[0210] Optionally, the above-mentioned hash coding result of each first audio convolution feature is determined according to a preset hash coding determination method. For example: the first audio convolution feature is converted into a binary hash code to obtain a hash coding result; further, the part of the feature value greater than 0 can be changed to 1, and the part less than 0 can be changed to 0. At this time, a string of binary codes is obtained, which is not limited to the embodiment of the present invention.

[0211] Optionally, the above method determines the number of audio objects of the video to be classified based on all Hamming distance results. For example, for each Hamming distance result, when the distance value of the Hamming distance result is less than or equal to a preset Hamming distance threshold, it is determined that the speakers of the two human voice audio clips corresponding to the Hamming distance result are the same, and then the number of speakers corresponding to all human voice audio clips is determined to obtain the audio object number result, which is not limited in this embodiment of the present invention.

[0212] It can be seen that this optional embodiment can provide an application method of the timbre classification model, and obtain the timbre label classification result of the video to be classified through the voice activity detection module and the audio convolution feature extraction module included in the timbre classification model, which is conducive to improving the comprehensiveness and rationality of the application of the timbre classification model, and then it is conducive to improving the comprehensiveness, integrity and rationality of the method for determining the timbre label classification result, so as to improve the accuracy and reliability of the determined timbre label classification result, and also provide a detection method for the number of audio objects, which is conducive to improving the comprehensiveness, rationality, intelligence and applicability of the audio object number detection method, and then it is conducive to improving the accuracy and reliability of the determined audio object number results.

[0213] In yet another optional embodiment, determining the video label classification result of the video to be classified based on the face label classification result and the timbre label classification result may include:

[0214] According to the face label classification results, determine the number and proportion of faces in the video to be classified, and according to the timbre label classification results, determine the audio status results of the video to be classified;

[0215] Determine the video label classification result of the video to be classified based on the number and proportion of faces and the audio status results;

[0216] Among them, the video label classification results include one or more of the following: interpretation display label results, oral display label results, pure product display label results and other custom label results.

[0217] Optionally, the interpretation and display tags may include but are not limited to single-player plot interpretation tags, multi-player plot interpretation tags, etc., which are not limited in the embodiments of the present invention.

[0218] Optionally, the oral presentation tag may include, but is not limited to, an oral presentation tag, a single-person oral presentation tag, a multi-person oral presentation tag, etc., which is not limited in the embodiment of the present invention.

[0219] Optionally, the pure product display label results may include but are not limited to pure music display labels, non-pure music display labels, etc.; further, non-pure music display labels can be understood as having human voice but the human voice and human face do not match, which is not limited in the embodiment of the present invention.

[0220] Optionally, a pure product display tag can be understood as a product display without oral broadcast tag, which is not limited in the embodiment of the present invention.

[0221] Further optionally, the above-mentioned determining the video label classification result of the video to be classified according to the number and proportion of faces and the audio status result may include:

[0222] When the number and proportion of faces are used to indicate that the video to be classified has at least two image frames that meet the preset requirement of the number of multiple faces, or when the number and proportion of faces are used to indicate that the video to be classified has at least two image frames that meet the preset requirement of the proportion of faces, it is determined that the video label classification result of the video to be classified is a deductive display label;

[0223] When the face quantity and proportion results are used to indicate that all image frames of the video to be classified meet the preset single face similarity requirements and face facing direction requirements, and the audio status results are used to indicate that the audio clip of the video to be classified meets the preset single voice requirement, it is determined that the video label classification result of the video to be classified is a spoken presentation label, wherein the spoken presentation label is specifically a single person spoken presentation label;

[0224] When the face quantity and proportion results are used to indicate that all image frames of the video to be classified meet the preset multi-face similarity requirements and the face facing direction requirements, and the audio status results are used to indicate that the audio clip of the video to be classified meets the preset multi-voice requirements, it is determined that the video label classification result of the video to be classified is a spoken presentation label, wherein the spoken presentation label is specifically a multi-person spoken presentation label;

[0225] When the face quantity and proportion results are used to indicate that each image frame of the video to be classified meets the preset no-face requirement, and the audio status results are used to indicate that the audio segment of the video to be classified meets the preset first sound type requirement, it is determined that the video label classification result of the video to be classified is a spoken presentation label, wherein the spoken presentation label is specifically a spoken presentation label;

[0226] When the face quantity and proportion results are used to indicate that each image frame of the video to be classified meets the preset no-face requirement, and the audio status results are used to indicate that the audio clip of the video to be classified meets the preset second sound type requirement, it is determined that the video label classification result of the video to be classified is a pure commodity display label result, wherein the pure commodity display label result is specifically a pure music display label;

[0227] When the results of the number and proportion of faces are used to indicate that all image frames of the video to be classified meet the preset face requirements, and the audio status results are used to indicate that the audio clips of the video to be classified meet the preset voice requirements, and the video to be classified does not meet the preset face and voice matching requirements, it is determined that the video label classification result of the video to be classified is a pure product display label result, wherein the pure product display label result is specifically a non-pure music display label.

[0228] Optionally, the timbre corresponding to the person in the video to be classified needs to exist in the training data of the timbre classification model, that is, the model "recognizes" the voice of this person, such as the timbre recognition of a star. When the voice of the star in the video is inconsistent with the voice in the audio, it is considered that the star is not speaking and only narration exists. This embodiment of the present invention is not limited to this.

[0229] Optionally, there are at least two image frames in the video to be classified that meet a preset requirement on the number of multiple faces. For example, multiple frames in the video to be classified simultaneously contain multiple faces, which is not limited in the embodiment of the present invention.

[0230] Optionally, there are at least two image frames in the video to be classified that meet a preset face ratio requirement. For example, the proportion of multiple faces in the video to be classified is too small, which is not limited in this embodiment of the present invention.

[0231] Optionally, all image frames of the video to be classified meet preset single face similarity requirements and face facing orientation requirements. For example, each frame of the video to be classified has only one face and the face is facing the camera directly. This embodiment of the present invention does not limit this.

[0232] Optionally, the audio segment of the video to be classified satisfies a preset single voice requirement. For example, the audio segment of the video to be classified has only one human voice, which is not limited in this embodiment of the present invention.

[0233] Optionally, all image frames of the video to be classified meet the preset multi-face similarity requirements and face facing direction requirements. For example, each frame of the video to be classified has only the same two or more faces and the directions of these faces are all facing the camera. This embodiment of the present invention is not limited.

[0234] Optionally, the audio segment of the video to be classified satisfies a preset multi-voice requirement. For example, the audio segment of the video to be classified contains multiple human voices, which is not limited in this embodiment of the present invention.

[0235] Optionally, each image frame of the video to be classified satisfies a preset requirement of no human face. For example, the video to be classified has no human face, which is not limited in this embodiment of the present invention.

[0236] Optionally, the audio segment of the video to be classified satisfies a preset first sound type requirement. For example, the audio segment of the video to be classified contains human voice, which is not limited in this embodiment of the present invention.

[0237] Optionally, the audio clip of the video to be classified satisfies a preset second sound type requirement. For example, the video to be classified has no human voice but only pure background music, which is not limited in this embodiment of the present invention.

[0238] Optionally, all image frames of the video to be classified meet the preset requirement of having a face. For example, the video to be classified has a face, which is not limited in the embodiment of the present invention.

[0239] Optionally, the audio clip of the video to be classified satisfies a preset requirement of having a human voice. For example, the video to be classified has a human voice, which is not limited in this embodiment of the present invention.

[0240] Optionally, the video to be classified does not meet the preset face and voice matching requirement. For example, the voice in the video to be classified does not belong to the face in the video to be classified, which is not limited in this embodiment of the present invention.

[0241] It can be seen that this optional embodiment can determine the video label classification results of the video to be classified according to the specific number and proportion of faces and the audio status results, which is conducive to improving the comprehensiveness and rationality of the method for determining the video label classification results. In addition, it can also set exclusive video label classification rules for the split-screen advertising format, number of faces, etc. in actual business, which is conducive to coping with existing video split-screen situations, and further helps to improve the accuracy and reliability of the determined video label classification results.

[0242] In yet another optional embodiment, the method may further include the following operations:

[0243] When the audio to be identified needs to be identified as an audio object, a corresponding feature extraction operation is performed on the audio to be identified according to the audio feature type requirements of the preset timbre classification model to obtain an application audio vector result;

[0244] The audio vector result is input into the timbre classification model to perform object recognition operation, and the audio object identification result corresponding to the audio to be recognized is obtained.

[0245] Optionally, the above-mentioned corresponding feature extraction operation is performed on the audio to be identified according to the audio feature type requirements of the preset timbre classification model. It can be understood that: the extracted feature type and feature extraction method of the audio to be identified need to be consistent with the feature type and feature extraction method when the timbre classification model is trained. For example, if the mfcc feature type is used in the timbre classification model training, then the mfcc feature type must also be used when the timbre classification model is applied. This is not limited in the embodiments of the present invention.

[0246] Optionally, the above-mentioned application audio vector result is input into the timbre classification model to perform object recognition operation to obtain the audio object identification result corresponding to the audio to be identified. For example: the timbre classification model will extract and classify the convolution features of the application audio vector result, and finally output the identification corresponding to the speaker, which is not limited in the embodiment of the present invention.

[0247] It can be seen that this optional embodiment can provide a method for determining audio object identification applied to the timbre classification model, which is conducive to improving the comprehensiveness and diversity of the application fields of the timbre classification model, and further conducive to improving the applicability and intelligence of the timbre classification model, as well as conducive to improving the pertinence and rationality of the method for determining audio object identification.

[0248] In another optional embodiment, the timbre classification model includes an audio convolution feature extraction module and a classification layer; further optionally, the above-mentioned application of the audio vector result is input into the timbre classification model for object recognition operation to obtain the audio object identification result corresponding to the audio to be recognized, including:

[0249] Input the applied audio vector result into the audio convolution feature extraction module for analysis to obtain a second audio convolution feature;

[0250] Inputting the second audio convolution feature into the classification layer for analysis to obtain a classification score for each training audio object category corresponding to the timbre classification model;

[0251] Determining, from all training audio object categories, a target training audio object category that meets a preset category screening condition according to the classification score of each training audio object category;

[0252] Determine the category identifier of the target training audio object category as the audio object identification result corresponding to the audio to be recognized;

[0253] Among them, the training audio object category corresponding to the timbre classification model includes the real audio object category of the audio to be identified.

[0254] Optionally, the second audio convolution feature is input into the classification layer for analysis to obtain a classification score for each training audio object category corresponding to the timbre classification model. For example, the timbre classification model is trained with 10 speakers. During testing, the second audio convolution feature is input into the classification layer to obtain the classification scores of the 10 speakers. The speaker corresponding to the highest classification score is considered to be the audio speaker predicted by the model. This is not limited in this embodiment of the present invention.

[0255] Optionally, the above-mentioned determination of the target training audio object category that meets the preset category screening condition from all training audio object categories may be determination of the target training audio object category with the highest classification score from all training audio object categories, or may be determination of the target training audio object category with a classification score greater than or equal to a preset classification score threshold from all training audio object categories, and the embodiments of the present invention are not limited thereto.

[0256] Optionally, the training audio object category corresponding to the above-mentioned timbre classification model includes the real audio object category of the audio to be recognized, which can be understood as: requiring the real speaker corresponding to the audio to be recognized to exist in the training database of the timbre classification model, which is not limited in the embodiment of the present invention.

[0257] It can be seen that this optional embodiment can provide a specific method for determining audio object identification results, which is conducive to improving the comprehensiveness and integrity of the method for determining audio object identification results, and further conducive to improving the accuracy and reliability of the determined audio object identification results, thereby helping to improve the intelligence and applicability of audio object category recognition of the timbre classification model.

[0258] Embodiment 3

[0259] See also Figure 3 , Figure 3 : is a schematic diagram of a video tag classification device disclosed in an embodiment of the present invention. Figure 3 The described device may include a server, wherein the server includes a local server or a cloud server, which is not limited in the embodiment of the present invention. Figure 3 As shown, the video tag classification device may include:

[0260] The video determination module 301 is used to determine the videos to be classified that need to be labeled.

[0261] The face label determination module 302 is used to input the video to be classified into the trained and converged face classification model for analysis to obtain the face label classification result.

[0262] The timbre label determination module 303 is used to input the video to be classified into the trained and converged timbre classification model for analysis to obtain the timbre label classification result.

[0263] The video label determination module 304 is used to determine the video label classification result of the video to be classified according to the face label classification result and the voice label classification result.

[0264] It can be seen that the implementation Figure 3 The described video label classification device can provide a video label classification method, which determines the face label classification result and the timbre label classification result of the video to be classified according to the trained converged face classification model and the trained converged timbre classification model, and then obtains the video label classification result of the video to be classified, which is conducive to improving the comprehensiveness and rationality of the video label classification result determination method, and is also conducive to improving the diversity and flexibility of the consideration levels (i.e., face level, timbre level) for determining the video label classification result, and is further conducive to improving the accuracy and reliability of the determined video label classification results, thereby helping to improve the classification accuracy and classification reliability of video labels, and is also conducive to improving the classification efficiency and classification convenience of video labels.

[0265] In an optional embodiment, if Figure 4 As shown, the device may also include:

[0266] The first model training module 305 is used to input the video to be classified into the trained and converged face classification model for analysis in the face label determination module 302, and before obtaining the face label classification result, obtain a training image data set for training the face classification model, and the image content corresponding to the training image in the training image data set includes face content; perform corresponding image processing operations on each training image to obtain a processed image data set; according to the processed image data set and the training image data set, perform corresponding model training and parameter adjustment operations on the preset basic face classification model to obtain a trained and converged face classification model; wherein the face classification model is used to output face detection results, and the face detection results include the detection results of the face position corresponding to the image to be detected and / or the detection results of the face orientation category.

[0267] It can be seen that the implementation Figure 4 The described device can provide a face classification model training convergence method, perform corresponding image processing operations on training images, and train the face classification model according to the processed image data set and the training image data set. The trained converged face classification model can output face position detection results and face orientation category detection results, which is conducive to improving the comprehensiveness and rationality of the face classification model training method, and is also conducive to improving the comprehensiveness, diversity and pertinence of the training data (i.e., the processed image data set and the training image data set) used to train the face classification model, thereby helping to improve the training convergence accuracy, reliability and timeliness of the face classification model. In addition, it is also conducive to improving the diversity and flexibility of the types of face detection results (i.e., face position, face orientation category) that can be output by the face classification model, thereby helping to improve the applicability and intelligence of the face classification model.

[0268] In another optional embodiment, the first model training module 305 performs corresponding image processing operations on each training image, and the method of obtaining the processed image data set specifically includes:

[0269] Performing a face position labeling operation on each training image to obtain a first processed image corresponding to each training image, and performing a face orientation category labeling operation on each first processed image to obtain a second processed image corresponding to each first processed image;

[0270] Performing a random cropping operation on the non-face area in each second processed image to obtain a cropped image block corresponding to each second processed image, and performing a rotation processing operation on each cropped image block;

[0271] According to a preset image filling requirement, a random filling operation is performed on each second processed image and its corresponding cropped image block to obtain a third processed image corresponding to each second processed image;

[0272] Performing a corresponding image enhancement operation on each third processed image to obtain a fourth processed image corresponding to each third processed image;

[0273] A corresponding data normalization operation is performed on all fourth processed images to obtain a processed image data set.

[0274] It can be seen that the implementation Figure 4 The described device can also obtain a processed image data set by performing image processing operations such as face position labeling operations, face orientation category labeling operations, non-face area cropping operations, cropped image block rotation and random filling operations, image enhancement operations, etc. on the training images, which is conducive to improving the comprehensiveness, diversity and rationality of the image processing methods for the training images, and thus is conducive to improving the diversity and robustness of the training data of the face classification model, and is also conducive to improving the data discreteness of the training data of the face classification model, so that the face classification model trained based on the image processing results can detect various occluded faces, which is conducive to improving the training convergence rate and model generalization of the face classification model, thereby improving the classification accuracy and reliability of the face classification model.

[0275] In yet another optional embodiment, Figure 4 As shown, the device may also include:

[0276] The second model training module 306 is used to input the video to be classified into the trained and converged timbre classification model for analysis in the timbre label determination module, and obtain a training audio data set for training the timbre classification model before obtaining the timbre label classification result, wherein the audio content corresponding to the training audio clips in the training audio data set includes multiple character voices;

[0277] Performing a corresponding audio annotation operation on each training audio segment to obtain a first processed audio segment corresponding to each training audio segment, and performing a corresponding audio enhancement operation on each first processed audio segment to obtain a second processed audio segment corresponding to each first processed audio segment;

[0278] Performing a corresponding feature extraction operation on each second processed audio segment to obtain a training audio feature vector corresponding to each second processed audio segment;

[0279] According to all the second processed audio clips, all the training audio feature vectors and the training audio data set, the preset basic timbre classification model is subjected to corresponding model training and parameter adjustment operations to obtain a timbre classification model with converged training;

[0280] Among them, the timbre classification model is used to output the audio object detection result, and the audio object detection result includes the detection result of the audio object identifier corresponding to the audio to be detected and / or the detection result of the number of audio objects.

[0281] It can be seen that the implementation Figure 4 The described device can also provide a training convergence method for the timbre classification model, perform audio labeling operations, audio enhancement operations and feature extraction operations on the training audio clips to obtain training audio feature vectors, and then train the timbre classification model through the determined training data. The timbre classification model that has been trained and converged can output the detection results of the audio object identification and / or the number of audio objects, which is conducive to improving the comprehensiveness and rationality of the timbre classification model training method, and is also conducive to improving the comprehensiveness, diversity and pertinence of the training data used to train the timbre classification model, and is further conducive to improving the training convergence accuracy, reliability and timeliness of the timbre classification model. In addition, it is also conducive to improving the diversity and flexibility of the types of timbre detection results (i.e., audio object identification, audio object number) that the timbre classification model can output, and is further conducive to improving the applicability and intelligence of the timbre classification model.

[0282] In yet another optional embodiment, the second model training module 306 performs a corresponding audio annotation operation on each training audio segment to obtain a first processed audio segment corresponding to each training audio segment, specifically including:

[0283] According to each training audio segment, determining one or more audio character objects present in all training audio segments, and determining a unique object label for each audio character object;

[0284] Based on the voice activity detection module in the timbre classification model, performing vocal segment extraction and cutting operations on each training audio segment to obtain a training vocal segment corresponding to each training audio segment;

[0285] According to the exclusive object label of each audio character object, a corresponding labeling operation is performed on each training vocal segment to obtain a first processed audio segment corresponding to each training vocal segment.

[0286] It can be seen that the implementation Figure 4 The described device can also obtain a first processed audio segment by setting an exclusive object label for the audio character object and performing a labeling operation on the training vocal segment, which is conducive to improving the comprehensiveness and rationality of the audio labeling method of the training audio segment, and further conducive to improving the accuracy, rationality and reliability of the audio labeling of the training audio segment, thereby facilitating improving the subsequent convergence accuracy and application accuracy of the timbre classification model training based on the first processed audio segment.

[0287] In another optional embodiment, the second model training module 306 performs a corresponding audio enhancement operation on each first processed audio segment to obtain a second processed audio segment corresponding to each first processed audio segment, specifically including:

[0288] Determining an additional audio clip for audio enhancement, where the additional audio clip meets a preset requirement that the audio content has no voice;

[0289] According to the additional audio segment and the preset audio preprocessing method type, performing a corresponding audio preprocessing operation on each first processed audio segment to obtain a preprocessed audio segment corresponding to each first processed audio segment;

[0290] According to the additional audio segment and the audio duration of each pre-processed audio segment, a corresponding segment repair operation is performed on each pre-processed audio segment to obtain a second processed audio segment corresponding to each pre-processed audio segment.

[0291] It can be seen that the implementation Figure 4 The described device can also obtain a second processed audio segment by performing audio preprocessing operations and segment repair operations on the first processed audio segment, which is conducive to improving the comprehensiveness and rationality of the audio enhancement operation of the training audio segment, and thus is conducive to improving the audio quality and diversity of the training audio used to train the timbre classification model. In addition, unifying the audio duration of the training audio is conducive to improving the convenience of learning and processing of the timbre classification model and thus improving the training efficiency.

[0292] In another optional embodiment, the timbre classification model includes a voice activity detection module and an audio convolution feature extraction module; and the timbre label determination module 303 inputs the video to be classified into the trained and converged timbre classification model for analysis, and the method of obtaining the timbre label classification result specifically includes:

[0293] Input the video to be classified into the voice activity detection module for analysis to obtain the voice activity detection result;

[0294] When the voice activity detection result does not include a human voice audio segment, determining a timbre label classification result is used to indicate that the audio segment of the video to be classified does not have a human voice;

[0295] When the voice activity detection result includes one or more human voice audio clips, each human voice audio clip is input into the audio convolution feature extraction module for analysis to obtain the first audio convolution feature corresponding to each human voice audio clip; according to a preset hash coding determination method, the hash coding result of each first audio convolution feature is determined, and according to all the first audio convolution features and their hash coding results, the Hamming distance result corresponding to each two first audio convolution features is calculated; according to all the Hamming distance results, the number of audio objects of the video to be classified is determined; according to the audio object number result, the timbre label classification result is determined.

[0296] It can be seen that the implementation Figure 4The described device can also provide an application method of the timbre classification model, and obtain the timbre label classification result of the video to be classified through the voice activity detection module and the audio convolution feature extraction module included in the timbre classification model, which is conducive to improving the comprehensiveness and rationality of the application of the timbre classification model, and then it is conducive to improving the comprehensiveness, integrity and rationality of the method for determining the timbre label classification result, so as to improve the accuracy and reliability of the determined timbre label classification result, and also provide a detection method for the number of audio objects, which is conducive to improving the comprehensiveness, rationality, intelligence and applicability of the audio object number detection method, and then it is conducive to improving the accuracy and reliability of the determined audio object number result.

[0297] In another optional embodiment, the face label determination module 302 inputs the video to be classified into the trained and converged face classification model for analysis, and the method of obtaining the face label classification result specifically includes:

[0298] Perform corresponding frame extraction operations on the video to be classified to obtain one or more image frames;

[0299] Input all image frames into the face detection module in the trained and converged face classification model for analysis to obtain face detection results;

[0300] When the face detection result does not include a face image frame, determining a face label classification result is used to indicate that the image frame of the video to be classified does not have a face;

[0301] When the face detection result includes at least one face image frame and face information corresponding to each face image frame, a face image cropping operation is performed on each face image frame according to the face detection frame coordinate information in each face information to obtain a face cropped image corresponding to each face image frame; a face similarity comparison operation is performed on all face cropped images to obtain a face object quantity result; and a face label classification result is determined according to the face object quantity result, the face orientation result in each face information and the face image ratio.

[0302] It can be seen that the implementation Figure 4 The described device can also provide an application method of the face classification model, and obtain the face label classification result of the video to be classified through the face classification model, which is conducive to improving the comprehensiveness and rationality of the application of the face classification model, and then it is conducive to improving the comprehensiveness, integrity and rationality of the method for determining the face label classification result, so as to improve the accuracy and reliability of the determined face label classification result. In addition, the face orientation category is determined while detecting the face, which is conducive to simplifying the subsequent inference logic process of determining the face label classification result, and then it is conducive to improving the efficiency and convenience of determining the face label classification result.

[0303] In another optional embodiment, the video tag determination module 304 determines the video tag classification result of the video to be classified according to the face tag classification result and the timbre tag classification result, specifically including:

[0304] According to the face label classification results, determine the number and proportion of faces in the video to be classified, and according to the timbre label classification results, determine the audio status results of the video to be classified;

[0305] Determine the video label classification result of the video to be classified based on the number and proportion of faces and the audio status results;

[0306] Among them, the video label classification results include one or more of the following: interpretation display label results, oral display label results, pure product display label results and other custom label results.

[0307] It can be seen that the implementation Figure 4 The described device can also determine the video label classification results of the video to be classified based on the specific number and proportion of faces and the audio status results, which is conducive to improving the comprehensiveness and rationality of the method for determining the video label classification results. In addition, it can also set exclusive video label classification rules according to the split-screen advertising format, number of faces, etc. in actual business, which is conducive to coping with existing video split-screen situations, and further conducive to improving the accuracy and reliability of the determined video label classification results.

[0308] In yet another optional embodiment, Figure 4 As shown, the device may also include:

[0309] The audio object determination module 307 is used to perform corresponding feature extraction operations on the audio to be identified when audio object identification is required, according to the audio feature type requirements of the preset timbre classification model, to obtain an application audio vector result; the application audio vector result is input into the timbre classification model to perform object recognition operations, and obtain an audio object identification result corresponding to the audio to be identified.

[0310] It can be seen that the implementation Figure 4 The described device can also provide a method for determining audio object identification applied to the timbre classification model, which is conducive to improving the comprehensiveness and diversity of the application fields of the timbre classification model, and further conducive to improving the applicability and intelligence of the timbre classification model, as well as improving the pertinence and rationality of the method for determining audio object identification.

[0311] In another optional embodiment, the timbre classification model includes an audio convolution feature extraction module and a classification layer; and the audio object determination module 307 inputs the application audio vector result into the timbre classification model to perform an object recognition operation, and the method of obtaining the audio object identification result corresponding to the audio to be recognized specifically includes:

[0312] Input the applied audio vector result into the audio convolution feature extraction module for analysis to obtain a second audio convolution feature;

[0313] Inputting the second audio convolution feature into the classification layer for analysis to obtain a classification score for each training audio object category corresponding to the timbre classification model;

[0314] Determining, from all training audio object categories, a target training audio object category that meets a preset category screening condition according to the classification score of each training audio object category;

[0315] Determine the category identifier of the target training audio object category as the audio object identification result corresponding to the audio to be recognized;

[0316] Among them, the training audio object category corresponding to the timbre classification model includes the real audio object category of the audio to be identified.

[0317] It can be seen that the implementation Figure 4 The described device can also provide a specific method for determining audio object identification results, which is conducive to improving the comprehensiveness and integrity of the method for determining audio object identification results, and further conducive to improving the accuracy and reliability of the determined audio object identification results, thereby facilitating improving the intelligence and applicability of audio object category recognition of the timbre classification model.

[0318] Embodiment 4

[0319] See also Figure 5 , Figure 5 is a structural diagram of another video tag classification device disclosed in an embodiment of the present invention. Figure 5 The described device may include a server, wherein the server includes a local server or a cloud server, which is not limited in the embodiment of the present invention. Figure 5 As shown, the device may include:

[0320] A memory 401 storing executable program codes;

[0321] a processor 402 coupled to the memory 401;

[0322] Furthermore, it may also include an input interface 403 and an output interface 404 coupled to the processor 402;

[0323] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the video tag classification method described in the first or second embodiment.

[0324] Embodiment 5

[0325] An embodiment of the present invention discloses a computer storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps of a video tag classification method described in the first or second embodiment.

[0326] Embodiment 6

[0327] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in a video tag classification method described in Embodiment 1 or Embodiment 2.

[0328] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0329] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, a magnetic disk storage, a magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0330] Finally, it should be noted that the video tag classification method and device disclosed in the embodiments of the present invention disclose only the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can 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 tag classification method, It is characterized in that The method comprises: Determine the videos to be classified that need to be labeled and classified; Input the video to be classified into a trained and converged face classification model for analysis to obtain a face label classification result, and input the video to be classified into a trained and converged timbre classification model for analysis to obtain a timbre label classification result; The video label classification result of the video to be classified is determined according to the face label classification result and the timbre label classification result.

2. A video tag classification method according to claim 1, It is characterized in that Before inputting the video to be classified into the trained and converged face classification model for analysis to obtain the face label classification result, the method further includes: Acquire a training image data set for training a face classification model, wherein image contents corresponding to training images in the training image data set include face contents; Performing a corresponding image processing operation on each of the training images to obtain a processed image data set; According to the processed image data set and the training image data set, performing corresponding model training and parameter adjustment operations on a preset basic face classification model to obtain a face classification model with converged training; The face classification model is used to output a face detection result, wherein the face detection result includes a detection result of a face position corresponding to the image to be detected and / or a detection result of a face orientation category; And, performing a corresponding image processing operation on each of the training images to obtain a processed image data set includes: Performing a face position labeling operation on each of the training images to obtain a first processed image corresponding to each of the training images, and performing a face orientation category labeling operation on each of the first processed images to obtain a second processed image corresponding to each of the first processed images; Performing a random cropping operation on the non-face area in each of the second processed images to obtain a cropped image block corresponding to each of the second processed images, and performing a rotation processing operation on each of the cropped image blocks; According to a preset image filling requirement, a random filling operation is performed on each of the second processed images and its corresponding cropped image block to obtain a third processed image corresponding to each of the second processed images; Performing a corresponding image enhancement operation on each of the third processed images to obtain a fourth processed image corresponding to each of the third processed images; A corresponding data normalization operation is performed on all the fourth processed images to obtain a processed image data set.

3. A video tag classification method according to claim 1, It is characterized in that Before inputting the video to be classified into the trained and converged timbre classification model for analysis to obtain the timbre label classification result, the method further includes: Acquire a training audio data set for training a timbre classification model, wherein the audio content corresponding to the training audio clips in the training audio data set includes multiple character voices; Performing a corresponding audio annotation operation on each of the training audio segments to obtain a first processed audio segment corresponding to each of the training audio segments, and performing a corresponding audio enhancement operation on each of the first processed audio segments to obtain a second processed audio segment corresponding to each of the first processed audio segments; Performing a corresponding feature extraction operation on each of the second processed audio segments to obtain a training audio feature vector corresponding to each of the second processed audio segments; According to all the second processed audio clips, all the training audio feature vectors and the training audio data set, performing corresponding model training and parameter adjustment operations on the preset basic timbre classification model to obtain a timbre classification model with converged training; The timbre classification model is used to output an audio object detection result, and the audio object detection result includes a detection result of an audio object identifier corresponding to the audio to be detected and / or a detection result of the number of audio objects.

4. A video tag classification method according to claim 3, It is characterized in that The performing a corresponding audio annotation operation on each of the training audio segments to obtain a first processed audio segment corresponding to each of the training audio segments includes: According to each of the training audio segments, determining one or more audio character objects present in all of the training audio segments, and determining a unique object label for each of the audio character objects; Based on the voice activity detection module in the timbre classification model, performing vocal segment extraction and cutting operations on each of the training audio segments to obtain a training vocal segment corresponding to each of the training audio segments; According to the exclusive object label of each audio character object, a corresponding labeling operation is performed on each training vocal segment to obtain a first processed audio segment corresponding to each training vocal segment; And, performing a corresponding audio enhancement operation on each of the first processed audio segments to obtain a second processed audio segment corresponding to each of the first processed audio segments includes: Determining an additional audio segment for audio enhancement, wherein the additional audio segment meets a preset requirement that the audio content has no human voice; According to the additional audio segment and the preset audio preprocessing method type, performing a corresponding audio preprocessing operation on each of the first processed audio segments to obtain a preprocessed audio segment corresponding to each of the first processed audio segments; According to the additional audio segment and the audio duration of each of the pre-processed audio segments, a corresponding segment repair operation is performed on each of the pre-processed audio segments to obtain a second processed audio segment corresponding to each of the pre-processed audio segments.

5. A video tag classification method according to claim 1 or 3, It is characterized in that The timbre classification model includes a voice activity detection module and an audio convolution feature extraction module; And, the video to be classified is input into the trained and converged timbre classification model for analysis to obtain the timbre label classification result, including: Inputting the video to be classified into the voice activity detection module for analysis to obtain a voice activity detection result; When the voice activity detection result does not include a human voice audio segment, determining a timbre label classification result is used to indicate that the audio segment of the video to be classified does not have a human voice; When the voice activity detection result includes one or more human voice audio clips, each of the human voice audio clips is input into the audio convolution feature extraction module for analysis to obtain a first audio convolution feature corresponding to each of the human voice audio clips; according to a preset hash coding determination method, a hash coding result of each of the first audio convolution features is determined, and according to all the first audio convolution features and their hash coding results, a Hamming distance result corresponding to every two of the first audio convolution features is calculated; according to all the Hamming distance results, a result of the number of audio objects of the video to be classified is determined; according to the audio object number result, a timbre label classification result is determined.

6. A video tag classification method according to claim 1 or 2, It is characterized in that The step of inputting the video to be classified into a trained and converged face classification model for analysis to obtain a face label classification result includes: Performing a corresponding frame extraction operation on the video to be classified to obtain one or more image frames; Inputting all the image frames into a face detection module in a trained and converged face classification model for analysis to obtain a face detection result; When the face detection result does not include a face image frame, determining a face label classification result is used to indicate that the image frame of the video to be classified does not have a face; When the face detection result includes at least one face image frame and face information corresponding to each face image frame, a face image cropping operation is performed on each face image frame according to the face detection frame coordinate information in each face information to obtain a face cropped image corresponding to each face image frame; a face similarity comparison operation is performed on all the face cropped images to obtain a face object quantity result; and a face label classification result is determined according to the face object quantity result, the face orientation result in each face information and the face image ratio.

7. A video tag classification method according to any one of claims 1 to 4, It is characterized in that The step of determining the video label classification result of the video to be classified according to the face label classification result and the timbre label classification result includes: Determine the number and proportion of faces in the video to be classified according to the face label classification result, and determine the audio status result of the video to be classified according to the timbre label classification result; Determine the video label classification result of the video to be classified according to the number and proportion of faces and the audio status result; The video tag classification results include one or more of deductive display tag results, oral display tag results, pure commodity display tag results and other custom tag results.

8. A video tag classification method according to claim 3, It is characterized in that The method further comprises: When the audio to be identified needs to be identified as an audio object, a corresponding feature extraction operation is performed on the audio to be identified according to the preset audio feature type requirements of the timbre classification model to obtain an application audio vector result; Inputting the applied audio vector result into the timbre classification model to perform an object recognition operation, and obtaining an audio object identification result corresponding to the audio to be recognized; Wherein, the timbre classification model includes an audio convolution feature extraction module and a classification layer; And, the step of inputting the applied audio vector result into the timbre classification model to perform an object recognition operation to obtain an audio object identification result corresponding to the audio to be recognized includes: Inputting the applied audio vector result into the audio convolution feature extraction module for analysis to obtain a second audio convolution feature; Inputting the second audio convolution feature into the classification layer for analysis to obtain a classification score for each training audio object category corresponding to the timbre classification model; Determining, according to the classification score of each of the training audio object categories, a target training audio object category that meets a preset category screening condition from all the training audio object categories; Determine the category identifier of the target training audio object category as the audio object identification result corresponding to the audio to be recognized; Among them, the training audio object category corresponding to the timbre classification model includes the real audio object category of the audio to be identified.

9. A video tag classification device, It is characterized in that The device comprises: A video determination module is used to determine the videos to be classified that need to be labeled and classified; A face label determination module is used to input the video to be classified into a trained and converged face classification model for analysis to obtain a face label classification result; A timbre label determination module is used to input the video to be classified into a trained and converged timbre classification model for analysis to obtain a timbre label classification result; The video label determination module is used to determine the video label classification result of the video to be classified according to the face label classification result and the timbre label classification result.

10. A video tag classification device, It is characterized in that The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the video tag classification method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Face clustering based video categorization method and retrieval method as well as systems thereof

    CN103530652A

  • Voice frequency feature extraction method and device

    CN108766461A

  • Identity recognition method based on multi-modal information

    CN110674483A

  • Video image frame processing method and device

    CN111695458A

  • Video classification method, device and equipment based on multi-modal representation, and storage medium

    CN113762322A