A high-gain scene noise reduction method and system based on deep learning

Through the image denoising method based on deep learning, linear transformation and inverse transformation are performed using sensitivity and noise characteristics, and combined with the U-Net model, the problem of weak noise reduction ability and large calculation amount in high-gain scenes is solved, and efficient denoising is achieved. noise and retain image details, improving image quality and recognition rate.

CN116721030BActive Publication Date: 2024-09-06上海为旌科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310704275.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-14
Publication Date
2024-09-06
Estimated Expiration
2043-06-14

AI Technical Summary

Technical Problem

Existing image noise reduction algorithms have weak noise reduction capabilities in high-gain scenes, require a large amount of calculation, and easily destroy image details. They also have motion tailing phenomena and cannot effectively remove noise in dark-light high-gain scenes.

Method used

A method based on deep learning is used to obtain the sensitivity of the image and the noise characteristics of the camera sensor, perform linear transformation and inverse transformation, and use the U-Net model for noise reduction processing to reduce the amount of calculation and improve the noise reduction efficiency.

Benefits of technology

While improving the noise reduction effect, it reduces the amount of calculation, effectively removes noise in dark-light high-gain scenes, retains image details and texture information, improves image quality and recognition rate, reduces noise, and avoids motion tailing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116721030B
    Figure CN116721030B
Patent Text Reader

Abstract

The present invention discloses a high-gain scene denoising method and system based on deep learning, wherein the method comprises: obtaining an image to be processed, obtaining the sensitivity of the image to be processed, and calculating a first parameter and a second parameter for linear transformation of the image to be processed according to the value of the sensitivity and the noise characteristics of a corresponding camera sensor; dividing the image to be processed into four channel images, performing linear transformation processing on the channel images by using the first parameter and the second parameter to obtain linear channel images; sequentially bringing the linear channel images into a trained denoising model to perform denoising processing, and outputting a denoised linear channel image; performing an inverse linear transformation processing on the denoised linear channel image to restore the denoised channel image; merging the four denoised channel images to obtain a denoised image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image noise reduction processing, and in particular to a high-gain scene noise reduction method and system based on deep learning. Background Art

[0002] Image noise is caused by interference or errors in the process of image acquisition, transmission, and processing, which can cause problems such as unclear image details and color distortion, affecting the visual effect of the image and the accuracy of information. Image denoising is to reduce or eliminate noise in images through certain algorithms and techniques, and has been widely used and studied in image processing, computer vision and other fields.

[0003] In low-light conditions, in order to clearly capture the imaging object, it is inevitable to increase the gain. For example, if you want to take a portrait in a night scene, if the gain is not high enough, the portrait will easily blend into the night background. Compared with low-light and low-gain scenes, the noise intensity in low-light and high-gain scenes is greater and the shape is more complex, because high gain not only captures the imaging object clearly, but also captures more noise that is ignored in low-gain scenes.

[0004] The existing image denoising algorithm removes noise by filtering, which can be used to improve image quality, protect image information, improve visual effects, and improve image recognition rate. Although the existing image denoising technology has made great progress and can easily and well remove noise in low-light and low-gain scenes, it still has some shortcomings for low-light and high-gain scenes. For example, the parameters of the filtering method are relatively simple, which cannot adapt to the characteristics of wide noise intensity range and large noise morphology changes in high-gain scenes, and cannot completely remove noise. The denoising efficiency is not high, and it is easy to destroy the details and texture information of the image. In addition, the traditional algorithm based on filtering requires multiple frames of images as input, which greatly increases the complexity and calculation amount of the algorithm, and there is also a serious motion tailing phenomenon. As an important part of image signal processing, denoising plays a vital role in the final effect of the image. For example, if the noise is not completely removed in the denoising process, the subsequent sharpening process will amplify the residual noise again, resulting in the complete failure of the denoising process and reducing the effect of the entire image signal processing. Summary of the invention

[0005] In order to overcome the shortcomings of traditional image algorithms in high-gain scenes, such as weak noise reduction ability, large amount of calculation and severe motion smearing, the present invention provides a high-gain scene noise reduction method and system based on deep learning, which uses deep learning methods to achieve noise reduction in low-light and high-gain scenes, while improving the noise reduction effect and reducing the amount of calculation, making full use of hardware resources.

[0006] Specifically, the technical solution of the present invention is as follows:

[0007] In a first aspect, the present invention discloses a high-gain scene noise reduction method based on deep learning, comprising the following steps:

[0008] Acquire an image to be processed, acquire the sensitivity of the image to be processed, and calculate a first parameter and a second parameter for linear transformation of the image to be processed according to a value of the sensitivity and a noise characteristic of a corresponding camera sensor;

[0009] Dividing the image to be processed into four channel images, performing linear transformation processing on the channel images by using the first parameter and the second parameter to obtain linear channel images;

[0010] The linear channel images are sequentially introduced into the trained denoising model for denoising, and the denoised linear channel images are output;

[0011] The denoised linear channel image is subjected to inverse linear transformation processing to restore the denoised channel image; and the four denoised channel images are merged to obtain a denoised image.

[0012] In some implementations, before obtaining the image to be processed, the method further includes the following steps:

[0013] Acquire multiple frames of standard grayscale images continuously shot by the camera at any sensitivity, calculate the mean of the grayscale values ​​of the standard grayscale images from the time domain perspective, calculate the variance of the grayscale values ​​of the standard grayscale images from the spatial domain perspective, and fit a first-order polynomial fitting mean-variance curve;

[0014] Calculating the corresponding mean-variance curves at multiple different sensitivities; obtaining the intercept and slope of each mean-variance curve;

[0015] Fitting all the sensitivities and the intercepts of the corresponding mean-variance curves with a first-order polynomial to obtain a first characteristic curve of the camera sensor;

[0016] All the sensitivities and the slopes of the corresponding mean-variance curves are fitted with a second-order polynomial to obtain a second characteristic curve of the camera sensor.

[0017] In some implementations, the step of calculating the first parameter and the second parameter for linear transformation of the image to be processed according to the value of the sensitivity and the noise characteristics of the corresponding camera sensor specifically includes the following steps:

[0018] Taking the sensitivity value of the image to be processed as an interpolation value, substituting it into the first characteristic curve, calculates and obtains a first parameter of the image to be processed;

[0019] Taking the sensitivity value of the image to be processed as an interpolation value and substituting it into the second characteristic curve, a second parameter of the image to be processed is calculated;

[0020] The first parameter is the intercept of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed; the second parameter is the slope of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed.

[0021] In some implementations, the step of dividing the image to be processed into four channel images specifically includes the following steps:

[0022] Converting the image to be processed from RAW format to Bayer mode;

[0023] Convert the Bayer pattern images into RGGB format images.

[0024] The image in the RGGB format is split into an R channel image, a Gr channel image, a Gb channel image, and a B channel image.

[0025] In some implementations, performing a linear transformation process on the channel image using the first parameter and the second parameter to obtain a linear channel image specifically includes:

[0026] Substitute the channel image into the following formula to calculate the linear channel image:

[0027] OutImage=(InImage / curA)+(curB^2 / curA^2)

[0028] Among them, OutImage is the output linear channel image; InImage is the input channel image; curA is the first parameter; curB is the second parameter.

[0029] In some embodiments, the denoising model is a lightweight neural network model AI_NR based on the U-Net model;

[0030] The linear channel images are sequentially introduced into the trained denoising model for denoising, which specifically includes:

[0031] Through a 3*3 convolution, the extreme noise of the linear channel image is initially removed;

[0032] Performing image feature extraction on the linear channel image through a four-layer encoder structure;

[0033] Through four layers of 3*3 separable convolution, the image features extracted by each layer of encoder are passed to the decoder of the corresponding layer in the form of skip connection;

[0034] The extracted image features are fused through a four-layer decoder structure;

[0035] Then through a 3*3 convolution, the denoised linear channel image is output.

[0036] In some embodiments, performing an inverse linear transformation on the denoised linear channel image to restore the denoised channel image specifically includes:

[0037] Substitute the denoised linear channel image into the following formula to obtain the denoised channel image:

[0038] FinalImage=(OutImage-(curB^2 / curA^2))*curA

[0039] Among them, FinalImage is the channel image after denoising; OutImage is the linear channel image after denoising; curA is the first parameter; and curB is the second parameter.

[0040] In a second aspect, the present invention discloses a high-gain scene denoising system based on deep learning, characterized in that the system uses the high-gain scene denoising method based on deep learning described in any one of the above embodiments to achieve image denoising, and the system specifically includes:

[0041] An image parameter acquisition module, used to acquire an image to be processed, acquire the sensitivity of the image to be processed, and calculate a first parameter and a second parameter for linear transformation of the image to be processed according to the value of the sensitivity and the noise characteristics of the corresponding camera sensor;

[0042] An image linear transformation module, used for dividing the image to be processed into four channel images, performing linear transformation processing on the channel images according to the first parameter and the second parameter, and obtaining linear channel images;

[0043] A model processing module is used to sequentially bring the linear channel images into the trained denoising model for denoising, and output the denoised linear channel images;

[0044] The image inverse linear transformation module is used to perform inverse linear transformation processing on the denoised linear channel image to restore the denoised channel image; and merge the four denoised channel images to obtain the denoised image.

[0045] In some embodiments, the system further includes: a noise characteristic calibration module, which specifically includes the following submodules:

[0046] A mean-variance curve fitting submodule is used to obtain multiple frames of standard grayscale images continuously shot by the camera at any sensitivity, calculate the mean of the grayscale values ​​of the standard grayscale images from the time domain perspective, calculate the variance of the grayscale values ​​of the standard grayscale images from the spatial domain perspective, and fit a first-order polynomial fitting mean-variance curve;

[0047] The mean-variance curve fitting submodule is also used to calculate the corresponding mean-variance curves at multiple different sensitivities; and obtain the intercept and slope of each mean-variance curve;

[0048] A first characteristic curve fitting submodule, used for fitting the intercepts of the mean-variance curves corresponding to all the sensitivities with a first-order polynomial to obtain a first characteristic curve of the camera sensor;

[0049] The second characteristic curve fitting submodule is used to fit the slopes of the mean-variance curves corresponding to all the sensitivities using a second-order polynomial to obtain a second characteristic curve of the camera sensor.

[0050] In some implementations, the image parameter acquisition module specifically includes:

[0051] A first parameter search submodule, used for interpolating the sensitivity value of the image to be processed and bringing it into the first characteristic curve to calculate and obtain a first parameter of the image to be processed;

[0052] A second parameter search submodule, used to interpolate the sensitivity value of the image to be processed and substitute it into the second characteristic curve to calculate and obtain a second parameter of the image to be processed;

[0053] The first parameter is the intercept of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed; the second parameter is the slope of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed.

[0054] Compared with the prior art, the present invention has at least one of the following beneficial effects:

[0055] 1. The present invention uses a deep learning method to establish and train a neural network model for the linearized image input, thereby achieving noise reduction for low-light and high-gain scenes, saving labor costs, improving noise reduction efficiency, reducing the amount of calculation while improving the noise reduction effect, and making full use of hardware resources.

[0056] 2. Compared with the traditional time and space domain filtering noise reduction method, the present invention processes gray value data from the time and space domain perspectives at the same time, which can better preserve the integrity of the moving object after noise reduction and eliminate the tailing of the moving object, thereby making the overall ISP effect better.

[0057] 3. The noise image is linearized by linear transformation, which solves the problem of wide range of noise intensity and large changes in noise morphology in high-gain scenarios. Compared with the multi-frame input of traditional algorithms, this method uses a single frame to save hardware resources.

[0058] 4. The present invention can achieve efficient image noise reduction in high-gain scenarios, can effectively remove extreme noise in low-light high-gain scenarios, and can well preserve image details and texture information, improve image quality, reduce or eliminate noise in images, make images clearer and details more obvious, and improve image recognition rate and accuracy. This is of great significance for some application scenarios that require automated processing, such as image recognition, target detection, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The preferred implementation modes will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present invention.

[0060] Figure 1 This is a flow chart of an embodiment of a high-gain scene denoising method based on deep learning of the present invention;

[0061] Figure 2 A flow chart of sub-steps of step S010 in another embodiment of the method of the present invention;

[0062] Figure 3 A schematic diagram of the model structure of the lightweight neural network model AI_NR used in the present invention;

[0063] Figure 4 A structural block diagram of an embodiment of a high-gain scene noise reduction system based on deep learning of the present invention;

[0064] Figure 5 This is a structural block diagram of another embodiment of a high-gain scene noise reduction system based on deep learning of the present invention. DETAILED DESCRIPTION

[0065] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0066] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.

[0067] In order to simplify the drawings, only the parts related to the invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0068] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0069] In this document, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0070] In a specific implementation, the terminal device described in the embodiments of the present application includes, but is not limited to, other portable devices such as mobile phones, laptop computers, tutoring machines, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the terminal device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch screen displays and / or touch pads).

[0071] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0072] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0073] Reference Manual Attached Figure 1 , an embodiment of a high-gain scene noise reduction method based on deep learning provided by the present invention comprises the following steps:

[0074] S100, obtaining an image to be processed, obtaining the sensitivity of the image to be processed, and calculating a first parameter and a second parameter for linear transformation of the image to be processed according to a value of the sensitivity and noise characteristics of a corresponding camera sensor.

[0075] Specifically, sensitivity is the sensitivity of the camera sensor to light, usually expressed as an ISO value. The higher the ISO value, the more sensitive the camera sensor is to light. Therefore, in low-light conditions, a higher ISO value allows the camera to better record images. However, as the ISO value increases, the camera sensor will produce more noise. This is because in low-light conditions, the camera needs to increase signal amplification to increase image brightness, but amplifying the signal will also amplify the noise on the sensor. In the international standard, ISO values ​​below 800 are low sensitivity, ISO values ​​between 800 and 6400 are medium sensitivity, and above 6400 are high sensitivity. The sensitivity range applicable to the present invention is 1600-204800, and the main processing object is dark scene images with a sensitivity of more than 12800.

[0076] In this embodiment, the first parameter and the second parameter are both calculated by the ISO of the current image to be processed and the noise characteristics of the camera sensor that photographed the image. The noise characteristics are different for different cameras or different camera sensor models, so the noise characteristic curve of the camera sensor needs to be calibrated before calculating the first parameter and the second parameter.

[0077] S200, dividing the image to be processed into four channel images, performing linear transformation processing on the channel images according to the first parameter and the second parameter, to obtain linear channel images.

[0078] Specifically, before dividing the channels, the input images need to be unified into the same image format, the RAW image needs to be read, the bayer pattern of the RAW image needs to be unified into the RGGB format and divided into R, Gr, Gb, and B channel images. The first parameter and the second parameter calculated by the above steps are used to perform linear transformation on the four divided channel images respectively.

[0079] S300, sequentially bringing the linear channel images into the trained denoising model for denoising, and outputting the denoised linear channel images.

[0080] Specifically, a lightweight neural network AI_NR based on U-Net is constructed. The linearized single-frame image is used as the input of the network. Before the model is applied, the images of the training set are processed using the above method to iteratively train the model. After the training is completed, the image to be processed is input for denoising.

[0081] The network structure is as shown in the instruction manual. Figure 3 As shown in the figure, when the RAW image is input to the network, it is first convolved by 3*3, and the features of the convolved image are extracted through a 4-layer encoder structure. At the same time, the features extracted from each layer are passed to the decoder of the corresponding layer in the form of a jump connection. Then, the extracted image features are fused through a 4-layer decoder structure, and the final denoising result is obtained using a 3*3 convolution.

[0082] S400, performing inverse linear transformation processing on the denoised linear channel image to restore the denoised channel image. Merging the four denoised channel images to obtain a denoised image.

[0083] Specifically, corresponding to the step of linear transformation, the inverse linear transformation also uses the first parameter and the second parameter to transform the four linearized channel images into four channel images in a general format.

[0084] Another embodiment of the high-gain scene noise reduction method based on deep learning of the present invention, based on one embodiment of the above method, before obtaining the image to be processed, as shown in the attached specification Figure 2 As shown, the steps include:

[0085] S010, obtaining multiple frames of standard grayscale images continuously shot by the camera at any sensitivity, calculating the mean of the grayscale values ​​of the standard grayscale images from a time domain perspective, calculating the variance of the grayscale values ​​of the standard grayscale images from a spatial domain perspective, and fitting a first-order polynomial fitting mean-variance curve.

[0086] Specifically, the airspace domain (spatial domain), that is, the so-called pixel domain, the processing in the airspace domain is the processing at the pixel level, such as image superposition at the pixel level. Represents the energy gradient of the image. The time domain (time domain), the independent variable is time, that is, the horizontal axis is time, and the vertical axis is the change of the parameter. It describes the function of the value of a certain parameter at different times. In this embodiment, the mean is obtained by performing a weighted average operation on the time domain (multi-frame image); the spatial domain (single-frame image) is combined with the mean obtained in the time domain to obtain the variance, and the mean-variance curve is drawn by combining them together. Compared with the traditional time and space domain filtering and denoising methods, the present invention simultaneously processes grayscale value data from the perspective of time and space domains, which can better retain the integrity of moving objects after denoising and eliminate the tailing of moving objects, thereby making the overall effect of ISP better.

[0087] S020, calculating the corresponding mean-variance curves at multiple different sensitivities, and obtaining the intercept and slope of each mean-variance curve.

[0088] S030: Fitting the intercepts of all the sensitivities and the corresponding mean-variance curves with a first-order polynomial to obtain a first characteristic curve of the camera sensor.

[0089] S040: Fitting the slopes of the mean-variance curves corresponding to all the sensitivities with a second-order polynomial to obtain a second characteristic curve of the camera sensor.

[0090] Specifically, if multiple images to be processed are taken by the same camera or the same model of camera sensor, it is only necessary to calibrate the noise characteristics of the camera sensor once, and it is not necessary to calibrate the noise characteristics of the camera sensor before each processing.

[0091] In this embodiment, the horizontal coordinate of the first curve is the sensitivity parameter, and the vertical coordinate is the intercept of the gray value mean-variance curve of the standard gray scale card; the horizontal coordinate of the second curve is the sensitivity parameter, and the vertical coordinate is the slope of the gray value mean-variance curve of the standard gray scale card.

[0092] In another implementation of this embodiment, the calibration of the camera sensor parameters is completed based on the hash algorithm to obtain the noise characteristic parameters A and B of the camera sensor. The calibration method is: continuously shoot multiple frames of grayscale images, calculate the variance of all pixel values ​​within the grayscale value range in the time domain and spatial domain, and obtain a first-order polynomial fitting curve (mean-variance curve). The above curve can be obtained for each sensitivity. The intercepts of all sensitivity curves are fitted with a first-order polynomial to obtain the noise characteristic curve 1 of the camera sensor (the horizontal axis is sensitivity, and the vertical axis is characteristic parameter A). The slopes of all sensitivity curves are fitted with a second-order polynomial to obtain the noise characteristic curve 2 of the camera sensor (the horizontal axis is sensitivity, and the vertical axis is characteristic parameter B).

[0093] Another embodiment of a high-gain scene denoising method based on deep learning of the present invention, based on an embodiment of the above method, in step S100, the first parameter and the second parameter for linear transformation of the image to be processed are calculated according to the value of the sensitivity and the noise characteristics of the corresponding camera sensor, specifically comprising the following steps:

[0094] S110 , taking the sensitivity value of the image to be processed as an interpolation value and substituting it into the first characteristic curve, calculate and obtain a first parameter of the image to be processed.

[0095] Specifically, the first parameter is the intercept of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed.

[0096] S120, taking the sensitivity value of the image to be processed as an interpolation value and substituting it into the second characteristic curve to calculate and obtain a second parameter of the image to be processed.

[0097] Specifically, the second parameter is the slope of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed.

[0098] Another embodiment of a high-gain scene denoising method based on deep learning of the present invention is based on an embodiment of the above method, in step S200, S210, the image to be processed is divided into four channel images. Specifically, the following steps are included:

[0099] S211, converting the image to be processed from RAW format to Bayer mode.

[0100] S212, converting the Bayer pattern images into RGGB format images.

[0101] Specifically, the Bayer pattern is a color filter array (CFA) format for digital images, which captures images by placing red, green, and blue filters on an image sensor.

[0102] For example, to convert an image to green channel Bayer pattern, you can follow these steps:

[0103] 1. Convert color images to grayscale images.

[0104] 2. Convert the grayscale image to a Bayer pattern. Using a tool such as Channel Mixer or Color Balance, set the Green channel to 100% and both the Red and Blue channels to 0%. This will give the image a Bayer pattern appearance.

[0105] It should be noted that converting a color image to the Bayer pattern will result in a loss of color information. This is because the Bayer pattern uses only one of the three color channels, red, green, and blue, instead of capturing all color information at the same time. Therefore, the converted image may lose some details and color depth.

[0106] S213, splitting the image in the RGGB format into an R channel image, a Gr channel image, a Gb channel image, and a B channel image.

[0107] In the step S200, S220, performing a linear transformation process on the channel image by using the first parameter and the second parameter to obtain a linear channel image specifically includes:

[0108] Substitute the channel image into the following formula to calculate the linear channel image:

[0109] OutImage=(InImage / curA)+(curB^2 / curA^2)

[0110] Wherein, OutImage is the output linear channel image, InImage is the input channel image, curA is the first parameter, and curB is the second parameter.

[0111] Specifically, linearizing an image is to adjust the eigenvalue size to a similar range. Without linearization, if the eigenvalue is large, the gradient value will also be large, and if the eigenvalue is small, the gradient value will also be small. During model backpropagation, the gradient value update is the same as the learning rate. When the learning rate is small, the small gradient value will lead to slow updates. When the learning rate is large, the large gradient value will make the model difficult to converge. Therefore, in order to make the model training converge smoothly, the image is linearized and the eigenvalues ​​of different dimensions are adjusted to a similar range. Then, a unified learning rate can be used to accelerate model training.

[0112] Another embodiment of the high-gain scene denoising method based on deep learning of the present invention, based on any one of the embodiments of the above method, in step S300, the denoising model is a lightweight neural network model AI_NR based on the U-Net model, and the neural network model is as follows Figure 3 shown.

[0113] The linear channel images are sequentially introduced into the trained denoising model for denoising, which specifically includes:

[0114] Through a 3*3 convolution, the extreme noise of the linear channel image is preliminarily removed.

[0115] Image features are extracted from the linear channel image through a four-layer encoder structure.

[0116] Through four layers of 3*3 separable convolution, the image features extracted by the encoder in each layer are passed to the decoder in the corresponding layer in the form of skip connection.

[0117] The extracted image features are fused through a four-layer decoder structure.

[0118] Then through a 3*3 convolution, the denoised linear channel image is output.

[0119] Specifically, in this embodiment, a lightweight neural network AI_NR based on U-Net is used to perform image denoising, and the divided channel images are input as single frames. Each frame of the input image passes through a four-layer encoder and a four-layer decoder. Of course, in actual applications, the number of layers of the encoder and decoder can be flexibly set according to the processing requirements of image denoising. Similarly, it is also feasible to use other deep learning models in the prior art, and the embodiments of the present application do not make specific restrictions.

[0120] Another embodiment of a high-gain scene denoising method based on deep learning of the present invention, based on any one of the embodiments of the above method, in step S400, the denoised linear channel image is subjected to inverse linear transformation processing to restore the denoised channel image, specifically comprising:

[0121] Substitute the denoised linear channel image into the following formula to obtain the denoised channel image:

[0122] FinalImage=(OutImage-(curB^2 / curA^2))*curA

[0123] Wherein, FinalImage is the channel image after denoising, OutImage is the linear channel image after denoising, curA is the first parameter, and curB is the second parameter.

[0124] Specifically, after obtaining four denoised channel images, it is necessary to merge the four denoised channel images into a Bayer pattern image, and then restore them to an image in a general format to obtain a final image processing result.

[0125] Based on the same technical concept, the present invention also discloses a high-gain scene noise reduction system based on deep learning, which can be used to implement any of the above-mentioned high-gain scene noise reduction methods based on deep learning. Specifically, an embodiment of a high-gain scene noise reduction system based on deep learning of the present application is shown in the attached specification. Figure 4 As shown, including:

[0126] The image parameter acquisition module 10 is used to acquire the image to be processed, acquire the sensitivity of the image to be processed, and calculate the first parameter and the second parameter of the image to be processed for linear transformation according to the value of the sensitivity and the noise characteristics of the corresponding camera sensor.

[0127] Specifically, sensitivity is the sensitivity of the camera sensor to light, usually expressed as an ISO value. The higher the ISO value, the more sensitive the camera sensor is to light. Therefore, in low-light conditions, a higher ISO value allows the camera to better record images. However, as the ISO value increases, the camera sensor will produce more noise. This is because in low-light conditions, the camera needs to increase signal amplification to increase image brightness, but amplifying the signal will also amplify the noise on the sensor. In the international standard, ISO values ​​below 800 are low sensitivity, ISO values ​​between 800 and 6400 are medium sensitivity, and above 6400 are high sensitivity. The sensitivity range applicable to the present invention is 1600-204800, and the main processing object is dark scene images with a sensitivity of more than 12800.

[0128] In this embodiment, the first parameter and the second parameter are both calculated by the ISO of the current image to be processed and the noise characteristics of the camera sensor that photographed the image. The noise characteristics are different for different cameras or different camera sensor models, so the noise characteristic curve of the camera sensor needs to be calibrated before calculating the first parameter and the second parameter.

[0129] The image linear transformation module 20 is used to divide the image to be processed into four channel images, and perform linear transformation processing on the channel images through the first parameter and the second parameter to obtain linear channel images.

[0130] Specifically, before dividing the channels, the input images need to be unified into the same image format, the RAW image needs to be read, the bayer pattern of the RAW image needs to be unified into the RGGB format and divided into R, Gr, Gb, and B channel images. The first parameter and the second parameter calculated by the above steps are used to perform linear transformation on the four divided channel images respectively.

[0131] The model processing module 30 is used to sequentially bring the linear channel images into the trained denoising model for denoising and output the denoised linear channel images.

[0132] Specifically, a lightweight neural network AI_NR based on U-Net is constructed. The linearized single-frame image is used as the input of the network. Before the model is applied, the images of the training set are processed using the above method to iteratively train the model. After the training is completed, the image to be processed is input for denoising.

[0133] The network structure is as shown in the instruction manual. Figure 3As shown in the figure, when the RAW image is input to the network, it is first convolved by 3*3, and the features of the convolved image are extracted through a 4-layer encoder structure. At the same time, the features extracted from each layer are passed to the decoder of the corresponding layer in the form of a jump connection. Then, the extracted image features are fused through a 4-layer decoder structure, and the final denoising result is obtained using a 3*3 convolution.

[0134] The image inverse linear transformation module 40 is used to perform inverse linear transformation processing on the denoised linear channel image to restore the denoised channel image. The four denoised channel images are merged to obtain a denoised image.

[0135] Specifically, corresponding to the step of linear transformation, the inverse linear transformation also uses the first parameter and the second parameter to transform the four linearized channel images into four channel images in a general format.

[0136] Another embodiment of a high-gain scene noise reduction system based on deep learning provided by the present invention is as shown in the attached specification. Figure 5 As shown, based on the above system embodiment, the high-gain scene noise reduction system based on deep learning also includes: 50 noise feature calibration module, specifically including the following submodules:

[0137] The mean-variance curve fitting submodule 51 is used to obtain multiple frames of standard grayscale images continuously shot by the camera at any sensitivity, calculate the mean of the grayscale values ​​of the standard grayscale images from the time domain perspective, calculate the variance of the grayscale values ​​of the standard grayscale images from the spatial domain perspective, and fit a first-order polynomial fitting mean-variance curve.

[0138] Specifically, the airspace domain (spatial domain), that is, the so-called pixel domain, the processing in the airspace domain is the processing at the pixel level, such as image superposition at the pixel level. It represents the energy gradient of the image. The time domain (time domain) independent variable is time, that is, the horizontal axis is time, and the vertical axis is the change of parameters. It describes the function of the value of a certain parameter at different times. In this embodiment, the mean is obtained by performing a weighted average operation on the time domain (multi-frame image); the spatial domain (single-frame image) is combined with the mean obtained in the time domain to obtain the variance, and the mean-variance curve is drawn together. Compared with the traditional time and space domain filtering and denoising methods, the present invention simultaneously processes grayscale value data from the perspective of time and space domains, which can better retain the integrity of moving objects after denoising and eliminate the tailing of moving objects, thereby making the overall effect of ISP better.

[0139] The mean-variance curve fitting submodule 52 is also used to calculate the corresponding mean-variance curves at multiple different sensitivities, and obtain the intercept and slope of each mean-variance curve.

[0140] The first characteristic curve fitting submodule 53 is used to fit the intercepts of the mean-variance curves corresponding to all the sensitivities using a first-order polynomial to obtain a first characteristic curve of the camera sensor.

[0141] The second characteristic curve fitting submodule 54 is used to fit the slopes of the mean-variance curves corresponding to all the sensitivities using a second-order polynomial to obtain a second characteristic curve of the camera sensor.

[0142] Specifically, if multiple images to be processed are taken by the same camera or the same model of camera sensor, it is only necessary to calibrate the noise characteristics of the camera sensor once, and it is not necessary to calibrate the noise characteristics of the camera sensor before each processing.

[0143] In this embodiment, the horizontal coordinate of the first curve is the sensitivity parameter, and the vertical coordinate is the intercept of the gray value mean-variance curve of the standard gray scale card; the horizontal coordinate of the second curve is the sensitivity parameter, and the vertical coordinate is the slope of the gray value mean-variance curve of the standard gray scale card.

[0144] Another embodiment of a high-gain scene noise reduction system based on deep learning provided by the present invention, based on the above system embodiment, the image parameter acquisition module 10 specifically includes:

[0145] The first parameter search submodule 11 is used to interpolate the sensitivity value of the image to be processed and bring it into the first characteristic curve to calculate and obtain the first parameter of the image to be processed.

[0146] Specifically, the first parameter is the intercept of a mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed.

[0147] The second parameter search submodule 12 is used to interpolate the sensitivity value of the image to be processed and bring it into the second characteristic curve to calculate and obtain the second parameter of the image to be processed.

[0148] Specifically, the second parameter is the slope of a mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed.

[0149] The high-gain scene noise reduction method and system based on deep learning of the present invention have the same technical concept, and the technical details of the embodiments of the two are applicable to each other. In order to reduce repetition, they will not be repeated here.

[0150] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0151] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0153] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0154] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A high-gain scene denoising method based on deep learning, characterized in that: The steps include: Acquire an image to be processed, acquire the sensitivity of the image to be processed, and calculate a first parameter and a second parameter for linear transformation of the image to be processed according to a value of the sensitivity and a noise characteristic of a corresponding camera sensor; Dividing the image to be processed into four channel images, performing linear transformation processing on the channel images by using the first parameter and the second parameter to obtain linear channel images; The linear channel images are sequentially introduced into the trained denoising model for denoising, and the denoised linear channel images are output; Performing inverse linear transformation processing on the denoised linear channel image to restore the denoised channel image; merging the four denoised channel images to obtain a denoised image; Before obtaining the image to be processed, the process further includes the following steps: Acquire multiple frames of standard grayscale images continuously shot by the camera at any sensitivity, calculate the mean of the grayscale values ​​of the standard grayscale images from the time domain perspective, calculate the variance of the grayscale values ​​of the standard grayscale images from the spatial domain perspective, and fit a first-order polynomial fitting mean-variance curve; Among them, the first parameter is the intercept of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed; the second parameter is the slope of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed.

2. A high-gain scene denoising method based on deep learning as claimed in claim 1, characterized in that: Before obtaining the image to be processed, the process further includes the following steps: Calculating the corresponding mean-variance curves at multiple different sensitivities; obtaining the intercept and slope of each mean-variance curve; Fitting all the sensitivities and the intercepts of the corresponding mean-variance curves with a first-order polynomial to obtain a first characteristic curve of the camera sensor; All the sensitivities and the slopes of the corresponding mean-variance curves are fitted with a second-order polynomial to obtain a second characteristic curve of the camera sensor.

3. A high-gain scene denoising method based on deep learning as claimed in claim 2, characterized in that: The method of calculating the first parameter and the second parameter for linear transformation of the image to be processed according to the value of the sensitivity and the noise characteristics of the corresponding camera sensor specifically includes the following steps: Taking the sensitivity value of the image to be processed as an interpolation value, substituting it into the first characteristic curve, calculates and obtains a first parameter of the image to be processed; The sensitivity value of the image to be processed is used as an interpolation value and is substituted into the second characteristic curve to calculate and obtain a second parameter of the image to be processed.

4. A high-gain scene denoising method based on deep learning as described in any one of claims 1 to 3, characterized in that: The step of dividing the image to be processed into four channel images specifically comprises the following steps: Converting the image to be processed from RAW format to Bayer mode; Convert the Bayer pattern images into RGGB format images. The image in the RGGB format is split into an R channel image, a Gr channel image, a Gb channel image, and a B channel image.

5. A high-gain scene denoising method based on deep learning as claimed in claim 4, characterized in that: The performing linear transformation processing on the channel image by using the first parameter and the second parameter to obtain a linear channel image specifically includes: Substitute the channel image into the following formula to calculate the linear channel image: OutImage=(InImage / curA)+(curB^2 / curA^2) Among them, OutImage is the output linear channel image; InImage is the input channel image; curA is the first parameter; curB is the second parameter.

6. A high-gain scene denoising method based on deep learning as claimed in claim 5, characterized in that: The denoising model is a lightweight neural network model AI_NR based on the U-Net model; The linear channel images are sequentially introduced into the trained denoising model for denoising, which specifically includes: Through a 3*3 convolution, the extreme noise of the linear channel image is initially removed; Performing image feature extraction on the linear channel image through a four-layer encoder structure; Through four layers of 3*3 separable convolution, the image features extracted by each layer of encoder are passed to the decoder of the corresponding layer in the form of skip connection; The extracted image features are fused through a four-layer decoder structure; Then through a 3*3 convolution, the denoised linear channel image is output.

7. A high-gain scene denoising method based on deep learning as claimed in claim 6, characterized in that: The performing inverse linear transformation on the denoised linear channel image to restore the denoised channel image specifically includes: Substitute the denoised linear channel image into the following formula to obtain the denoised channel image: FinalImage=(OutImage-(curB^2 / curA^2))*curA Among them, FinalImage is the channel image after denoising; OutImage is the linear channel image after denoising; curA is the first parameter; and curB is the second parameter.

8. A high-gain scene noise reduction system based on deep learning, characterized in that: The system uses the high-gain scene denoising method based on deep learning according to any one of claims 1 to 7 to achieve image denoising, and the system specifically includes: An image parameter acquisition module, used to acquire an image to be processed, acquire the sensitivity of the image to be processed, and calculate a first parameter and a second parameter for linear transformation of the image to be processed according to the value of the sensitivity and the noise characteristics of the corresponding camera sensor; An image linear transformation module, used for dividing the image to be processed into four channel images, performing linear transformation processing on the channel images according to the first parameter and the second parameter, and obtaining linear channel images; A model processing module is used to sequentially bring the linear channel images into the trained denoising model for denoising, and output the denoised linear channel images; An image inverse linear transformation module is used to perform inverse linear transformation processing on the denoised linear channel image to restore the denoised channel image; and merge the four denoised channel images to obtain a denoised image; The system also includes a noise characteristic calibration module; Among them, the mean-variance curve fitting submodule is used to obtain multiple frames of standard grayscale images continuously shot by the camera at any sensitivity, calculate the mean of the grayscale values ​​of the standard grayscale images from the time domain perspective, calculate the variance of the grayscale values ​​of the standard grayscale images from the spatial domain perspective, and fit a first-order polynomial fitting mean-variance curve; The first parameter is the intercept of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed; the second parameter is the slope of the mean-variance curve of the grayscale value of the standard grayscale image under the sensitivity value of the image to be processed.

9. A high-gain scene noise reduction system based on deep learning as claimed in claim 8, characterized in that: The noise characteristic calibration module, Includes the following submodules: The mean-variance curve fitting submodule is also used to calculate the corresponding mean-variance curves at multiple different sensitivities; and obtain the intercept and slope of each mean-variance curve; A first characteristic curve fitting submodule, used for fitting the intercepts of the mean-variance curves corresponding to all the sensitivities with a first-order polynomial to obtain a first characteristic curve of the camera sensor; The second characteristic curve fitting submodule is used to fit the slopes of the mean-variance curves corresponding to all the sensitivities using a second-order polynomial to obtain a second characteristic curve of the camera sensor.

10. A high-gain scene noise reduction system based on deep learning as claimed in claim 9, characterized in that: The image parameter acquisition module specifically includes: A first parameter search submodule, used for interpolating the sensitivity value of the image to be processed and bringing it into the first characteristic curve to calculate and obtain a first parameter of the image to be processed; The second parameter search submodule is used to use the sensitivity value of the image to be processed as an interpolation value and substitute it into the second characteristic curve to calculate and obtain the second parameter of the image to be processed.