A real-time defogging method for road monitoring

Through the combination of pixel-level dark primary color and Retinex method, the problem of real-time defogging in road monitoring is solved, efficient defogging and visual effect improvement in foggy environment are achieved, and real-time data acquisition of the road monitoring system is ensured.

CN114529465BActive Publication Date: 2024-09-20JINLING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210077973.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2024-09-20
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

It is difficult to achieve real-time and efficient image defogging in road monitoring in foggy environments with existing technology, and the defogging results depend on the accuracy of transmittance and ambient light, making it difficult to accurately solve.

Method used

Monitor the rough dehazing of the scene through pixel-level dark primary colors, establish a transmittance residual model, use the Retinex method to supplement and enhance the scene residual image, and integrate the coarse dehazing results and the scene residual adjustment results, and finally adjust the saturation of the dehazing results. to enhance visual effects.

Benefits of technology

Real-time and efficient defogging of the road monitoring system in foggy conditions is achieved, ensuring the accuracy and visual effects of defogging results and meeting the needs for real-time data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114529465B
    Figure CN114529465B
Patent Text Reader

Abstract

The present invention discloses a real-time defogging method for road monitoring, comprising the following steps: step 1, rough defogging of road monitoring scene images based on pixel-level dark primary colors; step 2, establishing a residual image calculation model for monitoring scenes; step 3, supplementing and enhancing residual images of monitoring scenes; step 4, fusing the rough defogging result of step 1 with the scene residual supplementation and enhancement results of step 3 to obtain the defogging result of the monitoring scene; step 5, adjusting the saturation of the defogging result of step 4 to enhance the visual effect of the defogging result image. Starting from the perspective of scene residual adjustment, the method realizes real-time and efficient defogging of monitoring scene images and visual effect fidelity, thereby providing a technical guarantee for the road monitoring system to obtain real-time data in a foggy environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a real-time defogging method for monitoring images, in particular to a real-time defogging method for road monitoring. Background Art

[0002] Road monitoring is an important channel for traffic monitoring systems to obtain real-time image data and realize digital and visual management. However, when the monitoring scene is in a foggy environment, low-quality foggy road monitoring data can easily cause the traffic monitoring system to be "blind", making it difficult to ensure timely feedback and resolution of traffic hazards. Therefore, implementing road monitoring scene image defogging and restoring fog-free monitoring scenes is of great value in traffic monitoring systems. Among the existing image defogging technologies, the defogging technology based on the atmospheric scattering model is the most efficient, which mainly includes: defogging technology based on image priors and defogging technology based on learning strategies. Among them, the defogging technology based on image priors mines prior parameters and then introduces the atmospheric scattering model to implement defogging and restoration of monitoring images. The disadvantage of this type of method is that it is highly dependent on the accuracy of prior knowledge; the defogging technology based on learning strategies establishes a defogging system through machine learning and implements defogging of monitoring scenes. The disadvantage of this type of method is that a large number of labeled images are required for training, and the defogging speed is slow, making it difficult to achieve real-time defogging. In addition, the above two methods have a common disadvantage, that is, the quality of the defogging results is heavily dependent on the accuracy of the transmittance and ambient light estimation or calculation. However, solving the transmittance and ambient light based on the scattering model is a mathematically ill-posed problem, that is, the defogging results based on this model can only approximate the real scene in theory, that is, the unknown fog-free scene, and it is difficult to solve accurately. Summary of the invention

[0003] Purpose of the invention: The technical problem to be solved by the present invention is to provide a real-time defogging method for road monitoring in view of the deficiencies in the prior art.

[0004] In order to solve the above technical problems, the present invention discloses a real-time defogging method for road monitoring, comprising the following steps:

[0005] Step 1, performing rough defogging of the monitored scene image based on the pixel-level dark primary color to obtain a rough defogging result;

[0006] Step 2, establishing a residual image calculation model of the monitoring scene based on the transmittance residual;

[0007] Step 3, based on the Retinex method, the scene residual image is supplemented and enhanced to obtain the scene residual adjustment result;

[0008] Step 4: Fuse the rough defogging result and the scene residual adjustment result to restore the monitoring scene and obtain the defogging result image;

[0009] Step 5: Adjust the saturation of the defogging result image to improve the visual effect of the monitoring scene, output the final defogging result image, and complete the real-time defogging of road monitoring.

[0010] In the present invention, step 1 comprises:

[0011] Step 1-1, calculate the pixel-level dark primary color of the monitored foggy image, i.e. the monitored scene image Here’s how:

[0012]

[0013] Where c represents any pixel y in the monitoring scene image y i The color channels, R represents the red channel, G represents the green channel, and B represents the blue channel. is pixel y i The light intensity in different color channels; A is the ambient light, A c is the ambient light intensity of the above three color channels; min is the operation of finding the minimum value;

[0014] Step 1-2: Calculate the y value of any pixel in the monitoring scene image. i The transmittance is as follows:

[0015]

[0016] Among them, t i is pixel y i The transmittance of

[0017] Step 1-3: Calculate the rough dehazing result image of the monitoring scene image Here’s how:

[0018]

[0019] in, yes The corresponding rough dehazing result.

[0020] In the present invention, step 2 comprises:

[0021] Step 2-1, calculate the transmittance residual as follows:

[0022]

[0023] in, is pixel y i The transmittance residual, is the corresponding pixel x in the unknown fog-free scene image x i The pixel-level dark primary color is calculated as follows:

[0024]

[0025] in, is the pixel x i The light intensity in each color channel c is calculated as follows:

[0026]

[0027] in, is pixel y i The accurate transmittance is obtained according to the atmospheric scattering imaging model. The specific calculation method is as follows:

[0028]

[0029] Step 2-2, according to and Get pixel y i The accurate transmittance for:

[0030]

[0031] in, Get accurate transmittance The transmittance t described in step 1-2 i and the transmittance residual described in step 2-1 The relationship between them is as follows:

[0032]

[0033] Step 2-3, pixel x in the unknown fog-free scene image i The light intensity of each color channel The transmittance t i and transmittance residual It is expressed as:

[0034]

[0035] in, yes The rough dehazing result is represents the monitoring scene residual;

[0036] Step 2-4, establish a residual image calculation model for the monitoring scene, the method is as follows:

[0037]

[0038] in, To monitor the pixels in the scene residual image The light intensity on color channel c;

[0039] Step 2-5, according to step 1-3 and step 2-4, the monitoring scene residual image calculation model is further expressed as:

[0040]

[0041] In step 3 of the present invention, the residual image calculation model of the monitoring scene described in steps 2-5 is supplemented and enhanced by a Retinex method, and the method is as follows:

[0042]

[0043] in, Yes The result after supplementary enhancement, that is, the residual image after supplementary enhancement Medium Pixels The light intensity on color channel c, is the adjusted incident light.

[0044] The Retinex method described in step 3 of the present invention is as follows:

[0045] O=L·R

[0046] Among them, O represents the observed image, L represents the incident light intensity, and R represents the reflection of the scene.

[0047] In step 3 of the present invention, the incident light intensity in the scene residual image calculation model is monitored Reflection of the scene The observed residual image of the monitoring scene is

[0048] In step 3 of the present invention, the incident light intensity is adjusted by the following method:

[0049]

[0050] in, The rough dehazing result image is The dark primary color on the pixel is calculated in the same way as and same, It's pixels The light intensity on color channel c, c∈{R,G,B}, is the brightness of the pixel, α, β, γ are technical parameters, satisfying α=β=γ=1 / 3.

[0051] In step 4 of the present invention, the rough defogging result and the scene residual adjustment result are fused to obtain the defogging result image Here’s how:

[0052]

[0053] in, is the dehazed image Medium Pixels The intensity of light on color channel c.

[0054] In step 5 of the present invention, the visual effect of the defogging result image is adjusted by increasing the saturation, and the method is as follows:

[0055]

[0056] in, yes Saturation map, τ is the adjustment coefficient, After adjustment Saturation map of .

[0057] In step 5 of the present invention, the brightness and saturation of the monitoring scene image y and the defogging result image y are used. The brightness and saturation of the image are used to calculate the adjustment coefficient τ. The calculation method is as follows:

[0058]

[0059]

[0060]

[0061]

[0062] in, is the dehazing result image The effective difference between brightness and saturation, ω y is the effective difference between the brightness and saturation of the monitoring scene image y, σ is the threshold used to calculate the effective difference between brightness and saturation, is the brightness and of the dehazed image, is the saturation and value of the dehazed image, is the brightness and brightness of the monitoring scene image, is the saturation and of the monitoring scene image, m·n is the size of the defogging result image and the monitoring scene image, is the dehazed image Medium Pixels Brightness: Pixels The light intensity of the red, green and blue color channels, It's pixels Saturation: and Respectively represent the pixel y in the monitoring scene image y i The brightness and saturation of same.

[0063] Beneficial effects:

[0064] The present invention aims to solve the problems of poor real-time performance and over-reliance on prior or data set training in existing defogging technologies. From the perspective of residual adjustment of the scene, the present invention provides a real-time and efficient defogging technology to accurately and real-time capture road monitoring scenes in foggy environments. It achieves real-time and efficient scene image defogging and visual effect fidelity. This provides a technical guarantee for the road monitoring system to obtain real-time data in foggy environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.

[0066] Figure 1 A schematic flow chart of a real-time defogging method for road monitoring provided by the present invention.

[0067] Figure 2 This is an image of a road monitoring scene in a foggy environment.

[0068] Figure 3 Schematic diagram of the restoration results of the fast dehazing (FDG) method based on dark color and morphology.

[0069] Figure 4 Schematic diagram of the dehazing and restoration results based on dark source loss and context network method (DCA).

[0070] Figure 5 This is a schematic diagram of a scene after defogging and restoration according to the method provided by the present invention. DETAILED DESCRIPTION

[0071] like Figure 1 As shown, the present invention provides a real-time defogging method for road monitoring, which mainly realizes coarse defogging of the monitoring scene through pixel-level dark primary color, constructs scene residual and supplements and enhances the monitoring scene residual by using the Retinex method; obtains the defogging result of the monitoring scene by fusing the coarse defogging result image and the supplemented and enhanced monitoring scene residual image; adjusts the saturation of the defogging result image through a linear function, and outputs the final defogging result image of the monitoring scene.

[0072] The rough dehazing based on pixel-level dark primary color includes the following steps:

[0073] Step 1: Solve the pixel-level dark primary color. In the RGB (red, green, blue) color space, its expression is:

[0074]

[0075] in, is the monitoring scene image y at pixel y i The pixel-level dark primary color on A c is the intensity of ambient light A in each color channel, c is the color channel, c∈{R,G,B}, and min is the minimum operation.

[0076] Step 2: Solve the transmittance, the expression is:

[0077]

[0078] Among them, t i is pixel y i The transmittance is refined by guided filtering.

[0079] Step 3: Ambient light solution: calculate the brightness of all pixels in the image, and the pixel with the maximum brightness is the overall ambient light of the scene [A R , A G , A B ].

[0080] Step 4: Monitor the scene rough dehazing result image The calculation expression is:

[0081]

[0082] in, is the coarse dehazing detection scene image Any pixel The light intensity on color channel c can be obtained by traversing all pixels.

[0083] Among them, the scene residual construction and Retinex method supplement and enhance the monitoring scene residual, including the following steps:

[0084] Step 1: Calculate the accurate scene transmittance, which is expressed as:

[0085]

[0086] in, is pixel y i The accurate transmittance, is the unknown fog-free monitoring scene image x at pixel x i The pixel-level dark primary color on is expressed as:

[0087]

[0088] in, Pixel x of unknown fog-free monitoring scene image x i The intensity of light on color channel c.

[0089] Step 2: Calculate the transmittance residual, which is expressed as:

[0090]

[0091] in, That is the transmittance residual. According to the atmospheric scattering imaging model:

[0092]

[0093] Bring in and It can be calculated

[0094]

[0095] because, Therefore, the accurate transmittance can be obtained Transmittance i and transmittance residual The relationship between:

[0096]

[0097]

[0098] Step 3: Construct a residual calculation model for the monitoring scene, which is expressed as:

[0099]

[0100] in, is the residual image of the monitoring scene Pixels Light intensity on color channel c. Pixel x in the unknown fog-free monitoring scene image i The light intensity of each color channel The transmittance t i and transmittance residual It is expressed as:

[0101]

[0102] in, yes Rough dehazing result Therefore, the monitoring scene residual can be further expressed as:

[0103]

[0104] Step 4: Supplement and enhance the residual of the monitoring scene according to the Retinex method, and its expression is:

[0105]

[0106] in, Yes The results after supplementation and enhancement, is the residual image of the monitoring scene after supplementary enhancement, and c represents the color channel. According to the Retinex method, represents the incident light, which replaces Supplement and enhance scene residuals.

[0107] The mathematical model of the above Retinex method is:

[0108] O=L·R

[0109] In this model, O is the observed image, L is the incident light, and R is the scene reflection. is the scene residual image, i.e. the observed image, The physical meaning of is also the reflection of the scene. The above scene residual model is in accordance with the Retinex theory. According to the Retinex theory, the intensity of the incident light does not change the color and details of the image, but only changes the brightness of the image. Therefore, the present invention adopts a method of enhancing the incident light to supplement and adjust the scene residual image. The adjusted incident light is expressed by the following formula:

[0110]

[0111] In the above formula, is the rough dehazing result image In pixels The dark primary color on and same, It's pixels The light intensity on color channel c, c∈{R,G,B}, is the brightness of the pixel, α, β, γ are technical parameters, satisfying α=β=γ=1 / 3.

[0112] Among them, the fusion of the rough defogging result image and the supplementary enhanced monitoring scene residual image is calculated as follows:

[0113]

[0114] In the above formula, is the dehazing result image Medium Pixels The light intensity on color channel c

[0115] The saturation adjustment of the restored result image includes the following steps:

[0116] Step 1: Calculate the saturation adjustment factor τ

[0117]

[0118] in,

[0119]

[0120]

[0121]

[0122] Here, is the dehazed image The effective difference between brightness and saturation, ω y is the effective difference between the brightness and saturation of the monitoring scene image y, σ is the threshold used to calculate the effective difference between brightness and saturation, σ = 0.28, is the brightness and of the dehazed image, is the saturation and value of the dehazed image, is the brightness and brightness of the monitoring scene image, is the saturation and of the monitoring scene image, m·n is the size of the defogging result image and the monitoring scene image, is the dehazed image Medium Pixels Brightness: Pixels The light intensity of the red, green and blue color channels, It's pixels Saturation: and They represent the pixels y in the monitoring scene image y respectively. i The brightness and saturation of same.

[0123] Step 2: Adjust the dehazed image The saturation is calculated as follows:

[0124]

[0125] In the above formula, yes Saturation map, τ is the adjustment coefficient, After adjustment Saturation map of .

[0126] Table 1 shows the actual monitoring images (such as those with different resolutions) of the FID, FDG and DCA methods of the present invention using matlab2021a software on an Intel(R) Core(TM) i7-1510U CPU@1.80GHz 16.00GB RAM PC. Figure 2 It can be seen from the data in the table that compared with the other two methods, the method of the present invention has the fastest operation time and can meet the real-time requirements for normal road monitoring.

[0127] Table 1 Average operation time of three defogging methods (unit, seconds)

[0128]

[0129] Figure 3 , Figure 4 , Figure 5 These are the results of FID processing of actual monitoring images by the FDG method, the DCA method and the method of the present invention. According to the results, it can be seen that compared with the other two methods, the method of the present invention is real-time and efficient.

[0130] The present invention provides a method and idea for a real-time defogging method for road monitoring. There are many methods and approaches to implement the technical solution. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the protection scope of the present invention. All components not specified in this embodiment can be implemented by existing technologies.

Claims

1. A real-time defogging method for road monitoring, characterized in that: The following steps are involved: Step 1, performing rough defogging of the monitored scene image based on the pixel-level dark primary color to obtain a rough defogging result; Step 2, establishing a residual image calculation model of the monitoring scene based on the transmittance residual; Step 3, based on the Retinex method, the scene residual image is supplemented and enhanced to obtain the scene residual adjustment result; Step 4: Fuse the rough defogging result and the scene residual adjustment result to restore the monitoring scene and obtain the defogging result image; Step 5: adjust the saturation of the defogging result image to improve the visual effect of the monitoring scene, output the final defogging result image, and complete the real-time defogging of road monitoring; Wherein, step 1 comprises: Step 1-1, calculate the pixel-level dark primary color of the monitored foggy image, i.e. the monitored scene image Here’s how: Where c represents any pixel y in the monitoring scene image y i The color channels, R represents the red channel, G represents the green channel, and B represents the blue channel. is pixel y i The light intensity in different color channels; A is the ambient light, A c is the ambient light intensity of the above three color channels; min is the operation of finding the minimum value; Step 1-2: Calculate the y value of any pixel in the monitoring scene image. i The transmittance is as follows: Among them, t i is pixel y i The transmittance of Step 1-3: Calculate the rough dehazing result image of the monitoring scene image Here’s how: in, yes The corresponding rough dehazing result; Step 2 includes: Step 2-1, calculate the transmittance residual as follows: in, is pixel y i The transmittance residual, is the corresponding pixel x in the unknown fog-free scene image x i The pixel-level dark primary color is calculated as follows: in, is the pixel x i The light intensity in each color channel c is calculated as follows: in, is pixel y i The accurate transmittance is obtained according to the atmospheric scattering imaging model. The specific calculation method is as follows: Step 2-2, according to and Get pixel y i The accurate transmittance for: in, Get accurate transmittance The transmittance t described in step 1-2 i and the transmittance residual described in step 2-1 The relationship between them is as follows: Step 2-3, pixel x in the unknown fog-free scene image i The light intensity of each color channel The transmittance t i and transmittance residual It is expressed as: in, yes The rough dehazing result is represents the monitoring scene residual; Step 2-4, establish a residual image calculation model for the monitoring scene, the method is as follows: in, To monitor the pixels in the scene residual image The light intensity on color channel c; Step 2-5, according to step 1-3 and step 2-4, the monitoring scene residual image calculation model is further expressed as:

2. A real-time defogging method for road monitoring according to claim 1, characterized in that: In step 3, the residual image calculation model of the monitoring scene described in steps 2-5 is supplemented and enhanced by a Retinex method as follows: in, Yes The result after supplementary enhancement, that is, the residual image after supplementary enhancement Medium Pixels The light intensity on color channel c, is the adjusted incident light.

3. A real-time defogging method for road monitoring according to claim 2, characterized in that: The Retinex method described in step 3 is as follows: O=L·R Among them, O represents the observed image, L represents the incident light intensity, and R represents the reflection of the scene.

4. A real-time defogging method for road monitoring according to claim 3, characterized in that: In step 3, the incident light intensity in the scene residual image calculation model is monitored Reflection of the scene The observed residual image of the monitoring scene is 5. A real-time defogging method for road monitoring according to claim 4, characterized in that: In step 3, the incident light intensity is adjusted as follows: in, The rough dehazing result image is The dark primary color on the pixel is calculated in the same way as and same, It's pixels The light intensity on color channel c, c∈{R,G,B}, is the brightness of the pixel, α, β, γ are technical parameters, satisfying α=β=γ=1 / 3.

6. A real-time defogging method for road monitoring according to claim 5, characterized in that: In step 4, the rough dehazing result and the scene residual adjustment result are fused to obtain the dehazing result image. Here’s how: in, is the dehazed image Medium Pixels The intensity of light on color channel c.

7. A real-time defogging method for road monitoring according to claim 6, characterized in that: In step 5, the visual effect of the dehazed image is adjusted by increasing the saturation as follows: in, yes Saturation map, τ is the adjustment coefficient, After adjustment Saturation map of .

8. A real-time defogging method for road monitoring according to claim 7, characterized in that: In step 5, the brightness and saturation of the monitoring scene image y and the defogging result image are used The brightness and saturation of the image are used to calculate the adjustment coefficient τ. The calculation method is as follows: in, is the dehazing result image The effective difference between brightness and saturation, ω y is the effective difference between the brightness and saturation of the monitoring scene image y, σ is the threshold used to calculate the effective difference between brightness and saturation, is the brightness and of the dehazed image, is the saturation and value of the dehazed image, is the brightness of the monitored scene image and, is the saturation and of the monitoring scene image, m·n is the size of the defogging result image and the monitoring scene image, is the dehazing result image Medium Pixels Brightness: Pixels The light intensity of the red, green and blue color channels, It's pixels Saturation: and They represent the pixels y in the monitoring scene image y respectively. i The brightness and saturation of same.