Image exposure correction method, device, electronic device and storage medium

By acquiring the low-frequency and high-frequency characteristics of the image, and using the trained image exposure correction model to perform overexposed and insufficient image correction, the problem of inability to correct simultaneously in the prior art is solved and the correction accuracy is improved.

CN114241205BActive Publication Date: 2024-11-05泰康保险集团股份有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111418238.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-11-05
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

The existing image exposure correction methods based on traditional machine learning cannot correct images with overexposed and underexposed simultaneously, and the correction accuracy is not high.

Method used

By acquiring the low-frequency characteristics and high-frequency characteristics of the image to be corrected, it is input into the trained image exposure correction model. The model is trained based on overexposed and insufficient sample images, and is performed using N-layer U-net subnet and scaling module for Image correction, combined with Laplace pyramid images for deep neural network training.

Benefits of technology

Simultaneous correction of overexposed and insufficient images is achieved, the accuracy of image exposure correction is improved, and the color and texture details of the image can be processed simultaneously.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114241205B_ABST
    Figure CN114241205B_ABST
Patent Text Reader

Abstract

The present application discloses an image exposure correction method, device, electronic device and storage medium, which solves the problem that the existing method for image exposure correction based on traditional machine learning models cannot correct overexposed and underexposed images at the same time, and the correction accuracy is not high. The image exposure correction method includes: obtaining low-frequency features and high-frequency features of the image to be corrected; inputting the low-frequency features and the high-frequency features into an image exposure correction model to obtain a corrected image, wherein the image exposure correction model is obtained by training according to the low-frequency features and high-frequency features of each sample image extracted from a sample training set according to a constructed neural network model to be trained, and the sample training set includes overexposed sample images and underexposed sample images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image exposure correction method, device, electronic device and storage medium. Background Art

[0002] When using a digital camera to capture images, images taken with incorrect exposure parameters have two problems: (1) overexposure, that is, the exposure time is too long, resulting in bright and faded image areas; (2) underexposure, that is, the exposure time is too short, resulting in dark image areas. In existing image exposure correction schemes, traditional machine learning-based methods are generally used to correct only overexposed images, or only underexposed images, but cannot correct both overexposed and underexposed images at the same time. In addition, the accuracy of directly correcting the exposure of the original image based on traditional machine learning methods is not high. Summary of the invention

[0003] In order to solve the problem that the existing method of image exposure correction based on traditional machine learning models cannot correct both overexposed and underexposed images at the same time, and the correction accuracy is not high, the embodiments of the present application provide an image exposure correction method, device, electronic device and storage medium.

[0004] In a first aspect, an embodiment of the present application provides an image exposure correction method, comprising:

[0005] Obtain low-frequency features and high-frequency features of the image to be corrected;

[0006] The low-frequency features and the high-frequency features are input into an image exposure correction model to obtain a corrected image. The image exposure correction model is obtained by training the low-frequency features and high-frequency features of each sample image extracted from a sample training set according to a constructed neural network model to be trained. The sample training set includes overexposed sample images and underexposed sample images.

[0007] In a possible implementation manner, obtaining low-frequency features and high-frequency features of the image to be corrected specifically includes:

[0008] Acquire a Laplace pyramid image set corresponding to the image to be corrected, wherein the Laplace pyramid image set includes N layers of Laplace pyramid images corresponding to the image to be corrected, a first layer of Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the image to be corrected, and second to N layers of Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the image to be corrected;

[0009] The low-frequency Laplacian pyramid image is determined as a low-frequency feature of the image to be corrected, and the high-frequency Laplacian pyramid image is determined as a high-frequency feature of the image to be corrected.

[0010] In a possible implementation manner, the neural network model to be trained includes an N-layer U-net subnetwork;

[0011] The image exposure correction model is obtained by training in the following manner:

[0012] For each sample image in the sample training set, a first Laplace pyramid image set corresponding to the sample image is obtained, and a second Laplace pyramid image set corresponding to the normally exposed image corresponding to the sample image is obtained; the first Laplace pyramid image set includes N layers of first Laplace pyramid images corresponding to the sample image, the first layer of the first Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the sample image, and the second to N layers of the first Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the sample image; the second Laplace pyramid image set includes N layers of second Laplace pyramid images corresponding to the normally exposed image, the first layer of the second Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the normally exposed image, and the second to N layers of the second Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the normally exposed image;

[0013] Respectively labeling pixel values ​​of pixel points in the first-layer second Laplacian pyramid image and the second to N-layer second Laplacian pyramid images to obtain respective corresponding labeled pixel values;

[0014] Inputting the first-layer first Laplacian pyramid image into the first-layer U-net subnetwork, and predicting a reconstructed image corresponding to the first-layer first Laplacian pyramid image;

[0015] The reconstructed image predicted by each layer of the U-net sub-network and the first Laplacian pyramid image of the next layer are sequentially used as inputs of the next layer of the U-net sub-network to predict the reconstructed image corresponding to the sample image;

[0016] For each layer of the reconstructed image predicted by the U-net subnetwork, determine the error between the pixel value of each pixel in the reconstructed image predicted by the U-net subnetwork of the layer and the labeled pixel value of each pixel corresponding to the second Laplacian pyramid image of the corresponding layer;

[0017] The neural network model to be trained is machine iteratively trained according to the error and the preset loss function, and the neural network model to be trained after convergence is used as the image exposure correction model.

[0018] In a possible implementation manner, each layer of the U-net sub-network in the neural network model to be trained is further connected to a scaling module;

[0019] Before the reconstructed image predicted by each layer of the U-net sub-network and the first Laplacian pyramid image of the next layer are input into the next layer of the U-net sub-network, it also includes:

[0020] The reconstructed image predicted by the U-net sub-network of the current layer is input into the scaling module connected to the U-net sub-network of the layer for size adjustment, and the size of the reconstructed image is adjusted to be the same as the size of the first Laplacian pyramid image of the next layer.

[0021] In a possible implementation, the preset loss function is:

[0022]

[0023] Among them, Loss represents the image reconstruction loss function;

[0024] Y l (p) represents the pixel value of the pth pixel of the reconstructed image predicted by the lth layer U-net sub-network, N represents the number of layers of the U-net sub-network included in the neural network model to be trained, and h l represents the height of the reconstructed image predicted by the l-th layer U-net sub-network, w l represents the width of the reconstructed image predicted by the l-th layer U-net subnetwork;

[0025] T l (p) represents the pixel value of the p-th pixel in the second Laplacian pyramid image of the l-th layer.

[0026] In a possible implementation, the image exposure correction model includes an N-layer U-net subnetwork;

[0027] Inputting the low-frequency features and the high-frequency features into an image exposure correction model to obtain a corrected image specifically includes:

[0028] Inputting the first-layer Laplacian pyramid image into the first-layer U-net subnetwork of the image exposure correction model to obtain a reconstructed image corresponding to the first-layer Laplacian pyramid image;

[0029] The reconstructed image output by each layer of the U-net sub-network and the Laplacian pyramid image of the next layer are sequentially used as the input of the next layer of the U-net sub-network to obtain the reconstructed image corresponding to the image to be corrected, and the reconstructed image corresponding to the image to be corrected is determined to be the corrected image.

[0030] In a possible implementation, each layer of the U-net subnetwork in the image exposure correction model is further connected to a scaling module;

[0031] Before the reconstructed image output by each layer of U-net sub-network and the next layer of Laplacian pyramid image are input into the next layer of U-net sub-network, it also includes:

[0032] The reconstructed image output by the U-net sub-network of the current layer is input into the scaling module connected to the U-net sub-network of the layer for resizing, and the size of the reconstructed image is adjusted to be the same as the size of the Laplacian pyramid image of the next layer.

[0033] In a second aspect, an embodiment of the present application provides an image exposure correction device, comprising:

[0034] An acquisition unit, used for acquiring low-frequency features and high-frequency features of the image to be corrected;

[0035] The exposure correction unit is used to input the low-frequency features and the high-frequency features into an image exposure correction model to obtain a corrected image, wherein the image exposure correction model is obtained by training the low-frequency features and the high-frequency features of each sample image extracted from a sample training set according to a constructed neural network model to be trained, and the sample training set includes overexposed sample images and underexposed sample images.

[0036] In a possible implementation, the acquisition unit is specifically configured to acquire a set of Laplace pyramid images corresponding to the image to be corrected, wherein the set of Laplace pyramid images includes N layers of Laplace pyramid images corresponding to the image to be corrected, the first layer of Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the image to be corrected, and the second to N layers of Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the image to be corrected; the low-frequency Laplace pyramid image is determined as a low-frequency feature of the image to be corrected, and the high-frequency Laplace pyramid image is determined as a high-frequency feature of the image to be corrected.

[0037] In a possible implementation manner, the neural network model to be trained includes an N-layer U-net subnetwork;

[0038] The exposure correction unit is specifically used to obtain the image exposure correction model through training in the following manner: for each sample image in the sample training set, a first Laplace pyramid image set corresponding to the sample image is obtained, and a second Laplace pyramid image set corresponding to the exposure normal image corresponding to the sample image is obtained; the first Laplace pyramid image set includes N layers of first Laplace pyramid images corresponding to the sample image, the first layer of the first Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the sample image, and the second to N layers of the first Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the sample image; the second Laplace pyramid image set includes N layers of second Laplace pyramid images corresponding to the exposure normal image, the first layer of the second Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the exposure normal image, and the second to N layers of the second Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the exposure normal image. image; respectively annotate the pixel values ​​of the pixels in the first-layer second Laplace pyramid image and the second to N-layer second Laplace pyramid images to obtain the corresponding annotated pixel values; input the first-layer first Laplace pyramid image into the first-layer U-net subnetwork to predict the reconstructed image corresponding to the first-layer first Laplace pyramid image; sequentially use the reconstructed image predicted by each layer of the U-net subnetwork and the first Laplace pyramid image of the next layer as the input of the next layer of the U-net subnetwork to predict the reconstructed image corresponding to the sample image; for the reconstructed image predicted by each layer of the U-net subnetwork, determine the error between the pixel value of each pixel in the reconstructed image predicted by the layer of the U-net subnetwork and the annotated pixel value of each pixel in the corresponding layer of the second Laplace pyramid image; perform machine iterative training on the neural network model to be trained according to the error and the preset loss function, and use the converged neural network model to be trained as the image exposure correction model.

[0039] In a possible implementation manner, each layer of the U-net sub-network in the neural network model to be trained is further connected to a scaling module;

[0040] The exposure correction unit is further used to input the reconstructed image predicted by the U-net subnetwork of the current layer into the scaling module connected to the U-net subnetwork of the layer for size adjustment before inputting the reconstructed image predicted by the U-net subnetwork of each layer and the first Laplacian pyramid image of the next layer into the U-net subnetwork of the next layer, so as to adjust the size of the reconstructed image to be the same as the size of the first Laplacian pyramid image of the next layer.

[0041] In a possible implementation, the preset loss function is:

[0042]

[0043] Among them, Loss represents the image reconstruction loss function;

[0044] Y l (p) represents the pixel value of the pth pixel of the reconstructed image predicted by the lth layer U-net sub-network, N represents the number of layers of the U-net sub-network included in the neural network model to be trained, and h l represents the height of the reconstructed image predicted by the l-th layer U-net sub-network, w l represents the width of the reconstructed image predicted by the l-th layer U-net subnetwork;

[0045] T l (p) represents the pixel value of the p-th pixel in the second Laplacian pyramid image of the l-th layer.

[0046] In a possible implementation, the image exposure correction model includes an N-layer U-net subnetwork;

[0047] The exposure correction unit is specifically configured to input the first-layer Laplacian pyramid image into the first-layer U-net subnetwork of the image exposure correction model to obtain a reconstructed image corresponding to the first-layer Laplacian pyramid image; sequentially use the reconstructed image output by each layer of the U-net subnetwork and the next-layer Laplacian pyramid image as inputs of the next-layer U-net subnetwork to obtain a reconstructed image corresponding to the image to be corrected, and determine that the reconstructed image corresponding to the image to be corrected is the corrected image.

[0048] In a possible implementation, each layer of the U-net subnetwork in the image exposure correction model is further connected to a scaling module;

[0049] The exposure correction unit is further used to input the reconstructed image output by the current layer of U-net subnetwork into the scaling module connected to the layer of U-net subnetwork for size adjustment before inputting the reconstructed image output by each layer of U-net subnetwork and the next layer of Laplacian pyramid image into the next layer of U-net subnetwork, so as to adjust the size of the reconstructed image to be the same as the size of the next layer of Laplacian pyramid image.

[0050] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the image exposure correction method described in the present application when executing the program.

[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the image exposure correction method described in the present application.

[0052] The beneficial effects of the embodiments of the present application are as follows:

[0053] The image exposure correction method, device, electronic device and storage medium provided in the embodiments of the present application, the image processing device obtains the low-frequency features and high-frequency features of the image to be corrected, inputs the low-frequency features and high-frequency features of the image to be corrected into the image exposure correction model, and obtains the corrected image corresponding to the image to be corrected, wherein the image exposure correction model is obtained by training according to the constructed neural network model to be trained based on the low-frequency features and high-frequency features of each sample image extracted from the sample training set, the sample training set includes overexposed sample images and underexposed sample images, compared with the prior art, in the embodiments of the present application, in the image exposure correction model In the training process of the model, the training is based on overexposed sample images and underexposed sample images. It can not only correct overexposed images, but also correct underexposed images. In addition, in the embodiment of the present application, image exposure correction is performed based on the low-frequency features and high-frequency features of the image to be corrected. The low-frequency features of the image correspond to the color of the image, and the high-frequency features of the image correspond to the texture details of the image. The image exposure correction model proposed in the present application can perform exposure correction on the color and texture details of the image at the same time. Compared with the existing method of directly performing exposure correction on the original image, the image exposure correction of the present application is more accurate.

[0054] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0056] Figure 1 A schematic diagram of an implementation flow of an image exposure correction method provided in an embodiment of the present application;

[0057] Figure 2 Schematic diagram of the Laplacian pyramid image corresponding to the original image;

[0058] Figure 3 A schematic diagram of the training process of the image exposure correction model provided in the embodiment of the present application;

[0059] Figure 4 An architectural diagram of a neural network model to be trained provided in an embodiment of the present application;

[0060] Figure 5 A schematic diagram of the structure of an image exposure correction device provided in an embodiment of the present application;

[0061] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In order to solve the problem that the existing method of image exposure correction based on traditional machine learning models cannot correct both overexposed and underexposed images at the same time, and the correction accuracy is not high, the embodiments of the present application provide an image exposure correction method, device, electronic device and storage medium.

[0063] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0064] The image exposure correction method provided in the embodiment of the present application can be applied to an image processing device. The image processing device can be a server or a terminal device. The server can be an independent physical server or a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, and cloud storage. The terminal can be but is not limited to: a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., and the embodiment of the present application does not limit this.

[0065] like Figure 1 As shown, it is a schematic diagram of the implementation process of the image exposure correction method provided in the embodiment of the present application, which may specifically include the following steps:

[0066] S11, obtaining low-frequency features and high-frequency features of the image to be corrected.

[0067] In a specific implementation, the image processing device obtains a Laplace pyramid image set corresponding to the image to be corrected, wherein the Laplace pyramid image set includes N layers of Laplace pyramid images corresponding to the image to be corrected, the first layer of Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the image to be corrected, the second to N layers of Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the image to be corrected, the low-frequency Laplace pyramid image is determined as a low-frequency feature of the image to be corrected, and the high-frequency Laplace pyramid image is determined as a high-frequency feature of the image to be corrected. The first layer of the Laplace pyramid image is the lowest layer of the N-layer Laplace pyramid image, corresponding to the low-frequency features of the image to be corrected, and mainly represents the color (i.e., color) of the image to be corrected. The second to N-layer Laplace pyramid images correspond to the high-frequency features of the image to be corrected, and mainly represent the texture details of the image to be corrected. From the first layer to the N-th layer of the Laplace pyramid image, the size doubles layer by layer, that is, the size of the second-layer Laplace pyramid image is twice that of the first-layer Laplace pyramid image, the third-layer Laplace pyramid image is twice that of the second-layer Laplace pyramid image, ..., the N-layer Laplace pyramid image is twice that of the N-1-th layer Laplace pyramid image.

[0068] Take N=4 as an example, Figure 2 As shown, the original image is a face image (such as Figure 2 As shown on the left, the Laplacian pyramid images of each layer corresponding to the original image are as follows Figure 2 As shown on the right, the first-level (Level 1) Laplacian pyramid image is a low-frequency Laplacian pyramid image corresponding to the original image, that is, the low-frequency feature of the original image, which retains the color information of the original image. The second-level Laplacian pyramid image, the third-level Laplacian pyramid image, and the fourth-level Laplacian pyramid image are high-frequency Laplacian pyramid images corresponding to the original image, which retain the texture detail information of the original image. The size of the second-level Laplacian pyramid image is twice the size of the first-level Laplacian pyramid image, the size of the third-level Laplacian pyramid image is twice the size of the second-level Laplacian pyramid image, and the size of the fourth-level Laplacian pyramid image is twice the size of the third-level Laplacian pyramid image.

[0069] It should be noted that the number of layers N of the Laplacian pyramid image must be consistent with the number of layers of the U-net subnetwork included in the image exposure correction model.

[0070] S12, inputting the low-frequency features and the high-frequency features into the image exposure correction model to obtain a corrected image.

[0071] In specific implementation, the image processing device inputs the low-frequency Laplacian pyramid image (i.e., the first-layer Laplacian pyramid image) and the high-frequency Laplacian pyramid image (i.e., the 2nd to Nth-layer Laplacian pyramid images) corresponding to the image to be corrected into the image exposure correction model to obtain the corrected image. The image exposure correction model is obtained by training the constructed neural network model to be trained based on the low-frequency features and high-frequency features of each sample image extracted from the sample training set, and the sample training set includes overexposed sample images and underexposed sample images.

[0072] Specifically, the neural network model to be trained includes N layers of U-net subnetworks, and the value of N can be set voluntarily, and the present application embodiment does not limit this. The training process of the image exposure correction model is as follows: Figure 3 As shown, the following steps may be included:

[0073] S21. For each sample image in the sample training set, obtain a first Laplacian pyramid image set corresponding to the sample image, and obtain a second Laplacian pyramid image set corresponding to the normally exposed image corresponding to the sample image.

[0074] During specific implementation, the image processing device can collect a preset number of sample images to generate a sample training set, where the sample images are images with abnormal exposure, including underexposed images and overexposed images, and obtain a normally exposed image corresponding to each abnormally exposed image. During implementation, the exposure of the preset number of normally exposed images can be adjusted separately to adjust them to images with abnormal exposure to obtain corresponding sample images. The preset number can be set as needed, and the embodiments of the present application are not limited to this.

[0075] Specifically, for each sample image in the sample training set, a Laplace pyramid image set corresponding to the sample image is obtained (in order to distinguish it from the Laplace pyramid image set corresponding to the image to be corrected), which can be recorded as the first Laplace pyramid image set, and a Laplace pyramid image set corresponding to the normal exposure image corresponding to the sample image is obtained, which can be recorded as the second Laplace pyramid image set. Among them, the first Laplace pyramid image set includes N layers of Laplace pyramid images corresponding to the sample image, which can be recorded as the first Laplace pyramid image, the first layer of the first Laplace pyramid image is the low-frequency Laplace pyramid image corresponding to the sample image, and the second to N layers of the first Laplace pyramid images are the high-frequency Laplace pyramid images corresponding to the sample image. The second Laplace pyramid image set includes N layers of Laplace pyramid images corresponding to the normal exposure image, which can be recorded as the second Laplace pyramid image, the first layer of the second Laplace pyramid image is the low-frequency Laplace pyramid image corresponding to the normal exposure image, and the second to N layers of the second Laplace pyramid images are the high-frequency Laplace pyramid images corresponding to the normal exposure image.

[0076] S22 , respectively labeling pixel values ​​of pixel points in the first layer second Laplacian pyramid image and the second to N layers second Laplacian pyramid images to obtain corresponding labeled pixel values.

[0077] In a specific implementation, for each sample image, the image processing device respectively labels the pixel values ​​of the pixel points in the first layer Laplace image of the exposed normal image corresponding to the sample image (i.e., the first layer second Laplace pyramid image) and the 2nd to Nth layer Laplace images of the exposed normal image (i.e., the 2nd to Nth layer second Laplace pyramid images), and obtains the labeled pixel values ​​corresponding to the 1st to Nth layer second Laplace pyramid images respectively.

[0078] S23: input the first-layer first Laplacian pyramid image into the first-layer U-net subnetwork, and predict a reconstructed image corresponding to the first-layer first Laplacian pyramid image.

[0079] In the specific implementation, a neural network model to be trained is pre-built, and the neural network model to be trained includes N layers of U-net subnetworks, and each layer of U-net subnetwork is connected sequentially. The following is an exemplary architecture of a neural network model to be trained. Assuming N=4, the neural network model to be trained includes 4 layers of U-net subnetworks, and the structure of each layer of U-net subnetwork includes an encoding part and a decoding part. The encoding part of the U-net subnetwork (that is, the feature extraction part) includes the following four parts:

[0080] (1) Two Bottlenetck layers (bottleneck layers), the input is a three-channel RGB image, the convolution kernel size is 3×3, the sampling interval is 2, the number of channels is 24, and the output is recorded as conv1.

[0081] (2) Two Bottlenetck layers, the input is conv1, the convolution kernel size is 3×3, the sampling interval is 2, the number of channels is 48, and the output is recorded as conv2.

[0082] (3) Two Bottlenetck layers, the input is conv2, the convolution kernel size is 3×3, the sampling interval is 2, the number of channels is 96, and the output is recorded as conv3.

[0083] (4) Two Bottlenetck layers, the input is conv3, the convolution kernel size is 3×3, the sampling interval is 2, the number of channels is 192, and the output is recorded as conv4.

[0084] The decoding part of the U-net subnetwork (i.e., image deconvolution, image upsampling, and clarity map construction) consists of the following four parts:

[0085] (1) Two Bottlenetck layers, the input is conv4, the convolution kernel size is 3×3, the sampling interval is 2, the number of channels is 192, and the output is recorded as deconv1.

[0086] (2) Two Bottlenetck layers, the input is deconv1, the convolution kernel size is 3×3, the sampling interval is 2, the number of channels is 96, and the output is recorded as deconv2.

[0087] (3) Two Bottlenetck layers, the input is deconv2, the convolution kernel size is 3×3, the sampling interval is 2, the number of channels is 48, and the output is recorded as deconv3.

[0088] (4) Two Bottlenetck layers, the input is deconv3, the convolution kernel size is 3×3, the sampling interval is 2, the number of channels is 3, and the output is recorded as deconv4.

[0089] Each time the images are upsampled, they are fused (i.e., concatenated) at the same scale as the number of channels corresponding to the feature extraction part, and the output deconv4 is a three-channel RGB image.

[0090] A scaling module is also connected after each layer of the U-net subnetwork, that is, a scaling module is connected after part (4) of the decoding part of each layer of the U-net subnetwork to adjust the size of the output deconv4 corresponding to each layer.

[0091] It should be noted that the above-mentioned U-net sub-network architectures are merely exemplary. In the specific implementation process, each component of the U-net sub-network architecture can be set by oneself, and the embodiments of the present application do not limit this.

[0092] In a specific implementation, the image processing device, for each sample image in the sample training set, after obtaining the first Laplacian pyramid images of the 1st to Nth layers corresponding to the sample image and the second Laplacian pyramid images of the 1st to Nth layers corresponding to the exposed normal image corresponding to the sample image, inputs the first Laplacian pyramid image of the first layer into the first U-net sub-network, predicts the reconstructed image corresponding to the first Laplacian pyramid image of the first layer, and the first U-net sub-network is used to enhance the color of the sample image and reconstruct the low-frequency part of the sample image.

[0093] Take the neural network model to be trained including 4 layers of U-net sub-network as an example. Figure 4 As shown in Figure 1, it is the architecture diagram of the neural network model to be trained. A sample image is still Figure 2 For example, Figure 4 The leftmost original image is the sample image, and its corresponding 4-layer first Laplacian pyramid images level1 to level4 can be recorded as PyrImage(l=1) to PyrImage(l=4). The first-layer first Laplacian pyramid image PyrImage(l=1) is input into the first-layer U-net subnetwork to obtain the reconstructed image corresponding to the predicted first-layer first Laplacian pyramid image.

[0094] S24, sequentially using the reconstructed image predicted by each layer of the U-net sub-network and the first Laplacian pyramid image of the next layer as the input of the next layer of the U-net sub-network, and predicting the reconstructed image corresponding to the sample image.

[0095] When implementing it, Figure 4As shown, the reconstructed image corresponding to the first-layer first Laplacian pyramid image output by the first-layer U-net sub-network and the second-layer Laplacian pyramid image of the sample image (i.e., the second-layer first Laplacian image) are used as inputs of the second-layer U-net sub-network to obtain the reconstructed image corresponding to the second-layer first Laplacian pyramid image. Furthermore, the reconstructed image corresponding to the second-layer first Laplacian pyramid image output by the second-layer U-net sub-network and the third-layer Laplacian pyramid image of the sample image (i.e., the third-layer first Laplacian image) are used as inputs of the third-layer U-net sub-network to obtain the reconstructed image corresponding to the third-layer first Laplacian pyramid image. Furthermore, the reconstructed image corresponding to the third-layer first Laplacian pyramid image output by the third-layer U-net sub-network and the fourth-layer Laplacian pyramid image of the sample image (i.e., the fourth-layer first Laplacian image) are used as inputs of the fourth-layer U-net sub-network to obtain the reconstructed image corresponding to the fourth-layer first Laplacian pyramid image, that is, the corrected image corresponding to the sample image.

[0096] In the specific implementation process, since the size of the reconstructed image output by each layer of the U-net sub-network is half the size of the first Laplacian image of the next layer (that is, the Laplacian image of the next layer corresponding to the sample image), before the reconstructed image predicted by each layer of the U-net sub-network and the first Laplacian pyramid image of the next layer are input into the U-net sub-network of the next layer, it also includes:

[0097] The reconstructed image predicted by the U-net sub-network of the current layer is input into the scaling module connected to the U-net sub-network of the current layer for resizing, and the size of the reconstructed image is adjusted to be the same as the size of the first Laplacian pyramid image of the next layer.

[0098] S25. For each layer of the reconstructed image predicted by the U-net subnetwork, determine the error between the pixel value of each pixel in the reconstructed image predicted by the U-net subnetwork of the layer and the labeled pixel value of each pixel corresponding to the second Laplacian pyramid image of the corresponding layer.

[0099] In a specific implementation, the image processing device calculates, for each layer of the U-net subnetwork predicted reconstructed image of the first Laplacian pyramid image of the corresponding layer of the sample image, the error between the pixel value of each pixel in the reconstructed image of the first Laplacian pyramid image of the corresponding layer of the sample image predicted by the U-net subnetwork of the layer and the labeled pixel value of each pixel in the second Laplacian pyramid image of the corresponding layer of the normally exposed image corresponding to the sample image.

[0100] S26, performing machine iterative training on the neural network model to be trained according to the error and the preset loss function, and using the converged neural network model to be trained as an image exposure correction model.

[0101] In specific implementation, the preset loss function can be set as:

[0102]

[0103] Among them, Loss represents the image reconstruction loss function;

[0104] Y l (p) represents the pixel value of the pth pixel of the reconstructed image predicted by the lth layer U-net sub-network, N represents the number of layers of the U-net sub-network included in the neural network model to be trained, and h l represents the height of the reconstructed image predicted by the l-th layer U-net sub-network, w l Represents the width of the reconstructed image predicted by the l-th layer U-net subnetwork;

[0105] T l (p) represents the pixel value of the p-th pixel in the second Laplacian pyramid image of the l-th layer.

[0106] Among them, the image reconstruction loss function can be expressed as the sum of the pyramid losses corresponding to the Laplacian pyramid images of each layer of the sample image.

[0107] Specifically, the neural network model to be trained can be machine iteratively trained according to the above-mentioned image reconstruction loss function, and the parameters of the neural network model to be trained can be adjusted until the model converges, and the converged neural network model to be trained can be used as the image exposure correction model.

[0108] In the specific implementation, the low-frequency features and high-frequency features are input into the image exposure correction model to obtain the corrected image, which specifically includes:

[0109] The image processing device inputs a low-frequency Laplace pyramid image (i.e., the first-layer Laplace pyramid image) corresponding to the image to be corrected and a high-frequency Laplace pyramid image (i.e., the 2nd to Nth-layer Laplace pyramid images) corresponding to the image to be corrected into the image exposure correction model to obtain a corrected image.

[0110] Specifically, the image processing device inputs the first-layer Laplacian pyramid image of the image to be corrected into the first-layer U-net subnetwork of the image exposure correction model, and the corrected (post-) image corresponding to the image, that is, the output of the Nth layer of the U-net subnetwork, is the reconstructed image corresponding to the first-layer Laplacian pyramid image of the image to be corrected. The reconstructed image output by each layer of the U-net subnetwork and the next-layer Laplacian pyramid image of the image to be corrected are sequentially used as inputs of the next-layer U-net subnetwork to obtain the reconstructed image corresponding to the image to be corrected, and determine that the reconstructed image corresponding to the image to be corrected is the corrected image corresponding to the image to be corrected.

[0111] During the implementation, each layer of the U-net sub-network in the image exposure correction model is further connected to a scaling module, and before the reconstructed image output by each layer of the U-net sub-network and the next layer of the Laplacian pyramid image of the image to be corrected are input into the next layer of the U-net sub-network, it also includes:

[0112] The reconstructed image output by the current layer U-net sub-network is input into the scaling module connected to the current layer U-net sub-network for resizing, and the size of the reconstructed image output by the current layer U-net sub-network is adjusted to be the same as the size of the next layer Laplacian pyramid image of the image to be corrected.

[0113] In the image exposure correction method provided in the embodiment of the present application, an image processing device obtains low-frequency features and high-frequency features of an image to be corrected, inputs the low-frequency features and high-frequency features of the image to be corrected into an image exposure correction model, and obtains a corrected image corresponding to the image to be corrected, wherein the image exposure correction model is obtained by training the constructed neural network model to be trained according to the low-frequency features and high-frequency features of each sample image extracted from a sample training set, and the sample training set includes overexposed sample images and underexposed sample images. Compared with the prior art, the embodiment of the present application proposes a coarse-to-fine deep neural network model as an image exposure correction model, which reconstructs image information one by one from low frequency to high frequency, and the image exposure correction model is trainable in an end-to-end manner, and N U-net subnetworks are trained at the same time, and each U-net subnetwork is used to process the Laplacian pyramid image of the corresponding layer of the image. In the training process of the image exposure correction model, the training is based on overexposed sample images and underexposed sample images. The abnormally exposed sample images are used to learn the information of the corresponding normally exposed images through a deep neural network, and the abnormally exposed sample images are reconstructed into normally exposed images. It can not only correct overexposed images, but also correct underexposed images. In addition, in the embodiment of the present application, image exposure correction is performed based on the low-frequency features (i.e., low-frequency Laplace images) and high-frequency features (i.e., high-frequency Laplace images) of the image to be corrected. The low-frequency features of the image correspond to the color of the image, and the high-frequency features of the image correspond to the texture details of the image. The image exposure correction model proposed in the present application can perform exposure correction on the color and texture details of the image at the same time. Compared with the existing method of directly performing exposure correction on the original image, the image exposure correction of the present application is more accurate.

[0114] Based on the same inventive concept, an embodiment of the present application also provides an image exposure correction device. Since the principle of solving the problem by the above-mentioned image exposure correction device is similar to that of the image exposure correction method, the implementation of the above-mentioned device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0115] like Figure 5 As shown, it is a schematic diagram of the structure of the image exposure correction device provided in an embodiment of the present application, which may include:

[0116] An acquisition unit 31, used to acquire low-frequency features and high-frequency features of the image to be corrected;

[0117] The exposure correction unit 32 is used to input the low-frequency features and the high-frequency features into an image exposure correction model to obtain a corrected image. The image exposure correction model is obtained by training the low-frequency features and the high-frequency features of each sample image extracted from a sample training set according to a constructed neural network model to be trained, and the sample training set includes overexposed sample images and underexposed sample images.

[0118] In a possible implementation, the acquisition unit is specifically configured to acquire a set of Laplace pyramid images corresponding to the image to be corrected, wherein the set of Laplace pyramid images includes N layers of Laplace pyramid images corresponding to the image to be corrected, the first layer of Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the image to be corrected, and the second to N layers of Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the image to be corrected; the low-frequency Laplace pyramid image is determined as a low-frequency feature of the image to be corrected, and the high-frequency Laplace pyramid image is determined as a high-frequency feature of the image to be corrected.

[0119] In a possible implementation manner, the neural network model to be trained includes an N-layer U-net subnetwork;

[0120] The exposure correction unit is specifically used to obtain the image exposure correction model through training in the following manner: for each sample image in the sample training set, a first Laplace pyramid image set corresponding to the sample image is obtained, and a second Laplace pyramid image set corresponding to the exposure normal image corresponding to the sample image is obtained; the first Laplace pyramid image set includes N layers of first Laplace pyramid images corresponding to the sample image, the first layer of the first Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the sample image, and the second to N layers of the first Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the sample image; the second Laplace pyramid image set includes N layers of second Laplace pyramid images corresponding to the exposure normal image, the first layer of the second Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the exposure normal image, and the second to N layers of the second Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the exposure normal image. image; respectively annotate the pixel values ​​of the pixels in the first-layer second Laplace pyramid image and the second to N-layer second Laplace pyramid images to obtain the corresponding annotated pixel values; input the first-layer first Laplace pyramid image into the first-layer U-net subnetwork to predict the reconstructed image corresponding to the first-layer first Laplace pyramid image; sequentially use the reconstructed image predicted by each layer of the U-net subnetwork and the first Laplace pyramid image of the next layer as the input of the next layer of the U-net subnetwork to predict the reconstructed image corresponding to the sample image; for the reconstructed image predicted by each layer of the U-net subnetwork, determine the error between the pixel value of each pixel in the reconstructed image predicted by the layer of the U-net subnetwork and the annotated pixel value of each pixel in the corresponding layer of the second Laplace pyramid image; perform machine iterative training on the neural network model to be trained according to the error and the preset loss function, and use the converged neural network model to be trained as the image exposure correction model.

[0121] In a possible implementation manner, each layer of the U-net sub-network in the neural network model to be trained is further connected to a scaling module;

[0122] The exposure correction unit is further used to input the reconstructed image predicted by the U-net subnetwork of the current layer into the scaling module connected to the U-net subnetwork of the layer for size adjustment before inputting the reconstructed image predicted by the U-net subnetwork of each layer and the first Laplacian pyramid image of the next layer into the U-net subnetwork of the next layer, so as to adjust the size of the reconstructed image to be the same as the size of the first Laplacian pyramid image of the next layer.

[0123] In a possible implementation, the preset loss function is:

[0124]

[0125] Among them, Loss represents the image reconstruction loss function;

[0126] Y l (p) represents the pixel value of the pth pixel of the reconstructed image predicted by the lth layer U-net sub-network, N represents the number of layers of the U-net sub-network included in the neural network model to be trained, and h l represents the height of the reconstructed image predicted by the l-th layer U-net sub-network, w l represents the width of the reconstructed image predicted by the l-th layer U-net subnetwork;

[0127] T l (p) represents the pixel value of the p-th pixel in the second Laplacian pyramid image of the l-th layer.

[0128] In a possible implementation, the image exposure correction model includes an N-layer U-net subnetwork;

[0129] The exposure correction unit is specifically configured to input the first-layer Laplacian pyramid image into the first-layer U-net subnetwork of the image exposure correction model to obtain a reconstructed image corresponding to the first-layer Laplacian pyramid image; sequentially use the reconstructed image output by each layer of the U-net subnetwork and the next-layer Laplacian pyramid image as inputs of the next-layer U-net subnetwork to obtain a reconstructed image corresponding to the image to be corrected, and determine that the reconstructed image corresponding to the image to be corrected is the corrected image.

[0130] In a possible implementation, each layer of the U-net subnetwork in the image exposure correction model is further connected to a scaling module;

[0131] The exposure correction unit is further used to input the reconstructed image output by the current layer of U-net subnetwork into the scaling module connected to the layer of U-net subnetwork for size adjustment before inputting the reconstructed image output by each layer of U-net subnetwork and the next layer of Laplacian pyramid image into the next layer of U-net subnetwork, so as to adjust the size of the reconstructed image to be the same as the size of the next layer of Laplacian pyramid image.

[0132] Based on the same technical concept, the present application embodiment also provides an electronic device 400, referring to Figure 6As shown, the electronic device 400 is used to implement the image exposure correction method described in the above method embodiment. The electronic device 400 of this embodiment may include: a memory 401, a processor 402, and a computer program stored in the memory and executable on the processor, such as an image exposure correction program. When the processor executes the computer program, the steps in the above-mentioned various image exposure correction method embodiments are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are implemented, for example, 31.

[0133] The specific connection medium between the memory 401 and the processor 402 is not limited in the embodiment of the present application. Figure 6 In the embodiment, the memory 401 and the processor 402 are connected via a bus 403. The bus 403 is Figure 6 The connection between other components is shown by bold lines, and is not intended to be limiting. The bus 403 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0134] The memory 401 may be a volatile memory, such as a random-access memory (RAM); the memory 401 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 401 may be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 401 may be a combination of the above memories.

[0135] Processor 402, used to implement Figure 1 An image exposure correction method shown includes:

[0136] The processor 402 is used to call the computer program stored in the memory 401 to execute the following Figure 1 Steps S11 to S12 shown in FIG.

[0137] An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions required to execute the above-mentioned processor, which includes a program required to execute the above-mentioned processor.

[0138] In some possible implementations, various aspects of the image exposure correction method provided by the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the image exposure correction method according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device may execute the following steps: Figure 1 Steps S11 to S12 shown in FIG.

[0139] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt 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.) that contain computer-usable program code.

[0140] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (apparatus), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.

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

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

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

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

Claims

1. An image exposure correction method, characterized in that: include: Acquiring low-frequency features and high-frequency features of the image to be corrected, specifically comprising: acquiring a set of Laplace pyramid images corresponding to the image to be corrected, wherein the set of Laplace pyramid images includes N layers of Laplace pyramid images corresponding to the image to be corrected, the first layer of Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the image to be corrected, and the second to N layers of Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the image to be corrected; determining the low-frequency Laplace pyramid image as the low-frequency feature of the image to be corrected, and determining the high-frequency Laplace pyramid image as the high-frequency feature of the image to be corrected; Inputting the low-frequency features and the high-frequency features into an image exposure correction model to obtain a corrected image, wherein the image exposure correction model is obtained by training the low-frequency features and the high-frequency features of each sample image extracted from a sample training set according to a constructed neural network model to be trained, wherein the sample training set includes overexposed sample images and underexposed sample images; the image exposure correction model includes an N-layer U-net subnetwork; Inputting the low-frequency features and the high-frequency features into an image exposure correction model to obtain a corrected image specifically includes: inputting the first-layer Laplacian pyramid image into a first-layer U-net subnetwork of the image exposure correction model to obtain a reconstructed image corresponding to the first-layer Laplacian pyramid image; sequentially using the reconstructed image output by each layer of the U-net subnetwork and the next layer of the Laplacian pyramid image as inputs of the next layer of the U-net subnetwork to obtain a reconstructed image corresponding to the image to be corrected, and determining that the reconstructed image corresponding to the image to be corrected is the corrected image.

2. The method according to claim 1, characterized in that The neural network model to be trained includes an N-layer U-net subnetwork; The image exposure correction model is obtained by training in the following manner: For each sample image in the sample training set, obtaining a first Laplacian pyramid image set corresponding to the sample image, and obtaining a second Laplacian pyramid image set corresponding to the normally exposed image corresponding to the sample image; The first Laplace pyramid image set includes N layers of first Laplace pyramid images corresponding to the sample image, the first layer of the first Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the sample image, and the second to N layers of the first Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the sample image; the second Laplace pyramid image set includes N layers of second Laplace pyramid images corresponding to the normally exposed image, the first layer of the second Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the normally exposed image, and the second to N layers of the second Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the normally exposed image; Respectively labeling pixel values ​​of pixel points in the first-layer second Laplacian pyramid image and the second to N-layer second Laplacian pyramid images to obtain respective corresponding labeled pixel values; Inputting the first-layer first Laplacian pyramid image into the first-layer U-net subnetwork, and predicting a reconstructed image corresponding to the first-layer first Laplacian pyramid image; The reconstructed image predicted by each layer of the U-net sub-network and the first Laplacian pyramid image of the next layer are sequentially used as inputs of the next layer of the U-net sub-network to predict the reconstructed image corresponding to the sample image; For each layer of the reconstructed image predicted by the U-net subnetwork, determine the error between the pixel value of each pixel in the reconstructed image predicted by the U-net subnetwork of the layer and the labeled pixel value of each pixel corresponding to the second Laplacian pyramid image of the corresponding layer; The neural network model to be trained is machine iteratively trained according to the error and the preset loss function, and the neural network model to be trained after convergence is used as the image exposure correction model.

3. The method according to claim 2, characterized in that Each layer of the U-net sub-network in the neural network model to be trained is also connected to a scaling module; Before the reconstructed image predicted by each layer of the U-net sub-network and the first Laplacian pyramid image of the next layer are input into the next layer of the U-net sub-network, it also includes: The reconstructed image predicted by the U-net sub-network of the current layer is input into the scaling module connected to the U-net sub-network of the layer for size adjustment, and the size of the reconstructed image is adjusted to be the same as the size of the first Laplacian pyramid image of the next layer.

4. The method according to claim 2 or 3, characterized in that The preset loss function is: Among them, Loss represents the image reconstruction loss function; Y l (p) represents the pixel value of the pth pixel of the reconstructed image predicted by the lth layer U-net sub-network, N represents the number of layers of the U-net sub-network included in the neural network model to be trained, and h l represents the height of the reconstructed image predicted by the l-th layer U-net sub-network, w l represents the width of the reconstructed image predicted by the l-th layer U-net subnetwork; T l (p) represents the pixel value of the p-th pixel in the second Laplacian pyramid image of the l-th layer.

5. The method according to claim 1, characterized in that Each layer of the U-net subnetwork in the image exposure correction model is also connected to a scaling module; Before the reconstructed image output by each layer of U-net sub-network and the next layer of Laplacian pyramid image are input into the next layer of U-net sub-network, it also includes: The reconstructed image output by the U-net sub-network of the current layer is input into the scaling module connected to the U-net sub-network of the layer for resizing, and the size of the reconstructed image is adjusted to be the same as the size of the Laplacian pyramid image of the next layer.

6. An image exposure correction device, characterized in that: include: An acquisition unit, used for acquiring low-frequency features and high-frequency features of the image to be corrected; The acquisition unit is specifically configured to acquire a set of Laplace pyramid images corresponding to the image to be corrected, wherein the set of Laplace pyramid images includes N layers of Laplace pyramid images corresponding to the image to be corrected, the first layer of Laplace pyramid image is a low-frequency Laplace pyramid image corresponding to the image to be corrected, and the second to N layers of Laplace pyramid images are high-frequency Laplace pyramid images corresponding to the image to be corrected; the low-frequency Laplace pyramid image is determined as a low-frequency feature of the image to be corrected, and the high-frequency Laplace pyramid image is determined as a high-frequency feature of the image to be corrected; an exposure correction unit, configured to input the low-frequency features and the high-frequency features into an image exposure correction model to obtain a corrected image, wherein the image exposure correction model is obtained by training the low-frequency features and the high-frequency features of each sample image extracted from a sample training set according to a constructed neural network model to be trained, wherein the sample training set includes overexposed sample images and underexposed sample images; the image exposure correction model includes an N-layer U-net subnetwork; The exposure correction unit is specifically configured to input the first-layer Laplacian pyramid image into the first-layer U-net subnetwork of the image exposure correction model to obtain a reconstructed image corresponding to the first-layer Laplacian pyramid image; sequentially use the reconstructed image output by each layer of the U-net subnetwork and the next-layer Laplacian pyramid image as inputs of the next-layer U-net subnetwork to obtain a reconstructed image corresponding to the image to be corrected, and determine that the reconstructed image corresponding to the image to be corrected is the corrected image.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the image exposure correction method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the image exposure correction method as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Night vision image enhancement method based on exposure fusion

    CN103034986A

  • Multi-exposure image fusion method

    CN104835130A

  • Image processor, method and program and recording medium of recording such program

    CN1520153A

  • Image processing method and apparatus for correcting photographic images

    EP1443459A2

  • Network for correcting overexposed and underexposed images

    US20210289115A1