Road condition detection method for reducing ambient light interference

By performing light and dark partition enhancement and global illumination compensation processing on the image, optimizing the transmittance and defogging algorithms, the problem of unsatisfactory target detection in foggy weather is solved and more accurate target detection is achieved.

CN118644418AInactive Publication Date: 2024-09-13贺俊
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410688250.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology barely considers background interference when estimating atmospheric illumination values ​​and transmittance, resulting in unsatisfactory target detection results in foggy weather conditions.

Method used

By dividing the original image into detection areas and non-detection areas, the light and dark partition enhancement mechanism is used to process the image to obtain optimized transmittance data, and the global illumination compensation factor and guided filtering are used to dehaze the image to construct target detection. Model is tested.

Benefits of technology

It significantly improves the detection effect of the target detection model on small target objects, reduces background interference, enhances the image defogging effect, and is suitable for a wide range of road detection applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644418A
    Figure CN118644418A
Patent Text Reader

Abstract

The invention discloses a road condition detection method for reducing ambient light interference, which belongs to the technical field of image processing, and comprises the following steps: firstly, respectively carrying out defogging processing on a detection area and a non-detection area through a partitioning method, and then carrying out contrast enhancement on an input image in a Lab color space through a bright and dark partition enhancement mechanism; carrying out dark channel calculation on the enhanced image, and estimating an atmosphere illumination value and an initial transmissivity; carrying out edge refinement on the initial transmissivity by adopting a global illumination compensation factor and guide filtering; and substituting the atmosphere illumination value and the optimized transmissivity into a compensation processing function to complete image defogging. And an optimized loss function is adopted to construct a target detection model, so that target detection data can be positioned and acquired more quickly and better. The road condition detection method for reducing ambient light interference solves the problem that in the prior art, the defogging effect is not ideal due to the fact that background interference is hardly considered in the process of estimating the atmospheric illumination value and the transmissivity, and the action effect is remarkable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a road condition detection method for reducing ambient light interference. Background Art

[0002] Object detection algorithms have been widely used in various fields such as autonomous driving, outdoor monitoring, aerospace, etc., bringing great value and practical significance to society. However, since image acquisition equipment is often affected by weather conditions when acquiring outdoor images, such as heavy rain and foggy weather, the recognizability of targets in captured images is reduced, which greatly affects the target detection effect. At the same time, small target objects in the image are difficult to be recognized and detected by the model. Therefore, in order to solve the problem that the target detection model has an unsatisfactory target detection effect under foggy weather conditions, an improved method is proposed. This method solves the problem that the existing image defogging algorithm almost ignores background interference in the process of estimating atmospheric illumination values ​​and transmittance, resulting in unsatisfactory defogging effect. Summary of the invention

[0003] In view of the above-mentioned defects, the technical problem solved by the present invention is to provide a road condition detection method for reducing ambient light interference, so as to solve the problem that the background interference is almost not considered in the process of estimating the atmospheric illumination value and transmittance in the current technology, resulting in unsatisfactory defogging effect.

[0004] The present invention provides a road condition detection method for reducing ambient light interference, comprising:

[0005] Step 1: Divide the original image into a detection area and a non-detection area, perform image processing on the detection area and the non-detection area respectively, and obtain a primary processed image;

[0006] Step 2: Process the primary processed image using a light and dark partition enhancement mechanism to obtain an enhanced image;

[0007] Step 3, obtaining the atmospheric illumination value and transmittance of the enhanced image, optimizing the transmittance based on the global illumination compensation factor, and obtaining optimized transmittance data;

[0008] Step 4: Set the atmospheric illumination value A 1 and the optimized transmittance t(x) are brought into the compensation processing function to obtain a compensated image;

[0009] Step 5: Build and train a target detection model, use the trained target detection model to detect the compensated image, and obtain the target detection result.

[0010] Preferably, the specific steps of step 1 include:

[0011] Step 1.1, set a critical threshold R in the dark channel image, and divide the original image into a detection area and a non-detection area based on the critical threshold;

[0012] Step 1.2, defogging the image of the non-detection area based on the color attenuation prior method;

[0013] Step 1.3, obtain the average global atmospheric light value, and perform defogging on the detection area image in combination with the dark channel prior method;

[0014] Step 1.4: De-noise the dehazed image based on the guided filter function. The guided filter function is expressed as:

[0015] ,

[0016] Where q represents the output image, I represents the guide image, i and k represent the pixel indexes, ε represents the regularization parameter, p represents the dehazed image, and μ k represents the mean value of I in window ω_k, represents the variance of I in window ω_k, |ω| represents the number of pixels in window ω_k, Represents the mean value of the dehazed image p in window ω_k.

[0017] Preferably, the specific steps of step 2 include:

[0018] Step 2.1, convert the denoised image from the RGB color space to the Lab color space, obtain the L channel image of the converted image and normalize the obtained channel image;

[0019] Step 2.2, obtaining a local bright matrix and a local dark matrix through a sliding window brightness function;

[0020] Step 2.3, fusing the enhanced light and dark area information with the transformed image to obtain a transformed enhanced image;

[0021] Step 2.4: Convert the transformed enhanced image back to the RGB color space to obtain an enhanced image.

[0022] Preferably, the specific steps of step 3 include:

[0023] Step 3.1: Obtain the atmospheric illumination value A of the enhanced image 1 and initial transmittance t(x);

[0024] Step 3.2, taking the average value of pixels in a small range centered on pixel x as the factor at x, and obtaining the weight coefficient ω(x);

[0025] Step 3.3: Use guided filtering and weight coefficients to optimize the initial transmittance to obtain the optimized transmittance.

[0026] Preferably, the specific steps of step 1.2 include:

[0027] Step 1.2.1, use the maximum likelihood method to obtain the random error range of defogging;

[0028] Step 1.2.2, using the gradient descent method to obtain the adjustment coefficients of each parameter in the defogging process;

[0029] Step 1.2.3: Obtain depth data based on the depth acquisition function. The depth acquisition function is expressed as:

[0030] d(x)=θ 0 +θ 1 u(x)+θ 2 v(x)+λ(x), where v(x) represents saturation, u(x) represents brightness, d(x) represents depth, and θ 0 ,θ 1 ,θ 2 represents the adjustment coefficient of different parameters, λ(x) represents the random error;

[0031] Step 1.2.4: Obtain the defogging image of the non-detection area according to the atmospheric scattering function. The atmospheric scattering function is expressed as: I(x) = J(x)·e -βd(x) +A·[1-e -βd(x) ], where I(x) represents the input non-detection area image, J(x) represents the clear image obtained after processing, A represents the atmospheric light value, and β represents the atmospheric scattering coefficient.

[0032] Preferably, the function for obtaining the average global atmospheric light value in step 1.3 is expressed as:

[0033] in Represents the median value of the pixel value in the dark channel image of the non-detection area, It represents the middle value of the pixel value of the dark channel image in the detection area, x represents the weight coefficient of the non-detection area, x=n / N, n represents the total number of pixels in the detection area, and N represents the total number of pixels in the image.

[0034] Preferably, the specific steps of step 2.2 include:

[0035] Step 2.2.1, slide a sliding window of n×n pixels on the L channel image, and calculate the maximum or minimum brightness value in the window to obtain the local brightness matrix of the L channel image. The sliding window brightness function is expressed as: Among them, Lw 1 and Lb 1are the local bright matrix and the local dark matrix respectively, Ω(x) is the pixel brightness value in a small range centered on pixel x, and L is the L channel image of the converted image;

[0036] Step 2.2.2: Use an n×n sliding window to slide on the obtained local brightness matrix, so that the brightness value of the central pixel of the window is equal to the product of the brightness values ​​of other pixels around the central pixel in the window, and the output matrix is ​​obtained. The function of the output matrix is ​​expressed as: Among them Lw 2 and Lb 2 are the output matrices of the local bright matrix and the local dark matrix respectively;

[0037] Step 2.2.3: Enhance the bright areas in the converted image to obtain an enhanced local bright matrix Lw, and invert the enhanced dark areas to obtain an enhanced local dark matrix Lb.

[0038] Preferably, the specific steps of step 2.3 include:

[0039] Step 2.3.1: Obtain bright area information from the local bright matrix Lw based on the bright area extraction function. The bright area extraction function is expressed as Among them, bright is the bright area information, k 1 is the range of the bright area in the L channel image, max() and mean() are the functions for calculating the maximum value and average value of the converted image respectively;

[0040] Step 2.3.2: Obtain dark area information from the local dark matrix Lb based on the dark area extraction function. The dark area extraction function is expressed as Among them, dark is the dark area information, k 2 is the dark area range of the L channel image, min() is the function for calculating the minimum value of the converted image, The transformation matrix after the local dark matrix is ​​inverted;

[0041] Step 2.3.3, fuse the bright area information, the dark area information and the middle area information of the converted image to obtain an enhanced L channel image.

[0042] Preferably, the compensation processing function in step 4 is expressed as: I(x) is the total light intensity obtained by the outdoor shooting imaging system.

[0043] Preferably, the loss function of the target detection model in step 5 is expressed as: L Focal-EIoU =IoU γ (L IoU +L dis +L asp), where γ is a hyperparameter used to control the curvature of the curve, L IoU is the IoU loss function, L dis is the distance loss function, L asp is the edge length loss function.

[0044] It can be seen from the above scheme that a road condition detection method for reducing ambient light interference provided by the present invention first performs defogging on the detection area and the non-detection area respectively by a partitioning method, and then performs contrast enhancement on the input image in the Lab color space by a light and dark partitioning enhancement mechanism to achieve illumination compensation; in order to reduce the interference of background pixels on the central pixels, so that the calculated parameters are more in line with the imaging conditions in a fog-free environment, the enhanced image is calculated for dark channel, and the atmospheric illumination value and initial transmittance are estimated; the initial transmittance is refined by edge refinement using a global illumination compensation factor and guided filtering; the atmospheric illumination value and the optimized transmittance are substituted into the compensation processing function to complete image defogging; an optimized loss function is used to construct a target detection model, and the target detection data is located faster and better. The present invention has significant effects and is suitable for wide promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A process block diagram of a road condition detection method for reducing ambient light interference provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] See also Figure 1 Now, a specific implementation of a road condition detection method for reducing ambient light interference provided by the present invention is described. The specific steps of the road condition detection method for reducing ambient light interference include:

[0049] S1, dividing the original image into detection area and non-detection area, performing image processing on the detection area and non-detection area respectively, and obtaining a primary processed image;

[0050] In reality, there are many distant parts similar to the sky area in the image, that is, non-detection areas. Since the dark channel can only estimate the transmittance of the non-sky area, the defogging effect of non-detection areas such as the sky area is not good. The non-detection area still has image blur and color distortion. The partition processing method can preliminarily solve this problem. The specific steps of S1 include:

[0051] S1.1, setting a critical threshold R in the dark channel image, and dividing the original image into detection areas and non-detection areas based on the critical threshold;

[0052] The partitioning function in S1.1 is expressed as: in represents the dark channel of the non-detection area in the image, Represents the dark channel of the detection area in the image. The best critical threshold R can be obtained through a variety of numerical calculation methods.

[0053] S1.2, defogging the image of the non-detection area based on the color attenuation prior method;

[0054] The specific steps of S1.2 include:

[0055] S1.2.1. Use the maximum likelihood method to obtain the random error range of defogging;

[0056] Based on the depth acquisition function, let λ(x)~N(0,σ 2 ),get

[0057] d(x)~N(θ 0 +θ 1 u(x)+θ 2 v(x),σ 2 ), the brightness and saturation represented by u(x) and v(x) are known parameters, θ 0 ,θ 1 ,θ 2 , σ 2 is an unknown parameter, and the error probability of each pixel in the joint probability density function is made independent of each other, and we get: Where n represents the total number of pixels and L represents the likelihood function;

[0058] Then we get:

[0059] Use maximum likelihood estimation to obtain σ 2 ,get:

[0060]

[0061] S1.2.2, using the gradient descent method to obtain the adjustment coefficients of various parameters in the defogging process;

[0062] The adjustment coefficient acquisition function of S1.2.2 is expressed as:

[0063]

[0064] S1.2.3. Depth data is obtained based on the depth acquisition function, which is expressed as:

[0065] d(x)=θ 0 +θ 1 u(x)+θ 2 v(x)+λ(x), where v(x) represents saturation, u(x) represents brightness, d(x) represents depth, and θ 0 ,θ 1 ,θ 2 represents the adjustment coefficient of different parameters, λ(x) represents the random error;

[0066] S1.2.4. Obtain the defogging image of the non-detection area according to the atmospheric scattering function. The atmospheric scattering function is expressed as: I(x) = J(x)·e -βd(x) +A·[1-e -βd(x) ], where I(x) represents the input non-detection area image, J(x) represents the clear image obtained after processing, A represents the atmospheric light value, and β represents the atmospheric scattering coefficient.

[0067] S1.3, obtain the average global atmospheric light value, and perform defogging on the image of the detection area in combination with the dark channel prior method;

[0068] By improving the method of obtaining the transmittance atmospheric light value, the calculation of the atmospheric light value estimation is optimized, and the subsequent processing keeps the dark channel prior defogging processing method unchanged. The function for obtaining the average global atmospheric light value in S1.3 is expressed as: in Represents the median value of the pixel value in the dark channel image of the non-detection area, It represents the middle value of the pixel value of the dark channel image in the detection area, x represents the weight coefficient of the non-detection area, x=n / N, n represents the total number of pixels in the detection area, and N represents the total number of image pixels. By averaging the atmospheric light values ​​of the detection area and the non-detection area, the prior atmospheric light value is represented by the average value, that is, the global atmospheric light value, which is more reasonable, more accurate, and more robust.

[0069] S1.4, denoising the defogging image based on the guided filter function, the guided filter function is expressed as:

[0070] ,

[0071] Where q represents the output image, I represents the guide image, i and k represent the pixel indexes, ε represents the regularization parameter, p represents the dehazed image, and μ k represents the mean value of I in window ω_k, represents the variance of I in window ω_k, |ω| represents the number of pixels in window ω_k, Represents the mean value of the dehazed image p in window ω_k.

[0072] S2, using a light and dark partition enhancement mechanism to process the primary processed image to obtain an enhanced image;

[0073] From the RGB color space to the CIELab color space, the local light and dark image is obtained by enhancing the details of the bright and dark areas of the L channel image of the input image. The specific steps of S2 include:

[0074] S2.1, converting the denoised image from the RGB color space to the Lab color space, obtaining the L channel image of the converted image and normalizing the obtained channel image to be constrained within the range of 0 and 1;

[0075] S2.2, obtaining a local bright matrix and a local dark matrix through a sliding window brightness function;

[0076] The specific steps of S2.2 include:

[0077] S2.2.1. Use a sliding window of n×n pixels to slide on the L channel image (take n=3), and calculate the maximum or minimum brightness value in the window to obtain the local brightness matrix of the L channel image. The sliding window brightness function is expressed as: Among them, Lw l and Lb 1 are the local bright matrix and the local dark matrix respectively, Ω(x) is the pixel brightness value in a small range centered on pixel x, and L is the L channel image of the converted image;

[0078] S2.2.2. Use an n×n sliding window to slide on the obtained local brightness matrix (take n=3), so that the brightness value of the central pixel of the window is equal to the product of the brightness values ​​of other pixels around the central pixel in the window, and obtain the output matrix. The function of the output matrix is ​​expressed as: Among them Lw 2 and Lb 2 are the output matrices of the local bright matrix and the local dark matrix respectively;

[0079] S2.2.3. Enhance the bright areas in the converted image to obtain an enhanced local bright matrix Lw, and invert the enhanced dark areas to obtain an enhanced local dark matrix Lb.

[0080] The process function of extracting the light and dark area information from the L channel image is expressed as:

[0081]

[0082] S2.3, fusing the enhanced light and dark area information with the transformed image to obtain a transformed enhanced image;

[0083] The specific steps of S2.3 include:

[0084] S2.3.1. Obtain bright area information from the local bright matrix Lw based on the bright area extraction function. The bright area extraction function is expressed as Among them, bright is the bright area information, k 1 is the range of the bright area in the L channel image, max() and mean() are the functions for calculating the maximum value and average value of the converted image respectively;

[0085] S2.3.2. Obtain dark area information from the local dark matrix Lb based on the dark area extraction function. The dark area extraction function is expressed as Among them, dark is the dark area information, k 2 is the dark area range of the L channel image, min() is the function for calculating the minimum value of the converted image, The transformation matrix after the local dark matrix is ​​inverted;

[0086] S2.3.3, the bright area information, the dark area information and the intermediate area information of the converted image are fused to obtain the enhanced L channel image L * , the image fusion function is expressed as:

[0087]

[0088] S2.4. Convert the converted enhanced image from the Lab channel back to the RGB color space to obtain an enhanced image.

[0089] After being processed by the light and dark partition enhancement mechanism, the influence of surrounding pixels on the target pixel is eliminated, and the estimated atmospheric illumination value is more accurate.

[0090] S3, obtaining the atmospheric illumination value and transmittance of the enhanced image, optimizing the transmittance based on the global illumination compensation factor, and obtaining optimized transmittance data;

[0091] The specific steps of S3 include:

[0092] S3.1. Obtaining the atmospheric illumination value A of the enhanced image 1 and initial transmittance t(x);

[0093] S3.2. The average value of pixels in a small range centered on pixel x is taken as the factor at x to obtain the weight coefficient ω(x). The weight coefficient function is expressed as: Where ω(x) is the average information matrix of pixels in the local area centered on pixel x in the enhanced dark channel image, I* c To enhance each color channel of the image, c is the color channel, and Ω(x) is the pixel brightness value in a small range centered on pixel x;

[0094] S3.3, using guided filtering and weight coefficients to optimize the initial transmittance, the optimized transmittance function is expressed as:

[0095] Use global illumination compensation factors and guided filtering to smooth the image and highlight image edges.

[0096] S4, the atmospheric illumination value A 1 and the optimized transmittance t(x) are brought into the compensation processing function to obtain a compensated image;

[0097] The compensation processing function in S4 is expressed as: I(x) is the total light intensity obtained by the outdoor shooting imaging system.

[0098] This method performs primary defogging through S1, and image enhancement and secondary defogging through S2-S4. The two-stage defogging can achieve better consistency and better maintain the naturalness of the image. In S2-S4, the light intensity lost by scattering when the light source passes through atmospheric particles (such as fog) is compensated mainly through the light and dark partition enhancement mechanism, so as to estimate the real atmospheric illumination value; the initial transmittance is sharpened by combining the global illumination compensation factor and the guided filter; and the final defogging of the image is completed by combining the atmospheric scattering model.

[0099] S5. Build and train a target detection model, and use the trained target detection model to detect the compensated image to obtain the target detection result.

[0100] The loss function of the target detection model in S5 is expressed as: L Focal-EIoU =IoU γ (L IoU +L dis +L asp ), where γ is a hyperparameter used to control the curvature of the curve, with a default value of 0.5, and L IoU is the IoU loss function, L dis is the distance loss function, L aspis the edge length loss function. Using this loss function to build the target detection model can retain the profitability of CIoU loss. At the same time, it directly minimizes the difference between the width and height of the target box and the anchor box, which makes the convergence faster and the positioning effect better. It also solves the sample imbalance problem in the task of optimizing bounding box regression.

[0101] Compared with the existing technology, this road condition detection method that reduces ambient light interference is used to improve the detection effect and model performance of the target detection model for small target objects. This method eliminates or reduces the influence of the surrounding scene through the light and dark partition enhancement mechanism, and compensates for the light intensity scattered by part of the surrounding scenery. On the basis of enhancing the dark channel image, the global illumination compensation factor is introduced to optimize the transmittance. The global illumination compensation factor enhances the contour characteristics of the transmittance map to a certain extent.

[0102] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in this field.

[0103] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A road condition detection method for reducing ambient light interference, characterized in that: include: Step 1: Divide the original image into a detection area and a non-detection area, perform image processing on the detection area and the non-detection area respectively, and obtain a primary processed image; Step 2: Process the primary processed image using a light and dark partition enhancement mechanism to obtain an enhanced image; Step 3, obtaining the atmospheric illumination value and transmittance of the enhanced image, optimizing the transmittance based on the global illumination compensation factor, and obtaining optimized transmittance data; Step 4: Substitute the atmospheric illumination value A1 and the optimized transmittance t(x) into the compensation processing function to obtain a compensated image; Step 5: Build and train a target detection model, use the trained target detection model to detect the compensated image, and obtain the target detection result.

2. A road condition detection method for reducing ambient light interference according to claim 1, characterized in that: The specific steps of step 1 include: Step 1.1, set a critical threshold R in the dark channel image, and divide the original image into a detection area and a non-detection area based on the critical threshold; Step 1.2, defogging the image of the non-detection area based on the color attenuation prior method; Step 1.3, obtain the average global atmospheric light value, and perform defogging on the detection area image in combination with the dark channel prior method; Step 1.4: De-noise the dehazed image based on the guided filter function. The guided filter function is expressed as: , Where q represents the output image, I represents the guide image, i and k represent the pixel indexes, ε represents the regularization parameter, p represents the dehazed image, and μ k represents the mean value of I in window ω_k, represents the variance of I in window ω_k, |ω| represents the number of pixels in window ω_k, Represents the mean value of the dehazed image p in window ω_k.

3. A road condition detection method for reducing ambient light interference according to claim 2, characterized in that: The specific steps of step 2 include: Step 2.1, convert the denoised image from the RGB color space to the Lab color space, obtain the L channel image of the converted image and normalize the obtained channel image; Step 2.2, obtaining a local bright matrix and a local dark matrix through a sliding window brightness function; Step 2.3, fusing the enhanced light and dark area information with the transformed image to obtain a transformed enhanced image; Step 2.4: Convert the transformed enhanced image back to the RGB color space to obtain an enhanced image.

4. A road condition detection method for reducing ambient light interference according to claim 3, characterized in that: The specific steps of step 3 include: Step 3.1, obtaining the atmospheric illumination value A1 and the initial transmittance t(x) of the enhanced image; Step 3.2, taking the average value of pixels in a small range centered on pixel x as the factor at x, and obtaining the weight coefficient ω(x); Step 3.3: Use guided filtering and weight coefficients to optimize the initial transmittance to obtain the optimized transmittance.

5. The method for detecting road conditions by reducing ambient light interference according to claim 2, characterized in that: The specific steps of step 1.2 include: Step 1.2.1, use the maximum likelihood method to obtain the random error range of defogging; Step 1.2.2, using the gradient descent method to obtain the adjustment coefficients of each parameter in the defogging process; Step 1.2.3, obtain depth data based on the depth acquisition function, the depth acquisition function is expressed as: d(x) = θ0 + θ1u(x) + θ2v(x) + λ(x), where v(x) represents saturation, u(x) represents brightness, d(x) represents depth, θ0, θ1, θ2 represent adjustment coefficients of different parameters, and λ(x) represents random error; Step 1.2.4: Obtain the defogging image of the non-detection area according to the atmospheric scattering function. The atmospheric scattering function is expressed as: I(x) = J(x) e -βd(x) +A·[1-e -βd(x) ], where I(x) represents the input non-detection area image, J(x) represents the clear image obtained after processing, A represents the atmospheric light value, and β represents the atmospheric scattering coefficient.

6. A road condition detection method for reducing ambient light interference according to claim 5, characterized in that: The function for obtaining the average global atmospheric light value in step 1.3 is expressed as: in Represents the median value of the pixel value in the dark channel image of the non-detection area, It represents the middle value of the pixel value of the dark channel image in the detection area, x represents the weight coefficient of the non-detection area, x=n / N, n represents the total number of pixels in the detection area, and N represents the total number of pixels in the image.

7. The method for detecting road conditions by reducing ambient light interference according to claim 3, characterized in that: The specific steps of step 2.2 include: Step 2.2.1, slide a sliding window of n×n pixels on the L channel image, and calculate the maximum or minimum brightness value in the window to obtain the local brightness matrix of the L channel image. The sliding window brightness function is expressed as: Among them, Lw l and Lb1 are the local bright matrix and the local dark matrix respectively, Ω(x) is the pixel brightness value in a small range centered on pixel x, and L is the L channel image of the converted image; Step 2.2.2: Use an n×n sliding window to slide on the obtained local brightness matrix, so that the brightness value of the central pixel of the window is equal to the product of the brightness values ​​of other pixels around the central pixel in the window, and the output matrix is ​​obtained. The function of the output matrix is ​​expressed as: Where Lw2 and Lb2 are the output matrices of the local bright matrix and the local dark matrix respectively; Step 2.2.3: Enhance the bright areas in the converted image to obtain an enhanced local bright matrix Lw, and invert the enhanced dark areas to obtain an enhanced local dark matrix Lb.

8. The method for detecting road conditions by reducing ambient light interference according to claim 7, characterized in that: The specific steps of step 2.3 include: Step 2.3.1: Obtain bright area information from the local bright matrix Lw based on the bright area extraction function. The bright area extraction function is expressed as Among them, bright is the bright area information, k1 is the bright area range in the L channel image, max() and mean() are the maximum and average functions for calculating the converted image respectively; Step 2.3.2: Obtain dark area information from the local dark matrix Lb based on the dark area extraction function. The dark area extraction function is expressed as Among them, dark is the dark area information, k2 is the dark area range of the L channel image, and min() is the function for calculating the minimum value of the converted image. The transformation matrix after the local dark matrix is ​​inverted; Step 2.3.3, fuse the bright area information, the dark area information and the middle area information of the converted image to obtain an enhanced L channel image.

9. The method for detecting road conditions by reducing ambient light interference according to claim 1, characterized in that: The compensation processing function in step 4 is expressed as: I(x) is the total light intensity obtained by the outdoor shooting imaging system.

10. A road condition detection method for reducing ambient light interference according to any one of claims 1 to 9, characterized in that: The loss function of the target detection model in step 5 is expressed as: L Focal -E IoU =IoU γ (L IoU +L dis +L asp ), where γ is a hyperparameter used to control the curvature of the curve, L IoU is the IoU loss function, L dis is the distance loss function, L asp is the edge length loss function.

Citation Information

Cited By

  • Monitoring data processing method, device and equipment based on industrial Internet of Things, and medium

    CN119814990A