Method for constructing low-illumination enhanced data set

By adjusting exposure time and image processing under low-light conditions, filtering and combining images, and constructing a low-light enhancement data set, the problem of insufficient low-light enhancement and high-light suppression in the existing technology is solved, and the adaptability and generalization of the model are improved. ization capabilities and restored detailed information.

CN118628855AActive Publication Date: 2024-09-10HEFEI JUNZHENG TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202310238915.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2024-09-10
Estimated Expiration
2043-03-08

AI Technical Summary

Technical Problem

Existing low-light enhancement technology is difficult to effectively adapt to real scenes, especially in complex situations where there are extremely dark areas and light sources in night scenes, resulting in models that are insufficient in strong light suppression and lose detailed information.

Method used

By changing the exposure time to obtain images of different brightness under dark ambient light conditions, simulating 3D denoising, filtering and combining short and long frame images, using the exposure fusion method to calculate pixel weights, and constructing a low-light enhancement data set to ensure Model performance in terms of low-light enhancement and high-light suppression.

Benefits of technology

Effectively collect large batches of data that meet training requirements, improve model generalization capabilities, reduce costs, ensure the effects of low-light enhancement and strong-light suppression in real scenes, and restore detailed information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004123441910000031
    Figure BDA0004123441910000031
  • Figure BDA0004123441910000032
    Figure BDA0004123441910000032
  • Figure BDA0004123441910000033
    Figure BDA0004123441910000033
Patent Text Reader

Abstract

The invention provides a method for constructing a low-illumination enhanced data set, and the method comprises the steps: S1, image collection: obtaining images with different brightness through changing the exposure time under the condition that the ambient light is not too dark under the condition that the ambient light is relatively dark; s2, image processing: simulating the effect of 3D denoising to obtain a low-noise image; s3, screening an input data set: taking an image without overexposure in the images processed in the step S2 as a short frame of the data set, called short, taking other frames smaller than the brightest frame as a long frame of the data set, called long, and randomly combining the short frame and the long frame; the images processed in the step S2 are synthesized into one piece in an exposure fusion mode to serve as a label image which is expressed as gt, and in the same scene, any group of short and long combinations correspond to the same piece of gt; and S5, cutting the image: selecting the same window and the same step length, and simultaneously cutting the image on the gt and the short and long corresponding to the gt. And a real dark light scene can be better adapted.
Need to check novelty before this filing date? Find Prior Art

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 low-light enhancement data set. Background Art

[0002] In recent years, with the rapid development of science and technology, image processing technology has become more and more mature. The existing supervised deep learning low-light enhancement is essentially to learn the function mapping from the value domain of dark light images to the bright image domain. In order to improve image quality, tasks such as brightening and denoising are all expected to be completed based on a model. The current mainstream training loss functions are all loss functions of some comprehensive tasks. Objective evaluation criteria such as structural similarity and peak signal-to-noise ratio often do not match the visual effects well. Therefore, network adaptive learning plays a very important role, that is, the quality of the data set is particularly important. The data set for low-light enhancement tasks is difficult to collect. The current public data sets are relatively small in size, and the generalization ability of the trained model also has great disadvantages, making it difficult to adapt to low-light enhancement tasks in real scenes.

[0003] At present, most solutions extract a part from some public datasets such as voc, ImageNet, etc., use gamma transform to obtain the data of dark images, and then simply randomly add noise such as Gaussian distribution and Poisson distribution to the dark light image to simulate the dark image in the real scene.

[0004] However, simply using gamma transformation to darken the data will result in the trained model not being able to be used well in real scenes. Second, because night scenes are relatively complex, there are often some extremely dark areas and a series of light sources at the same time. These areas are often prone to appear overexposed in the image. Simple gamma transformation can only allow the model to learn the brightening effect. For the originally overexposed areas, the model trained using this dataset will even become more overexposed after inference, resulting in loss of detail information.

[0005] Common technical terms in the prior art:

[0006] Image Signal Processing (ISP): A unit mainly used to process the output signals of the front-end image sensor to match image sensors from different manufacturers.

[0007] Short exposure and long exposure: Data of different qualities can be obtained by changing the exposure time. Short exposure time means less light input and darker images, while long exposure time means more light input and brighter images. Summary of the invention

[0008] In order to solve the above problems, the purpose of this application is to: through this method, the collected data set can achieve the effect of strong light suppression while enhancing low light in the multi-frame fusion low light enhancement task, and can suppress the originally overexposed part well, so as to achieve the effect of restoring the details. Through the operation of this method, the shortcomings of strong light suppression in the low light enhancement task can be improved to the maximum extent, and better adapt to the real dark light scene.

[0009] Specifically, the present invention provides a method for constructing a low-light enhancement dataset, the method comprising the following steps:

[0010] S1. Image collection: When the ambient light is dark, keep the ambient light not too dark, that is, the ambient brightness is between 0.2lux and 2lux, and obtain images with different brightness by changing the exposure time;

[0011] S2. Image processing: simulate the effect of 3D denoising to obtain low-noise images;

[0012] S3. Filter input dataset:

[0013] The images without overexposure in the images processed in step S2 are taken as the short frames of the data set, called short, and the other frames smaller than the brightest frame are taken as the long frames of the data set, called long. The short frames and the long frames are randomly combined. In the actual acquisition process, the brightness of the image frame is adjusted by controlling the exposure time. The upper and lower limits of the same scene are the same. The standard of the brightest frame is to make the image the brightest and not contain overexposed areas by adjusting the exposure time in the current scene.

[0014] S4. Labeled dataset synthesis:

[0015] The images processed in step S2 are synthesized into one image by exposure fusion as a label image, denoted as gt. In the same scene, any combination of short and long corresponds to the same gt. The exposure fusion method includes a fusion based on pixel-level images, which is a first-level fusion method. The weight function of the image is calculated according to different pixel values ​​of images with different exposures:

[0016] Is it a good exposure weight function?

[0017] For images normalized to the range of 0 to 1, pixels with values ​​around 0.5 are considered to be well exposed and should be assigned a large weight; pixels close to 0 and 1 are underexposed and overexposed, respectively, and should be assigned a small weight; the relationship between pixel values ​​and their corresponding weights conforms to a Gaussian distribution with a mean of 0.5:

[0018]

[0019] The denominator parameter is usually set to 0.2, and L is the brightness;

[0020] Contrast weight function:

[0021] Perform Laplace filtering on the grayscale image of the image, and take the absolute value of the result as the contrast index:

[0022] C(I k )=|Δ gray (I k )|

[0023] Saturation weight function:

[0024] Areas with large differences between the three RGB channels are considered to have high saturation. Conversely, areas with overexposed or underexposed RGB channels tend to have the same value, indicating low saturation. Therefore, the standard deviation between the three RGB channels is used as a saturation indicator:

[0025]

[0026]

[0027] After obtaining the above three indicators, the weight corresponding to each pixel can be calculated:

[0028] W = C*S*E;

[0029] S5. Cut the image:

[0030] Choose to capture the image on gt and its corresponding short and long with the same window and step size.

[0031] In step S1, a series of close-up images of the same scene with different brightness are taken under natural light by adjusting the exposure time, and the color of such images should not be too single, that is, the proportion of the same color and detail-free parts in the scene should not exceed 30%, and multiple images should be taken at the same exposure time;

[0032] The multiple images taken at the same exposure time are actually 500 images.

[0033] The shooting of a series of close-up images of the same scene with different brightness includes images that are too dark and overexposed. The upper limit of the exposure time is that the image will not be overexposed in a large area, and the lower limit of the exposure time is that the image will not be underexposed in a large area. Only for scenes with light sources, the overexposed part does not exceed 10%, and the underexposed part does not exceed 10%. The other scenes are required to contain neither overexposure nor underexposure.

[0034] The step S1 further comprises:

[0035] Assuming that in the same scene, a total of m images with different exposures can be taken according to the required step length within the exposure time span that meets the requirements, then for each exposure time, n images are taken with the same camera parameters; the exposure time span adjusts the brightness of the image frame by controlling the exposure time during the actual acquisition process, and the upper and lower limits of the same scene are the same. The brightest frame is the standard for the image to be the brightest and not containing overexposed areas by adjusting the exposure time in the current scene, and the overexposure ratio of the scene containing light source does not exceed 10%; the darkest frame is the standard for the image to be the darkest and not containing underexposed areas by adjusting the exposure time in the current scene, and the underexposure ratio of the scene containing light source does not exceed 10%; the required step length takes 10 values ​​within the range according to the upper and lower limits of exposure in actual execution, and the step lengths are equal.

[0036] The specific steps of the image processing in step S2 are as follows:

[0037] Assume that the m images with different exposure times in step S1 are named (T1, T2, ..., T m ), for each image, there are n images taken with the same camera parameters, set as (T 11 , T 12 , ...T 1n ), synthesized by adding and averaging, as follows

[0038]

[0039] This simulates the effect of 3D denoising and obtains a low-noise image.

[0040] In the step S3, the m images processed in the step S2 are screened.

[0041] The step S4 combines the m images processed in step S2 into one image.

[0042] Therefore, the advantages of this application are:

[0043] 1. Low-light enhancement datasets have always been difficult to collect. Some real-life datasets face difficulties in data alignment, and manufactured datasets have weak generalization capabilities. Due to the complexity of night scenes, it is often impossible to take into account the problem of strong light suppression at the dataset level. This method uses a series of fixed steps to easily obtain a large amount of data that meets training requirements and reduce costs.

[0044] 2. Many-to-one data can make model training better adapt to tasks under different lighting conditions, thereby improving the generalization ability of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] 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.

[0046] Figure 1 This is a schematic flowchart of the process of constructing a dark light data set according to the method of this application.

[0047] Figure 2 It is a flow chart of the steps of the method of this application. DETAILED DESCRIPTION

[0048] 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.

[0049] This paper proposes a method for constructing a low-light enhancement task training dataset. Figure 1 In order to construct a flowchart of the low-light enhancement dataset, the specific implementation steps of the method are described as follows: Figure 2 As shown:

[0050] Step S1. Image collection

[0051] In practical applications, the goal is not just to brighten the image blindly, but to brighten the dark image and control the overexposed image. In the case of dark ambient light, the image often has many problems, so we can keep the ambient light not too dark, that is, the ambient brightness is between 0.2lux-2lux, and obtain images with different brightness by changing the exposure time.

[0052] Under natural light, by adjusting the exposure time, take a series of close-up images of the same scene with different brightness (including over-dark and over-exposed images here, the upper limit of the exposure time is that the image is not over-exposed in a large area, and the lower limit of the exposure time is that the image is not under-exposed in a large area. Only for scenes with light sources, the over-exposed part accounts for no more than 10%, and the under-exposed part accounts for no more than 10%. The rest of the scenes are required to contain no over-exposure or under-exposure). It is required that the color of such images should not be too single, that is, the proportion of the same color and detail-free parts in the scene should not exceed 30%, and multiple images should be taken at the same exposure time. In actual execution, 500 images are collected for multiple images taken at the same exposure time; for example, assuming that in the same scene, the requirements are met A total of m images with different exposures can be taken according to the required step length within the exposure time span, so for each exposure time, n images are taken with the same camera parameters; the exposure time span adjusts the brightness of the image frame by controlling the exposure time during the actual acquisition process, and the upper and lower limits of the same scene are the same. The brightest frame is the standard for adjusting the exposure time to make the image the brightest and not containing overexposed areas in the current scene, and the overexposure ratio of the scene containing light source does not exceed 10%; the darkest frame is the standard for adjusting the exposure time to make the image the darkest and not containing underexposed areas in the current scene, and the underexposure ratio of the scene containing light source does not exceed 10%; the required step length takes 10 values ​​within the range according to the upper and lower limits of exposure in actual execution, and the step lengths are equal.

[0053] Step S2. Image processing

[0054] Assume that the m images with different exposure times in the previous step are named (T1, T2, ..., T m ), for each image there are n images taken with the same camera parameters, such as (T 11 , T 12 , ...T 1n ), synthesized by adding and averaging, as follows

[0055]

[0056] This can simulate the effect of 3D denoising and obtain images with lower noise;

[0057] Step S3. Filter the input dataset

[0058] For the m images processed by step S2, the images without overexposure are taken as the short frames of the data set, called short, and the other frames smaller than the brightest frame are taken as the long frames of the data set, called long. The short frames and the long frames can be randomly combined.

[0059] Step S4. Label dataset synthesis

[0060] The m images processed in step S2 are combined into one image by exposure fusion as a label image, denoted as gt. In the same scene, any combination of short and long corresponds to the same gt.

[0061] Step S5: Cut the image

[0062] The size of the captured images is generally large. In actual training, it is neither necessary nor appropriate to use overly large images for training. Therefore, this paper chooses to use the same window and the same step size, and captures images on gt and the corresponding short and long at the same time, so as to further expand the size of the data set. Since the image scenes selected in this paper are close-up images with richer colors, the information richness of the data set can fully meet the training needs.

[0063] 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 low-light enhancement dataset, characterized in that: The method comprises the following steps: S1. Image collection: When the ambient light is dark, keep the ambient light not too dark, that is, the ambient brightness is between 0.2lux and 2lux, and obtain images with different brightness by changing the exposure time; S2. Image processing: simulate the effect of 3D denoising to obtain low-noise images; S3. Filter input dataset: The images without overexposure in the images processed in step S2 are taken as the short frames of the data set, called short, and the other frames smaller than the brightest frame are taken as the long frames of the data set, called long. The short frames and the long frames are randomly combined. In the actual acquisition process, the brightness of the image frame is adjusted by controlling the exposure time. The upper and lower limits of the same scene are the same. The standard of the brightest frame is to make the image the brightest and not contain overexposed areas by adjusting the exposure time in the current scene. S4. Labeled dataset synthesis: The images processed in step S2 are synthesized into one image by exposure fusion as a label image, denoted as gt. In the same scene, any combination of short and long corresponds to the same gt. The exposure fusion method includes a fusion based on pixel-level images, which is a first-level fusion method. The weight function of the image is calculated according to different pixel values ​​of images with different exposures: Is it a good exposure weight function? For images normalized to the range of 0 to 1, pixels with values ​​around 0.5 are considered to be well exposed and should be assigned a large weight; pixels close to 0 and 1 are underexposed and overexposed, respectively, and should be assigned a small weight; the relationship between pixel values ​​and their corresponding weights conforms to a Gaussian distribution with a mean of 0.5: The denominator parameter is usually set to 0.2, and L is the brightness; Contrast weight function: Perform Laplacian filtering on the grayscale image and take the absolute value of the result as the contrast index: C(I k )=|Δ gray (I k )| Saturation weight function: Areas with large differences between the three RGB channels are considered to have high saturation. Conversely, areas with overexposed or underexposed RGB channels tend to have the same value, indicating low saturation. Therefore, the standard deviation between the three RGB channels is used as a saturation indicator: After obtaining the above three indicators, the weight corresponding to each pixel can be calculated: W = C*S*E; S5. Cut the image: Choose to capture the image with the same window and the same step size on gt and its corresponding short and long.

2. The method for constructing a low-light enhancement dataset according to claim 1, characterized in that: In step S1, a series of close-up images of the same scene with different brightness are taken under natural light by adjusting the exposure time, and the color of such images should not be too single, that is, the proportion of the same color and detail-free parts in the scene should not exceed 30%, and multiple images should be taken at the same exposure time; The multiple images taken at the same exposure time are actually 500 images. The shooting of a series of close-up images of the same scene with different brightness includes images that are too dark and overexposed. The upper limit of the exposure time is that the image will not be overexposed in a large area, and the lower limit of the exposure time is that the image will not be underexposed in a large area. Only for scenes with light sources, the overexposed part does not exceed 10%, and the underexposed part does not exceed 10%. The other scenes are required to contain neither overexposure nor underexposure.

3. The method for constructing a low-light enhancement dataset according to claim 2, characterized in that: The step S1 further comprises: Assuming that in the same scene, a total of m images with different exposures can be taken according to the required step length within the exposure time span that meets the requirements, then for each exposure time, n images are taken with the same camera parameters; the exposure time span adjusts the brightness of the image frame by controlling the exposure time during the actual acquisition process, and the upper and lower limits of the same scene are the same. The brightest frame is the standard for the image to be the brightest and not containing overexposed areas by adjusting the exposure time in the current scene, and the overexposure ratio of the scene containing light source does not exceed 10%; the darkest frame is the standard for the image to be the darkest and not containing underexposed areas by adjusting the exposure time in the current scene, and the underexposure ratio of the scene containing light source does not exceed 10%; the required step length takes 10 values ​​within the range according to the upper and lower limits of exposure in actual execution, and the step lengths are equal.

4. The method for constructing a low-light enhancement dataset according to claim 3, characterized in that: The specific steps of the image processing in step S2 are as follows: Assume that the m images with different exposure times in step S1 are named (T1, T2, ...T m ), for each image, there are n images taken with the same camera parameters, set as (T 11 , T 12 , ...T 1n ), synthesized by adding and averaging, as follows This simulates the effect of 3D denoising and obtains a low-noise image.

5. The method for constructing a low-light enhancement dataset according to claim 4, characterized in that: In the step S3, the m images processed in the step S2 are screened.

6. The method for constructing a low-light enhancement dataset according to claim 5, characterized in that: The step S4 combines the m images processed in step S2 into one image.

Citation Information

Patent Citations

  • High dynamic-range image synthesis method and device

    CN102420944A

  • Multi-exposure image fusion method

    CN110087003A

  • Dark light image enhancement method

    CN111064904A

  • Image enhancement method and device and electronic equipment

    CN113781370A

  • Low-illumination image enhancement method using long exposure compensation

    CN115240022A