Video processing method, system and storage medium
Through video frame image segmentation and noise analysis, combining feature heat maps and information entropy to evaluate video quality, and combining speech recognition results to generate special effects, it solves the problems of slow automatic generation and insufficient accuracy of video special effects in the existing technology, and achieves high efficiency. , accurate video special effects processing.
Patent Information
- Application Number
- CN202310780849.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-06-29
AI Technical Summary
Existing video processing technology ignores video quality analysis, resulting in slow automatic generation of video special effects, which cannot meet the needs of automatic editing of large videos. In addition, in emotionally rich situations, facial recognition alone cannot accurately achieve automatic processing of video special effects.
By segmenting the video frame image and analyzing the noise, the noise evaluation amount of the video is determined, and the video quality is evaluated based on the feature heat map and information entropy. If the video quality is qualified, special effects processing is performed; at the same time, the speech recognition results are used to generate flower character special effects. Ensure the accuracy and efficiency of special effects generation.
It effectively avoids low-quality special effects generation due to abnormal noise, improves the accuracy of video quality assessment and the efficiency of special effects generation, and ensures the accuracy and speed of video special effects.
Smart Images

Figure CN118172450B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to a video processing method, system and storage medium. Background Art
[0002] In order to improve the viewing experience of the audience, after the video recording is completed, a lot of manpower and material resources are needed to further edit the video and set video special effects as needed. Therefore, how to realize the intelligence of post-production video production and editing has become a technical problem that needs to be solved urgently.
[0003] Therefore, in order to realize automatic video editing and automatic generation of video special effects, the invention patent "A video special effects superposition method, device, equipment and storage medium" detects factors such as portrait position, wearing information, facial movement information and clothing style information, and can use multi-dimensional feature information to automatically select the best video special effects, while taking into account both facial information and body information. However, there are the following technical problems:
[0004] The analysis of video quality is neglected first. After the video is shot, the quality of the video varies. Therefore, if the automatic generation of video special effects cannot be achieved based on the analysis of the video quality, it will not only slow down the processing speed of the system, but also fail to meet the needs of automatic editing of large videos.
[0005] The generation of video special effects by combining the results of voice recognition has been neglected. For example, in cases with rich emotional impact such as laughing and crying, using only facial recognition will not accurately realize the automatic processing of video special effects.
[0006] In view of the above technical problems, the present invention provides a video processing method, system and storage medium. Summary of the invention
[0007] To achieve the purpose of the present invention, the present invention adopts the following technical solutions:
[0008] According to one aspect of the present invention, a video processing method is provided.
[0009] A video processing method, characterized in that it specifically includes:
[0010] S11: segmenting each frame of the video to be processed to obtain an image to be analyzed, and obtaining a noise abnormality image in the image to be analyzed according to a noise analysis result of the image to be analyzed;
[0011] S12 determines the noise evaluation amount of the video by the number, proportion, and distribution of noise abnormal images in the video, and determines whether the video is an abnormal video by the noise evaluation amount. If so, special effects processing cannot be performed. If not, proceed to step S13;
[0012] S13 uses the image to be analyzed after removing the noise abnormal image as the remaining image, and transmits the remaining image to the CNN model to extract the feature vector, and visualizes the feature vector through the Grad_CAM model to obtain a feature heat map and a feature gradient map, and determines the distorted image through the information entropy of the feature heat map, the information entropy of the feature gradient map and the information entropy of the original image, and determines whether the video is an abnormal video according to the number, proportion, distribution of the distorted image in the video and the noise evaluation amount. If so, special effects processing cannot be performed, and if not, enter step S14;
[0013] S14 uses the image to be analyzed of the noise-removed image and the frame-loss image as a processable image, and obtains a positioning image according to the speech corresponding to the processable image, and generates flower character special effects according to the facial expression recognition result and speech recognition result of the person in the positioning image.
[0014] A further technical solution is that the noise analysis result is obtained by obtaining a processed image to be analyzed by means of mean filtering according to the image to be analyzed, and the noise analysis result is determined according to the image to be analyzed and the processed image to be analyzed.
[0015] A further technical solution is that, when the noise analysis result of the image to be analyzed does not meet the requirement, the image to be analyzed is determined to be a noise abnormality image.
[0016] A further technical solution is that the specific steps of determining the noise evaluation amount of the video are:
[0017] S21 obtains the number of the noise abnormal images, and determines whether the video is an abnormal video according to the number of the noise abnormal images. If so, the video is determined to be an abnormal video. If not, proceed to step S22;
[0018] S22 obtains the ratio of the noise abnormal image in the image to be analyzed, and determines whether the video is an abnormal video according to the ratio of the noise abnormal image. If so, the video is determined to be an abnormal video. If not, proceed to step S23;
[0019] S23 determines whether further analysis is needed based on the ratio of the noise abnormal image, if so, proceeds to step S24, if not, proceeds to step S26;
[0020] S24: Evenly divide the video according to the duration to obtain a front video, a middle video, and a back video, and determine the number of abnormal noise images in the front video and the ratio of the abnormal noise images in the images to be analyzed in the front video, the number of abnormal noise images in the middle video and the ratio of the abnormal noise images in the images to be analyzed in the middle video, and the number of abnormal noise images in the back video and the ratio of the abnormal noise images in the images to be analyzed in the back video according to the distribution of the abnormal noise images in the video;
[0021] S25 determines the distribution uniformity of the abnormal noise images according to the number of the abnormal noise images in the first video and the ratio of the abnormal noise images in the first video to be analyzed, the number of the abnormal noise images in the middle video and the ratio of the abnormal noise images in the middle video to be analyzed, and the number of the abnormal noise images in the second video and the ratio of the abnormal noise images in the second video to be analyzed, and determines whether the video is an abnormal video according to the distribution uniformity. If so, the video is determined to be an abnormal video. If not, proceed to step S26;
[0022] S26 determines the noise evaluation value of the video according to the number and proportion of abnormal noise images in the video and the distribution uniformity of the abnormal noise images.
[0023] A further technical solution is that the noise evaluation value of the video ranges from 0 to 1, wherein the larger the noise evaluation value of the video is, the worse the quality of the video is.
[0024] A further technical solution is that the specific steps of determining the distribution uniformity of the abnormal noise image are:
[0025] S31 determines the noise evaluation value of the previous video by the number of the abnormal noise images in the previous video and the proportion of the abnormal noise images in the image to be analyzed in the previous video, and combines the mean value of the noise analysis results of the image to be analyzed in the previous video, and determines whether the video is an abnormal video by the noise evaluation value of the previous video. If so, the video is determined to be an abnormal video. If not, proceed to step S32;
[0026] S32 determines the noise evaluation value of the middle video by the number of the abnormal noise images in the middle video and the proportion of the images to be analyzed in the middle video, and combines the mean value of the noise analysis results of the images to be analyzed in the middle video, and determines whether the video is an abnormal video by the noise evaluation value of the middle video. If so, the video is determined to be an abnormal video. If not, proceed to step S33;
[0027] S33 determines the noise evaluation value of the subsequent video by the number of the abnormal noise images in the subsequent video and the proportion of the abnormal noise images in the images to be analyzed in the subsequent video, and combines the mean value of the noise analysis results of the images to be analyzed in the subsequent video, and determines whether the video is an abnormal video by the noise evaluation value of the subsequent video. If so, the video is determined to be an abnormal video, and if not, proceeds to step S34;
[0028] S34 determines the distribution uniformity of the abnormal noise image by using the noise evaluation value of the first video segment, the noise evaluation value of the middle video segment, and the noise evaluation value of the last video segment.
[0029] A further technical solution is that when the distribution uniformity of the abnormal noise image is greater than a preset uniformity setting value, and any one of the noise evaluation value of the front video, the noise evaluation value of the middle video, and the noise evaluation value of the back video is greater than a preset noise amount, the video is determined to be an abnormal video.
[0030] A further technical solution is that the method for generating the flower character special effect is:
[0031] The voice text and voice features of the voice corresponding to the processable image are extracted, and the type of flower and word special effects in the processable image is determined according to the voice text and the voice features, and the flower and word special effects are generated based on the type of the flower and word special effects and the facial expression recognition result of the character in the processable image.
[0032] In a second aspect, the present invention provides a computer system comprising: a memory and a processor that are communicatively connected, and a computer program stored in the memory and capable of running on the processor, characterized in that: the processor executes the above-mentioned video processing method when running the computer program.
[0033] In a third aspect, the present invention provides a computer storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the above-mentioned video processing method.
[0034] The beneficial effects of the present invention are:
[0035] The noise evaluation amount of the video is determined by the number, proportion and distribution of noise abnormal images in the video, and whether the video is an abnormal video is determined by the noise evaluation amount, thereby realizing the determination of abnormal videos from the perspective of noise abnormal images, avoiding the generation of flowery special effects for low-quality videos due to problems such as too many noise abnormal images or too concentrated distribution, and also ensuring the quality of the images corresponding to the generation of flowery special effects.
[0036] The distorted image is determined by the information entropy of the feature heat map, the information entropy of the feature gradient map and the information entropy of the original image, so that not only the information entropy of the original image is taken into consideration, but also the information entropy of the core features is determined from the perspectives of the heat map and gradient map of the remaining images, thereby improving the accuracy of the judgment of the distorted image, and by determining whether the video is an abnormal video based on the number, proportion, distribution in the video and the noise evaluation amount of the distorted images, it is achieved from the actual situation and distribution of the distorted images, and at the same time combined with the actual situation of the noise abnormal image to achieve an accurate and comprehensive evaluation of the abnormal video, thereby ensuring the accuracy of the video quality evaluation.
[0037] A positioning image is obtained by identifying the voice corresponding to the processable image, and flower and character special effects are generated based on the facial expression recognition result and the voice recognition result of the character in the positioning image, thereby further reducing the number of images generated by the flower and character special effects, and by determining the positioning image, the efficiency of image special effects generation is further improved.
[0038] Other features and advantages will be described in the following description, and partly become apparent from the description, or understood by practicing the invention. The purpose and other advantages of the invention are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the accompanying drawings;
[0041] Figure 1 is a flow chart of a video processing method according to embodiment 1;
[0042] Figure 2 is a flowchart of specific steps for determining the distribution uniformity of an abnormal noise image according to Example 1;
[0043] Figure 3 is a flowchart of a method for determining a distorted image according to Embodiment 1;
[0044] Figure 4 It is a framework diagram of a computer system according to Example 2. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0046] Example 1
[0047] To solve the above problems, according to one aspect of the present invention, Figure 1 According to one aspect of the present invention, a video processing method is provided, which is characterized by specifically comprising:
[0048] S11: segmenting each frame of the video to be processed to obtain an image to be analyzed, and obtaining a noise abnormality image in the image to be analyzed according to a noise analysis result of the image to be analyzed;
[0049] It should be noted that the noise analysis result is obtained by obtaining the processed image to be analyzed by means of mean filtering according to the image to be analyzed, and the noise analysis result is determined according to the image to be analyzed and the processed image to be analyzed.
[0050] It can be understood that when the noise analysis result of the image to be analyzed does not meet the requirement, the image to be analyzed is determined to be a noise abnormality image.
[0051] S12 determines the noise evaluation amount of the video by the number, proportion, and distribution of noise abnormal images in the video, and determines whether the video is an abnormal video by the noise evaluation amount. If so, special effects processing cannot be performed. If not, proceed to step S13;
[0052] Specifically, the specific steps for determining the noise evaluation amount of the video are:
[0053] S21 obtains the number of the noise abnormal images, and determines whether the video is an abnormal video according to the number of the noise abnormal images. If so, the video is determined to be an abnormal video. If not, proceed to step S22;
[0054] S22 obtains the ratio of the noise abnormal image in the image to be analyzed, and determines whether the video is an abnormal video according to the ratio of the noise abnormal image. If so, the video is determined to be an abnormal video. If not, proceed to step S23;
[0055] S23 determines whether further analysis is needed based on the ratio of the noise abnormal image, if so, proceeds to step S24, if not, proceeds to step S26;
[0056] S24: Evenly divide the video according to the duration to obtain a front video, a middle video, and a back video, and determine the number of abnormal noise images in the front video and the ratio of the abnormal noise images in the images to be analyzed in the front video, the number of abnormal noise images in the middle video and the ratio of the abnormal noise images in the images to be analyzed in the middle video, and the number of abnormal noise images in the back video and the ratio of the abnormal noise images in the images to be analyzed in the back video according to the distribution of the abnormal noise images in the video;
[0057] S25 determines the distribution uniformity of the abnormal noise images according to the number of the abnormal noise images in the first video and the ratio of the abnormal noise images in the first video to be analyzed, the number of the abnormal noise images in the middle video and the ratio of the abnormal noise images in the middle video to be analyzed, and the number of the abnormal noise images in the second video and the ratio of the abnormal noise images in the second video to be analyzed, and determines whether the video is an abnormal video according to the distribution uniformity. If so, the video is determined to be an abnormal video. If not, proceed to step S26;
[0058] S26 determines the noise evaluation value of the video according to the number and proportion of abnormal noise images in the video and the distribution uniformity of the abnormal noise images.
[0059] Furthermore, the noise evaluation value of the video ranges from 0 to 1, wherein the larger the noise evaluation value of the video is, the worse the quality of the video is.
[0060] It should be noted that if Figure 2 As shown, the specific steps for determining the distribution uniformity of the abnormal noise image are:
[0061] S31 determines the noise evaluation value of the previous video by the number of the abnormal noise images in the previous video and the proportion of the abnormal noise images in the image to be analyzed in the previous video, and combines the mean value of the noise analysis results of the image to be analyzed in the previous video, and determines whether the video is an abnormal video by the noise evaluation value of the previous video. If so, the video is determined to be an abnormal video. If not, proceed to step S32;
[0062] S32 determines the noise evaluation value of the middle video by the number of the abnormal noise images in the middle video and the proportion of the images to be analyzed in the middle video, and combines the mean value of the noise analysis results of the images to be analyzed in the middle video, and determines whether the video is an abnormal video by the noise evaluation value of the middle video. If so, the video is determined to be an abnormal video. If not, proceed to step S33;
[0063] S33 determines the noise evaluation value of the subsequent video by the number of the abnormal noise images in the subsequent video and the proportion of the abnormal noise images in the images to be analyzed in the subsequent video, and combines the mean value of the noise analysis results of the images to be analyzed in the subsequent video, and determines whether the video is an abnormal video by the noise evaluation value of the subsequent video. If so, the video is determined to be an abnormal video, and if not, proceeds to step S34;
[0064] S34 determines the distribution uniformity of the abnormal noise image by using the noise evaluation value of the first video segment, the noise evaluation value of the middle video segment, and the noise evaluation value of the last video segment.
[0065] Specifically, when the distribution uniformity of the abnormal noise image is greater than a preset uniformity setting value, and any one of the noise evaluation value of the front video, the noise evaluation value of the middle video, and the noise evaluation value of the back video is greater than a preset noise amount, the video is determined to be an abnormal video.
[0066] In this embodiment, the noise evaluation amount of the video is determined by the number, proportion, and distribution of noise abnormal images in the video, and whether the video is an abnormal video is determined by the noise evaluation amount, thereby realizing the determination of abnormal videos from the perspective of noise abnormal images, avoiding the generation of flowery special effects for low-quality videos due to problems such as too many noise abnormal images or too concentrated distribution, and also ensuring the quality of the images corresponding to the flowery special effects.
[0067] S13 uses the image to be analyzed after removing the noise abnormal image as the remaining image, and transmits the remaining image to the CNN model to extract the feature vector, and visualizes the feature vector through the Grad_CAM model to obtain a feature heat map and a feature gradient map, and determines the distorted image through the information entropy of the feature heat map, the information entropy of the feature gradient map and the information entropy of the original image, and determines whether the video is an abnormal video according to the number, proportion, distribution of the distorted image in the video and the noise evaluation amount. If so, special effects processing cannot be performed, and if not, enter step S14;
[0068] It should be noted that if Figure 3 As shown, the method for determining the distorted image is:
[0069] S41 obtains the information entropy of the original image of the remaining image, and determines whether the remaining image is a suspected distorted image according to the information entropy of the original image, if so, proceeds to step S44, if not, proceeds to step S42;
[0070] S42 obtains the information entropy of the characteristic heat map of the remaining image, and determines whether the remaining image is a suspected distorted image according to the information entropy of the characteristic heat map, if so, proceeds to step S44, if not, proceeds to step S43;
[0071] S43 obtains the information entropy of the feature gradient map of the remaining image, and determines whether the remaining image is a suspected distorted image according to the information entropy of the feature gradient map, if so, proceeds to step S44, if not, determines that the remaining image is not a distorted image;
[0072] S44 determines the comprehensive information entropy of the original image of the suspected distorted image, the information entropy of the feature heat map, and the information entropy of the feature gradient map, and determines the distortion degree of the suspected distorted image through the comprehensive information entropy, spectral characteristics and color depth of the suspected distorted image, and determines whether the suspected distorted image is a distorted image based on the distortion degree.
[0073] Specifically, when any one of the comprehensive information entropy, the spectrum characteristics, and the color depth of the suspected distorted image does not meet the requirements, the suspected distorted image is determined to be a distorted image.
[0074] Specifically, for example, determining whether the video is an abnormal video according to the number, proportion, distribution of the distorted images in the video, and the noise evaluation amount includes:
[0075] S51 takes the distorted image and the abnormal noise image as abnormal images, takes the suspected distorted image as a suspected abnormal image, and determines the video quality evaluation value of the previous video by the number of abnormal images in the previous video and the proportion of the images to be analyzed in the previous video, the number of suspected abnormal images in the previous video and the proportion of the images to be analyzed in the previous video, and combines the mean value of the distortion of the suspected abnormal images in the previous video and the mean value of the noise analysis results of the images to be analyzed, and determines whether the video is an abnormal video by the video quality evaluation value of the previous video. If so, determine that the video is an abnormal video, if not, enter step S52;
[0076] S52: taking the distorted image and the abnormal noise image as abnormal images, taking the suspected distorted image as a suspected abnormal image, and determining the video quality evaluation value of the previous video by the number of abnormal images in the previous video and the proportion of the images to be analyzed in the previous video, the number of suspected abnormal images in the previous video and the proportion of the images to be analyzed in the previous video, and combining the mean value of the distortion of the suspected abnormal images in the previous video and the mean value of the noise analysis results of the images to be analyzed, and determining whether the video is an abnormal video by the video quality evaluation value of the previous video, if so, determining that the video is an abnormal video, if not, proceeding to step S53;
[0077] S53: taking the distorted image and the abnormal noise image as abnormal images, taking the suspected distorted image as a suspected abnormal image, and determining the video quality evaluation value of the previous video by the number of abnormal images in the previous video and the proportion of the images to be analyzed in the previous video, the number of suspected abnormal images in the previous video and the proportion of the images to be analyzed in the previous video, and combining the mean value of the distortion of the suspected abnormal images in the previous video and the mean value of the noise analysis results of the images to be analyzed, and determining whether the video is an abnormal video by the video quality evaluation value of the previous video, if so, determining that the video is an abnormal video, if not, proceeding to step S54;
[0078] S54 determines the video quality assessment value of the video through the video quality assessment value of the front video, the video quality assessment value of the middle video, and the video quality assessment value of the back video, and combines the number and proportion of abnormal images in the video, and the number and proportion of suspected abnormal images, and determines whether the video is an abnormal video through the video quality assessment value.
[0079] In this embodiment, the distorted image is determined by the information entropy of the feature heat map, the information entropy of the feature gradient map and the information entropy of the original image, so that not only the information entropy of the original image is taken into consideration, but also the information entropy of the core features is determined from the perspectives of the heat map and gradient map of the remaining images, thereby improving the accuracy of the judgment of the distorted image, and by determining whether the video is an abnormal video based on the number, proportion, distribution in the video and the noise evaluation amount of the distorted images, it is achieved from the actual situation and distribution of the distorted images, and at the same time combined with the actual situation of the noise abnormal image to achieve an accurate and comprehensive evaluation of the abnormal video, thereby ensuring the accuracy of the video quality evaluation.
[0080] S14 uses the image to be analyzed of the noise-removed image and the frame-loss image as a processable image, and obtains a positioning image according to the speech corresponding to the processable image, and generates flower character special effects according to the facial expression recognition result and speech recognition result of the person in the positioning image.
[0081] It should be noted that the method for generating the flower character special effect is:
[0082] The voice text and voice features of the voice corresponding to the processable image are extracted, and the type of flower and word special effects in the processable image is determined according to the voice text and the voice features, and the flower and word special effects are generated based on the type of the flower and word special effects and the facial expression recognition result of the character in the processable image.
[0083] In this embodiment, a positioning image is obtained by identifying the voice corresponding to the processable image, and flower and character special effects are generated based on the facial expression recognition results and voice recognition results of the person in the positioning image, thereby further reducing the number of images generated by flower and character special effects, and by determining the positioning image, the efficiency of image special effects generation is further improved.
[0084] Example 2
[0085] like Figure 4 As shown, the present invention provides a computer system, comprising: a memory and a processor connected in communication, and a computer program stored in the memory and capable of running on the processor, characterized in that: the processor executes the above-mentioned video processing method when running the computer program.
[0086] Example 3
[0087] The present invention provides a computer storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is enabled to execute the above-mentioned video processing method.
[0088] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0089] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0090] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A video processing method, characterized in that: Specifically include: Segmenting each frame of the video to be processed to obtain an image to be analyzed, and obtaining a noise abnormality image in the image to be analyzed according to a noise analysis result of the image to be analyzed; Determine the noise evaluation amount of the video by the number, proportion, and distribution of noise abnormal images in the video, and determine whether the video is an abnormal video by the noise evaluation amount. If so, special effects processing cannot be performed. If not, proceed to the next step. The image to be analyzed after removing the noise abnormal image is taken as the remaining image, and the remaining image is transmitted to the CNN model to extract the feature vector, and the feature vector is visualized by the Grad_CAM model to obtain the feature heat map and the feature gradient map, and the distorted image is determined by the information entropy of the feature heat map, the information entropy of the feature gradient map and the information entropy of the original image, and whether the video is an abnormal video is determined according to the number, proportion, distribution of the distorted images in the video and the noise evaluation amount. If so, special effects processing cannot be performed, and if not, proceed to the next step; The image to be analyzed of the denoised image and the frame-dropped image is taken as a processable image, and the positioning image is obtained by recognizing the voice corresponding to the processable image, and the flower character special effect is generated according to the facial expression recognition result and the voice recognition result of the person in the positioning image.
2. A video processing method as claimed in claim 1, characterized in that: The noise analysis result is obtained by obtaining a processed image to be analyzed by means of mean filtering according to the image to be analyzed, and the noise analysis result is determined according to the image to be analyzed and the processed image to be analyzed.
3. A video processing method as claimed in claim 1, characterized in that: When the noise analysis result of the image to be analyzed does not meet the requirement, it is determined that the image to be analyzed is a noise abnormality image.
4. A video processing method as claimed in claim 1, characterized in that: The specific steps of determining the noise evaluation amount of the video are: S21 obtains the number of the noise abnormal images, and determines whether the video is an abnormal video according to the number of the noise abnormal images. If so, the video is determined to be an abnormal video. If not, proceed to step S22; S22 obtains the ratio of the noise abnormal image in the image to be analyzed, and determines whether the video is an abnormal video according to the ratio of the noise abnormal image. If so, the video is determined to be an abnormal video. If not, proceed to step S23; S23 determines whether further analysis is needed based on the ratio of the noise abnormal image, if so, proceeds to step S24, if not, proceeds to step S26; S24 divides the video equally according to the duration to obtain a front video, a middle video, and a back video respectively, and determines the number of the noise abnormal images in the front video and the ratio of the noise abnormal images in the images to be analyzed in the front video, the number of the noise abnormal images in the middle video and the ratio of the noise abnormal images in the images to be analyzed in the middle video, and the number of the noise abnormal images in the back video and the ratio of the noise abnormal images in the images to be analyzed in the back video according to the distribution of the noise abnormal images in the video; S25 determines the distribution uniformity of the noise abnormal images according to the number of the noise abnormal images in the first video and the ratio of the images to be analyzed in the first video, the number of the noise abnormal images in the middle video and the ratio of the images to be analyzed in the middle video, and the number of the noise abnormal images in the second video and the ratio of the images to be analyzed in the second video, and determines whether the video is an abnormal video according to the distribution uniformity. If so, the video is determined to be an abnormal video. If not, proceed to step S26; S26 determines the noise evaluation value of the video according to the number and proportion of the noise abnormal images in the video and the distribution uniformity of the noise abnormal images.
5. A video processing method as claimed in claim 4, characterized in that: The noise evaluation value of the video ranges from 0 to 1, wherein the larger the noise evaluation value of the video is, the worse the quality of the video is.
6. A video processing method as claimed in claim 4, characterized in that: The specific steps of determining the distribution uniformity of the noise abnormal image are: Determine the noise evaluation value of the previous video by the number of the noise abnormal images in the previous video and the proportion of the images to be analyzed in the previous video, and combine the mean value of the noise analysis results of the images to be analyzed in the previous video, and determine whether the video is an abnormal video by the noise evaluation value of the previous video, if so, determine that the video is an abnormal video, if not, proceed to the next step; Determine the noise evaluation value of the mid-segment video by the number of the noise abnormal images in the mid-segment video and the proportion of the images to be analyzed in the mid-segment video, and combine the mean value of the noise analysis results of the images to be analyzed in the mid-segment video, and determine whether the video is an abnormal video by the noise evaluation value of the mid-segment video, if so, determine that the video is an abnormal video, if not, proceed to the next step; Determine the noise evaluation value of the subsequent video by the number of the noise abnormal images in the subsequent video and the proportion of the images to be analyzed in the subsequent video, and combine the mean value of the noise analysis results of the images to be analyzed in the subsequent video, and determine whether the video is an abnormal video by the noise evaluation value of the subsequent video, if so, determine that the video is an abnormal video, if not, proceed to the next step; The distribution uniformity of the noise abnormality image is determined by using the noise evaluation value of the front video, the noise evaluation value of the middle video, and the noise evaluation value of the back video.
7. A video processing method as claimed in claim 6, characterized in that: When the distribution uniformity of the noise abnormality image is greater than a preset uniformity setting value, and any one of the noise evaluation value of the front video, the noise evaluation value of the middle video, and the noise evaluation value of the back video is greater than a preset noise amount, the video is determined to be an abnormal video.
8. A video processing method as claimed in claim 1, characterized in that: The method for determining the distorted image is: S41 obtains the information entropy of the original image of the remaining image, and determines whether the remaining image is a suspected distorted image according to the information entropy of the original image, if so, proceeds to step S44, if not, proceeds to step S42; S42 obtains the information entropy of the characteristic heat map of the remaining image, and determines whether the remaining image is a suspected distorted image according to the information entropy of the characteristic heat map, if so, proceeds to step S44, if not, proceeds to step S43; S43 obtains the information entropy of the feature gradient map of the remaining image, and determines whether the remaining image is a suspected distorted image according to the information entropy of the feature gradient map, if so, proceeds to step S44, if not, determines that the remaining image is not a distorted image; S44 determines the comprehensive information entropy of the original image of the suspected distorted image, the information entropy of the feature heat map, and the information entropy of the feature gradient map, and determines the distortion degree of the suspected distorted image through the comprehensive information entropy, spectral characteristics and color depth of the suspected distorted image, and determines whether the suspected distorted image is a distorted image based on the distortion degree.
9. A computer system comprising: A memory and a processor connected in communication, and a computer program stored in the memory and capable of running on the processor, characterized in that the processor executes a video processing method according to any one of claims 1 to 8 when running the computer program.
10. A computer storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute a video processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Image processing method and device based on deep learning and storage medium
CN110176015A
Method, device and equipment for adding special effect in video and readable storage medium
CN112422844A
Forgery detection method based on feature enhancement and spectral analysis
CN115829909A
Image quality correction method based on camera device
CN116055900A
Determining quality of an image or video using a distortion classifier
US20110274361A1
