Image noise reduction method and electronic device

By calculating the fixed pattern noise under different exposure times and performing noise reduction on the image, the problem of noise impact in uncalibrated cameras is solved, the imaging quality under low illumination is improved, and the noise calibration process of the camera is simplified.

CN113822812BActive Publication Date: 2024-09-06VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111081362.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-15
Publication Date
2024-09-06
Estimated Expiration
2041-09-15

AI Technical Summary

Technical Problem

At night or in a dark environment, the camera's fixed pattern noise affects the image quality, and an uncalibrated camera cannot effectively remove this noise, resulting in reduced image clarity and visual experience.

Method used

By acquiring multiple images with different exposure times, the fixed pattern noise of the light sensor is calculated, and the noise is used to reduce noise on subsequent collected images, eliminating the need to perform noise calibration on the camera in advance.

Benefits of technology

It achieves effective removal of fixed pattern noise of uncalibrated cameras, improves video and image imaging quality under low illumination, simplifies the camera's pre-factory noise calibration process, and improves flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113822812B
    Figure CN113822812B
Patent Text Reader

Abstract

The present application discloses an image noise reduction method and electronic device, belonging to the field of image processing. The image noise reduction method comprises: obtaining multiple images collected according to different exposure times; calculating fixed pattern noise according to the multiple images and the exposure time corresponding to each image; and reducing the noise of the collected image by the fixed pattern noise.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing, and specifically relates to an image noise reduction method and electronic equipment. Background Art

[0002] At night or in low-light environments, the signal-to-noise ratio of images when shooting videos and images is relatively low, which seriously affects the clarity, visual experience and image color of the image. The noise in the image includes time-related temporal noise and time-independent fixed pattern noise (FPN). The size of fixed pattern noise is fixed, and it has little effect on imaging when the ambient illumination is high. However, as the illumination decreases, the signal weakens, and the proportion of fixed pattern noise gradually increases, becoming an important factor affecting the image quality of night scene videos. Fixed pattern noise is noise caused by the sensor. It is a kind of spatial noise that cannot be removed by temporal noise reduction. It needs to be removed by spatial noise reduction or prior calibration. The camera needs to be calibrated at the factory and cannot be used for cameras that have not been calibrated at the factory. It is not flexible enough. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide an image noise reduction method and an electronic device, which can solve the problem in the related art that the fixed pattern noise of an uncalibrated camera cannot be determined.

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

[0005] Acquire multiple images collected according to different exposure times;

[0006] Calculate the fixed pattern noise of the light sensor based on the multiple images and the exposure time corresponding to each image;

[0007] Denoise the image captured by the light sensor through fixed pattern noise.

[0008] In a second aspect, an embodiment of the present application provides an image noise reduction device, comprising:

[0009] A first acquisition unit, used to acquire multiple images collected according to different exposure times;

[0010] a calculation unit, configured to calculate a fixed pattern noise of the light sensor according to the plurality of images and an exposure time corresponding to each image;

[0011] The noise reduction unit is used to reduce the noise of the image collected by the light sensor through fixed pattern noise.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0015] In an embodiment of the present application, images captured with different exposure times are obtained. Since the fixed pattern noise is independent of the light intensity, different exposure times will not affect the fixed pattern noise. Based on this, the fixed pattern noise in the image can be calculated. Then, the calculated fixed pattern noise can be used to reduce the noise of images or videos taken by subsequent cameras. There is no need to calibrate the fixed pattern noise of the camera in advance, thereby solving the problem in the related art that the fixed pattern noise of an uncalibrated camera cannot be determined. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flowchart of an image noise reduction method according to an embodiment of the present application;

[0017] Figure 2 This is a principle structure diagram of an image noise reduction method according to an embodiment of the present application;

[0018] Figure 3 It is a schematic diagram of a neural network structure in an image denoising method according to an embodiment of the present application;

[0019] Figure 4 is a schematic diagram of a neural network structure in another image denoising method in an embodiment of the present application;

[0020] Figure 5 This is a principle structure diagram of another image noise reduction method according to an embodiment of the present application;

[0021] Figure 6 is a schematic diagram of a neural network structure in another image denoising method in an embodiment of the present application;

[0022] Figure 7 is a schematic diagram of a neural network structure in another image denoising method in an embodiment of the present application;

[0023] Figure 8It is a structural block diagram of an image noise reduction device according to an embodiment of the present application;

[0024] Fig. 9 It is a structural block diagram of an electronic device according to an embodiment of the present application;

[0025] Fig.10 This is a structural block diagram of another electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0028] The image noise reduction method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0029] like Figure 1 As shown, the image noise reduction method provided in the embodiment of the present application includes the following steps 201 to 203:

[0030] Step 201 , obtaining a plurality of images captured according to different exposure times.

[0031] The acquired image may be collected by a light sensor. A light sensor is a sensor that can sense light intensity, and may be a differential sensor or an integral sensor, including but not limited to a complementary metal oxide semiconductor (CMOS) photosensitive element, a charge-coupled device (CCD), a pulse sensor, and the like.

[0032] The light sensor is a photosensitive device of a camera. The light sensor senses light and generates an electrical signal. The electrical signal generated by the light sensor can generate an image. Exemplarily, the format of the generated image can be a raw image file.

[0033] The exposure time is the time the camera shutter is open. The longer the exposure time is, the more light the light sensor senses. The exposure time of each image acquisition can be controlled. In one example, a mobile phone can control the camera shutter opening time through a processor chip, and obtain multiple images after shooting multiple times with different exposure times.

[0034] In one optional embodiment, except for the exposure time, other parameters of the light sensor remain unchanged; in another optional embodiment, in addition to the exposure time, the analog gain of the light sensor can also be changed. The analog gain is the amplification gain of the light sensor circuit to the collected electrical signal, and the analog gain can be controlled. When collecting each image, the value of the analog gain can be recorded, so that the analog gain can be used to directly remove the gain of the collected image to remove the influence of the analog gain on the image pixel value.

[0035] Step 202 : Calculate fixed pattern noise according to the multiple images and the exposure time corresponding to each image.

[0036] Since fixed pattern noise is independent of light intensity and is a characteristic of light sensors, in multiple images with different exposure times, fixed pattern noise can be regarded as a constant in multiple images, and what changes is the change in image pixel values ​​caused by different exposure times. Therefore, the fixed pattern noise in the image can be estimated based on multiple images and known exposure times.

[0037] In one example, the fixed pattern noise can be solved by listing a set of equations. Specifically, assuming that the image including only the fixed pattern noise is N, for an exposure time of t k The image K collected at k , k = 1, ..., n, assuming that the ideal image without the influence of fixed pattern noise is X k , then, X k +N=K k , among which, there is X1:…:X k :…:X n =t1:…:t k :…:t n , so that we can use the known K k and t k Solve for X k +N, we get image N of fixed pattern noise.

[0038] In another example, the fixed pattern noise may also be estimated by training the neural network model.

[0039] Optionally, when executing step 201, when an image is captured using an exposure time each time, only one image may be captured, or multiple images may be captured. When multiple images are captured using an exposure time, an average image may be obtained for the multiple images to obtain an average image corresponding to the exposure time. Since the fixed pattern noise in the average image is the average of multiple images, the average image can carry more accurate fixed pattern noise.

[0040] Accordingly, when executing step 201 to obtain multiple images collected according to different exposure times, the following steps 2011 to 2012 may be included:

[0041] Step 2011, obtaining m images collected according to n different exposure durations, wherein m≥n, and at least one image is collected for each exposure duration;

[0042] Step 2012: Generate an average image of the corresponding exposure time according to at least one image collected during each exposure time, and obtain n average images.

[0043] In this way, when executing step 202 to calculate the fixed pattern noise according to the multiple images and the exposure time corresponding to each image, the fixed pattern noise can be calculated according to the n average images and the exposure time corresponding to each average image.

[0044] Step 203: reduce noise on the collected image by using fixed pattern noise.

[0045] Fixed pattern noise is additive noise. After the image is subsequently captured by the optical sensor, the fixed pattern noise can be directly subtracted from the captured image, that is, the image after the fixed pattern noise is removed can be obtained.

[0046] In the embodiment of the present application, the architecture for implementing steps 201 to 203 can be as follows: Figure 2 As shown, it includes a sensor 102 , a sensor control module 101 , a fixed pattern noise estimation module 103 and a video image enhancement module 104 .

[0047] The sensor 102 is also the above-mentioned optical sensor, which is used to collect images. Taking the application of the image noise reduction method of the embodiment of the present application to a mobile phone as an example, the sensor 102 may be a sensor module of a camera in the mobile phone.

[0048] The sensor control module 101 may be a module in a mobile phone for controlling the sensor 102. Exemplarily, the sensor control module 101 may include a program or instruction for controlling the sensor 102 stored in a mobile phone memory, and a hardware circuit part in a mobile phone chip capable of executing the above program or instruction.

[0049] The multiple images acquired in step 201 may be multiple images acquired at different exposure times by controlling the sensor 102 through the sensor control module 101. Optionally, step 201 may be executed by a processor in the mobile phone, and after the sensor control module 101 acquires the image, the processor may acquire the acquired image.

[0050] The fixed pattern noise estimation module 103 is used to calculate the noise, and can execute step 202 to estimate and calculate the fixed pattern noise according to multiple images. Optionally, the fixed pattern noise estimation module 103 may include a program or instruction stored in a memory for estimating the fixed pattern noise.

[0051] The video image enhancement module 104 is used to reduce noise on the collected image. The fixed pattern noise calculated by the fixed pattern noise estimation module 103 can be sent to the video image enhancement module 104, so that the video image enhancement module 104 can at least reduce noise for the fixed pattern noise in the image. Optionally, the video image enhancement module 104 can also reduce noise for other noises, which is not limited in the embodiment of the present application. The video image enhancement module 104 may include a program or instruction stored in a memory for removing fixed pattern noise.

[0052] After the fixed pattern noise estimation module 103 estimates the fixed pattern noise, the image captured by the sensor 102 can then be subjected to a noise reduction process on the fixed pattern noise in the image by the video image enhancement module 104 to improve the imaging quality of the video or image under low illumination.

[0053] In the embodiment of the present application, images captured with different exposure times are obtained. Since fixed pattern noise is independent of light intensity, different exposure times will not affect the fixed pattern noise. Based on this, the fixed pattern noise in the image can be calculated. Then, the images or videos taken by the subsequent camera can be denoised by the calculated fixed pattern noise, without the need to calibrate the fixed pattern noise of the camera in advance, thereby solving the problem in the related art that the fixed pattern noise of an uncalibrated camera cannot be determined. The image denoising method provided in the embodiment of the present application only needs to collect a few images to calculate the fixed pattern noise, and the processing delay is low, and the quality of the subsequently taken videos or images can be improved without prior calibration.

[0054] In the embodiment of the present application, when executing step 202 to calculate the fixed pattern noise according to the multiple images and the exposure time corresponding to each image, an optional implementation method is provided, and the fixed pattern noise can be calculated by the following relationship:

[0055] Relationship 1: The actual pixel value of each pixel of the k-th image among multiple images = the ideal pixel value of the corresponding pixel in the k-th image + the fixed pattern noise of the corresponding pixel.

[0056] The kth image is an image corresponding to the kth exposure duration. Optionally, when executing step 201, if multiple images are collected for the kth exposure duration, then the kth image refers to an average image of the kth exposure duration.

[0057] The actual pixel value is the pixel value in the collected image, and the ideal pixel value is the ideal value to remove the fixed pattern noise in the image. The actual pixel value is known, the ideal pixel value is unknown, and the fixed pattern noise is also unknown.

[0058] The fixed pattern noise of the same pixel in different images is the same, and the same pixel is the pixel at the same position in different images. That is, for any two different images, if the same coordinate position in the image is selected, the fixed pattern noise of the pixel in different images is the same.

[0059] Relationship 2: The ratio of the ideal pixel values ​​of the same pixel in any two images is the ratio of the corresponding exposure times.

[0060] Since additive fixed pattern noise is superimposed on the actual pixel value, the actual pixel value is not completely proportional to the exposure time, while the ideal pixel value after removing the fixed pattern noise is proportional to the exposure time. Therefore, for pixels at the same position, the ratio of the ideal pixel values ​​of any two images is equal to the ratio of the exposure times of the corresponding images.

[0061] In this way, based on the above known conditions, the ideal pixel value of each pixel in each image and the fixed pattern noise of the corresponding pixel can be solved.

[0062] For example, based on the above relations 1 and 2, the following set of equations can be listed:

[0063]

[0064] In the above formula, is the ideal pixel value of the pixel at coordinate (i, j) in the kth image, which is unknown; is the actual pixel value of the pixel at coordinate (i, j) in the kth image, which is known; N i,jis the fixed pattern noise of the pixel at coordinate (i, j) in any image, which is unknown; t k is the exposure time of the kth image, which is known. Solving the above equations, we can get the ideal pixel value of each pixel in each image and the fixed pattern noise of the corresponding pixel.

[0065] Furthermore, when performing step 203 to reduce noise on the collected image by using fixed pattern noise, the following steps may be included:

[0066] Step 2031, combining the fixed pattern noise of each pixel to obtain a fixed pattern noise image;

[0067] Step 2032: subtract the fixed pattern noise image from the acquired image to obtain a denoised image after the fixed pattern noise is removed.

[0068] That is, the fixed pattern noise N of each pixel is i,j , according to the corresponding pixel positions combined into a matrix, we can get the fixed simulated noise image N. Then for the image P collected later, we can calculate the image PN after removing the fixed simulated noise.

[0069] Optionally, if the analog gain of the subsequently acquired image is different from the analog gain used when acquiring the fixed analog noise image N, then the analog gain used when acquiring the image can be used to increase the analog gain effect on the fixed analog noise image. For example, if the analog gain used when acquiring the image P is r, the image after removing the fixed analog noise is calculated to be Pr*N.

[0070] Optionally, if for each image, in addition to changing the exposure time, the analog gain is also changed during acquisition, then the gain may be removed before acquiring multiple images acquired according to different exposure times.

[0071] Specifically, before executing step 201 to obtain multiple images captured according to different exposure times, the analog gain when each image is captured is obtained. Then, after executing step 201 to obtain multiple images captured according to different exposure times, the gain effect of the corresponding image is removed according to the analog gain of each image.

[0072] When removing the gain effect, the image can be divided by the parameter value of the simulated gain. For example, for the kth image, the image after removing the gain effect is a k is the analog gain corresponding to the kth image. After removing the gain effect, the influence of the gain effect on the pixel value in the image can be removed, so that except for the different exposure time, other parameters are the same, so that the fixed pattern noise can be estimated more accurately.

[0073] In another optional embodiment, when calculating the fixed pattern noise according to the multiple images and the exposure time corresponding to each image in step 202, the fixed pattern noise can be estimated by a trained first neural network model. The first neural network model can be trained by a training sample image group with calibrated fixed pattern noise, which will not be described in detail here.

[0074] The structure of the first neural network model can be as follows Figure 3 or Figure 4 As shown. Figure 3 As shown, the input of the first neural network model is multiple images, I1~I n The package is input into the model at one time, and the output is the fixed pattern noise image N. Figure 4 As shown, the input of the first neural network model is an image, and the neural network model processes one frame of image I at a time. t , and input the tth image I t The network features or network output image Out t After the return, the next frame image I t+1 Processed together, the output of the neural network for the nth time Out n That is the final fixed pattern noise image N.

[0075] Optionally, in addition to estimating the fixed pattern noise through the first neural network model, other noises other than the fixed pattern noise may also be estimated through a trained second neural network model, wherein the first neural network model and the second neural network model have the same structure but different model parameters. Thus, when performing step 203 to reduce the noise of the collected image through the fixed pattern noise, it may also include reducing the noise of the collected image through the fixed pattern noise and other noises.

[0076] Accordingly, for Figure 2 In the architecture shown in FIG. 1 , if the video image enhancement module 104 is used to remove other noises in addition to the fixed pattern noise, then the fixed pattern noise estimation module 103 and the video image enhancement module 104 are combined into a large module, such as Figure 5 As shown, the video noise reduction module 105 includes a fixed pattern noise estimation module 103 and a video image enhancement module 104. In this way, the fixed pattern noise estimation module 103 and the video image enhancement module 104 are incorporated into the video noise reduction module 105. Since the fixed pattern noise estimation module 103 and the video image enhancement module 104 use the same neural network model, they can be set on the same processor in the electronic device without interaction between different processors, so that the fixed pattern noise estimation module 103 and the video image enhancement module 104 do not occupy additional on-chip interactive communication resources.

[0077] The video noise reduction module 105 can use a model with the same structure as the first neural network model, that is, a second neural network model. The second neural network model can be trained using a training sample image group with calibrated corresponding noise, which will not be described in detail here.

[0078] The structure of the second neural network model can be different from or the same as that of the first neural network model. Taking the implementation method with the same structure as an example, the parameters of the first neural network model and the second neural network model are different, such as Figure 6 and Figure 7 As shown, Figure 6 is the structure of the first neural network model, Figure 7 is the structure of the second neural network model. It can be seen that the structures are the same, but the parameters of the models are different. The parameters of the first neural network model can be recorded as (w fpn ,b fpn ), the parameters of the second neural network model can be recorded as (w vdn ,b vdn ). Among them, w fpn and w vdn represents the weight parameter in the neural network, b fpn and b vdn The above parameters are only used to illustrate the parameters in the neural network model and are not intended to limit the present application.

[0079] Optionally, the image denoising method provided in the embodiment of the present application can be executed by default each time an image or video is captured, or can automatically select whether to execute based on the actual scene illumination. For example, the image denoising method of the embodiment of the present application can be executed in scenes where the illumination is lower than a certain threshold.

[0080] In one embodiment, after the fixed pattern noise is estimated once, it can also be stored in a cache or memory of the electronic device so that the stored fixed pattern noise can be used for noise reduction when shooting videos and images subsequently.

[0081] It should be noted that the image denoising method provided in the embodiment of the present application can be executed by an image denoising device or a control module in the image denoising device for executing the image denoising method. In the embodiment of the present application, the image denoising device executing the image denoising method is taken as an example to illustrate the image denoising device provided in the embodiment of the present application.

[0082] like Figure 8 As shown, the image denoising device provided in the embodiment of the present application includes a first acquiring unit 11, a calculating unit 12 and a denoising unit 13.

[0083] The first acquisition unit 11 is used to acquire multiple images collected according to different exposure times;

[0084] The calculation unit 12 is used to calculate the fixed pattern noise according to the multiple images and the exposure time corresponding to each image;

[0085] The noise reduction unit 13 is used to reduce noise of the collected image by using fixed pattern noise.

[0086] In an embodiment of the present application, images captured with different exposure times are obtained. Since the fixed pattern noise is independent of the light intensity, different exposure times will not affect the fixed pattern noise. Based on this, the fixed pattern noise in the image can be calculated. Then, the calculated fixed pattern noise can be used to reduce the noise of images or videos taken by subsequent cameras. There is no need to calibrate the fixed pattern noise of the camera in advance, thereby solving the problem in the related art that the fixed pattern noise of an uncalibrated camera cannot be determined.

[0087] Optionally, the calculation unit 12 may include:

[0088] The first calculation subunit is used to calculate the fixed pattern noise through the following relationship:

[0089] The actual pixel value of each pixel point of the k-th image in the multiple images = the ideal pixel value of the corresponding pixel point in the k-th image + the fixed pattern noise of the corresponding pixel point; wherein the fixed pattern noise of the same pixel point in different images in the multiple images is the same;

[0090] The ratio of the ideal pixel values ​​of the same pixel in any two images is the ratio of the corresponding exposure times.

[0091] Further, the noise reduction unit 13 may include:

[0092] A combining subunit, used for combining the fixed pattern noise of each pixel to obtain a fixed pattern noise image;

[0093] The second calculation subunit is used to subtract the fixed pattern noise image from the acquired image to obtain a denoised image after the fixed pattern noise is removed.

[0094] Optionally, the device may further include:

[0095] A second acquisition unit is used to acquire an analog gain when each image is acquired before acquiring multiple images acquired according to different exposure times;

[0096] The gain removal unit is used to, after acquiring multiple images collected according to different exposure times, divide each image by the analog gain to obtain an image after the gain effect of the corresponding image is removed.

[0097] In an optional implementation, the first acquiring unit 11 may include:

[0098] An acquisition subunit, used to acquire m images acquired according to n different exposure times, wherein m ≥ n, and at least one image is acquired for each exposure time;

[0099] A generating subunit, configured to generate an average image of the corresponding exposure time according to at least one image collected at each exposure time, to obtain n average images;

[0100] Accordingly, the calculation unit 12 may include:

[0101] The third calculation subunit is used to calculate the fixed pattern noise according to the n average images and the exposure time corresponding to each average image.

[0102] Optionally, the calculation unit 12 may include:

[0103] an estimation subunit, configured to estimate fixed pattern noise by using a trained first neural network model;

[0104] Accordingly, the device may further include:

[0105] an estimating unit, configured to estimate other noises except the fixed pattern noise by using a trained second neural network model, wherein the first neural network model and the second neural network model have the same structure but different model parameters;

[0106] In addition, the noise reduction unit 13 is also used to reduce noise of the collected image through fixed pattern noise and other noise.

[0107] The image noise reduction device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0108] The image noise reduction device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, a Kos operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0109] The image noise reduction device provided in the embodiment of the present application can achieve Figures 1 to 7 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0110] Alternatively, if Fig. 9 As shown, the embodiment of the present application also provides an electronic device 900, including a processor 901, a memory 902, and a program or instruction stored in the memory 902 and executable on the processor 901. When the program or instruction is executed by the processor 901, each process of the above-mentioned image denoising method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0111] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0112] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0113] The electronic device 100 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0114] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0115] The processor 1010 is used to perform the following steps:

[0116] Acquire multiple images collected according to different exposure times;

[0117] Calculate fixed pattern noise based on multiple images and the exposure time corresponding to each image;

[0118] Denoise the acquired image using fixed pattern noise.

[0119] Optionally, when the processor 1010 executes the step of calculating the fixed pattern noise according to the multiple images and the exposure time corresponding to each image, the fixed pattern noise may be calculated by the following relationship:

[0120] The actual pixel value of each pixel point of the k-th image in the multiple images = the ideal pixel value of the corresponding pixel point in the k-th image + the fixed pattern noise of the corresponding pixel point; wherein the fixed pattern noise of the same pixel point in different images in the multiple images is the same;

[0121] The ratio of the ideal pixel values ​​of the same pixel in any two images is the ratio of the corresponding exposure times.

[0122] Further, in an optional implementation, when the processor 1010 performs noise reduction on the collected image by using the fixed pattern noise, the processor 1010 may include executing the following steps:

[0123] Combine the fixed pattern noise of each pixel to obtain a fixed pattern noise image;

[0124] The fixed pattern noise image is subtracted from the acquired image to obtain a denoised image after the fixed pattern noise is removed.

[0125] Optionally, before acquiring a plurality of images captured according to different exposure times, the processor 1010 further includes executing the following steps:

[0126] Get the analog gain when acquiring each image;

[0127] After executing the acquisition of multiple images collected according to different exposure times, the processor 1010 further includes executing the following steps:

[0128] Divide each image by the simulated gain to obtain the image with the gain effect removed.

[0129] Optionally, when the processor 1010 acquires a plurality of images acquired according to different exposure times, it may include executing the following steps:

[0130] Obtain m images collected according to n different exposure times, where m ≥ n, and at least one image is collected for each exposure time;

[0131] According to at least one image collected at each exposure time, an average image corresponding to the exposure time is generated to obtain n average images;

[0132] Accordingly, when the processor 1010 calculates the fixed pattern noise according to the multiple images and the exposure time corresponding to each image, it may include executing the following steps:

[0133] The fixed pattern noise is calculated based on n average images and the exposure time corresponding to each average image.

[0134] In yet another optional implementation, when the processor 1010 calculates the fixed pattern noise according to the multiple images and the exposure time corresponding to each image, the processor 1010 may include executing:

[0135] estimating fixed pattern noise by using the trained first neural network model;

[0136] In addition, the processor 1010 is further configured to execute the following steps:

[0137] estimating other noises except the fixed pattern noise by using the trained second neural network model, wherein the first neural network model and the second neural network model have the same structure but different model parameters;

[0138] Accordingly, when the processor 1010 performs noise reduction on the collected image by using the fixed pattern noise, the processor 1010 may include executing the following steps:

[0139] Reduce the noise of the acquired image by fixed pattern noise and other noise.

[0140] In an embodiment of the present application, images captured with different exposure times are obtained. Since the fixed pattern noise is independent of the light intensity, different exposure times will not affect the fixed pattern noise. Based on this, the fixed pattern noise in the image can be calculated. Then, the calculated fixed pattern noise can be used to reduce the noise of images or videos taken by subsequent cameras. There is no need to calibrate the fixed pattern noise of the camera in advance, thereby solving the problem in the related art that the fixed pattern noise of an uncalibrated camera cannot be determined.

[0141] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (GraphkcsProcesskng Unkt, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

[0142] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned image denoising method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0143] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0144] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image denoising method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0145] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0146] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0148] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An image denoising method, characterized in that: include: Acquire multiple images collected according to different exposure times; Calculating fixed pattern noise according to the multiple images and the exposure time corresponding to each image; Denoising the collected image by using the fixed pattern noise; The step of calculating fixed pattern noise according to the plurality of images and the exposure duration corresponding to each image includes: The fixed pattern noise is calculated by the following relationship: The actual pixel value of each pixel point of the k-th image among the multiple images = the ideal pixel value of the corresponding pixel point in the k-th image + the fixed pattern noise of the corresponding pixel point; wherein the fixed pattern noise of the same pixel point of different images among the multiple images is the same; The ratio of the ideal pixel values ​​of the same pixel in any two images is the ratio of the corresponding exposure times.

2. The image denoising method according to claim 1, characterized in that: The step of reducing noise of the collected image by using the fixed pattern noise comprises: Combine the fixed pattern noise of each pixel to obtain a fixed pattern noise image; The fixed pattern noise image is subtracted from the acquired image to obtain a denoised image after the fixed pattern noise is removed.

3. The image denoising method according to claim 1, characterized in that: Before obtaining multiple images collected according to different exposure times, it also includes: Get the analog gain when acquiring each image; After obtaining multiple images collected according to different exposure times, it also includes: Each image is divided by the analog gain to obtain an image of the corresponding image after the gain effect is removed.

4. The image denoising method according to claim 1, characterized in that: The acquiring of multiple images collected according to different exposure times includes: Obtain m images collected according to n different exposure times, where m ≥ n, and at least one image is collected for each exposure time; According to at least one image collected at each exposure time, an average image corresponding to the exposure time is generated to obtain n average images; The step of calculating fixed pattern noise according to the plurality of images and the exposure duration corresponding to each image includes: The fixed pattern noise is calculated according to the n average images and the exposure time corresponding to each average image.

5. The image denoising method according to claim 1, characterized in that: The step of calculating fixed pattern noise according to the plurality of images and the exposure duration corresponding to each image includes: estimating fixed pattern noise by using the trained first neural network model; The method further comprises: estimating other noises except the fixed pattern noise by using a trained second neural network model, wherein the first neural network model and the second neural network model have the same structure but different model parameters; The step of reducing noise of the collected image by using the fixed pattern noise comprises: The fixed pattern noise and the other noise are used to reduce noise on the collected image.

6. An image noise reduction device, characterized in that: include: A first acquisition unit, used to acquire multiple images collected according to different exposure times; a calculation unit, configured to calculate fixed pattern noise according to the plurality of images and an exposure time corresponding to each image; A noise reduction unit, used for reducing noise of the collected image by using the fixed pattern noise; The computing unit comprises: The first calculation subunit is configured to calculate the fixed pattern noise according to the following relationship: The actual pixel value of each pixel point of the k-th image among the multiple images = the ideal pixel value of the corresponding pixel point in the k-th image + the fixed pattern noise of the corresponding pixel point; wherein the fixed pattern noise of the same pixel point of different images among the multiple images is the same; The ratio of the ideal pixel values ​​of the same pixel in any two images is the ratio of the corresponding exposure times.

7. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the image denoising method according to any one of claims 1 to 5.

8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the image denoising method according to any one of claims 1 to 5 are implemented.