Visible light camera temperature measurement image noise reduction method based on deep learning
By constructing an improved DnCNN network model and suppressing noise on visible light camera images, the problem of reduced temperature measurement accuracy and noise influence of high-temperature objects is solved, and higher temperature measurement accuracy and stability are achieved.
Patent Information
- Application Number
- CN202410802282.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-20
AI Technical Summary
When existing visible light cameras measure the temperature of high-temperature objects, the radiation is concentrated in the visible light and near-infrared bands, resulting in a decrease in temperature measurement accuracy, and image noise affects the imaging quality and is difficult to effectively remove.
Using a method based on deep learning, an improved DnCNN network model was constructed that introduced sparse convolution and dual attention mechanisms. By adding Gaussian white noise to the blackbody furnace image for data enhancement and training, the temperature-grayscale relationship was fitted to achieve visible light Noise reduction processing of camera images.
It improves the accuracy and stability of surface temperature measurement of high-temperature objects by visible light cameras, significantly improves temperature measurement accuracy and noise reduction effect, and is superior to traditional methods.
Smart Images

Figure CN118822883A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of temperature measurement using a visible light camera, and in particular to a method for reducing noise in a temperature measurement image using a visible light camera based on deep learning. Background Art
[0002] Visible light cameras use CMOS or CCD sensors to convert the light signals emitted by objects into electrical signals for processing and finally into digital images. They are widely used in various scenarios due to their high resolution, fast response speed, low cost and stable operation. For example, in the field of industrial production, they can be used for quality control testing, automated production and production data analysis; in the medical field, visible light cameras can be used in medical imaging and disease diagnosis; in daily life, they can also play an indispensable role in security control, automobile transportation, digital equipment and other sub-sectors. In addition to the above application scenarios, visible light cameras can also penetrate into various fields and play a vital role.
[0003] Visible light cameras also have a large application space in the field of temperature measurement. Compared with commonly used infrared thermal imagers, the advantages of visible light cameras in temperature measurement are also very clear. Traditional infrared thermal imagers generally measure temperature in temperature measurement scenes with a temperature range below 500°C. However, since infrared thermal imagers receive medium-wave infrared radiation, the temperature measurement effect is not good when the temperature is too high (above 500°C). Because as the temperature continues to rise, the radiation emitted by the object will greatly increase and concentrate in the near-infrared band and the visible light band, making the object look red to the naked eye. In this way, the radiation of the object does not match the radiation range mainly received by the infrared thermal imager, and the temperature measurement effect decreases accordingly. Therefore, for the measurement of high-temperature objects, it will be very meaningful if the radiation information of the near-infrared band and the visible light band can be well utilized.
[0004] With the development of science and technology, today's visible light cameras can respond to sensors with a wider range of radiation bands, or achieve a response to radiation in a wider range of bands by embedding two or more sensors that respond to radiation in different bands. For the field of temperature measurement of visible light cameras, one of the above methods can be used to respond to visible light band radiation while also having the ability to respond to near-infrared band radiation, which greatly improves its temperature measurement range and performance. According to different temperature measurement scenarios, visible light cameras with built-in sensors with different band radiation response characteristics can be selected for temperature measurement. Finally, the temperature of the object is calculated by collecting the grayscale value of the image under specific conditions and the temperature-grayscale curve obtained after system calibration. Therefore, the quality of imaging is an important factor that restricts the temperature measurement capability of visible light cameras. Among them, the removal of image noise is the key to improving the imaging quality of visible light cameras. Considering the above factors affecting the temperature measurement accuracy of visible light cameras, it is necessary to develop a method for noise suppression of images collected by visible light cameras. Summary of the invention
[0005] In order to suppress noise in images taken by a visible light camera during temperature measurement, the present invention provides a visible light camera temperature measurement image denoising method based on deep learning.
[0006] The technical problem to be solved by the present invention is achieved by adopting the following technical solutions:
[0007] A method for reducing noise of temperature measurement images of a visible light camera based on deep learning comprises the following steps:
[0008] (1) A visible light camera with near-infrared radiation response is used to collect blackbody furnace image data, Gaussian white noise is added to the collected image, the noisy image data and the corresponding original image data are saved separately, and the image data is enhanced and the data set is divided.
[0009] (2) Construct an improved DnCNN network model that introduces sparse convolution and dual attention mechanism and verify the denoising performance of the network model. Use the training set and test set processed in step (1) to train the network model to obtain a trained improved DnCNN network model.
[0010] (3) Using a visible light camera to capture images of the blackbody furnace mouth at different temperatures, the improved DnCNN network model trained in step (2) is used to perform denoising on the blackbody furnace images after adding noise, and the temperature-grayscale relationship at different temperatures is fitted.
[0011] (4) In the actual temperature measurement process, the high-temperature object to be measured is photographed by a visible light camera, the grayscale value of the object to be measured in the captured image is read, and the surface temperature of the object is calculated according to the relationship obtained by fitting in step (3).
[0012] In a further technical solution, the step (1) specifically includes the following steps:
[0013] (1.1) In the calibration temperature range T min ~T max Select n temperature calibration points T1, T2, T3...T n , set the temperature of the blackbody furnace to each temperature calibration point in turn, and start collecting a group of blackbody furnace images Frames_Raw at different temperatures of the blackbody furnace by the visible light camera after the temperature inside the blackbody furnace stabilizes.
[0014] (1.2) Gaussian white noise of different noise levels is added to the blackbody furnace image Frames_Raw obtained in step (1.1). Because the main noise in the actual measurement system is thermal noise, which is a typical Gaussian white noise, Gaussian white noise is added to the blackbody furnace image to perform denoising simulation in the actual measurement process. The image group after adding noise is named Frames_Train.
[0015] (1.3) The noisy blackbody furnace image obtained in step (1.2) is synchronously subjected to horizontal or vertical flipping, rotation, random step translation and cropping and other processing with the original blackbody furnace image to achieve image data enhancement, and the noisy image data and the corresponding original image data are saved separately, and the data set images are divided into a training set and a validation set according to the ratio.
[0016] In a further technical solution, the step (2) includes the following steps:
[0017] (2.1) An improved DnCNN network model is constructed by introducing sparse convolution and dual attention mechanism. The convolution layer in the original DnCNN network model is replaced by sparse convolution, and channel attention module and spatial attention module are added after the sparse convolution layers except the first and last sparse convolution layers.
[0018] (2.2) The denoising performance of the improved DnCNN network model was verified using the set12 atlas. The images in the atlas were cropped, scaled, rotated and other data augmentation operations were performed, and Gaussian white noise with different noise levels was added. The original images and noisy images were divided into training sets and validation sets in proportion. The network model was trained using the training set images, and the denoising performance of the network model was then verified and compared with other denoising methods.
[0019] (2.3) Use the training set obtained in step (1.3) to train the network and obtain a trained improved DnCNN network model.
[0020] In a further technical solution, the step (3) includes the following steps:
[0021] (3.1) The temperature of the blackbody furnace is set to each temperature calibration point in turn. After the internal temperature of the blackbody furnace is stable, the image of the blackbody furnace mouth at each temperature calibration point is taken.
[0022] (3.2) Use the improved DnCNN network model trained in step (2.3) to perform denoising on the image, and record the grayscale value and corresponding temperature value at the furnace mouth of the blackbody furnace image after denoising.
[0023] (3.3) Data fitting is performed on the grayscale value at the furnace mouth of the blackbody furnace image obtained in step (3.2) and the corresponding temperature value data. The fitting formula is shown in formula (1):
[0024]
[0025] Among them, G is the gray value at the furnace mouth of the blackbody furnace image, T is the temperature value calculated by the fitting formula, and T0, A1, A2, t1, and t2 are constants.
[0026] In a further technical solution, the actual temperature measurement link in step (4) is to photograph the high-temperature object to be measured by using a visible light camera with the same settings as in step (3), and the settings include exposure time, aperture number, filter, etc. The fitting relationship obtained in step (3.3) is used to calculate the surface temperature of the high-temperature object to be measured, thereby realizing the surface temperature measurement of the high-temperature object.
[0027] The beneficial effects of the present invention are as follows: compared with the prior art, the present invention solves the problem of decreased temperature measurement accuracy caused by the radiation emitted by high-temperature objects being concentrated in the visible light and near-infrared bands by adopting a visible light camera with a near-infrared band radiation response for temperature measurement, and constructs an improved DnCNN network for noise suppression of images taken by visible light cameras by modifying and adjusting the DnCNN network structure, thereby further improving the measurement accuracy and stability of the visible light camera in the link of measuring the surface temperature of high-temperature objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a process framework diagram for image denoising and temperature measurement based on deep learning;
[0029] Figure 2 This is the improved DnCNN network structure diagram;
[0030] Figure 3 This is a comparison chart of the image noise reduction effects of different methods on the test image;
[0031] Figure 4 This is the image denoising effect diagram based on the improved DnCNN network at different noise levels;
[0032] Figure 5 The comparison of PSNR values (a) and SSIM values (b) for denoising blackbody furnace images using different methods;
[0033] Figure 6 It is a schematic diagram of the actual calibration of the blackbody furnace grayscale value and the corresponding blackbody furnace temperature value;
[0034] Figure 7 It is the fitting curve diagram of blackbody furnace grayscale and blackbody furnace temperature;
[0035] Figure 8 This is a comparison chart of the difference between the actual blackbody furnace temperature and the fitted calculated temperature before and after denoising using the improved DnCNN network. DETAILED DESCRIPTION
[0036] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further described below in conjunction with specific embodiments and diagrams.
[0037] Example 1
[0038] This embodiment provides a method for reducing noise of temperature measurement images using a visible light camera based on deep learning, which specifically includes the following steps:
[0039] S1: The visible light camera used in this embodiment is the MER-507-23GM NIR model camera of Daheng Image, which has a near-infrared band radiation response and can capture grayscale images with a depth of 12 bits. In addition, according to the experimental site environment and the experimental temperature setting requirements, a filter with a central wavelength of 865nm and a half-width of 10nm is selected. The visible light camera can filter out background radiation well and reduce the interference of background radiation. A basic visible light camera temperature measurement system for calibration is constructed based on the visible light camera, filter and blackbody furnace.
[0040] S2: After completing the equipment selection, start preparing for the calibration experiment. The overall process is as follows Figure 1 In this embodiment, the temperature of the black body furnace is set to 800-1200°C for grayscale-temperature response calibration. The temperature of the black body furnace is set to the highest temperature T in the calibration range. max That is, 1200℃, wait 20 minutes for the temperature in the furnace to stabilize.
[0041] S3: Place the visible light camera with the filter 1m in front of the blackbody furnace mouth, adjust the camera exposure time and gain, so that the grayscale value at the center of the blackbody furnace mouth captured by the camera is close to but not more than 4096. Record the camera exposure time and gain, lens aperture number and focal length, distance between the camera and the furnace mouth and other temperature measurement system setting data.
[0042] S4: In the calibration temperature range, select a calibration temperature point every 50°C, for a total of 8 calibration temperature points. Set the blackbody furnace temperature to each calibration temperature point and wait for 20 minutes for the temperature in the furnace to stabilize, then take a blackbody furnace image at the calibration temperature, for a total of 9 groups, named Frames_Raw.
[0043] S5: Add Gaussian white noise of different noise levels to each image in the multiple groups of black body furnace images Frames_Raw obtained in step S4, and perform the same degree of vertical or horizontal flipping, rotation, random step translation and cropping on the original image and the image after adding noise to expand the sample size and achieve data enhancement to obtain the noisy image group Frames_Train. Then save the original black body furnace image and the corresponding noisy image for subsequent deep learning noise reduction processing.
[0044] S6: The original DnCNN network is used to introduce a dual attention mechanism and sparse convolution to construct an improved DnCNN network model. The noisy image is used as input, and the residual image is obtained after processing by the improved DnCNN network. The denoised image can be obtained by subtracting the noisy image from the residual image. The improved DnCNN network structure is as follows: Figure 2 shown.
[0045] Specifically, in the model modification part, the standard convolution layer in the original DnCNN network is first replaced with a sparse convolution layer, and then the channel attention module and the spatial attention module are added after the other sparse convolution layers except the first and last sparse convolution layers. Then, in the forward propagation process of the network, the input feature map X is first convolved by the sparse convolution layer, and then globally averaged pooled by the channel attention module in the dual attention mechanism module, and the interdependence between channels is learned through the fully connected layer. The sigmoid activation function is applied to obtain the channel attention weight, and the attention weight is multiplied element by element with the input feature map to obtain the channel weighted feature map X_c. Then the feature map X_c is input as the input feature map into the spatial attention module. After channel pooling, concatenation and convolution operations, the sigmoid activation function is also applied to obtain the spatial attention weight, and the spatial attention weight is multiplied with the input feature map X_c to obtain the spatially weighted feature map X_cs. The final output feature map is the channel and spatially weighted feature map X_cs.
[0046] Sparse convolution can reduce model parameters and computational complexity, while the introduction of the dual attention mechanism can help the network better focus on important features and suppress the influence of noise and irrelevant features, thereby improving the denoising performance of the model.
[0047] S7: Use the set12 atlas to verify the denoising performance of the improved DnCNN network model, using the peak signal-to-noise ratio (PSNR) and the structural similarity index (SSIM) as evaluation indicators. The higher the PSNR value, the closer the SSIM value is to 1, indicating a more significant denoising effect.
[0048] Figure 3 This is the test result of a certain image of the set12 dataset using different methods when the noise level σ=25. Under this noise level, the average denoising effect of the set12 dataset test image under each method is shown in Table 1.
[0049] Table 1 Comparison of denoising effects of various methods on the set12 dataset
[0050]
[0051] It can be seen from the data in Table 1 that the method proposed in the present invention has a significant improvement in peak signal-to-noise ratio and structural similarity indicators compared to denoising methods such as bilateral filtering, Gaussian filtering, wavelet transform, NLM and BM3D. And compared with the original DnCNN network, this method has improved the peak signal-to-noise ratio by 1.81dB, an increase of about 6.92%; and improved the structural similarity by 0.0387, an increase of about 5.23%. In addition, this method is also better than the original network in training efficiency. Taking 100 iterations of training as an example, the time spent on training the original DnCNN network is 18 minutes and 47 seconds, while the time spent on the improved DnCNN network proposed in the present invention when it is iterated for the same number of trainings is 8 minutes and 17 seconds, which is less than half of the time of the original method, and the advantage of improved denoising effect is maintained while shortening the time, which greatly improves the efficiency of network training and subsequent denoising processing.
[0052] S8: After verifying the denoising performance of the improved network in step S6, conduct a denoising experiment on the blackbody furnace image. Set the temperature of the blackbody furnace to a temperature value different from the temperature of the calibration point in the above step, and take a picture of the blackbody furnace at a certain temperature. In this embodiment, the temperature of the blackbody furnace is set to 1075°C. The grayscale value obtained by taking the picture at this temperature will not be too small or too large, otherwise it will lead to the problem that the denoising effect is not obvious. Similarly, the peak signal-to-noise ratio PSNR and the structural similarity index SSIM are used to verify the denoising effect of the improved network in the denoising process of the blackbody furnace image, and the denoising effect at this temperature and after adding different noise levels is obtained as shown in the figure. Figure 4 The denoising effect of the method proposed in this invention and other denoising methods at different noise levels is compared as shown in Figure 2. Figure 5 Compared with the original DnCNN network denoising method, the improved method proposed in the present invention not only improves the denoising performance, but also greatly improves the training rate. Taking 100 iterations as an example, the original DnCNN network training takes 32 minutes and 49 seconds, while the method proposed in the present invention takes 17 minutes and 9 seconds.
[0053] S9: When the denoising verification effect is good, the grayscale value average within the furnace mouth center range of the image obtained after adding noise and denoising the group of images is used as the grayscale value corresponding to the temperature, and the corresponding data of the blackbody furnace temperature and the blackbody furnace image grayscale are obtained as follows: Figure 6 shown.
[0054] However, in the actual temperature measurement process, the measured data is grayscale value, so it is necessary to fit a fitting curve with grayscale value as the independent variable and temperature as the dependent variable. The fitting formula is shown in formula (1):
[0055]
[0056] Among them, G is the gray value at the furnace mouth of the blackbody furnace image, T is the temperature value calculated by the fitting formula, and T0, A1, A2, t1, and t2 are constants.
[0057] Finally, the fitting curve obtained by calibration fitting is as follows Figure 7 The detailed parameters of the formula are shown in Table 2.
[0058] Table 2 Fitting curve parameters
[0059]
[0060]
[0061] S10: Verify the fitting result, firstly, fit the gray value data of the original black body furnace image without noise reduction and the corresponding temperature value data with the same formula according to the above method, and then shoot a group of black body furnace images Frames_Test at different temperature points from the temperature point selected in step S4.
[0062] This embodiment selects 825℃, 875℃, 925℃...1175℃, that is, selects a temperature point every 50℃, sets the blackbody furnace to these temperatures, waits for 20 minutes, and after the temperature in the blackbody furnace stabilizes, takes the blackbody furnace image at this temperature, adds noise and performs noise reduction operations on these images, substitutes the grayscale value at the center of the furnace mouth of the blackbody furnace image before and after noise reduction to calculate the corresponding temperature value, and analyzes the deviation between it and the actual temperature value. Finally, the actual temperature and the fitting calculated temperature before and after noise reduction are compared with the actual temperature difference data. Figure 8 The detailed comparison data before and after noise reduction is shown in Table 3.
[0063] Table 3 Fitting effect verification data
[0064]
[0065] It can be seen from Table 3 that after using the method proposed in the present invention to reduce noise, the temperature measurement accuracy of the visible light camera has been significantly improved. In the verification phase, the average accuracy has been improved by 2.91%. When the method is not used for noise reduction, the mean square error of the difference between the temperature calculated by fitting and the actual temperature is 4.61°C, and after using the method for noise reduction, the mean square error of the difference between the temperature calculated by fitting and the actual temperature is 2.06°C, and the stability of data processing has also been improved to a certain extent. In summary, compared with the advantages of various noise reduction methods in the above steps, especially the original DnCNN network noise reduction method in network training, noise reduction and temperature measurement accuracy improvement, it can be determined that the method proposed in the present invention is feasible and reliable, and has a certain positive effect on improving the temperature measurement accuracy of visible light cameras.
[0066] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for denoising temperature measurement images of visible light cameras based on deep learning, characterized in that: The following steps are involved: (1) Using a visible light camera with near-infrared band radiation response to collect blackbody furnace image data, adding Gaussian white noise to the collected image, saving the noisy image data and the corresponding original image data respectively, and performing data enhancement and data set division on the image; (2) constructing an improved DnCNN network model that introduces sparse convolution and dual attention mechanism and verifying the denoising performance of the network model, using the training set and test set obtained in step (1) to train the network model to obtain a trained improved DnCNN network model; (3) Using a visible light camera to capture images of a blackbody furnace mouth at different temperatures, using the improved DnCNN network model trained in step (2) to perform noise reduction on the blackbody furnace images after adding noise, and fitting the temperature-grayscale relationship at different temperatures; (4) In the actual temperature measurement process, the high-temperature object to be measured is photographed by a visible light camera, the grayscale value of the object to be measured in the captured image is read, and the surface temperature of the object is calculated according to the relationship obtained by fitting in step (3).
2. The method for reducing noise of temperature measurement images using a visible light camera based on deep learning according to claim 1, characterized in that: The step (1) specifically includes the following steps: (1.1) In the calibration temperature range T min ~T max Select n temperature calibration points T1, T2, T3...T n , set the temperature of the blackbody furnace to each temperature calibration point in turn, and start collecting a group of blackbody furnace images Frames_Raw at different temperatures of the blackbody furnace after the temperature in the blackbody furnace stabilizes; (1.2) Add Gaussian white noise of different noise levels to the blackbody furnace image Frames_Raw obtained in step (1.1), and name the image group after adding noise as Frames_Train; (1.3) The noisy blackbody furnace image obtained in step (1.2) is data enhanced synchronously with the original blackbody furnace image, the noisy image data and the corresponding original image data are saved separately, and the data set images are divided into a training set and a validation set according to the ratio.
3. The method for reducing noise of temperature measurement images using a visible light camera based on deep learning according to claim 2, characterized in that: The step (2) comprises the following steps: (2.1) An improved DnCNN network model is constructed by introducing sparse convolution and dual attention mechanism. The convolution layer in the original DnCNN network model is replaced with sparse convolution, and the channel attention module and spatial attention module are added after the sparse convolution layers except the first and last sparse convolution layers respectively. (2.2) The denoising performance of the improved DnCNN network model was verified using the set12 atlas. Data augmentation was performed on the images in the atlas, and Gaussian white noise with different noise levels was added. The original images and noisy images were divided into training sets and validation sets in proportion. The network model was trained using the training set images, and the denoising performance of the network model was then verified, and the denoising effect was compared with that of other denoising methods. (2.3) Use the training set obtained in step (1.3) to train the network and obtain a trained improved DnCNN network model.
4. The method for reducing noise of temperature measurement images using a visible light camera based on deep learning according to claim 3, characterized in that: The step (3) comprises the following steps: (3.1) Set the temperature of the blackbody furnace to each temperature calibration point in turn, and take images of the blackbody furnace mouth at each temperature calibration point after the internal temperature of the blackbody furnace is stable; (3.2) Using the improved DnCNN network model trained in step (2.3) to perform denoising on the image, and recording the grayscale value and corresponding temperature value at the furnace mouth of the blackbody furnace image after denoising; (3.3) Data fitting is performed on the grayscale value at the furnace mouth of the blackbody furnace image obtained in step (3.2) and the corresponding temperature value data. The fitting formula is shown in formula (1): Among them, G is the gray value at the furnace mouth of the blackbody furnace image, T is the temperature value calculated by the fitting formula, and T0, A1, A2, t1, and t2 are constants.
5. The method for reducing noise of temperature measurement images using a visible light camera based on deep learning according to claim 4, characterized in that: The actual temperature measurement process in step (4) is to photograph the high-temperature object to be measured using a visible light camera with the same settings as in step (3), and to calculate the surface temperature of the high-temperature object to be measured using the fitting relationship obtained in step (3.3), thereby achieving surface temperature measurement of the high-temperature object.
Citation Information
Patent Citations
Visible light image denoising method based on adaptive attention mechanism network
CN116309178A
Multispectral camera and radar feature level data fusion method and system
CN116883802A
Image noise reduction method and device
US20210390668A1
Cited By
Two-color and three-color combined colorimetric temperature measurement method based on ensemble learning
CN119380093A
Temperature measuring device and method based on visible light camera and machine readable storage medium
CN119688087A
