Light spot denoising method of long-distance laser triangular displacement measurement system

By performing grayscale, logarithmic transformation and neural network denoising on the spot image of the long-distance laser triangular displacement sensor, the problem of accuracy decrease and noise increase of the laser triangular displacement sensor in long-distance measurement is solved and the spot positioning accuracy is achieved. Improvement and system stability reduce operating costs.

CN118537570AActive Publication Date: 2024-08-23SHANGHAI JIAOTONG UNIV

Patent Information

Application Number
CN202410586681.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-08-23
Estimated Expiration
2044-05-11

AI Technical Summary

Technical Problem

Long-distance laser triangular displacement sensors have problems such as reduced accuracy, reduced system sensitivity, and increased spot imaging noise during measurement. Traditional filtering methods will lead to attenuation of spot features and slow edges during denoising.

Method used

A dual-reflection long-distance laser triangulation system is used to grayscale the spot image and extract the area of ​​interest. After logarithmic transformation, the image is decomposed using a downsampling operator to construct the loss function of the neural network and train lightweight neural networks. The network performs denoising processing to ensure the denoising effect and system stability.

Benefits of technology

It effectively suppresses the spot image noise, improves the positioning accuracy of the spot center, ensures the accuracy of measurement results and the stable operation of the system. It does not require pre-labeled data, adapts to different operating environments, and reduces system operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537570A
    Figure CN118537570A
Patent Text Reader

Abstract

The invention relates to the technical field of optical detection, in particular to a light spot denoising method for a long-distance laser triangular displacement measurement system, which comprises the following steps of: constructing a double-reflection long-distance laser triangular measurement system, acquiring a light spot image sample, graying and extracting a region of interest to obtain a region of interest image; performing logarithmic transformation on the image of the region of interest; decomposing the transformed image into a pair of down-sampling feature maps through a down-sampling operator; constructing a loss function of the neural network; minimizing the loss function of the neural network to obtain a trained lightweight neural network; and inputting the original light spot image into the lightweight neural network to obtain a denoised light spot image. According to the light spot denoising method, the noise of the light spot image is obviously inhibited, the problem that a traditional denoising method is over-smooth is solved, meanwhile, only two convolutional layers are adopted in a network main body structure, and the light spot denoising method has the advantages of being light in weight, small in parameter quantity, high in training speed, excellent in denoising effect and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical detection technology, and in particular to a light spot denoising method for a long-distance laser triangulation displacement measurement system. Background Art

[0002] With the continuous advancement of social science and technology and the rise of intelligent manufacturing, long-distance laser measurement technology plays an important role in industrial production and life. In industry, it is used to accurately measure the size, shape and position of objects, such as parts inspection and 3D modeling in manufacturing, as well as design and monitoring in construction and civil engineering. In life, it is used in interior design, urban planning, medicine and environmental monitoring, providing high-precision and high-efficiency measurement solutions for various applications.

[0003] As a non-contact measurement method, laser triangulation has the advantages of high precision, good stability, long life, fast response speed and low cost, but there is a problem of decreased accuracy in long-distance measurement. Patent CN202123110079.8 proposes a long-distance laser triangulation displacement sensor based on a reflective structure, but the introduction of a new reflective unit increases the noise of the spot image, which limits the accuracy of spot positioning. Therefore, it is necessary to propose an image denoising method with excellent performance. Traditional filtering denoising methods such as Gaussian filtering, median filtering and Lee filtering all have the contradiction between noise removal and feature retention. While filtering out noise and smoothing the image, it will also cause problems such as spot feature attenuation and edge slowing, which will reduce the accuracy of spot positioning. Summary of the invention

[0004] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is the problem of decreased accuracy, reduced system sensitivity and increased noise in spot imaging of laser triangulation displacement sensors as the range increases during long-distance measurement.

[0005] To achieve the above object, the present invention provides a method for denoising a spot in a long-distance laser triangulation displacement measurement system, comprising the following steps:

[0006] Step 1: Build a double-reflection long-distance laser triangulation system, collect spot image samples, and grayscale and extract the region of interest of the spot image samples to obtain a region of interest image;

[0007] Step 2: logarithmically transform the image of the region of interest so that the noise level of the transformed image is evenly distributed;

[0008] Step 3: Decomposing the transformed image into a pair of downsampled feature maps by a downsampling operator;

[0009] Step 4: Considering the influence of outliers, residual learning and symmetric loss principles, construct the loss function of the neural network;

[0010] Step 5: training a lightweight neural network consisting of two convolutional layers by minimizing the loss function of the neural network, mapping one downsampled feature map to another downsampled feature map, and obtaining a trained lightweight neural network;

[0011] Step 6: Input the original spot image into the lightweight neural network trained in step 5 to obtain the denoised spot image and calculate the repeatability accuracy of the system.

[0012] In a preferred embodiment of the present invention, the dual-reflection long-distance laser triangulation measurement system includes a first reflector, a second reflector, an imaging CMOS, a receiving lens, a paper target to be measured, a laser light source focusing module and a laser light source.

[0013] Preferably, the laser beam emitted by the laser light source is vertically incident on the paper target to be measured through the focusing module, and the obtained diffuse reflected light is focused by the receiving lens, reflected by the first reflector and the second reflector, and then imaged on the imaging device CMOS.

[0014] Preferably, step 1 comprises the following steps:

[0015] Step 1.1: Place the object to be measured at 2250mm from the laser emission end, calculate the focal length of the receiving lens, and design the optical path;

[0016] Step 1.2: According to the reflection principle, the imaging light path after being refracted by the reflector unit is symmetrical to the original light path without the introduction of the reflector unit, and the position parameters of the optical elements in the symmetrical light path are calculated;

[0017] Step 1.3: construct an actual optical path according to the focal length of the receiving lens and the position parameters of the optical elements in the symmetrical optical path, set the acquisition camera frame rate to 10 Hz, and continuously acquire 50 spot images as experimental sample images;

[0018] Step 1.4: grayscale the experimental sample image to obtain a grayscale image sample;

[0019] Step 1.5: Firstly, the contour of the grayscale image sample is extracted and the geometric center coordinates of the light spot are calculated, and then a suitable cropping frame is set to place the light spot at the center of the image to obtain an image of the region of interest.

[0020] In a preferred embodiment of the present invention, the logarithmic transformation method in step 2 is:

[0021]

[0022] Among them, m is the normalization parameter, i represents the coordinate of the pixel in the x direction, and j represents the coordinate of the pixel in the y direction.

[0023] In a preferred embodiment of the present invention, step 3 comprises the following steps:

[0024] Step 3.1: Use a downsampling operator with a convolution kernel size of 2×2 and a stride of 2 to split the spot image of shape 1041pixel×1053pixel×2 into non-overlapping small blocks of size 2×2;

[0025] Step 3.2: Assign the average value of the sub-diagonal pixels of each block to the first pixel of a downsampled feature map D1(y), similar to average pooling. Similarly, assign the average value of the main diagonal pixels to another downsampled feature map D2(y).

[0026] Preferably, the shapes of the two downsampled feature maps are both 520 pixels×526 pixels×2.

[0027] In a preferred embodiment of the present invention, the loss function of constructing a neural network comprises the following steps:

[0028] Step 4.1: According to the pair of downsampled feature maps obtained after downsampling the noise image, a neural network f is fitted. To reduce the influence of outliers, the loss function is defined as:

[0029] L=||f(D1(y))-D2(y)||1

[0030] Step 4.2: Considering that in residual learning, the network is optimized to adapt to noise rather than images, the loss function is modified as follows:

[0031]

[0032] Step 4.3: To ensure that the results of denoising the noisy image first and then downsampling are similar to those of downsampling first and then denoising, and to improve consistency, the following loss function is used:

[0033]

[0034] In a preferred embodiment of the present invention, step 5 comprises the following steps:

[0035] Step 5.1: Gradient minimum loss L = L res .+L cons. , set reasonable network training parameters, and use Adam optimizer to accelerate the network training process to obtain the trained neural network;

[0036] Step 5.2: Use the trained neural network to obtain the denoised image x=yf(y).

[0037] In a preferred embodiment of the present invention, the repeatability accuracy of the calculation system includes: using the square weighted centroid method to calculate the centroid position of the light spot, obtaining the standard deviation of the centroid position of the light spot in the horizontal and vertical directions of 50 images collected in a single time, and then obtaining the repeatability accuracy of the system.

[0038] Technical effects of the present invention:

[0039] 1. The spot denoising method in the present invention has a significant suppressive effect on the noise of the spot image, solving the problem of over-smoothing of traditional denoising methods such as Gaussian and median filtering. At the same time, the main network structure only uses two convolutional layers, which has the advantages of light weight, small number of parameters, fast training speed, and excellent denoising effect;

[0040] 2. The light spot denoising method of the present invention can help improve the accuracy of light spot center positioning, ensure the accuracy of measurement results and the stable operation of the system;

[0041] 3. The self-supervised lightweight neural network in the present invention does not require pre-labeled data and can self-adjust and optimize in actual operation. The sensor can adapt to various operating environments and improve system performance through software optimization without adding additional hardware. This method is more economical than physically improving the sensor system, and maintenance and upgrades are also more convenient, which helps to reduce the operation and maintenance costs of the entire system.

[0042] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a schematic diagram of the optical path principle of a double-reflection long-distance laser triangulation measurement system built by collecting spot images in a preferred embodiment of the present invention;

[0044] Figure 2 It is a schematic diagram of the principle of a light spot denoising network of a preferred embodiment of the present invention;

[0045] Figure 3 is a schematic diagram comparing denoising performances of different methods according to a preferred embodiment of the present invention;

[0046] Figure 4 is a schematic diagram comparing the effects of different methods on the light spot positioning accuracy in a preferred embodiment of the present invention;

[0047] Figure 5It is a schematic diagram of the system repeatability accuracy at different working distances of a preferred embodiment of the present invention.

[0048] In the figure: 1. first reflector; 2. second reflector; 3. imaging CMOS; 4. receiving lens; 5. paper target to be measured; 6. laser light source focusing module; 7. laser light source. DETAILED DESCRIPTION

[0049] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.

[0050] In the drawings, components with the same structure are indicated by the same numerical reference numerals, and components with similar structures or functions are indicated by similar numerical reference numerals. The size and thickness of each component shown in the drawings are arbitrarily shown, and the present invention does not limit the size and thickness of each component. In order to make the illustration clearer, the thickness of the components is appropriately exaggerated in some places in the drawings.

[0051] refer to Figure 1 to Figure 5 In a specific embodiment of the present invention, a method for denoising a spot of a long-distance laser triangulation displacement measurement system is disclosed, comprising the following steps:

[0052] Step 1: Build a double-reflection long-distance laser triangulation system, collect spot image samples, and grayscale and extract the region of interest of the spot image samples to obtain a region of interest image;

[0053] Step 2: logarithmically transform the image of the region of interest so that the noise level of the transformed image is evenly distributed;

[0054] Step 3: Decomposing the transformed image into a pair of downsampled feature maps by a downsampling operator;

[0055] Step 4: Considering the influence of outliers, residual learning and symmetric loss principles, construct the loss function of the neural network;

[0056] Step 5: training a lightweight neural network consisting of two convolutional layers by minimizing the loss function of the neural network, mapping one downsampled feature map to another downsampled feature map, and obtaining a trained lightweight neural network;

[0057] Step 6: Input the original spot image into the lightweight neural network trained in step 5 to obtain the denoised spot image and calculate the repeatability accuracy of the system.

[0058] The spot denoising method in the present invention has a significant suppressive effect on the noise of the spot image, and solves the problem of over-smoothing of traditional denoising methods such as Gaussian and median filtering. At the same time, the main network structure only uses two convolution layers, which has the advantages of light weight, small number of parameters, fast training speed, excellent denoising effect, etc. In the specific embodiment of the present invention, an improved self-supervised lightweight neural network is used to suppress the noise of the spot image in the long-distance laser triangulation system, which reduces the peak signal-to-noise ratio (PSNR) of the spot image, and the repeatability accuracy of the entire system is significantly improved.

[0059] like Figure 1 As shown, in a preferred embodiment of the present invention, the dual-reflection long-distance laser triangulation system includes a first reflector 1, a second reflector 2, an imaging CMOS 3, a receiving lens 4, a paper target 5 to be measured, a laser light source focusing module 6 and a laser light source 7. The laser beam emitted by the laser light source 7 is vertically incident on the paper target 5 to be measured through the focusing module 6, and the obtained diffuse reflected light is focused by the receiving lens 4, reflected by the first reflector 1 and the second reflector 2, and then imaged on the imaging CMOS 3.

[0060] Preferably, step 1 comprises the following steps:

[0061] Step 1.1: Place the object to be measured at 2250mm from the laser emission end, calculate the focal length of the receiving lens, and design the optical path;

[0062] Step 1.2: According to the reflection principle, the imaging light path after being refracted by the reflector unit is symmetrical to the original light path without the introduction of the reflector unit, and the position parameters of the optical elements in the symmetrical light path are calculated;

[0063] Step 1.3: According to the focal length of the receiving lens and the position parameters of the optical elements in the symmetrical optical path, the actual optical path is constructed, the imaging CMOS3 frame rate is set to 10Hz, 50 spot images are continuously collected as experimental sample images, and the average of these 50 images is calculated as the real spot image without noise. And the noisy spot image samples with different noise levels are constructed;

[0064] Step 1.4: grayscale the experimental sample image to obtain a grayscale image sample;

[0065] Step 1.5: Firstly, the contour of the grayscale image sample is extracted and the geometric center coordinates of the light spot are calculated, and then a suitable cropping frame is set to place the light spot at the center of the image to obtain an image of the region of interest.

[0066] In a preferred embodiment of the present invention, the specific steps of the image logarithmic domain transformation in step 2 are:

[0067] Step 2.1: Use the following logarithmic transformation process:

[0068]

[0069] Among them, m is the normalization parameter.

[0070] Step 2.2: In order to ensure the numerical stability of the logarithmic transformation and avoid infinity, 1 is added before the logarithmic transformation to ensure that the results after the logarithmic transformation are all greater than 0. Modify it to:

[0071]

[0072] Step 2.3: Transform the region of interest image obtained in step 1 into the logarithmic domain.

[0073] In step 2, the spot image samples obtained in step 1 and the generated real spot image are transferred to the logarithmic domain through logarithmic transformation, so that the noise level distribution in the spot image is more uniform, thereby improving the network denoising efficiency.

[0074] In a preferred embodiment of the present invention, step 3 comprises the following steps:

[0075] Step 3.1: Use a downsampling operator with a convolution kernel size of 2×2 and a stride of 2 to split the spot image of shape 1041pixel×1053pixel×2 into non-overlapping small blocks of size 2×2;

[0076] Step 3.2: Assign the average value of the sub-diagonal pixels of each block to the first pixel of a downsampled feature map D1(y), similar to average pooling. Similarly, assign the average value of the main diagonal pixels to another downsampled feature map D2(y). Preferably, the shapes of the two downsampled feature maps are both 520pixel×526pixel×2.

[0077] In a preferred embodiment of the present invention, the loss function of constructing a neural network comprises the following steps:

[0078] Step 4.1: According to the pair of downsampled feature maps obtained after downsampling the noise image, a neural network f is fitted. To reduce the influence of outliers, the loss function is defined as:

[0079] L=||f(D1(y))-D2(y)||1

[0080] Step 4.2: Considering that in residual learning, the network is optimized to adapt to noise rather than images, the loss function is modified as follows:

[0081]

[0082] Step 4.3: To ensure that the results of denoising the noisy image first and then downsampling are similar to those of downsampling first and then denoising, and to improve consistency, the following loss function is used:

[0083]

[0084] In a preferred embodiment of the present invention, step 5 comprises the following steps:

[0085] Step 5.1: Gradient minimum loss L = L res. +L cons. , set reasonable network training parameters. Preferably, the learning rate is set to 0.001, the learning step size is 1500, the learning decay value is 0.5, the number of training rounds is 30 epochs, and the Adam optimizer is used to accelerate the network training process to obtain the trained neural network;

[0086] Step 5.2: Use the trained neural network to obtain the denoised image x=yf(y).

[0087] In a preferred embodiment of the present invention, the repeatability accuracy of the calculation system includes: using the square weighted centroid method to calculate the centroid position of the light spot, obtaining the standard deviation of the centroid position of the light spot in the horizontal and vertical directions of 50 images collected in a single time, and then obtaining the repeatability accuracy of the system. The square weighted centroid method is used to calculate the centroid position of the light spot, and the calculation method is as follows:

[0088]

[0089] Calculate the standard deviation of the centroid position of the 50 images in the horizontal and vertical directions to obtain the repeatability error of the system. When the working distance is 1750mm, 2000mm, 2250mm, 2500mm, 2750mm, the centroid position offset curve is as follows: Figure 5 As shown in Figure 2, to analyze the performance of the denoising method, Figure 3 The peak signal-to-noise ratio (PSNR) of the image at different noise levels using different methods and the root mean square error (RMSE) of the real spot image are shown. Figure 5 The root mean square error curves of the light spot in the horizontal and vertical directions and the true position under different noise levels using different methods are shown.

[0090] The light spot denoising method in the present invention can help improve the accuracy of light spot center positioning, ensure the accuracy of measurement results and the stable operation of the system.

[0091] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A spot denoising method for a long-distance laser triangulation displacement measurement system, characterized in that: The steps include: Step 1: Build a double-reflection long-distance laser triangulation system, collect spot image samples, and grayscale and extract the region of interest of the spot image samples to obtain a region of interest image; Step 2: logarithmically transform the image of the region of interest so that the noise level of the transformed image is evenly distributed; Step 3: Decomposing the transformed image into a pair of downsampled feature maps by a downsampling operator; Step 4: Considering the influence of outliers, residual learning and symmetric loss principles, construct the loss function of the neural network; Step 5: training a lightweight neural network consisting of two convolutional layers by minimizing the loss function of the neural network, mapping one of the downsampled feature maps to another downsampled feature map, and obtaining a trained lightweight neural network; Step 6: Input the original spot image into the lightweight neural network trained in step 5 to obtain the denoised spot image, and calculate the repeatability accuracy of the system.

2. The method for denoising a spot of a long-distance laser triangulation displacement measurement system according to claim 1, characterized in that: The double-reflection long-distance laser triangulation measurement system comprises a first reflector, a second reflector, an imaging CMOS, a receiving lens, a paper target to be measured, a laser light source focusing module and a laser light source.

3. The spot denoising method of the long-distance laser triangulation displacement measurement system according to claim 2, characterized in that: The laser beam emitted by the laser light source is incident vertically on the paper target to be measured through the focusing module, and the obtained diffuse reflected light is focused by the receiving lens, reflected by the first reflector and the second reflector, and then imaged on the imaging device CMOS.

4. The method for spot denoising of a long-distance laser triangulation displacement measurement system according to claim 3, characterized in that: The step 1 comprises the following steps: Step 1.1: Place the object to be measured at 2250mm from the laser emission end, calculate the focal length of the receiving lens, and design the optical path; Step 1.2: According to the reflection principle, the imaging light path after being refracted by the reflector unit is symmetrical to the original light path without the introduction of the reflector unit, and the position parameters of the optical elements in the symmetrical light path are calculated; Step 1.3: construct an actual optical path according to the focal length of the receiving lens and the position parameters of the optical elements in the symmetrical optical path, set the acquisition camera frame rate to 10 Hz, and continuously acquire 50 spot images as experimental sample images; Step 1.4: grayscale the experimental sample image to obtain a grayscale image sample; Step 1.5: Firstly, the contour of the grayscale image sample is extracted and the geometric center coordinates of the light spot are calculated, and then a suitable cropping frame is set to place the light spot at the center of the image to obtain an image of the region of interest.

5. The method for spot denoising of a long-distance laser triangulation displacement measurement system according to claim 1, characterized in that: The logarithmic transformation method in step 2 is: Among them, m is the normalization parameter, i represents the coordinate of the pixel in the x direction, and j represents the coordinate of the pixel in the y direction.

6. The method for spot denoising of a long-distance laser triangulation displacement measurement system according to claim 1, characterized in that: The step 3 comprises the following steps: Step 3.1: Use a downsampling operator with a convolution kernel size of 2×2 and a stride of 2 to split the spot image of shape 1041pixel×1053pixel×2 into non-overlapping small blocks of size 2×2; Step 3.2: Assign the average value of the sub-diagonal pixels of each block to the first pixel of a downsampled feature map D1(y), similar to average pooling. Similarly, assign the average value of the main diagonal pixels to another downsampled feature map D2(y).

7. The method for denoising a spot in a long-distance laser triangulation displacement measurement system according to claim 6, characterized in that: The shapes of the two downsampled feature maps are both 520pixel×526pixel×2.

8. The method for denoising a spot in a long-distance laser triangulation displacement measurement system according to claim 7, characterized in that: The loss function of constructing a neural network includes the following steps: Step 4.1: According to the pair of downsampled feature maps obtained after downsampling the noise image, a neural network f is fitted. To reduce the influence of outliers, the loss function is defined as: L=||f(D1(y))-D2(y)||1 Step 4.2: Considering that in residual learning, the network is optimized to adapt to noise rather than images, the loss function is modified as follows: Step 4.3: To ensure that the results of denoising the noisy image first and then downsampling are similar to those of downsampling first and then denoising, and to improve consistency, the following loss function is used:

9. The method for denoising a spot in a long-distance laser triangulation displacement measurement system according to claim 8, characterized in that: The step 5 comprises the following steps: Step 5.1: Gradient minimum loss L = L res .+L cons. , set reasonable network training parameters, and use Adam optimizer to accelerate the network training process to obtain the trained neural network; Step 5.2: Use the trained neural network to obtain the denoised image x=yf(y).

10. The method for spot denoising of a long-distance laser triangulation displacement measurement system according to claim 1, characterized in that: The repeatability accuracy of the calculation system includes: using the square weighted centroid method to calculate the centroid position of the light spot, obtaining the standard deviation of the centroid position of the light spot in the horizontal and vertical directions of 50 images collected in a single time, and then obtaining the repeatability accuracy of the system.

Citation Information

Patent Citations

  • Laser spot image denoising method based on deep learning convolutional neural network

    CN110599413A

  • CNN-based schlieren method strong laser far-field focal spot measurement image denoising method

    CN112001956A

Cited By

  • Laser spot detection method based on secretary bird optimization algorithm

    CN121033091A