Low-illumination image enhancement method based on convolutional neural network

Through the low-illumination image enhancement method based on convolutional neural network, the low-illumination image quality is automatically detected and improved, and the efficiency and accuracy problems of detecting and processing low-illumination images in the prior art are solved, and are suitable for a variety of time-sensitive applications.

CN119205537AActive Publication Date: 2024-12-27SHENZHEN POLYTECHNIC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411348800.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2024-12-27
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

The prior art is difficult to automatically detect and process low-illumination images, resulting in poor training effects of image enhancement models and cumbersome manual detection, which affects image quality and clarity.

Method used

Using a low-illumination image enhancement method based on convolutional neural network, low-illumination images are synthesized through image reconstruction model, and image detection model and image enhancement model are trained, including image decomposition, reflection map refinement and light map enhancement model, to automatically detect and improve low Illuminance image quality.

Benefits of technology

It realizes automatic detection of low-illumination images, improves image quality and clarity, reduces noise and artifacts, saves human resources, and is suitable for real-time scenarios such as video surveillance and autonomous driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119205537A_ABST
    Figure CN119205537A_ABST
Patent Text Reader

Abstract

The invention discloses a low-illumination image enhancement method based on a convolutional neural network, and relates to the technical field of image enhancement, and the method comprises the following steps: S1, obtaining a normal illumination image, artificially synthesizing a low-illumination image through an image reconstruction model, and taking the synthesized low-illumination image as an image set, s2, dividing the obtained image set into a first training set and a first test set according to a corresponding proportion, training the image detection model through the first training set to obtain a trained image detection model, and performing performance test on the trained image detection model through the first test set to obtain a performance test result; the input end of the image detection model is an image, and the output end of the image detection model is an image which is detected as low illumination. According to the method, the low-illumination image is artificially synthesized by using the image reconstruction model, so that the illumination condition and other influence factors can be better controlled, the specific low-illumination condition can be researched and processed, and the low-illumination images in different scenes can be better simulated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image enhancement, and in particular to a low-illumination image enhancement method based on a convolutional neural network. Background Art

[0002] Low-light images refer to images with low brightness due to dark or insufficient light during the shooting or acquisition process. In this case, the details and colors in the image will be limited, affecting the quality and clarity of the image. Low-light images will show weak contrast, blurred details, high noise and other characteristics. When shooting images in low-light environments, image enhancement technology is often needed to improve the image quality and make it clearer and brighter.

[0003] Low-light images taken in actual environments are often limited by various factors such as lighting conditions and camera performance. It is difficult to ensure that the images have a certain quality and diversity. In addition, the annotation of low-light images usually requires professionals, and such annotation data is difficult to collect and obtain. In addition, existing image enhancement methods cannot automatically detect low-light images. Manual detection of low-light images will become very time-consuming and cumbersome, and the accuracy may be limited, making it impossible to quickly identify and filter out low-light images. This may lead to a decrease in work efficiency when processing large amounts of image data, which may result in poor training effects for image enhancement models. Summary of the invention

[0004] The purpose of the present invention is to provide a low-illumination image enhancement method based on a convolutional neural network to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a low-light image enhancement method based on a convolutional neural network, comprising the following steps:

[0006] S1, obtaining a normal illumination image, using an image reconstruction model to artificially synthesize a low illumination image, and using the synthesized low illumination image as an image set;

[0007] S2. Divide the acquired image set into a first training set and a first test set according to corresponding proportions, and train the image detection model through the first training set to obtain a trained image detection model, and perform a performance test on the trained image detection model through the first test set, wherein the input end of the image detection model is an image, and the output end of the image detection model is an image detected as low illumination;

[0008] S3, dividing the images detected as low-illuminance into a second training set and a second test set, and training the image enhancement model through the second training set to obtain the trained image enhancement model, and performing a performance test on the trained image enhancement model through the second test set, wherein the input end of the image enhancement model is the low-illuminance image, and the output end of the image enhancement model is the enhanced image;

[0009] S4, the image enhancement model includes an image decomposition model, a reflectance map refinement model and an illumination map enhancement model, the image decomposition model is trained by the second training set to obtain a trained image decomposition model, the input end of the image decomposition model is the low illumination image, and the output end of the image decomposition model is the reflectance map and the illumination map;

[0010] S5, training the reflectivity map refinement model through the reflectivity map to obtain a trained reflectivity map refinement model, wherein the input end of the reflectivity map refinement model is the reflectivity map, and the output end of the reflectivity map refinement model is the refined reflectivity map;

[0011] S6. Training the illumination map enhancement model through the illumination map to obtain a trained illumination map enhancement model, wherein the input end of the illumination map enhancement model is the illumination map, and the output end of the illumination map enhancement model is the enhanced illumination map;

[0012] S7. Obtain an enhanced image by performing gradient weighting on the refined reflectance map and the enhanced illumination map.

[0013] Preferably, the image detection model adopts a convolutional neural network, and the image detection model includes a convolutional layer, a pooling layer and a fully connected layer. The convolutional layer, the pooling layer and the fully connected layer all have 3 layers. The first layer of the image detection model is a convolutional layer, the number of neurons is 64, the convolution kernel size is 7*7, and the step size is 1. The second layer is a pooling layer, the convolution kernel size is 2*2, and the step size is 2. The third layer is a convolutional layer, the number of neurons is 128, the convolution kernel size is 5*5, and the step size is 1. The fourth layer is a pooling layer, the convolution kernel size is 2*2, and the step size is 2. The fifth layer is a convolution layer with 256 neurons, a convolution kernel size of 3*3, and a step size of 1. The sixth layer is a pooling layer with a convolution kernel size of 2*2 and a step size of 2. The seventh and eighth layers are fully connected layers with 512 neurons each. The ninth layer is a fully connected layer with 2 neurons. The first, third, fifth, seventh and eighth layers are all provided with activation functions, and the activation functions are all relu functions. The first 6 layers of the image detection model are used to extract image features, and the last three layers of the image detection model are used for image classification.

[0014] Preferably, the loss function of the image detection model is:

[0015]

[0016] Among them, K represents the number of images, M represents the number of image categories, and w j Expressed as the class weight of the jth class, p ij represents the true probability that the i-th image belongs to the j-th class, p′ ij represents the predicted probability that the i-th image belongs to the j-th class, and N represents the total number of samples in the data set. j represents the number of samples in the jth class, w j Denoted as the class weight of the jth class.

[0017] Preferably, the image decomposition model adopts a convolutional neural network, and the image decomposition model includes a convolution layer and a merging layer. The first layer of the image decomposition model includes three convolution layers, the number of neurons in the three convolution layers are 12, 20 and 32 respectively, and the convolution kernel sizes of the three convolution layers are 3*3, 5*5 and 7*7 respectively. Different image features are extracted through the first layer, and the second layer is a merging layer. Each feature map is split according to the channel dimension through the second layer, and processed separately, and the processed feature maps are spliced ​​on the channel dimension to form The new feature map, the third and fourth layers are convolution layers, the number of neurons is 64, the convolution kernel size is 3*3, the image features are refined through the third and fourth layers, the fifth layer is a convolution layer, the number of neurons is 4, the convolution kernel size is 3*3, the image features are decomposed into reflectance map and illumination map through the fifth layer, and the reflectance map and illumination map are output. Finally, the fifth layer sets the Sigmoid activation function, and the pixel values ​​of the output reflectance map and illumination map are normalized to [0,1] through the Sigmoid activation function.

[0018] Preferably, the loss function of the image decomposition model is:

[0019] L=L s +λ r L r +λ l L l

[0020]

[0021] L r =||R low -R normal ||2

[0022]

[0023] Among them, L s Represents the loss function of the reconstructed image after image restoration, L r Represents the loss function of the reflectivity map without deformation, Ll represents the loss function of the smooth illumination map, λ r and λ l The constants representing the constancy of the balanced reflectance map and the smoothness of the illumination map, R i represents the normal illumination image vector of the i-th category, S j represents the j-th normal illumination image vector, L i represents the light map vector, e -λ▽R represents the smoothness constraint, R normal Represents the reflectivity map, R low Reflectance map representing a low-light image.

[0024] Preferably, the reflectance map refinement model adopts a convolutional neural network, and the reflectance map refinement model includes a convolution layer. The first layer of the reflectance map refinement model is a convolution layer, the number of neurons is 64, the convolution kernel is 3*3, and the activation function is a PReLu function. The roughly extracted reflectance map is convolved through the first layer, the second layer is a convolution layer, the number of neurons is 64, the convolution kernel is 3*3, and the activation function is a PReLu function. The reflectance map after the convolution of the first layer is reconstructed through the second layer, the third layer is a convolution layer, the number of neurons is 3, the convolution kernel is 3*3, and the activation function is a Sigmoid function. The reflectance map reconstructed in the second layer is restored in detail through the third layer, and the pixel value of the output reflectance map is normalized to [0,1] through the Sigmoid activation function.

[0025] Preferably, the loss function of the reflection map refinement model is:

[0026] L=||P′-P||2

[0027] P=R normal -R low

[0028] Where P′ represents R normal and R low The residual, P represents the true residual, R normal Represents the reflectivity map, R low Reflectance map representing a low-light image.

[0029] Preferably, the illumination map enhancement model adopts a convolutional neural network, and the illumination map enhancement model includes a convolution layer and a connection layer. The first three layers of the reflectance map refinement model are all convolution layers, the number of neurons is 64, the convolution kernel is 3*3, and the activation function is PReLu function. The first three layers are encoded and downsampled to extract the global illumination map features. The middle three layers are all convolution layers, the number of neurons is 64, the convolution kernel is 3*3, and the activation function is PReLu function. The enhanced features of the illumination map are obtained through the middle three layers. The seventh layer is a connection layer, and skip connection is performed through the seventh layer to combine multiple layers of features. The eighth layer is a convolution layer, the number of neurons is 1, the convolution kernel is 3*3, and the activation function is Sigmoid function. The pixel value of the output enhanced illumination map is normalized to [0,1] through the Sigmoid activation function.

[0030] Preferably, the loss function of the illumination map enhancement model is:

[0031] L=L1+λ1L2+λ2L3

[0032]

[0033] L3=||L′ low -L normal ||2

[0034] Among them, L represents the total loss function, L1 represents the reconstruction loss function, L2 represents the loss function based on the characteristics of the illumination map, L3 represents the consistency loss function between the enhanced illumination map and the normal illumination image, and L′ low represents the enhanced illumination map, S normal represents the normal illumination image, λ r and λ l Constants representing the constancy of light map properties and the consistency of the light map, respectively.

[0035] Preferably, in S7, performing gradient weighting on the refined reflectance map and the enhanced illumination map to obtain an enhanced image comprises the following steps:

[0036] S701, taking the refined reflectivity map and the enhanced illumination map as input;

[0037] S702, performing gradient calculation on the reflectivity map and the illumination map, obtaining the gradient amplitude and direction of the reflectivity map and the illumination map, and multiplying the gradient amplitude by a weight coefficient;

[0038] S703, weighting the two gradient images according to the magnitude and direction of the gradient amplitude;

[0039] S704: Fusing the weighted gradient map with the original low-illumination map by using a weighted superposition method to obtain an enhanced image.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] 1. The present invention uses an image reconstruction model to artificially synthesize low-light images, which can better control lighting conditions and other influencing factors, so as to study and process specific low-light situations, thereby better simulating low-light images in different scenes, so as to better evaluate and improve the low-light image enhancement method based on convolutional neural networks, and the image detection model can automatically perform low-light detection on images without manual intervention, which greatly improves efficiency and accuracy and saves human resources. In addition, the image detection model can perform rapid detection in real-time scenes, and can detect low-light images in a timely manner and respond, which is very important for some time-sensitive applications, such as video surveillance and autonomous driving.

[0042] 2. The present invention can effectively improve the quality of low-light images through image decomposition, reflection map refinement and illumination map enhancement through the image enhancement model, making the low-light images clearer and brighter, reducing noise and artifacts, and increasing details and contrast. Low-light images often lose some details and color information. The image enhancement model can restore and enhance the lost information through processing steps such as reflection map refinement and illumination map enhancement, making the image more realistic and visual. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of the overall method provided by an embodiment of the present invention;

[0044] Figure 2 A flowchart of the method of S7 provided in an embodiment of the present invention;

[0045] Figure 3 A flowchart of the overall method provided by an embodiment of the present invention;

[0046] Figure 4 A schematic diagram of a low-light image provided by an embodiment of the present invention;

[0047] Figure 5 A schematic diagram of an enhanced image provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] See also Figure 1-5 The present invention provides a technical solution: a low-light image enhancement method based on a convolutional neural network, comprising the following steps:

[0050] S1, obtaining a normal illumination image, using an image reconstruction model to artificially synthesize a low illumination image, and using the synthesized low illumination image as an image set;

[0051] S2. Divide the acquired image set into a first training set and a first test set according to corresponding proportions, and train the image detection model through the first training set to obtain a trained image detection model, and perform a performance test on the trained image detection model through the first test set, wherein the input end of the image detection model is an image, and the output end of the image detection model is an image detected as low illumination;

[0052] S3, dividing the images detected as low-illuminance into a second training set and a second test set, and training the image enhancement model through the second training set to obtain the trained image enhancement model, and performing a performance test on the trained image enhancement model through the second test set, wherein the input end of the image enhancement model is the low-illuminance image, and the output end of the image enhancement model is the enhanced image;

[0053] S4, the image enhancement model includes an image decomposition model, a reflectance map refinement model and an illumination map enhancement model, the image decomposition model is trained by the second training set to obtain a trained image decomposition model, the input end of the image decomposition model is the low illumination image, and the output end of the image decomposition model is the reflectance map and the illumination map;

[0054] S5, training the reflectivity map refinement model through the reflectivity map to obtain a trained reflectivity map refinement model, wherein the input end of the reflectivity map refinement model is the reflectivity map, and the output end of the reflectivity map refinement model is the refined reflectivity map;

[0055] S6. Training the illumination map enhancement model through the illumination map to obtain a trained illumination map enhancement model, wherein the input end of the illumination map enhancement model is the illumination map, and the output end of the illumination map enhancement model is the enhanced illumination map;

[0056] S7. Obtain an enhanced image by performing gradient weighting on the refined reflectance map and the enhanced illumination map.

[0057] The image detection model uses a convolutional neural network. The image detection model includes a convolutional layer, a pooling layer, and a fully connected layer. The convolutional layer, the pooling layer, and the fully connected layer all have 3 layers. The first layer of the image detection model is a convolutional layer with 64 neurons, a convolution kernel size of 7*7, and a step size of 1. The second layer is a pooling layer with a convolution kernel size of 2*2 and a step size of 2. The third layer is a convolutional layer with 128 neurons, a convolution kernel size of 5*5, and a step size of 1. The fourth layer is a pooling layer with a convolution kernel size of 2*2 and a step size of 2. The fifth layer is a pooling layer with a convolution kernel size of 2*2 and a step size of 2. The first layer is a convolutional layer with 256 neurons, a convolution kernel size of 3*3, and a step size of 1. The sixth layer is a pooling layer with a convolution kernel size of 2*2 and a step size of 2. The seventh and eighth layers are fully connected layers with 512 neurons each. The ninth layer is a fully connected layer with 2 neurons. The first, third, fifth, seventh, and eighth layers are all equipped with activation functions, and the activation functions are all relu functions. The first 6 layers of the image detection model are used to extract image features, and the last three layers of the image detection model are used for image classification.

[0058] The loss function of the image detection model is:

[0059]

[0060] Among them, K represents the number of images, M represents the number of image categories, and w j Expressed as the class weight of the jth class, p ij represents the true probability that the i-th image belongs to the j-th class, p′ ij represents the predicted probability that the i-th image belongs to the j-th class, and N represents the total number of samples in the data set. j represents the number of samples in the jth class, w j Expressed as the class weight of the jth class;

[0061] The image decomposition model adopts a convolutional neural network. The image decomposition model includes a convolution layer and a merging layer. The first layer of the image decomposition model includes three convolution layers. The number of neurons in the three convolution layers is 12, 20 and 32 respectively. The convolution kernel sizes of the three convolution layers are 3*3, 5*5 and 7*7 respectively. Different image features are extracted through the first layer. The second layer is a merging layer. Each feature map is split according to the channel dimension through the second layer and processed separately. The processed feature maps are spliced ​​on the channel dimension to form a new feature map. The third and fourth layers are both convolution layers. The number of neurons is 64 and the convolution kernel size is 3*3. The image features are refined through the third and fourth layers. The fifth layer is a convolution layer. The number of neurons is 4 and the convolution kernel size is 3*3. The image features are decomposed into a reflectance map and an illumination map through the fifth layer, and the reflectance map and the illumination map are output. Finally, the fifth layer sets a Sigmoid activation function. The pixel values ​​of the output reflectance map and the illumination map are normalized to [0,1] through the Sigmoid activation function.

[0062] The loss function of the image decomposition model is:

[0063] L=L s +λ r L r +λ l L l

[0064]

[0065] L r =||R low -R normal ||2

[0066]

[0067] Among them, L s Represents the loss function of the reconstructed image after image restoration, L r Represents the loss function of the reflectivity map without deformation, L l represents the loss function of the smooth illumination map, λ r and λ l The constants representing the constancy of the balanced reflectance map and the smoothness of the illumination map, R i represents the normal illumination image vector of the i-th category, S j represents the j-th normal illumination image vector, L i represents the light map vector, represents the smoothness constraint, R normal Represents the reflectivity map, R low Reflectance map representing low-light images;

[0068] The reflectance map refinement model adopts a convolutional neural network. The reflectance map refinement model includes a convolution layer. The first layer of the reflectance map refinement model is a convolution layer, with 64 neurons, a convolution kernel of 3*3, and an activation function of PReLu. The roughly extracted reflectance map is convolved through the first layer. The second layer is a convolution layer, with 64 neurons, a convolution kernel of 3*3, and an activation function of PReLu. The reflectance map after the convolution of the first layer is reconstructed through the second layer. The third layer is a convolution layer, with 3 neurons, a convolution kernel of 3*3, and an activation function of Sigmoid. The reflectance map reconstructed in the second layer is restored in detail through the third layer, and the pixel value of the output reflectance map is normalized to [0,1] through the Sigmoid activation function.

[0069] The loss function of the reflectance map refinement model is:

[0070] L=||P′-P||2

[0071] P=R normal -R low

[0072] Where P′ represents R normal and R low The residual, P represents the true residual, R normal Represents the reflectivity map, R low Reflectance map representing low-light images;

[0073] The illumination map enhancement model adopts a convolutional neural network. The illumination map enhancement model includes a convolutional layer and a connection layer. The first three layers of the reflectance map refinement model are all convolutional layers, with 64 neurons, 3*3 convolution kernels, and PReLu activation functions. The first three layers are encoded and downsampled to extract the features of the global illumination map. The middle three layers are all convolutional layers, with 64 neurons, 3*3 convolution kernels, and PReLu activation functions. The enhanced features of the illumination map are obtained through the middle three layers. The seventh layer is a connection layer, and skip connections are performed through the seventh layer to combine multi-layer features. The eighth layer is a convolutional layer with 1 neuron, 3*3 convolution kernels, and Sigmoid activation functions. The pixel values ​​of the output enhanced illumination map are normalized to [0,1] through the Sigmoid activation function.

[0074] The loss function of the illumination map enhancement model is:

[0075] L=L1+λ1L2+λ2L3

[0076]

[0077] L3=||L′ low -L normal ||2

[0078] Among them, L represents the total loss function, L1 represents the reconstruction loss function, L2 represents the loss function based on the characteristics of the illumination map, L3 represents the consistency loss function between the enhanced illumination map and the normal illumination image, and L′ low represents the enhanced illumination map, S normal represents the normal illumination image, λ r and λ l constants representing the constancy of the light map properties and the consistency of the light map, respectively;

[0079] In S7, the refined reflectance map and the enhanced illumination map are subjected to gradient weighting to obtain an enhanced image, including the following steps:

[0080] S701, taking the refined reflectivity map and the enhanced illumination map as input;

[0081] S702, performing gradient calculation on the reflectivity map and the illumination map, obtaining the gradient amplitude and direction of the reflectivity map and the illumination map, and multiplying the gradient amplitude by a weight coefficient;

[0082] S703, weighting the two gradient images according to the magnitude and direction of the gradient amplitude;

[0083] S704, fusing the weighted gradient image with the original low-illumination image by using a weighted superposition method to obtain an enhanced image;

[0084] Please refer to Figure 3 , input the normal illumination image into the image reconstruction model, the output end of the image reconstruction model outputs the low illumination image, and inputs the low illumination image into the image detection model, detects whether the low illumination image is qualified through the image detection model, inputs the qualified low illumination image into the image decomposition model, outputs the reflection map and the illumination map through the output end of the image decomposition model, and inputs the reflection map into the reflection map refinement model, outputs the refined reflection map through the reflection map refinement model, inputs the illumination map into the illumination map enhancement model, outputs the enhanced illumination map through the illumination map enhancement model, and performs gradient weighting on the refined reflection map and the enhanced illumination map, thereby forming an enhanced image;

[0085] Please refer to Figure 4 , detected as a low-light image by the image detection model;

[0086] See also Figure 5 , the low-light image is input into the image enhancement module, and the enhanced image is output through the image enhancement module.

[0087] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0088] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A low-light image enhancement method based on a convolutional neural network, characterized in that: The following steps are involved: S1, obtaining a normal illumination image, using an image reconstruction model to artificially synthesize a low illumination image, and using the synthesized low illumination image as an image set; S2. Divide the acquired image set into a first training set and a first test set according to corresponding proportions, and train the image detection model through the first training set to obtain a trained image detection model, and perform a performance test on the trained image detection model through the first test set, wherein the input end of the image detection model is an image, and the output end of the image detection model is an image detected as low illumination; S3, dividing the images detected as low-illuminance into a second training set and a second test set, and training the image enhancement model through the second training set to obtain the trained image enhancement model, and performing a performance test on the trained image enhancement model through the second test set, wherein the input end of the image enhancement model is the low-illuminance image, and the output end of the image enhancement model is the enhanced image; S4, the image enhancement model includes an image decomposition model, a reflectance map refinement model and an illumination map enhancement model, the image decomposition model is trained by the second training set to obtain a trained image decomposition model, the input end of the image decomposition model is the low illumination image, and the output end of the image decomposition model is the reflectance map and the illumination map; S5, training the reflectivity map refinement model through the reflectivity map to obtain a trained reflectivity map refinement model, wherein the input end of the reflectivity map refinement model is the reflectivity map, and the output end of the reflectivity map refinement model is the refined reflectivity map; S6. Training the illumination map enhancement model through the illumination map to obtain a trained illumination map enhancement model, wherein the input end of the illumination map enhancement model is the illumination map, and the output end of the illumination map enhancement model is the enhanced illumination map; S7. Obtain an enhanced image by performing gradient weighting on the refined reflectance map and the enhanced illumination map.

2. The low-illumination image enhancement method based on convolutional neural network according to claim 1, characterized in that: The image detection model adopts a convolutional neural network, and the image detection model includes a convolutional layer, a pooling layer and a fully connected layer. The convolutional layer, the pooling layer and the fully connected layer all have 3 layers. The first layer of the image detection model is a convolutional layer, the number of neurons is 64, the convolution kernel size is 7*7, and the step size is 1. The second layer is a pooling layer, the convolution kernel size is 2*2, and the step size is 2. The third layer is a convolutional layer, the number of neurons is 128, the convolution kernel size is 5*5, and the step size is 1. The fourth layer is a pooling layer, the convolution kernel size is 2*2, and the step size is 2. The fifth layer is a convolutional layer with 256 neurons, a convolution kernel size of 3*3, and a step size of 1. The sixth layer is a pooling layer with a convolution kernel size of 2*2 and a step size of 2. The seventh and eighth layers are fully connected layers with 512 neurons each. The ninth layer is a fully connected layer with 2 neurons. The first, third, fifth, seventh, and eighth layers are all provided with activation functions, and the activation functions are all relu functions. The first 6 layers of the image detection model are used to extract image features, and the last three layers of the image detection model are used for image classification.

3. The low-illumination image enhancement method based on convolutional neural network according to claim 2, characterized in that: The loss function of the image detection model is: Among them, K represents the number of images, M represents the number of image categories, and w j Expressed as the class weight of the jth class, p ij represents the true probability that the i-th image belongs to the j-th category, p ij ′ represents the predicted probability that the i-th image belongs to the j-th class, and N represents the total number of samples in the data set. j represents the number of samples in the jth class, w j Denoted as the class weight of the jth class.

4. The low-illumination image enhancement method based on convolutional neural network according to claim 1, characterized in that: The image decomposition model adopts a convolutional neural network. The image decomposition model includes a convolution layer and a merging layer. The first layer of the image decomposition model includes three convolution layers. The number of neurons in the three convolution layers is 12, 20 and 32 respectively. The convolution kernel sizes of the three convolution layers are 3*3, 5*5 and 7*7 respectively. Different image features are extracted through the first layer. The second layer is a merging layer. Each feature map is split according to the channel dimension through the second layer, and processed separately. The processed feature maps are spliced ​​on the channel dimension to form a new Feature map, the third and fourth layers are convolution layers, the number of neurons is 64, the convolution kernel size is 3*3, the image features are refined through the third and fourth layers, the fifth layer is a convolution layer, the number of neurons is 4, the convolution kernel size is 3*3, the image features are decomposed into reflectance map and illumination map through the fifth layer, and the reflectance map and illumination map are output. Finally, the fifth layer sets the Sigmoid activation function, and the pixel values ​​of the output reflectance map and illumination map are normalized to [0,1] through the Sigmoid activation function.

5. The low-light image enhancement method based on convolutional neural network according to claim 4, characterized in that: The loss function of the image decomposition model is: L=L s +λ r L r +λ l L l L r =||R low -R normal ||2 Among them, L s Represents the loss function of the reconstructed image after image restoration, L r Represents the loss function of the reflectivity map without deformation, L l represents the loss function of the smooth illumination map, λ r and λ l The constants representing the constancy of the balanced reflectance map and the smoothness of the illumination map, R i represents the normal illumination image vector of the i-th category, S j represents the j-th normal illumination image vector, L i represents the light map vector, e -λ▽R represents the smoothness constraint, R normal Represents the reflectivity map, R low Reflectance map representing a low-light image.

6. The low-illumination image enhancement method based on convolutional neural network according to claim 1, characterized in that: The reflectance map refinement model adopts a convolutional neural network, and the reflectance map refinement model includes a convolution layer. The first layer of the reflectance map refinement model is a convolution layer, the number of neurons is 64, the convolution kernel is 3*3, and the activation function is a PReLu function. The roughly extracted reflectance map is convolved through the first layer, the second layer is a convolution layer, the number of neurons is 64, the convolution kernel is 3*3, and the activation function is a PReLu function. The reflectance map after the convolution of the first layer is reconstructed through the second layer, the third layer is a convolution layer, the number of neurons is 3, the convolution kernel is 3*3, and the activation function is a Sigmoid function. The reflectance map reconstructed in the second layer is restored in detail through the third layer, and the pixel value of the output reflectance map is normalized to [0,1] through the Sigmoid activation function.

7. The low-illumination image enhancement method based on convolutional neural network according to claim 6, characterized in that: The loss function of the reflection map refinement model is: L=||P′-P||2 P=R normal -R low Where P′ represents R normal and R low The residual, P represents the true residual, R normal Represents the reflectivity map, R low Reflectance map representing a low-light image.

8. The low-light image enhancement method based on convolutional neural network according to claim 1, characterized in that: The illumination map enhancement model adopts a convolutional neural network. The illumination map enhancement model includes a convolutional layer and a connection layer. The first three layers of the reflectance map refinement model are all convolutional layers, the number of neurons is 64, the convolution kernel is 3*3, and the activation function is PReLu function. The first three layers are encoded and downsampled to extract the global illumination map features. The middle three layers are all convolutional layers, the number of neurons is 64, the convolution kernel is 3*3, and the activation function is PReLu function. The enhanced features of the illumination map are obtained through the middle three layers. The seventh layer is a connection layer, and the skip connection is performed through the seventh layer to combine the multi-layer features. The eighth layer is a convolutional layer, the number of neurons is 1, the convolution kernel is 3*3, and the activation function is Sigmoid function. The pixel value of the output enhanced illumination map is normalized to [0,1] through the Sigmoid activation function.

9. The low-illumination image enhancement method based on convolutional neural network according to claim 8, characterized in that: The loss function of the illumination map enhancement model is: L=L1+λ1L2+λ2L3 L3=||L′ low -L normal ||2 Among them, L represents the total loss function, L1 represents the reconstruction loss function, L2 represents the loss function based on the characteristics of the illumination map, L3 represents the consistency loss function between the enhanced illumination map and the normal illumination image, and L′ low represents the enhanced illumination map, S normal represents the normal illumination image, λ r and λ l Constants representing the constancy of light map properties and the consistency of the light map, respectively.

10. The low-light image enhancement method based on convolutional neural network according to claim 1, characterized in that: In S7, the refined reflectance map and the enhanced illumination map are subjected to gradient weighting to obtain an enhanced image, including the following steps: S701, taking the refined reflectivity map and the enhanced illumination map as input; S702, performing gradient calculation on the reflectivity map and the illumination map, obtaining the gradient amplitude and direction of the reflectivity map and the illumination map, and multiplying the gradient amplitude by a weight coefficient; S703, weighting the two gradient images according to the magnitude and direction of the gradient amplitude; S704: Fusing the weighted gradient map with the original low-illumination map by using a weighted superposition method to obtain an enhanced image.

Citation Information

Patent Citations

  • Low-illumination image enhancement method and device

    CN110675336A

  • Low-illumination noisy image optimization method based on convolutional neural network

    CN110728643A

  • Mine well wall detection method under low-illumination condition based on convolutional neural network

    CN111681223A

  • Low-illumination image enhancement method based on convolutional neural network

    CN116523794A

  • Infrared and visible light image fusion method based on low-light illumination and adaptive constraint

    CN117391981A