A method and system for enhancing low-light images in a closed cavity
By constructing a conditional generative adversarial network in a closed cavity environment and combining the decomposition network and the illumination enhancement network, the problem of low-light images is solved, the generation of high-quality images is achieved, the brightness and contrast of the images are improved, and more accurate equipment is supported. Status analysis.
Patent Information
- Application Number
- CN202011404925.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-04
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-12-04
AI Technical Summary
In a closed cavity environment, low illumination will cause the image to be dark, and excessive fill light will cause uneven brightness of the image, affecting the accuracy of subsequent computer vision tasks and inspection robot operations.
Construct a conditional generative adversarial network, combine the decomposition network and the illumination enhancement network, use the discriminative model of the lightweight twin network, and train the generative model through the multi-index fusion loss function to achieve end-to-end mapping of low-illumination images to high-quality images.
It effectively improves the brightness and contrast of low-light images, improves the visual effects of images, and improves the accuracy of equipment status and defect analysis.
Smart Images

Figure CN114596236B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image enhancement, and relates to a closed cavity low-illuminance image enhancement method and system. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] In the power system, gas insulated switchgear (GIS) is one of the key substation equipment, which is increasingly widely used and plays a vital role in the power transmission process. GIS equipment combines various components in a closed manner, is generally not affected by the external environment, has low noise, weak electromagnetic interference, and requires less maintenance work in the later stage.
[0004] However, according to the inventors, GIS equipment also has its inherent shortcomings: due to the influence of factors such as SF6 gas leakage, external moisture infiltration, the presence of conductive impurities, and insulator aging, flashover failures inside the GIS equipment may cause some powdery foreign matter; foreign matter such as tools, screws, and nuts left inside during the installation and maintenance of the GIS equipment; due to poor environmental conditions, sand entering the cavity during installation and maintenance, or metal shavings and other foreign matter generated by friction between the moving and static contacts of the disconnector and grounding switch. If the above foreign matter is not maintained and cleaned in time, it will inevitably bring great harm to the safe and reliable operation of the GIS equipment after it is put into operation, and seriously affect power production. Therefore, it is necessary to conduct timely inspection and cleaning of GIS equipment.
[0005] However, since the GIS cavity is a closed environment, without lighting, the internal light is poor and the overall image is dark; if the fill light is too strong, the clean and smooth inner wall of the cavity will easily cause some areas of the collected image to be too bright. The collected images have problems such as too bright or too dark brightness, unsaturated colors, and blurred details. These problems will directly affect subsequent computer vision tasks and cannot help the inspection robot perform subsequent operations well. Summary of the invention
[0006] In order to solve the above problems, the present invention proposes a method and system for low-illuminance image enhancement in a closed cavity. The present invention constructs an image sample set under different brightness conditions for a closed cavity environment, selects the highest quality image as the target image for image enhancement, and constructs a generation model combining a decomposition network with a light enhancement network and a discriminant model based on a lightweight twin network. A low-illuminance image conditional generative adversarial network enhancement model is constructed by training with the sample set, and end-to-end mapping of low-illuminance images to high-quality images is achieved, so that the processed images have better visual effects and image quality, which is more conducive to the next step of using the collected images for equipment status and defect analysis.
[0007] According to some embodiments, the present invention adopts the following technical solutions:
[0008] In a first aspect, a closed cavity low-light image enhancement method is proposed, comprising the following steps:
[0009] Acquire multiple groups of sample images, screen each group of sample images, use the image with the best quality as the template image of the group of sample images, and use the remaining images as the images to be enhanced to form a training sample set;
[0010] Based on the training sample set, a conditional generative adversarial network is constructed, with the template image as the target output and a multi-index fusion loss function used for training. The template image is then used as the real target and the enhanced image as the false target input, and the training sample set is used for training.
[0011] The image collected in the closed cavity is input into the trained conditional generative adversarial network to obtain the image enhanced.
[0012] As an optional implementation, each group of sample images is a plurality of images collected in a closed cavity at the same position but with different brightness and exposure time.
[0013] As an optional implementation, the scoring results of multiple people on each group of images using a relative evaluation method are received, the scoring results are averaged, and the image with the highest average score is used as the template image of the group of images.
[0014] As an optional implementation, the conditional generative adversarial network includes a generative model, which includes a decomposition network and an enhancement network. The decomposition network includes a feature extraction layer, a feature fusion layer, a feature refinement layer and a feature output layer connected in sequence; the enhancement network includes a convolutional encoding layer, a convolutional decoding layer, a connection layer and a full convolutional layer connected in sequence.
[0015] As an optional implementation, a multi-index fusion loss function is used to train the network, including training the decomposition network and the enhancement network, wherein:
[0016] The training process of the decomposition network includes: inputting the image to be enhanced and the template image into the network, obtaining different illumination maps and different reflection maps after passing through the decomposition network, calculating the training loss function based on the illumination map and the reflection map, and obtaining the parameters of each channel node of the decomposition network through sample set training;
[0017] The training process of the enhanced network includes: constructing a weighted fusion loss function based on the SIM loss function and the L1 loss function, and using the weighted fusion loss function to train the enhanced network separately.
[0018] As an optional implementation, the conditional generative adversarial network also includes a discriminant model, which is a lightweight twin network in which two branch networks share weights, specifically including a multi-layer convolutional neural network, a similarity discriminant layer and a Sigmoid activation layer connected in sequence.
[0019] As an optional implementation method, the template image is used as the real target and the enhanced image is used as the false target input. The specific training process includes: comprehensive training of the generative model and the discriminative model, the generative model inputs the image to be enhanced, and the generative model outputs the enhanced image; the input image is discriminated, and the discrimination result is fed back to the generative model, the relevant parameters in the generative model are adjusted, and training is performed again until the set training end conditions are met, wherein the training loss function is the cross entropy loss function.
[0020] In a second aspect, a closed cavity low-light image enhancement system is provided, comprising:
[0021] An image preprocessing module is configured to screen the acquired multiple groups of sample images, use the image with the best quality in each group as the template image of the group of sample images, and use the remaining images as images to be enhanced to form a training sample set;
[0022] The conditional generative adversarial network construction and training module is configured to construct a conditional generative adversarial network, use the template image as the target output, use a multi-index fusion loss function for training, use the template image as the real target, and the enhanced image as the false target input for training;
[0023] The image enhancement module is configured to input the image collected in the closed cavity into the trained conditional generative adversarial network to obtain an image after image enhancement.
[0024] In a third aspect, a computer-readable storage medium is provided, in which a plurality of instructions are stored, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device. The method for low-light image enhancement in a closed cavity is described.
[0025] In a fourth aspect, a terminal device is provided, including a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; and the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded by the processor and executed by the method for low-illuminance image enhancement in a closed cavity.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] The present invention innovatively proposes a method for low-illumination image enhancement in a closed cavity, constructs a conditional generative adversarial network model for visibility enhancement, and proposes a lightweight twin neural network judgment model generation algorithm to achieve end-to-end image enhancement output from low-illumination images to high-quality images, effectively improving the brightness and contrast of low-illumination images.
[0028] The present invention proposes a conditional generative adversarial network training method, constructs a generative model and a discriminant model, uses a training loss function to separately train the decomposition network, uses a fusion loss function weighted by an SSIM loss function and an L1 loss function to separately train the enhancement network, and uses a cross entropy loss function to comprehensively train the generative model and the discriminant model. The decomposition network of the generative model can be decomposed into a reflection map and an illumination map, the illumination map is subjected to a brightness enhancement network to obtain an enhanced brightness map, the enhanced brightness map is fused with the reflectance map to obtain a final system output enhanced image, and an image enhancement operation is realized.
[0029] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0031] Figure 1 The closed cavity image acquisition environment built for this embodiment;
[0032] Figure 2 Generate an adversarial neural network model for the conditions involved in this embodiment;
[0033] Figure 3 is the decomposed network model of this embodiment;
[0034] Figure 4 is the brightness enhancement network model of this embodiment;
[0035] Figure 5 is the twin network model of this embodiment;
[0036] Figure 6 This is an image enhancement effect diagram of this embodiment. DETAILED DESCRIPTION
[0037] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0038] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0039] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0040] Embodiment 1
[0041] A closed cavity low-light image enhancement method comprises the following steps:
[0042] First, a closed cavity environment can be built, such as Figure 1 As shown, a brightness-adjustable fill light device is installed, the brightness of the fill light device inside the cavity is adjusted, and images are collected under the conditions of the same position, different brightness and different camera exposure time to form a group of sample images, and a total of N groups of images are collected.
[0043] In this embodiment, a closed cavity simulation environment is built, and an LED fill light is installed above the cavity. The fill light brightness adjustment includes 5 gears: 200, 400, 700, 1000, and 1500 lumens. When collecting images, the camera is kept in the same position in the cavity, and the fill light device is set to no fill light and 5 different fill light gears. The camera exposure time is set to 1 / 60 second and 1 / 125 second respectively. A group of images is taken under the above different conditions. A group of images includes 12 pictures, and a total of N groups of images are collected, N ≥ 1000.
[0044] Of course, in other embodiments, the above parameters may be changed according to specific requirements and circumstances.
[0045] If conditions permit, the samples can also be collected directly in an existing closed cavity environment.
[0046] Secondly, the subjective evaluation method is used to screen each group of images, and the image with the best quality is used as the template image of the group of images, and the remaining images are used as images to be enhanced to form a training sample set.
[0047] In this embodiment, M people are selected to score the quality of each group of images using a relative evaluation method, that is, the image with the best quality in each group of images is selected and scored 10 points, and the remaining images are scored according to subjective judgment (scoring range is 1 to 9 points). The scoring results of the M people are averaged, and the image with the highest average score in each group of images is used as the template image of the group of images, and the remaining images are used as images to be enhanced, forming a training sample set for the next step of conditional generative adversarial network.
[0048] Of course, in other embodiments, other methods may be used for selection, such as expert experience method, etc., which will not be described in detail here.
[0049] For the images to be enhanced in the sample set, a conditional generative adversarial network suitable for low-light image enhancement is designed. The network is generally divided into a generative model and a discriminative model: the generative model consists of a decomposition network and an enhancement network, with the template image as the target output, and a multi-indicator fusion loss function is used to train the network; a lightweight convolutional neural network is designed as the discriminative model, and the template image is used as the real target, and the enhanced image is used as the false target input into the discriminative model to train the overall generative adversarial network.
[0050] Specifically, (3-1) firstly input the image to be enhanced into the decomposition network of the generative model, and the structure of the decomposition network is specifically as follows:
[0051] The first layer of the network is the feature extraction layer, which contains 4 convolution layers with convolution kernels of different sizes for shallow feature extraction. The sizes of the convolution kernels are 3×3, 5×5, 7×7, and 9×9, respectively. The number of convolution channels is 8, 12, 20, and 32, respectively. The leaky rectified linear unit (Leaky ReLU) is selected as the activation function. A feature fusion layer is connected after the feature extraction layer. This network layer fuses features of different scales in series to form a multi-dimensional feature. Then three convolution layers are connected for feature refinement. The convolution kernels of the three convolution layers are 7×7, 5×5, and 3×3, respectively. The number of convolution channels is 32, 32, and 64, respectively. The Leaky ReLU is selected as the activation function. Finally, the decomposed image is output through a 3×3 convolution kernel. Since the image in the cavity is not sensitive to color information, the number of convolution channels of this convolution layer is set to 2, and the Relu function is selected as the activation function. The final network outputs 2-channel data: one channel output is recorded as the reflection map Img R , the other channel output is recorded as the illumination map Img I .
[0052] The decomposition network is trained separately, and an image to be enhanced and a template image are input into the network, denoted as ImgE and Img M , after decomposing the network, different illumination maps are obtained and Different reflection maps and The training loss function is defined as:
[0053]
[0054] The parameters of each channel node of the decomposition network are obtained through sample set training.
[0055] (3-2) Keep the reflection map ImgR unchanged, input the illumination map ImgI into the illumination enhancement network, output the enhanced illumination image Img'I, and multiply the enhanced illumination map Img'I with the reflection map ImgR to generate the enhanced image, which is the final output of the generative model. The structure of the illumination enhancement network is as follows:
[0056] The first 8 layers of the network are convolutional coding layers, including 4 convolutional layers and 4 pooling layers. The convolution kernel size in the convolutional layer is 3×3, the number of convolution channels is 32, and the parametric rectified linear unit (ParametricReLU, PReLU) is selected as the activation function. Each convolutional layer is connected to a 2×2 pooling layer with a step size of 2. The mean pooling method is used to implement the downsampling operation of the image. Then connect 4 convolutional decoding layers to implement the deconvolution operation, which also includes 2 convolutional layers and 2 pooling layers. The convolution kernel size is 3×3, the number of convolution channels is 32, and the activation function is also PReLU. The bilinear interpolation method is used to achieve image upsampling. The convolutional decoding layer is followed by the connection (concatenate) layer and the full convolution layer. The concatenate layer merges the feature outputs of the convolutional decoding layer. The full convolution layer is a single-channel 3×3 convolution kernel. The final output is the enhanced illumination map.
[0057] In the generative model, the illumination enhancement network is trained separately, and the loss function is composed of the weighted SSIM loss function and the L2 loss function. ehance Defined as:
[0058] Loss SSIM =1-SSIM(X,Y)
[0059] Loss L2 =||YX||2
[0060] Loss ehance =λ1Loss SSIM +λ2Loss L2
[0061] In this embodiment, λ1=0.3, λ2=0.7, X represents the illumination map output by the enhancement network, and Y represents the illumination map of the normal template image.
[0062] (3-3) The input of the discriminant model is the template image and the image to be enhanced, which is the output image after the generative model. The discriminant model is a lightweight twin network. The two branch networks share weights. The specific design of the twin network structure is:
[0063] The network is a 5-layer convolutional neural network. Each convolutional layer is followed by a batch normalization (BN) layer and a PReLU layer. The convolution kernel size of each convolutional layer is 5×5, 5×5, 3×3, 3×3, 3×3, and the number of convolution channels is 128, 64, 64, 32, and 32. The branch network is followed by a similarity discrimination layer, where the L1 norm is used to measure the similarity of the output features of the two branches. Finally, a Sigmoid activation layer is connected to output the discrimination result 0 or 1.
[0064] The generative model and the discriminative model are trained comprehensively. The input image X2 of the generative model is the image to be enhanced, and the enhanced image output by the generative model is recorded as X2'; the discriminative model inputs the image pair X1, X2', where X1 is the template image of the sample group where the image X2 is located. When the input image X2 is not the template image of this group, the output label is set to 0, otherwise the output label is set to 1, and the discriminative result is fed back to the generative model to further adjust the relevant parameters in the generative model. The cross entropy loss function is selected as the training loss function.
[0065] Finally, the newly collected or real-time low-light image in the closed cavity is input into the generative model of the trained conditional generative adversarial network. The decomposition network of the generative model decomposes it into a reflection map and an illumination map. The illumination map is passed through the brightness enhancement network to obtain an enhanced brightness map. The enhanced brightness map is fused with the reflection map to obtain the final system output enhanced image, thereby realizing the image enhancement operation.
[0066] Embodiment 2
[0067] A closed cavity low-light image enhancement system, comprising:
[0068] An image preprocessing module is configured to screen the acquired multiple groups of sample images, use the image with the best quality in each group as the template image of the group of sample images, and use the remaining images as images to be enhanced to form a training sample set;
[0069] The conditional generative adversarial network construction and training module is configured to construct a conditional generative adversarial network, use the template image as the target output, use a multi-index fusion loss function for training, use the template image as the real target, and the enhanced image as the false target input for training;
[0070] The image enhancement module is configured to input the image collected in the closed cavity into the trained conditional generative adversarial network to obtain an image after image enhancement.
[0071] Embodiment 3
[0072] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device. The invention discloses a method for enhancing a low-illuminance image in a closed cavity.
[0073] Embodiment 4
[0074] A terminal device includes a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded by the processor and executing the low-illuminance image enhancement method for a closed cavity.
[0075] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0077] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0079] 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 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.
[0080] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A method for enhancing low-light images in a closed cavity, characterized by: The following steps are involved: Acquire multiple groups of sample images, screen each group of sample images, use the image with the best quality as the template image of the group of sample images, and use the remaining images as the images to be enhanced to form a training sample set; Based on the training sample set, a conditional generative adversarial network is constructed, with the template image as the target output and a multi-index fusion loss function used for training. The template image is then used as the real target and the enhanced image is used as the false target input for training. Inputting the image collected in the closed cavity into the trained conditional generative adversarial network to obtain an image after image enhancement, specifically including: inputting the low-light image newly collected in the closed cavity or collected in real time into the generative model of the trained conditional generative adversarial network, decomposing it into a reflection map and an illumination map through the decomposition network of the generative model, the illumination map is passed through the brightness enhancement network to obtain an enhanced brightness map, and the enhanced brightness map is multiplied by the reflection map to obtain the final system output enhanced image, thereby realizing the image enhancement operation; The conditional generative adversarial network includes a generative model, which includes a decomposition network and an enhancement network. The decomposition network includes a feature extraction layer, a feature fusion layer, a feature refinement layer, and a feature output layer connected in sequence; the enhancement network includes a convolutional coding layer, a convolutional decoding layer, a connection layer, and a full convolutional layer connected in sequence; The training process of the decomposition network includes: E With the template image Img M Input the network, and after decomposing the network, different illumination maps are obtained and And different reflection maps and Based on the illumination map and the reflection map, the training loss function is calculated, and the parameters of each channel node of the decomposition network are obtained through sample set training; the training loss function is: The training process of the enhanced network includes: constructing a weighted fusion loss function based on the SSIM loss function and the L2 loss function, and using the weighted fusion loss function to train the enhanced network separately; Weighted fusion loss function Loss ehance Defined as: Loss SSIM =1-SSIM(X,Y) Loss L2 =||Y-X||2 Loss ehance =λ1Loss SSIM +λ2Loss L2 Among them, λ1=0.3, λ2=0.7, X represents the illumination map output by the enhancement network, and Y represents the illumination map of the normal template image.
2. The method for enhancing low-light images in a closed cavity according to claim 1, characterized in that: Each group of sample images is a plurality of images collected in a closed cavity at the same position, under different brightness and different exposure time conditions.
3. The method for enhancing low-light images in a closed cavity as claimed in claim 1, characterized in that: The specific process of screening each group of sample images includes: receiving the scoring results of multiple people on each group of images using a relative evaluation method, averaging the scoring results, and using the image with the highest average score as the template image of the group of images.
4. The method for enhancing low-light images in a closed cavity according to claim 1, wherein: The conditional generative adversarial network also includes a discriminant model, which is a lightweight twin network in which two branch networks share weights, specifically including a multi-layer convolutional neural network, a similarity discriminant layer and a Sigmoid activation layer connected in sequence.
5. The method for enhancing low-light images in a closed cavity as claimed in claim 1, characterized in that: The template image is taken as the real target and the enhanced image is taken as the false target input. The specific training process includes: comprehensive training of the generative model and the discriminative model, the generative model inputs the image to be enhanced, and the generative model outputs the enhanced image; the input image is discriminated, and the discrimination result is fed back to the generative model, the relevant parameters in the generative model are adjusted, and training is performed again until the set training end conditions are met, wherein the training loss function is the cross entropy loss function.
6. A closed cavity low illumination image enhancement system, characterized by: include: An image preprocessing module is configured to screen the acquired multiple groups of sample images, use the image with the best quality in each group as the template image of the group of sample images, and use the remaining images as images to be enhanced to form a training sample set; The conditional generative adversarial network construction and training module is configured to construct a conditional generative adversarial network, use the template image as the target output, use a multi-index fusion loss function for training, use the template image as the real target, and the enhanced image as the false target input for training; An image enhancement module is configured to input the image collected in the closed cavity into the trained conditional generative adversarial network to obtain an image after image enhancement; The “inputting the image collected in the closed cavity into the trained conditional generative adversarial network to obtain an image after image enhancement” specifically includes: inputting the low-light image newly collected in the closed cavity or collected in real time into the generative model of the trained conditional generative adversarial network, decomposing the image into a reflection map and an illumination map through the decomposition network of the generative model, the illumination map is passed through the brightness enhancement network to obtain an enhanced brightness map, and the enhanced brightness map is multiplied by the reflection map to obtain the final system output enhanced image, thereby realizing the image enhancement operation; The conditional generative adversarial network includes a generative model, which includes a decomposition network and an enhancement network. The decomposition network includes a feature extraction layer, a feature fusion layer, a feature refinement layer, and a feature output layer connected in sequence; the enhancement network includes a convolutional coding layer, a convolutional decoding layer, a connection layer, and a full convolutional layer connected in sequence; The training process of the decomposition network includes: E With the template image Img M Input the network, and after decomposing the network, different illumination maps are obtained and And different reflection maps and Based on the illumination map and the reflection map, the training loss function is calculated, and the parameters of each channel node of the decomposition network are obtained through sample set training; the training loss function is: The training process of the enhanced network includes: constructing a weighted fusion loss function based on the SSIM loss function and the L2 loss function, and using the weighted fusion loss function to train the enhanced network separately; Weighted fusion loss function Loss ehance Defined as: Loss SSIM =1-SSIM(X,Y) Loss L2 =||Y-X||2 Loss ehance =λ1Loss SSIM +λ2Loss L2 Among them, λ1=0.3, λ2=0.7, X represents the illumination map output by the enhancement network, and Y represents the illumination map of the normal template image.
7. A computer-readable storage medium, characterized in that: There are a plurality of instructions, and the instructions are suitable for being loaded by a processor of a terminal device and executing a closed cavity low-light image enhancement method according to any one of claims 1-5.
8. A terminal device, characterized in that: It includes a processor and a computer-readable storage medium, the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, and the instructions are suitable for being loaded by the processor and executed by a closed cavity low-illuminance image enhancement method described in any one of claims 1-5.
Citation Information
Patent Citations
Target recognition model training method, target recognition method, equipment and robot
CN109313710A
PET image reconstruction method and apparatus, and computing device
CN109559360A
Low-illumination image enhancement method and device
CN110675336A
Image similarity learning method for extracting multi-resolution features of image
CN110781928A
Dark light enhancement method and device, mobile terminal and storage medium
CN111918095A
