A method and device for removing video noise
By replacing the pooling layer with a convolutional layer, the spatio-temporal denoising process of U-Net neural network and FastDVDNet neural network solves the problem of video noise and blurred edges of high-speed moving objects, and significantly improves the clarity and denoising effect of video frames. .
Patent Information
- Application Number
- CN202111295463.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-03
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-11-03
AI Technical Summary
Existing technology is difficult to effectively remove video noise, especially when the edges of high-speed moving objects are blurred, resulting in a decrease in image quality and the generation of motion artifacts, and it is difficult to capture the temporal relationship between consecutive frames.
The U-Net neural network that replaces the pooling layer with the convolutional layer is used for spatial denoising, and is combined with the FastDVDNet neural network for spatiotemporal denoising. Through multiple loop processing and L2 loss function optimization, the temporal information of adjacent frames is captured to Reduce noise.
Significantly improves the clarity of video frames, reduces noise levels, improves edge blur processing, and effectively captures the temporal relationship between video frames, improving the denoising effect.
Smart Images

Figure CN114022376B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video noise reduction, and in particular to a method and a device for removing video noise. Background Art
[0002] In daily life, due to the limitations of shooting conditions and the influence of sending equipment, transmission equipment, and receiving equipment, the video shot is often interfered by noise, which reduces the video quality, thus affecting the visual effect of the video and hindering the further processing of the video. Typically, the video generally contains moving objects or perspectives. If the noise reduction effect is not good, it is easy to cause blurred edges of objects or motion artifacts, resulting in the original image signal cannot be effectively restored.
[0003] In the prior art, CNN (Convolutional Neural Networks) neural networks can be used. When used, CNN neural networks are trained with noise and clean image pairs as input. By minimizing the loss function between the output and the corresponding clean image, the model can learn the mapping function from the distribution of noise images to the distribution of real images. However, in real scenes, it is difficult to obtain clean images. In addition, image denoising algorithms can be directly applied to each video frame, but the temporal relationship between consecutive frames cannot be captured.
[0004] Therefore, it is necessary to design an algorithm that can denoise the video and solve the problem of blurred edges of high-speed moving objects, which becomes an urgent problem to be solved. Summary of the invention
[0005] In view of this, the main object of the present invention is to provide a method and device for removing video noise.
[0006] To achieve the above object, the technical solution of the present invention is implemented as follows: a method for removing video noise, comprising the following steps: receiving a plurality of continuously shot video frames; Both t and K are natural numbers; Input the spatial denoising module for processing to obtain the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x), the spatial denoising module is a U-Net neural network in which the pooling layer is replaced by a convolutional layer; the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K(x) is set as input video frame I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t (x),I 1 t+1 (x),...,I 1 t+K (x), I 1 i (x) = I i (x), i = tK, t-K+1, ..., t+K; the space-time denoising module is continuously run for Num times. When the space-time denoising module is run for the pth time, the input is I p t-K (x),I p t-K+1 (x),...,I p t (x),I p t+1 (x),...,I p t+K (x), the output is I p+1 t-K (x),I p+1 t-K+1 (x),...,I p+1 t (x),I p+1 t+1 (x),...,I p+1 t+K (x), where Num is a natural number, p = 1, 2, ..., Num; video frame I Num+1 t-K (x),I Num+1 t-K+1 (x),...,I Num+1 t (x),I Num+1 t+1 (x),...,I Num+1 t+K (x) is the video frame after denoising; wherein the spatiotemporal denoising module is the FastDVDNet neural network.
[0007] Furthermore, the step size of the convolutional layer is 2.
[0008] Furthermore, in the spatial denoising module, the loss function is an L2 loss function j=-K,-K+1,...,0,1,...,K; Ψ θ is a mapping network with parameter θ, It+j (x) The noise-free signal learned by the spatial denoising module.
[0009] Furthermore, when the spatiotemporal denoising module is called for the first time, the loss function of the FastDVDNet neural network is αL pd +L st , L st =||Φ Y (I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t+K (x))-I t (x)|| 2 , where Φ Y is the mapping function of the spatiotemporal denoising module, and α is the attenuation coefficient.
[0010] Furthermore, when the spatiotemporal denoising module is called for the qth time, the loss function of the FastDVDNet neural network is αq -1 L pd +L st , L st =||Φ Y (I q t-K (x),I q t-K+1 (x),...,I q t+K (x))-I q-1 t (x)|| 2 , where q = 2, 3, ..., Num, Φ Y It is the mapping function of the spatiotemporal denoising module.
[0011] The embodiment of the present invention provides a device for removing video noise, comprising the following modules: a video frame receiving module, configured to receive a plurality of continuously shot video frames; t and K are both natural numbers; the first processing module is used to convert the video frame Input the spatial denoising module for processing to obtain the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x), the spatial denoising module is a U-Net neural network in which the pooling layer is replaced by a convolutional layer; the second processing module is used to convert the video frame I t-K (x),I t-K+1 (x),...,I t(x),I t+1 (x),...,I t+K (x) is set as input video frame I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t (x),I 1 t+1 (x),...,I 1 t+K (x), I 1 i (x) = I i (x), i = tK, t-K+1, ..., t+K; the space-time denoising module is continuously run for Num times. When the space-time denoising module is run for the pth time, the input is I p t-K (x),I p t-K+1 (x),...,I p t (x),I p t+1 (x),...,I p t+K (x), the output is I p+1 t-K (x),I p+1 t-K+1 (x),...,I p+1 t (x),I p+1 t+1 (x),...,I p+1 t+K (x), where Num is a natural number, p = 1, 2, ..., Num; video frame I Num+1 t-K (x),I Num+1 t-K+1 (x),...,I Num+1 t (x),I Num+1 t+1 (x),...,I Num+1 t+K (x) is the video frame after denoising; wherein the spatiotemporal denoising module is the FastDVDNet neural network.
[0012] Furthermore, the step size of the convolutional layer is 2.
[0013] Furthermore, in the spatial denoising module, the loss function is an L2 loss function j=-K,-K+1,...,0,1,...,K; Ψ θ is a mapping network with parameter θ, I t+j (x) The noise-free signal learned by the spatial denoising module.
[0014] Furthermore, when the spatiotemporal denoising module is called for the first time, the loss function of the FastDVDNet neural network is αL pd +L st , L st =||Φ Y (I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t+K (x))-I t (x)|| 2 , where Φ Y is the mapping function of the spatiotemporal denoising module, and α is the attenuation coefficient.
[0015] Furthermore, when the spatiotemporal denoising module is called for the qth time, the loss function of the FastDVDNet neural network is αq -1 L pd +L st , L st =||Φ Y (I q t-K (x),I q t-K+1 (x),...,I q t+K (x))-I q-1 t (x)|| 2 , where q = 2, 3, ..., Num, Φ Y It is the mapping function of the spatiotemporal denoising module.
[0016] A method and device for removing video noise provided by an embodiment of the present invention include: an embodiment of the present invention discloses a method and device for removing video noise, the method includes: receiving a plurality of continuously shot video frames, inputting the video frames into a spatial denoising module for processing, and obtaining a video frame to be processed, wherein the spatial denoising module is a U-Net neural network in which a pooling layer is replaced by a convolutional layer; setting the video frame to be processed as an input video frame, and continuously running the spatial denoising module for Num times, wherein the U-Net neural network can perform denoising on the video. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1Schematic diagram of a process for removing video noise in an embodiment of the present invention;
[0018] Figure 2 Schematic diagram of the structure of the spatial denoising module and the spatiotemporal denoising module in the embodiment of the present invention. DETAILED DESCRIPTION
[0019] The present invention will be further described in detail below in conjunction with the embodiments.
[0020] Embodiment 1 of the present invention provides a method for removing video noise, such as Figure 1 and Figure 2 As shown, the following steps are included:
[0021] Step 101: Receiving multiple continuously captured video frames Both t and K are natural numbers;
[0022] Here, the video composed of the video frames contains blurring of object edges or artifacts caused by motion, etc.; it can be understood that the multiple video frames are arranged in time sequence.
[0023] Step 102: Convert the video frame Input the spatial denoising module for processing to obtain the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x) The spatial denoising module is a U-Net neural network in which the pooling layer is replaced by a convolutional layer.
[0024] Here, for video frame I t (x), its adjacent multiple video frames are I M (x),I M+1 (x),...,I t (x),I t+1 (x),...,I N (x), it can be assumed that these video frames meet the constant brightness condition. Therefore, the relationship between the adjacent frames and the reference frame is as shown in the following formula: t+j (x) = I t (x+δ j x)j∈{-M+t,...,0,1,...,Nt}, where δ j x represents the corresponding optical flow field. The optical flow field refers to a two-dimensional instantaneous velocity field composed of all pixels in the image. The two-dimensional velocity vector is the projection of the three-dimensional velocity vector of the visible point in the scene on the imaging surface. Therefore, the optical flow not only contains the motion information of the observed object, but also contains rich information about the three-dimensional structure of the scene.
[0025] Here, the pooling layer in the U-Net neural network is replaced by a convolutional layer. It can be understood that this can obtain more contextual information, thereby effectively reducing the noise level and improving the problem of edge blur.
[0026] Here, in the process of the inventor's experiment, in order to verify the performance of the spatial denoising module under different target signals, the spatial denoising module implements the following three different loss functions L pd :(1) L is not introduced pd as a supervisory signal; (2) using a noise signal as a supervisory signal, in, is with Independent and identically distributed Gaussian noise; (3) A clean noise-free signal is used as the supervision signal.
[0027] Step 103: Convert video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x) is set as input video frame I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t (x),I 1 t+1 (x),...,I 1 t+K (x), I 1 i (x) = I i (x), i = tK, t-K+1, ..., t+K; the space-time denoising module is continuously run for Num times. When the space-time denoising module is run for the pth time, the input is I p t-K (x),I p t-K+1 (x),...,I p t (x),I p t+1 (x),...,I p t+K (x), the output is I p+1 t-K (x),I p+1 t-K+1 (x),...,I p+1 t (x),I p+1 t+1(x),...,I p+1 t+K (x), where Num is a natural number, p = 1, 2, ..., Num; video frame I Num+1 t-K (x),I Num +1 t-K+1 (x),...,I Num+1 t (x),I Num+1 t+1 (x),...,I Num+1 t+K (x) is the video frame after denoising; wherein the spatiotemporal denoising module is the FastDVDNet neural network.
[0028] In actual work practice, the inventor observed that the noisy video is as shown in the following formula: Among them, N j (x) represents the noise of each frame, such as Gaussian white noise. The traditional deep learning method achieves denoising by fitting a mapping function T. The process can be described as follows: To process, Then I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x). In order to reduce the video frame In the process of noise reduction, there may be edge blurring. In this embodiment of the present invention, a new solution is proposed: first, Perform spatial denoising (the function is labeled as function Ψ), and then perform spatiotemporal denoising (the function is labeled as function Φ), that is, Among them, the spatial denoising module is used to simulate the function Ψ, and the spatiotemporal denoising module is used to simulate the function Φ.
[0029] Here, through the spatial denoising module, the spatiotemporal denoising module can capture the time information of adjacent frames, that is, use more frames to mine the time information of the video, thereby obtaining a video input with reduced noise, which reduces the difficulty of the denoising task; in addition, it is understandable that there will still be noise in the processing result output by the spatiotemporal denoising module, so the spatiotemporal denoising module can be looped to process the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x) Perform multiple cycles of processing to effectively improve the denoising effect.
[0030] In this embodiment, the step size of the convolutional layer is 2.
[0031] In this embodiment, in the spatial denoising module, the loss function is the L2 loss function. Ψ θ is a mapping network with parameter θ, I t+j (x) The noise-free signal learned by the spatial denoising module.
[0032] In this embodiment, when the spatiotemporal denoising module is called for the first time, the loss function of the FastDVDNet neural network is αL pd +L st , L st =||Φ Y (I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t+K (x))-I t (x)|| 2 , where Φ Y is the mapping function of the spatiotemporal denoising module, and α is the attenuation coefficient.
[0033] In this embodiment, when the spatiotemporal denoising module is called for the qth time, the loss function of the FastDVDNet neural network = αq -1 L pd +L st , L st =||Φ Y (I q t-K (x),I q t-K+1 (x),...,I q t+K (x))-I q-1 t (x)|| 2 , where q = 2, 3, ..., Num, Φ Y is the mapping function of the spatiotemporal denoising module. Here, it can be understood that after the first call to the spatiotemporal denoising module, the output video frame I 2 t-K (x),I 2 t-K+1 (x),...,I 2 t+K (x) has become relatively clear and can therefore be used to supervise the learning of the second stage, thus achieving completely unsupervised learning.
[0034] Embodiment 2 of the present invention provides a device for removing video noise, comprising the following modules:
[0035] Video frame receiving module, used to receive multiple continuously shot video frames Both t and K are natural numbers;
[0036] The first processing module is used to convert the video frame Input the spatial denoising module for processing to obtain the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x) The spatial denoising module is a U-Net neural network in which the pooling layer is replaced by a convolutional layer.
[0037] The second processing module is used to convert the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x) is set as input video frame I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t (x),I 1 t+1 (x),...,I 1 t+K (x), I 1 i (x) = I i (x), i = tK, t-K+1, ..., t+K; the space-time denoising module is continuously run for Num times. When the space-time denoising module is run for the pth time, the input is I p t-K (x),I p t-K+1 (x),...,I p t (x),I p t+1 (x),...,I p t+K (x), the output is I p+1 t-K (x),I p+1 t-K+1 (x),...,I p+1 t (x),I p+1t+1 (x),...,I p+1 t+K (x), where Num is a natural number, p = 1, 2, ..., Num; video frame I Num+1 t-K (x),I Num+1 t-K+1 (x),...,I Num+1 t (x),I Num+1 t+1 (x),...,I Num+1 t+K (x) is the video frame after denoising; wherein the spatiotemporal denoising module is the FastDVDNet neural network.
[0038] In this embodiment, the step size of the convolutional layer is 2.
[0039] In this embodiment, in the spatial denoising module, the loss function is the L2 loss function. Ψ θ is a mapping network with parameter θ, I t+j (x) The noise-free signal learned by the spatial denoising module.
[0040] In this embodiment, when the spatiotemporal denoising module is called for the first time, the loss function of the FastDVDNet neural network is αL pd +L st , L st =||Φ Y (I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t+K (x))-I t (x)|| 2 , where Φ Y is the mapping function of the spatiotemporal denoising module, and α is the attenuation coefficient.
[0041] In this embodiment, when the spatiotemporal denoising module is called for the qth time, the loss function of the FastDVDNet neural network = αq -1 L pd +L st , L st =||Φ Y (I q t-K (x),I q t-K+1 (x),...,I q t+K(x))-I q-1 t (x)|| 2 , where q = 2, 3, ..., Num, Φ Y It is the mapping function of the spatiotemporal denoising module.
[0042] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for removing video noise, characterized in that: The following steps are involved: Receive multiple consecutively captured video frames Both t and K are natural numbers; Video Frame Input the spatial denoising module for processing to obtain the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x), the spatial denoising module is a U-Net neural network in which the pooling layer is replaced by a convolutional layer; The video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x) is set as input video frame I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t (x),I 1 t+1 (x),...,I 1 t+K (x), I 1 i (x) = I i (x), i = tK, t-K+1, ..., t+K; Continuously run the space-time denoising module for Num times. When the space-time denoising module is run for the pth time, the input is I p t-K (x),I p t-K+1 (x),...,I p t (x),I p t+1 (x),...,I p t+K (x), the output is I p+1 t-K (x),I p+1 t-K+1 (x),...,I p+1 t (x),I p+1 t+1 (x),...,I p+1 t+K (x), where Num is a natural number, p = 1, 2, ..., Num; video frame I Num+1 t-K (x),I Num+1 t-K+1 (x),...,I Num+1 t (x),I Num+1 t+1 (x),...,I Num+1 t+K (x) is the video frame after denoising; wherein the spatiotemporal denoising module is the FastDVDNet neural network.
2. The method for removing video noise according to claim 1, characterized in that: The stride of the convolutional layer is 2.
3. The method for removing video noise according to claim 1, characterized in that: In the spatial denoising module, the loss function is the L2 loss function Ψ θ is a mapping network with parameter θ, I t+j (x) The noise-free signal learned by the spatial denoising module.
4. The method for removing video noise according to claim 3, characterized in that: When the spatiotemporal denoising module is called for the first time, the loss function of the FastDVDNet neural network = αL pd +L st , L st =||Φ Y (I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t+K (x))-I t (x)||2, where Φ Y is the mapping function of the spatiotemporal denoising module, and α is the attenuation coefficient.
5. The method for removing video noise according to claim 3, characterized in that: When the spatiotemporal denoising module is called for the qth time, the loss function of the FastDVDNet neural network = αq -1 L pd +L st , L st =||Φ Y (I q t-K (x),I q t-K+1 (x),...,I q t+K (x))-I q-1 t (x)||2, where q=2, 3, ..., Num, Φ Y It is the mapping function of the spatiotemporal denoising module.
6. A device for removing video noise, characterized in that: Includes the following modules: Video frame receiving module, used to receive multiple continuously shot video frames Both t and K are natural numbers; The first processing module is used to convert the video frame Input the spatial denoising module for processing to obtain the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x), the spatial denoising module is a U-Net neural network in which the pooling layer is replaced by a convolutional layer; The second processing module is used to convert the video frame I t-K (x),I t-K+1 (x),...,I t (x),I t+1 (x),...,I t+K (x) is set as input video frame I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t (x),I 1 t+1 (x),...,I 1 t+K (x), I 1 i (x) = I i (x), i = tK, t-K+1, ..., t+K; Continuously run the space-time denoising module for Num times. When the space-time denoising module is run for the pth time, the input is I p t-K (x),I p t-K+1 (x),...,I p t (x),I p t+1 (x),...,I p t+K (x), the output is I p+1 t-K (x),I p+1 t-K+1 (x),...,I p+1 t (x),I p+1 t+1 (x),...,I p+1 t+K (x), where Num is a natural number, p = 1, 2, ..., Num; video frame I Num+1 t-K (x),I Num +1 t-K+1 (x),...,I Num+1 t (x),I Num+1 t+1 (x),...,I Num+1 t+K (x) is the video frame after denoising; wherein the spatiotemporal denoising module is the FastDVDNet neural network.
7. The device for removing video noise according to claim 6, characterized in that: The stride of the convolutional layer is 2.
8. The device for removing video noise according to claim 6, characterized in that: In the spatial denoising module, the loss function is the L2 loss function Ψ θ is a mapping network with parameter θ, I t+j (x) The noise-free signal learned by the spatial denoising module.
9. The apparatus for removing video noise according to claim 6, characterized in that: When the spatiotemporal denoising module is called for the first time, the loss function of the FastDVDNet neural network = αL pd +L st , L st =||Φ Y (I 1 t-K (x),I 1 t-K+1 (x),...,I 1 t+K (x))-I t (x)||2, where Φ Y is the mapping function of the spatiotemporal denoising module, and α is the attenuation coefficient.
10. The device for removing video noise according to claim 6, characterized in that: When the spatiotemporal denoising module is called for the qth time, the loss function of the FastDVDNet neural network = αq -1 L pd +L st , L st =||Φ Y (I q t-K (x),I q t-K+1 (x),...,I q t+K (x))-I q-1 t (x)||2, where q=2, 3, ..., Num, Φ Y It is the mapping function of the spatiotemporal denoising module.
