Method for constructing strong light inhibition training data set
By collecting and processing images in a low-light environment and generating a training data set for strong light suppression, the problem of lack of data in low-light image enhancement is solved, and effective image enhancement and strong light suppression effects are achieved in real scenes.
Patent Information
- Application Number
- CN202310239000.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-10
AI Technical Summary
In low-light environments, the image signal-to-noise ratio is low, traditional image enhancement methods are ineffective, and deep learning methods lack effective low-light training data sets and are difficult to use in real scenes.
By limiting the gain when collecting original images, suppressing strong light areas, using unsupervised networks for image preprocessing and enhancement, generating the GroudTruth data set, improving the Zero-DCE network to calculate channel loss in the HSV domain, and constructing a strong light suppression training data set .
The generated training data set is closer to the real low-light scene. The model can not only enhance the details of dark areas, but also suppress the bright areas, providing clearer image reconstruction and better color information.
Smart Images

Figure CN118628856A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of low-light enhancement in low-level visual tasks of deep learning neural networks, and in particular to a method for constructing a strong light suppression training data set. Background Art
[0002] With the development of science and technology, the consumption demand for smart devices is growing. The introduction of visual technology into smart devices has become a necessary sword for major market competition. Visual technology is inseparable from the imaging quality of images, and the imaging quality in extreme scenes is particularly critical. Low-light scene image enhancement technology is one of the links. In low-light environments, the signal-to-noise ratio of images is low; short-exposure images have more noise and greater detail loss, and long-exposure images are prone to overexposure, blurry, and unrealistic; how to obtain high-quality low-light images or low-light enhanced images is a technical challenge currently faced. When traditional image enhancement methods cannot effectively improve the quality of low-light images, scholars have proposed different methods for enhancing low-light images based on deep learning, which has opened up a new idea for this field. However, deep learning-based image enhancement methods still face some difficulties, such as the small number of available data sets and the lack of low-light image data sets in different real environments. For data-driven methods, the lack of data can be described as "a good cook cannot cook without rice."
[0003] Low-light image enhancement (LLIE) aims to improve the perceived quality of images captured in low-light environments. Recent progress in this field is mainly dominated by deep learning methods (including different learning strategies, network architectures, loss functions, training data, etc.). Learning strategies include unsupervised and self-supervised; network architectures are also innovative, including those based on CNN and GAN, and those that combine CNN with Retinex theory; loss functions include L1, L2, SSIM, MS_SSIM, perceptual loss, smoothing loss, etc.; many scholars have also released some low-light datasets, such as LOL, SCIE, SID, etc.
[0004] However, traditional image enhancement methods, such as global histogram equalization and gamma transform, have poor effects on low-light image enhancement. Deep learning methods lack low-light training sets. The iterative model of the low-light dataset synthesized from normal images cannot be used in real scenes. When collecting real data, it is often difficult to obtain real data for this part of the scene because the night scene is complex and there are both extremely dark areas and light areas in the image. Because when the dark area of the image is seen, the light source part may have been overexposed, and this part of the information has been lost.
[0005] Common technical terms in the prior art:
[0006] 1. When the ISP control unit schedules the basic algorithm library and the 3A algorithm library, it will obtain the initialization parameters through the callback function to control the sensor, such as adjusting the exposure time, analog gain, digital gain, controlling the lens stepping focus or rotating the aperture, etc.
[0007] 2. Zero-DCE (Zero-reference Deep Curve Estimation): A new deep learning-based low-light image enhancement method that can cope with different lighting conditions, including uneven and poor lighting conditions. Instead of performing image-to-image mapping, this method reformulates the task as an image-specific curve estimation problem. Taking a low-light image as input, this method can iteratively output high-order curves through a deep learning network; these curves are then used to pixel-wise adjust the dynamic range of the input to obtain an enhanced image. The high-order curves are carefully designed to maintain the range of the enhanced image while maintaining the contrast of adjacent pixels.
[0008] 3. In machine learning, the term "ground truth" refers to the accuracy of the classification of the training set for supervised learning techniques. This is used in statistical models to prove or disprove research hypotheses. The term "ground truth" refers to the process of collecting appropriate target (provable) data for this test. More abstractly, it can be understood as the true value, the real valid value, or the standard answer.
[0009] 4.AE (Auto Exposure): You can adjust the image exposure by adjusting the analog gain, digital gain, exposure time, and aperture size.
[0010] 5. Black level correction BLC, black level refers to the minimum value of black, when the sensor is fully black (all zero) data, it corresponds to the minimum signal value output by the sensor (usually between 20-50). It is performed in the Bayer data domain. For example, taking 8-bit data as an example, the sensor output data range is [blc, 255], and the actual brightness range is [0, 255-blc]. The final output brightness range of 8-bit data is [0, 255]: There are actually two correction methods: 1) After subtracting blc, directly multiply a coefficient to make its data range reach [0, 255], that is, Out = gain * (In-blc); 2) Directly subtract blc without multiplying the coefficient, and use subsequent gamma and other methods to increase brightness to make the final image output range reach [0, 255].
[0011] 6. Denoise, including 3D denoising and 2D denoising; 3D denoising is also called time domain denoising, which automatically filters out non-overlapping information (i.e. noise) by comparing several adjacent frames of images; 2D denoising is also called spatial domain denoising, which performs operations such as filtering on a single frame of image.
[0012] 7. Automatic white balance AWB, the basic principle is to restore white objects to white objects in any environment. Common algorithms include: Global white balance: the statistical averages of the RGB color components of all captured images should be approximately equal or the statistical averages of their UV components should be approximately zero, and the statistical averages of the UV components of all areas are used as the basis for white balance calibration; Local white balance: the brightest area of the visually searched captured image is the white area, the statistical averages of the RGB color components of the area should be approximately equal or the statistical averages of its UV components should be approximately zero, and the statistical averages of the UV components of the area are used as the basis for white balance calibration. Summary of the invention
[0013] In order to solve the above problems, the purpose of this application is to provide a method for constructing a training data set for a method for enhancing low-light images based on a deep learning network, suppressing the strong light area by limiting the gain in the process of collecting the original image, and then obtaining GroudTruth through an unsupervised network to keep the strong light area from being overexposed and increase the brightness of the dark area, thereby obtaining a training data set.
[0014] Specifically, the present invention provides a method for constructing a strong light suppression training data set, the method comprising the following steps:
[0015] S1. Collect original images:
[0016] S1.1 Use the device to capture low-light images to save the original RAW format images;
[0017] S1.2 In order to suppress strong light and retain effective image information, and reduce the overexposure problem caused by the increase in gain, the conventional settings during AE convergence are changed, that is, the strategy of limiting analog gain sensor Again and not using digital gain sensorDgain is adopted to replace the original AE strategy, where sensor gain sensor gain is divided into sensor Again and sensor Dgain; the specific value of limiting analog gain is 30db;
[0018] S2. Image preprocessing:
[0019] Perform black level correction BLC, denoising Denoise, and automatic white balance AWB preprocessing on the original image;
[0020] S3. Unsupervised network enhancement image:
[0021] The unsupervised network uses Zero-DCE, and further improvements include:
[0022] 1) Change the input RGB to RAW image;
[0023] 2) The color constancy loss function in the RGB domain of the original Zero-DCE is no longer used; instead, the channel loss calculation is performed in the HSV domain;
[0024] 3) The smoothing loss function is changed to RAW image calculation;
[0025] 4) According to the above 1)-3), the comprehensive loss function of the network is obtained and the comprehensive loss is calculated;
[0026] S4. Image selection to generate GroudTruth
[0027] S4.1 According to the Zero-DCE feature, in order to obtain the best GroudTruth in the training set, the result needs to be enhanced by a selection or traditional method, that is, an optimal image is selected by human eyes or by image mean and variance, and the image is enhanced in terms of contrast and saturation to obtain an enhanced image;
[0028] S4.2 pairs the original image and the enhanced image outputted corresponding to step S4.1 as a set of arrays, i.e., produces a paired data set with stable targets for subsequent or other supervised low-light enhancement network training.
[0029] In step S1.1, the device collects low-light images by using a photometer in a laboratory to test that the ambient light intensity is less than 0.1 lux or in an outdoor environment at night, and a camera is selected to collect low-light environment images or record videos.
[0030] The original AE strategy in step S1.2 includes:
[0031] AE mainly has two modules. One is the AE statistics module, which is usually a hardware module and requires strong computing power to spit out brightness histogram, brightness area statistics, current brightness, and ambient brightness. The other is the AE algorithm module. The parameters of this part are passed in by ISP debugging, and the AE behavior is determined after calculation based on the previous AE statistics.
[0032] If AE convergence is required, set the sensor shutter and sensor gain or ISP gain inside the sensor. The ISP gain is adjusted only in very dark scenes when the sensor gain has been adjusted to the set maximum threshold. The analog gain sensor Again does not amplify the noise after ADC relative to the digital gain sensor Dgain, and the accuracy of the analog gain is much higher than that of the digital gain. Therefore, in low-light environments, in order to see the details in dark areas, a large digital gain is usually used.
[0033] In step S3, the original Zero-DCE includes:
[0034] The first-order enhancement curve of network simulation is shown in formula (1) and the higher-order enhancement curve is shown in formula (2);
[0035] The loss function used in network training is shown in formulas (3) to (7):
[0036] LE(I(x);α)=I(x)+αI(x)(1-I(x)) Formula (1)
[0037] Where I(x) is the input image, α is the enhancement curve and α∈[-1,1], and LE(I(x); α) is the result image after one enhancement.
[0038] LE n (x) = LE n-1 (x)+A n LE n-1 (x)(1-LE n-1 (x)) Formula (2)
[0039] Among them, LE n-1 (x) is the n-1th enhanced graph, A n is the nth enhancement curve and A n ∈[-1,1],LE n (x) is the nth enhancement result diagram;
[0040]
[0041] Among them, L exp is the exposure control loss, M is the number of 16×16 small regions into which the input image is divided, and Y k is the mean value of the input image corresponding to k small areas;
[0042]
[0043] Among them, L spais the spatial consistency loss, K is the number of 4×4 small regions into which the input image is divided, Y is the mean of the local region of the enhanced image, I is the mean of the local region of the input image, and Ω(i) is the neighborhood (upper, lower, left, right) corresponding to the central region i of the local block region;
[0044]
[0045] Among them, L col is the loss of color consistency;
[0046]
[0047] Among them, L tvA is the brightness smoothing loss, N is the number of iterations, ▽ x and y are the horizontal and vertical gradient operators respectively;
[0048] L total =L spa +L exp +W col L col +W tvA L tvA Formula (7)
[0049] Among them, L total is the comprehensive loss function for network training, W col and W tvA The weight coefficient assigned to each loss.
[0050] The step S3 further comprises:
[0051] S3.1 To meet application requirements, the original Zero-DCE network is improved as follows:
[0052] 1) The network input is changed from an RGB format image to a RAW image preprocessed in step S2; that is, the network input is: [N, H, W, 3] → [N, H, W, 1]; where N, H, and W are the image batch size, image height, and image width, respectively;
[0053] 2) Network training no longer uses the color constancy loss function L in the RGB domain col That is, formula (5); instead, the RAW image is converted to RGB format, and then transferred to the HSV domain to calculate the hue H and saturation S channel loss, as shown in the following formula (9):
[0054] 3) The high-order enhancement curve obtained by network training corresponds to the RAW image, so the smoothing loss function L tvA The calculation is also changed from RGB format to RAW image, as shown in the following formula (8):
[0055] 4) The comprehensive loss function of the network is shown in formula (10):
[0056]
[0057]
[0058] Among them, Y t ,I t They are the results of converting the enhanced result image and the input image into the hsv color space respectively;
[0059] L total =L spa +L exp +W col_hsv L col_hsv +W tvA_raw L tvA_raw Formula (10);
[0060] S3.2 sends the data set obtained after step S2 as a training set to the improved Zero-DCE network for model training.
[0061] In step S4.1, the Zero-DCE feature means that the high-order curve of the network is continuously iterated. Assuming 8 iterations, each iteration will generate an enhancement curve. Applying this curve to the image is an enhancement of the image. Since it is unsupervised, the final goal of the iteration is not a fixed image. The final goal is not a fixed image, which means that there is no target image. The network output image has certain fluctuations and will not reach the same brightness level completely consistently. Instead, it is a result obtained by driving the network training with the joint efforts of multiple loss indicators.
[0062] Therefore, the advantages of this application are:
[0063] 1. The collected original image is not automatically exposed by the AE module. Instead, the original low-light image is suppressed by limiting the analog gain (specifically 30db) and not using digital gain to prevent overexposure in the collected original image.
[0064] 2. The training set is no longer a dark image of normal brightness, but an enhancement of the actual dark image; such a training set is closer to the real scene (even low-light images have bright areas due to the existence of light sources); the trained model is no longer just a theory, and can not only enhance dark areas, but also suppress bright areas;
[0065] 3. Select RAW format data for image enhancement. Although RAW data is limited to a specific sensor, it contains more color gamut and higher dynamic range. Therefore, the deep model based on RAW data can reconstruct clearer details, high contrast, and better color information. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.
[0067] Figure 1 It is a flow chart of the steps of the method of this application.
[0068] Figure 2 It is a schematic block diagram of the improved Zero-DCE structure in the method of the present application.
[0069] Figure 3 is a schematic diagram of the AE control mechanism involved in this application. DETAILED DESCRIPTION
[0070] In order to more clearly understand the technical content and advantages of the present invention, the present invention is now further described in detail in conjunction with the accompanying drawings.
[0071] The present invention proposes a method for constructing a strong light suppression training data set in a low light enhancement network. Figure 1 As shown, the main implementation steps of the method are as follows:
[0072] S1. Collect original images:
[0073] S1.1 Use the device to capture low-light images and save the original RAW format images; the low-light images are captured by using a photometer in a laboratory to test the ambient light intensity to be less than 0.1 lux or in an outdoor environment at night, and a camera is selected to capture low-light environment images or record videos;
[0074] S1.2 In order to suppress strong light and reduce the overexposure problem caused by increased gain, the strategy of limiting analog gain and not using digital gain is adopted to replace the original AE automatic exposure strategy; the specific value of the limited analog gain is 30db;
[0075] The AE (auto exposure) is a module for adjusting the image brightness in the ISP (image processor). It can automatically adjust the exposure to make the image reach the appropriate brightness for human eyes. AE mainly has two modules. One is the AE statistics module, which is usually a hardware module and requires strong computing power to spit out the brightness histogram, brightness area statistics, current brightness, and ambient brightness. The other is the AE algorithm module. The parameters of this part are passed in by the ISP debugging, and the AE behavior is determined after calculation based on the previous AE statistics. The specific AE control mechanism is shown in the attached figure. Figure 3 As shown:
[0076] The AE algorithm module calculates relevant parameters to implement aperture control of the lens, exposure time and gain control of the sensor, and ISP gain parameters;
[0077] If AE convergence is required, set the sensor's internal shutter and gain or ISP gain. ISP gain (also a digital gain) is generally not adjusted, unless it is a very dark scene. After the sensor gain has been adjusted to the set maximum threshold, the ISP gain is adjusted; the sensor gain is divided into sensor Again (analog gain) and sensor Dgain (digital gain). Compared with digital gain, analog gain does not amplify the noise after ADC, and the accuracy of analog gain is much higher than that of digital gain. Usually in low-light environments, in order to see the details in dark areas, a large digital gain is often used, which not only increases the noise, but also if there is a point light source in the picture, the bright area near the point light source will be overexposed. Therefore, this strategy is implemented to suppress strong light as much as possible and retain effective image information;
[0078] S2. Image preprocessing:
[0079] Perform black level correction BLC, denoising Denoise, and automatic white balance AWB preprocessing on the original image;
[0080] S3. Unsupervised network enhancement image:
[0081] The unsupervised network uses Zero-DCE, and further improvements include:
[0082] 1) Change the input RGB to RAW image;
[0083] 2) The color constancy loss function in the RGB domain of the original Zero-DCE is no longer used; instead, the channel loss calculation is performed in the HSV domain;
[0084] 3) The smoothing loss function is changed to RAW image calculation;
[0085] 4) According to the above 1)-3), the comprehensive loss function of the network is obtained and the comprehensive loss is calculated;
[0086] The improved Zero-DCE uses the following network structure: Figure 2 As shown; the first-order enhancement curve of network simulation is shown in formula (1) and the high-order enhancement curve is shown in formula (2); the loss function used in network training is shown in formulas (3) to (7).
[0087] LE(I(x);α)=I(x)+αI(x)(1-I(x)) Formula (1)
[0088] Where I(x) is the input image, α is the enhancement curve and α∈[-1,1], and LE(I(x); α) is the result image after one enhancement.
[0089] LE n (x) = LE n-1 (x)+A n LE n-1 (x)(1-LE n-1 (x)) Formula (2)
[0090] Among them, LE n-1 (x) is the n-1th enhanced graph, A n is the nth enhancement curve and A n ∈[-1,1],LE n (x) is the nth enhancement result diagram.
[0091]
[0092] Among them, L exp is the exposure control loss, M is the number of 16×16 small regions into which the input image is divided, and Y k is the mean value of the input image corresponding to k small areas.
[0093]
[0094] Among them, L spa is the spatial consistency loss, K is the number of 4×4 small regions into which the input image is divided, Y is the mean of the local region of the enhanced image, I is the mean of the local region of the input image, and Ω(i) is the neighborhood (upper, lower, left, right) corresponding to the central region i of the local block region.
[0095]
[0096] Among them, L col Loss of color consistency.
[0097]
[0098] Among them, L tvA is the brightness smoothing loss, N is the number of iterations, ▽ x and y are the horizontal and vertical gradient operators respectively.
[0099] L total =L spa +L exp +W col L col +WtvA L tvA Formula (7)
[0100] Among them, L total is the comprehensive loss function for network training, W col and W tvA The weight coefficient assigned to each loss.
[0101] The step S3 further comprises:
[0102] S3.1 To meet application requirements, the original Zero-DCE network is improved as follows:
[0103] 1) The network input is changed from an RGB format image to a RAW image preprocessed in step S2; that is, the network input is: [N, H, W, 3] → [N, H, W, 1]; where N, H, and W are the image batch size, image height, and image width, respectively;
[0104] 2) Network training no longer uses the color constancy loss function L in the RGB domain col That is, formula (5); instead, the RAW image is converted to RGB format, and then transferred to the HSV domain to calculate the hue H and saturation S channel loss, as shown in the following formula (9):
[0105] 3) The high-order enhancement curve obtained by network training corresponds to the RAW image, so the smoothing loss function L tvA The calculation is also changed from RGB format to RAW image, as shown in the following formula (8):
[0106] 4) The comprehensive loss function of the network is shown in formula (10):
[0107]
[0108]
[0109] Among them, Y t ,I t They are the results of converting the enhanced result image and the input image into the hsv color space respectively;
[0110] L total =L spa +L exp +W col_hsv L col_hsv +W tvA_raw L tvA_raw Formula (10);
[0111] S3.2 sends the data set obtained after step S2 as a training set to the improved Zero-DCE network for model training.
[0112] S4. Image selection to generate GroudTruth
[0113] S4.1 According to the Zero-DCE characteristics, the high-order curve of the network is continuously iterated. Assuming that the iteration is 8 times, each iteration will generate an enhancement curve. Applying this curve to the image is an enhancement of the image. Since it is unsupervised, the final goal of the iteration is not a fixed image (without the target image, the network output image has certain fluctuations and will not reach the same brightness level completely consistently), but a result obtained by driving the network training with multiple loss indicators. Therefore, in order to obtain the best GroudTruth in the training set, it is necessary to enhance the result by a selection or traditional method, that is, select an optimal image by image mean and variance or human eyes, and enhance the image in terms of contrast, saturation, etc., to ensure that the image quality is as close as possible. For example, a part of the best enhanced images is selected by human eyes, and the distribution law of their mean and variance is analyzed: among multiple enhanced result images, select the image with the image mean distributed between 0.35 and 0.45. If there are multiple images in this distribution range, select the image with the largest variance to ensure that the image quality is close to the current human eye evaluation.
[0114] S4.2 pairs the original image and the enhanced image outputted corresponding to step S4.1 as a set of arrays to generate a paired data set with stable targets for subsequent or other supervised low-light enhancement network training.
[0115] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for constructing a strong light suppression training data set, characterized in that: The method comprises the following steps: S1. Collect original images: S1.1 Use the device to capture low-light images to save the original RAW format images; S1.2 In order to suppress strong light and retain effective image information, and reduce the overexposure problem caused by the increase in gain, the conventional settings during AE convergence are changed, that is, the strategy of limiting the analog gain sensor Again and not using the digital gain sensor Dgain and the image processor digital gain ISP Dgain is used to replace the original AE strategy, where the sensor gain sensorgain is divided into sensor Again and sensor Dgain; the specific value of limiting the analog gain is 30db; S2. Image preprocessing: Perform black level correction BLC, denoising Denoise, and automatic white balance AWB preprocessing on the original image; S3. Unsupervised network enhancement image: The unsupervised network uses Zero-DCE, and further improvements include: 1) Change the input RGB to RAW image; 2) The color constancy loss function in the RGB domain of the original Zero-DCE is no longer used; instead, the channel loss calculation is performed in the HSV domain; 3) The smoothing loss function is changed to RAW image calculation; 4) According to the above 1)-3), the comprehensive loss function of the network is obtained and the comprehensive loss is calculated; S4. Image selection to generate GroudTruth S4.1 According to the Zero-DCE feature, in order to obtain the best GroudTruth in the training set, the result needs to be enhanced by a selection or traditional method, that is, an optimal image is selected by human eyes or by image mean and variance, and the image is enhanced in terms of contrast and saturation to obtain an enhanced image; S4.2 pairs the original image and the enhanced image outputted corresponding to step S4.1 as a set of arrays, i.e., produces a paired data set with stable targets for subsequent or other supervised low-light enhancement network training.
2. The method for constructing a strong light suppression training data set according to claim 1, characterized in that: In step S1.1, the device collects low-light images by using a photometer in a laboratory to test that the ambient light intensity is less than 0.1 lux or in an outdoor environment at night, and a camera is selected to collect low-light environment images or record videos.
3. The method for constructing a strong light suppression training data set according to claim 1, characterized in that: The original AE strategy in step S1.2 includes: AE mainly has two modules. One is the AE statistics module, which is usually a hardware module and requires strong computing power to spit out brightness histogram, brightness area statistics, current brightness, and ambient brightness. The other is the AE algorithm module. The parameters of this part are passed in by ISP debugging, and the AE behavior is determined after calculation based on the previous AE statistics. If AE convergence is required, set the sensor shutter and sensor gain or ISP gain inside the sensor. The ISP gain is adjusted only in very dark scenes when the sensor gain has been adjusted to the set maximum threshold. The analog gain sensor Again does not amplify the noise after ADC relative to the digital gain sensor Dgain, and the accuracy of the analog gain is much higher than that of the digital gain. Therefore, in low-light environments, in order to see the details in dark areas, a large digital gain is usually used.
4. The method for constructing a strong light suppression training data set according to claim 1, characterized in that: In step S3, the original Zero-DCE includes: The first-order enhancement curve of network simulation is shown in formula (1) and the higher-order enhancement curve is shown in formula (2); the loss function used in network training is shown in formulas (3) to (7): LE(I(x);α)=I(x)+αI(x)(1-I(x)) Formula (1) Where I(x) is the input image, α is the enhancement curve and α∈[-1,1], and LE(I(x); α) is the result image after one enhancement. LE n (x) = LE n-1 (x) + A n LE n-1 (x)(1 - LE n-1 (x)) Equation (2) Among them, LE n-1 (x) is the n-1th enhanced graph, A n is the nth enhancement curve and A n ∈[-1,1],LE n (x) is the nth enhancement result diagram; Among them, L exp is the exposure control loss, M is the number of 16×16 small regions into which the input image is divided, and Y k is the mean value of the input image corresponding to k small areas; Among them, L spa is the spatial consistency loss, K is the number of 4×4 small regions into which the input image is divided, Y is the mean of the local region of the enhanced image, I is the mean of the local region of the input image, and Ω(i) is the neighborhood (upper, lower, left, right) corresponding to the central region i of the local block region; Among them, L col is the loss of color consistency; Among them, L tvA is the brightness smoothing loss, N is the number of iterations, and are the horizontal and vertical gradient operators respectively; L total =L spa +L exp +W col L col +W tvA L tvA Formula (7) Among them, L total is the comprehensive loss function for network training, W col and W tvA The weight coefficient assigned to each loss.
5. The method for constructing a strong light suppression training data set according to claim 4, characterized in that: The step S3 further comprises: S3.1 To meet application requirements, the original Zero-DCE network is improved as follows: 1) The network input is changed from an RGB format image to a RAW image preprocessed in step S2; that is, the network input is: [N, H, W, 3] → [N, H, W, 1]; where N, H, and W are the image batch size, image height, and image width, respectively; 2) Network training no longer uses the color constancy loss function L in the RGB domain col That is, formula (5); instead, the RAW image is converted to RGB format, and then transferred to the HSV domain to calculate the hue H and saturation S channel loss, as shown in the following formula (9): 3) The high-order enhancement curve obtained by network training corresponds to the RAW image, so the smoothing loss function L tvA The calculation is also changed from RGB format to RAW image, as shown in the following formula (8): 4) The comprehensive loss function of the network is shown in formula (10): L col_hsv ∑ t∈ε (THE t -I t ) 2 ,ε={h,s} in(9) Among them, Y t ,I t They are the results of converting the enhanced result image and the input image into the hsv color space respectively; L total =L spa +L exp +W col_hsv L col_hsv +W tvA_raw L tvA_raw Formula (10); S3.2 sends the data set obtained after step S2 as a training set to the improved Zero-DCE network for model training.
6. The method for constructing a strong light suppression training data set according to claim 1, characterized in that: In step S4.1, the Zero-DCE characteristic means that the high-order curve of the network is continuously iterated. Assuming 8 iterations, each iteration will generate an enhancement curve. Applying this curve to the image is an enhancement of the image. Since it is unsupervised, the final goal of the iteration is not a fixed image. The final goal is not a fixed image means that there is no target image, and the network output image has certain fluctuations and will not reach the same brightness level completely consistently. Instead, it is a result obtained by driving the network training with the joint efforts of multiple loss indicators.
