Rain and snow detection method and system based on video image

Through the cascade fusion of RGB, edge and dark channel features of video images, combined with the deep learning network model, the problem of low sensitivity and long processing time of the existing rain and snow detection algorithms is solved, high-precision rain and snow detection is achieved, and provides Real-time road condition information.

CN118799273AInactive Publication Date: 2024-10-18GUANGDONG POLYTECHNIC NORMAL UNIV
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410786326.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing rain and snow detection algorithms have problems such as low sensitivity, long processing time, and poor applicability, making it difficult to achieve timely and accurate road condition detection in severe weather.

Method used

The rain and snow detection method based on video images is used to obtain the RGB information, edge information features and dark channel information features of the video image, perform cascade fusion and then input the deep learning network model, and use the Sobel operator and InceptionV4 classification model to realize rain and snow weather classification.

Benefits of technology

It improves the accuracy and efficiency of rain and snow detection, overcomes the problem of weak feature transfer capabilities of traditional methods, and can accurately identify rain and snow in severe weather and provide real-time road condition information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799273A_ABST
    Figure CN118799273A_ABST
Patent Text Reader

Abstract

The invention relates to the field of rain and snow detection methods, in particular to a rain and snow detection method and a rain and snow detection system based on video images, which not only overcome the defect that the traditional feature migration ability is not strong, but also can obtain a detection result with higher precision. According to the method, firstly, visual features of snowy and snowy days are utilized, and due to the fact that the snowy days have obvious color features, RGB color information is key features for judging the snowy days; secondly, the edge information of the image is reduced in rainy days, in addition, the image is blurred in the rainy days, and the dark channel features have good characterization capability for the globally blurred image, so that the edge and dark channel information is key features for judging the rainy days; and finally, carrying out cascade fusion on RGB, edge and dark channel information features, and inputting an InceptionV4 network model to realize classification of rain and snow images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rain and snow detection methods, and more specifically, to a rain and snow detection method and system based on video images. Background Art

[0003] In severe weather conditions, such as rain and snow, road conditions can change dramatically, leading to safety issues such as reduced visibility and slippery roads. Therefore, timely and accurate detection of special weather conditions such as rain and snow can provide drivers with real-time road condition information to help them make safe driving decisions and avoid traffic accidents. In addition, the automated rain and snow detection system is used in the fields of autonomous driving, traffic monitoring, security monitoring, environmental monitoring, etc., thereby promoting the development and progress of related technologies.

[0004] There are few studies on existing rain and snow detection algorithms. At present, domestic research mainly focuses on rain and snow detection methods based on traditional computer vision algorithms, such as background modeling, motion analysis, and morphology. However, these traditional methods have some limitations, such as low sensitivity, long processing time, and poor applicability. Summary of the invention

[0005] In order to overcome the limitations of the traditional methods described in the above-mentioned prior art, such as low sensitivity, long processing time, poor applicability and other problems, the present invention provides a rain and snow detection method and system based on video images.

[0006] The present invention aims to solve the above technical problems at least to a certain extent.

[0007] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0008] A rain and snow detection method based on video images comprises the following steps:

[0009] S1: Acquire a video image and extract RGB information, edge information features, and dark channel information features of the video image;

[0010] S2: Cascade fusion of RGB information, edge information features and dark channel information features to obtain a five-channel feature array;

[0011] S3: Input the five-channel feature array into the preset deep learning network model and output the rain and snow weather classification results.

[0012] Further, the edge information feature is calculated by the Sobel operator, wherein the Sobel operator includes a horizontal operator and a vertical operator.

[0013]

[0014] Further, in step S1, extracting edge information features of the video image includes the following steps:

[0015] S1.1: Use the Sobel operator to perform horizontal and vertical convolution operations on a number of pixels centered on each pixel of the video image to obtain the horizontal and vertical grayscale values ​​of each pixel of the video image.

[0016]

[0017] G y =(f(i-1,j-1)+2f(i,j-1)+f(i+1,j-1))-(f(i-1,j+1)+2f(i,j+1)+f(i+1,j+1)

[0018] G x =(f(i-1,j-1)+2f(i-1,j)+f(i-1,j+1))-(f(i+1,j-1)+2f(i+1,j)+f(i+1,j+1))

[0019] Where A is the video image, G x is the horizontal gray value of the pixel, G y is the vertical grayscale value of the pixel, and f(i,j) is the grayscale value of the video image;

[0020] S1.2: The maximum value of the horizontal and vertical grayscale values ​​of each pixel is used as the edge image output value of the pixel.

[0021] s(i,j)=max(|(f(i-1,j-1)+2f(i-1,j)+f(i-1,j+1))-(f(i+1,j-1)+2f(i+1,j)+f(i+1,j +1))|,|(f(i-1,j-1)+2f(i,j-1)+f(i+1,j-1))-(f(i-1,j+1)+2f(i,j+1)+f(i+1,j+1))|)

[0022] Where s(i,j) is the edge image;

[0023] S1.3: Add all edge image output values ​​to obtain edge information features of the video image.

[0024] Further, in step S1.1, calculating the grayscale value of the video image includes:

[0025] Convert the RGB value of each pixel of the video image to a grayscale value.

[0026] Further, in step S1, extracting dark channel information features of the video image includes:

[0027] In the video image, the minimum value of each pixel in the video image in the RGB three channels is extracted as the first minimum value, the first minimum values ​​of all pixels are summarized to obtain a grayscale image, and the minimum value of several pixels in the center of the grayscale image in the RGB three channels is extracted as the second minimum value, and the second minimum value is used instead of the first minimum value to obtain the dark channel information feature.

[0028]

[0029] In the formula, c is one of the three channels [R, G, B], D c (y) is the pixel value of a certain RGB channel of the pixel at the y position, and I(x) is the pixel in the video image.

[0030] Further, in step S2, the RGB information, edge information features and dark channel information features are cascaded and fused, including: fusing the edge information features and dark channel information features into the RGB information array in the form of the fourth and fifth channels of the array, and obtaining the fused five-channel feature array as the input of the deep learning network model,

[0031] Five-channel feature array = (R, G, B, edge information, dark channel information).

[0032] Furthermore, the deep learning network model is an InceptionV4 classification model.

[0033] Further, in step S3, the rain and snow weather classification results are output, including:

[0034] The video images whose (R, G, B) values ​​of the five-channel feature array are all greater than the preset value are classified as snowy images.

[0035] Furthermore, it is characterized in that step S1 also includes preprocessing the video image, including: randomly rotating the video image.

[0036] A rain and snow detection system based on video images, applied to the rain and snow detection method, comprises:

[0037] An image acquisition module is used to acquire a video image and extract RGB information, edge information features, and dark channel information features of the video image;

[0038] A cascade fusion module is used to cascade fuse RGB information, edge information features and dark channel information features to obtain a five-channel feature array;

[0039] The input module is used to input the five-channel feature array into the preset deep learning network model and output the rain and snow weather classification results.

[0040] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0041] This study proposes a deep learning method for detecting rain and snow on roads based on edge and dark channel features, which not only overcomes the weak ability of traditional feature transfer, but also can obtain high-precision detection results. This method first utilizes the visual characteristics of rainy and snowy days. Since snowy days have obvious color characteristics, RGB color information is the key feature for judging snowy days; secondly, rainy days will cause less edge information in images. In addition, rainy days will also cause image blur. Dark channel features have good representation capabilities for globally blurred images. Therefore, edge and dark channel information are key features for judging rainy days; finally, the RGB, edge and dark channel information features are cascaded and fused, and then input into the InceptionV4 network model to realize the classification of rainy and snowy images. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a flow chart of the rain and snow detection method based on video images according to the present invention;

[0043] Figure 2 This is a flow chart of the rain and snow detection method described in this embodiment;

[0044] Figure 3 This is a schematic diagram of the rain and snow data set described in this embodiment;

[0045] Figure 4 This is the edge data analysis diagram of the rain and snow image described in this embodiment;

[0046] Figure 5 This is a dark channel analysis diagram of a rain and snow image described in this embodiment;

[0047] Figure 6 This is a model diagram of the InceptionV4 algorithm based on five-channel fusion described in the present invention;

[0048] Figure 7 This is a schematic diagram of the model recognition accuracy described in this embodiment;

[0049] Figure 8 This is a graph showing the change in the model Loss value described in this embodiment;

[0050] Fig. 9 This is a confusion matrix diagram of the InceptionV4 classification model based on RGB features described in this embodiment;

[0051] Fig.10 This is a confusion matrix diagram of the InceptionV4 classification model based on RGB+edge+dark channel features described in this embodiment;

[0052] Fig.11This is a flow chart of the rain and snow detection system based on video images described in the present invention. DETAILED DESCRIPTION

[0053] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;

[0054] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;

[0055] It is understood by those skilled in the art that some well-known structures and descriptions thereof may be omitted in the drawings.

[0056] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0057] Example 1

[0058] A rain and snow detection method based on video images, such as Figure 1 As shown, the following steps are included:

[0059] S1: Acquire a video image and extract RGB information, edge information features, and dark channel information features of the video image;

[0060] S2: Cascade fusion of RGB information, edge information features and dark channel information features to obtain a five-channel feature array;

[0061] S3: Input the five-channel feature array into the preset deep learning network model and output the rain and snow weather classification results.

[0062] In the specific implementation process, Figure 2 As shown in the figure, an image database is first established, then image features are extracted, an algorithm model is built based on the image features, and finally the algorithm model is tested. This method first utilizes the visual characteristics of rainy and snowy days. Since snowy days have obvious color characteristics, RGB color information is the key feature for judging snowy days; secondly, rainy days will cause the edge information of the image to become less. In addition, rainy days will also cause the image to be blurred. The dark channel features have a good representation ability for globally blurred images. Therefore, edge and dark channel information are key features for judging rainy days; finally, the RGB, edge and dark channel information features are cascaded and fused, and then input into the deep learning network model to realize the classification of rainy and snowy images. This not only overcomes the problem that traditional feature migration ability is not strong, but also can obtain higher-precision detection results.

[0063] The detection data used in this invention comes from a dataset of real highway monitoring video images. The data collection period is from January 24, 2022 to February 24, 2022. Since there are some invalid or unnecessary data in the collected data, such as overexposed or underexposed images, or images containing non-rain and snow objects, data cleaning is required to remove invalid data. Figure 3 As shown in the figure, by analyzing the rain and snow features in the video images, the images are divided into five categories: heavy rain, light rain, heavy snow, light snow and sunny days, with 400 images in each category, totaling 2000 images. The specific classification principle is: for rainy day images, heavy rain means that the image blur area is large or there is a large area of ​​water on the road, and light rain means that the road is slippery or there is water on the road in a small area; for snowy day images, heavy snow means that the road has a large snow area and obvious white snowflakes, and light snow means that the road has a small snow area or a small amount of white snow.

[0064] Example 2

[0065] This embodiment further discloses the following contents based on the embodiment 1:

[0066] Raindrops can cause image quality degradation. The larger and more raindrops there are, the greater the degree of image degradation and the more blurred the image will be, which will reduce the edge information of the image. The present invention uses the Sobel operator to perform edge detection on the collected image.

[0067] The edge information feature is calculated by the Sobel operator, which includes a horizontal operator and a vertical operator.

[0068]

[0069] In step S1, the step of extracting edge information features of a video image comprises the following steps:

[0070] S1.1: Use the Sobel operator to perform horizontal and vertical convolution operations on a number of pixels centered on each pixel of the video image to obtain the horizontal and vertical grayscale values ​​of each pixel of the video image.

[0071]

[0072] G y =(f(i-1,j-1)+2f(i,j-1)+f(i+1,j-1))-(f(i-1,j+1)+2f(i,j+1)+f(i+1,j+1)

[0073] G x=(f(i-1,j-1)+2f(i-1,j)+f(i-1,j+1))-(f(i+1,j-1)+2f(i+1,j)+f(i+1,j+1))

[0074] Where A is the video image, G x is the horizontal gray value of the pixel, G y is the vertical grayscale value of the pixel, and f(i,j) is the grayscale value of the video image;

[0075] S1.2: The maximum value of the horizontal and vertical grayscale values ​​of each pixel is used as the edge image output value of the pixel.

[0076] s(i,j)=max(|(f(i-1,j-1)+2f(i-1,j)+f(i-1,j+1))-(f(i+1,j-1)+2f(i+1,j)+f(i+1,j+1))|

[0077] ,|(f(i-1,j-1)+2f(i,j-1)+f(i+1,j-1))-(f(i-1,j+1)+2f(i,j+1)+f(i+1,j+1))|)

[0078] Where s(i,j) is the edge image;

[0079] S1.3: Add all edge image output values ​​to obtain edge information features of the video image.

[0080] In step S1.1, calculating the grayscale value of the video image includes:

[0081] Convert the RGB value of each pixel of the video image to a grayscale value.

[0082] like Figure 4 As shown in the figure, the left side is the edge image, and the right side is the grayscale histogram of the edge image. It can be seen from the figure that the richness of the edge information of the rainy day image is significantly lower than that of the sunny day and snowy day. For the sunny day and snowy day, their grayscale histograms also show obvious characteristics: the grayscale information of the sunny day is more concentrated, while the grayscale information of the snowy day is more dispersed and shows a slowly decreasing trend, and the edge grayscale information of the heavy snow is significantly less than the edge grayscale information of the light snow. Therefore, the edge image is used to distinguish between rainy and snowy day images. It is worth mentioning that from the grayscale histogram, although the edge information of heavy rain is less than that of light rain, due to the serious image degradation, the edge grayscale histograms of the two types of images still have many similarities.

[0083] Example 3

[0084] This embodiment further discloses the following contents based on Embodiments 1 and 2:

[0085] In order to better extract the different characteristics of heavy rain and light rain, by studying the images of heavy rain and light rain, it is found that rainy images will show different degrees of blur, which is similar to foggy images. The dark channel is proposed to solve the problem of foggy images, so the dark channel is also used to solve the problem of rain in images.

[0086] In step S1, extracting dark channel information features of the video image includes:

[0087] In the video image, the minimum value of each pixel in the video image in the RGB three channels is extracted as the first minimum value, the first minimum values ​​of all pixels are summarized to obtain a grayscale image, and the minimum value of several pixels in the center of the grayscale image in the RGB three channels is extracted as the second minimum value, and the second minimum value is used instead of the first minimum value to obtain the dark channel information feature.

[0088]

[0089] In the formula, c is one of the three channels [R, G, B], D c (y) is the pixel value of a certain RGB channel of the pixel at the y position, and I(x) is the pixel in the video image.

[0090] like Figure 5 As shown in Figure 2, compared with sunny and snowy images, rainy images have fewer dark channel pixels with lower pixel values, such as Figure 4 As shown in the figure, the left side is the RGB image, and the right side is the dark channel image of the RGB image. It can be seen from the figure that the dark channel images of different weather conditions are significantly different, especially the dark channel pixel values ​​of the heavy rain image are significantly higher than the dark channel pixel values ​​of the light rain image, and the dark channel feature image in the light rain image has a lower pixel value in the dark element area.

[0091] Example 4

[0092] This embodiment further discloses the following contents based on Embodiments 1, 2 and 3:

[0093] For rain and snow images, they often contain some complex, changeable, and nonlinear features, which are often difficult to capture by traditional feature extraction methods. Convolutional neural networks extract abstract features at different levels through multi-layer convolution and pooling operations, so as to better detect rain and snow weather. Therefore, based on the classic InceptionV4 network model, this paper proposes a road rain and snow detection method that integrates RGB, edge and dark channel features.

[0094] Different features have different properties and express the original image from different perspectives. Therefore, how to effectively combine different features is an important part of improving the overall recognition efficiency. In the present invention, feature fusion refers to the process of organically combining image RGB features, edge features and dark channel features, with the purpose of providing multi-perspective feature information for the final image classification. Figure 6 As shown, in step S2, the RGB information, edge information features and dark channel information features are cascaded and fused, including: the edge information features and the dark channel information features are fused into the RGB information array in the form of the fourth and fifth channels of the array, and the fused five-channel feature array is obtained as the input of the deep learning network model. In this way, the key information provided by the edge image and the dark channel image is fully utilized, and at the same time, important features such as color and texture of the original image are not lost, so that rainy and snowy weather detection can be performed more accurately.

[0095] Finally, the fused five-channel feature array is used as the input of the InceptionV4 network to obtain the five classification results of heavy rain, light rain, heavy snow, light snow and sunny day.

[0096] Five-channel feature array = (R, G, B, edge information, dark channel information).

[0097] The deep learning network model is the InceptionV4 classification model.

[0098] Example 5

[0099] This embodiment, based on Embodiments 1, 2, 3 and 4, continues to disclose the following contents:

[0100] In order to verify the effect of each feature extraction module and the performance advantage of the cascade fusion model over the single feature model, an algorithm model comparison ablation experiment was designed. The experiment used the same training set and test set, and trained three classification models at the same time: (1) InceptionV4 classification model based on RGB features; (2) InceptionV4 classification model based on RGB+edge features; (3) InceptionV4 classification model based on RGB+edge+dark channel features. The main training parameters include: Learning rate is 0.001. Dacay is reduced by 0.0005 every 7 Epochs; SGD (stochastic gradient descent) optimization method is used, the impulse is 0.9; the loss function is CrossEntropy; the data preprocessing method is: random rotation from -20 to 20 degrees.

[0101] The accuracy comparison results of the three classification models are as follows Figure 7 and Figure 8As shown in the figure, the accuracy and loss changes during the training process. The InceptionV4 classification model based on RGB+edge+dark channel features outperforms the other two models in terms of convergence speed and loss reduction speed.

[0102] The accuracy comparison results of the three classification models are shown in Table 1. It can be seen from Table 1 that the InceptionV4 classification model based on RGB features performs well in the rain and snow detection task, especially for the detection of sunny and heavy snow weather, which reaches 100%, but there are still some problems in the detection of heavy rain and light rain. The detection accuracy of the algorithm model for heavy rain and light rain is 89% and 83% respectively, which is lower than the detection accuracy of 100% for heavy snow, 91% for light snow and 100% for sunny days. The recognition accuracy of the classification model based on RGB+edge features is improved compared with the classification model based on RGB features, mainly because the detection rate of light snow has been significantly improved, from 91% to 94%, which shows that edge features are of great help in the recognition of heavy snow and light snow. The recognition accuracy of the classification model based on RGB+edge+dark channel features is improved compared with the classification model based on RGB+edge features, mainly because the detection rate of light rain has been significantly improved.

[0103] Table 1 Algorithm model comparison ablation experiment results

[0104]

[0105]

[0106] like Fig. 9 As shown in the figure, the confusion matrix of the InceptionV4 classification model based on RGB features shows that there are cases of confusion detection between heavy rain, light rain and sunny days, especially confusion between heavy rain and light rain; there are cases of confusion detection between heavy snow and light snow. In the rain and snow detection task, distinguishing between heavy rain and light rain has always been a difficult problem. The experimental test results show that even with the use of deep learning models, it is difficult to achieve perfect recognition results. In fact, this is also in line with the performance of the human visual system, because it is difficult for the human eye to make very accurate judgments on the distinction between heavy rain and light rain. This is because there is no obvious dividing line between heavy rain and light rain, or it is caused by uncertainty factors in the falling process of rain.

[0107] Example 6

[0108] This embodiment, based on Embodiments 1, 2, 3, 4 and 5, continues to disclose the following contents:

[0109] In step S3, the rain and snow weather classification results are output, including:

[0110] The video images whose (R, G, B) values ​​of the five-channel feature array are all greater than the preset value are classified as snowy images.

[0111] Snowy images have obvious color features, so the RGB information of the image is used to distinguish snowy images. Snowy images have a large amount of white information, and the RGB values ​​of white are 255, 225, and 255 respectively. Therefore, compared with other images, snowy images have more pixels with RGB values ​​close to 255. The more and larger the snow, the more pixels with values ​​close to 255.

[0112] Step S1 also includes preprocessing the video image, including: randomly rotating the video image.

[0113] Example 7

[0114] This embodiment, based on Embodiments 1, 2, 3, 4, 5 and 6, continues to disclose the following contents:

[0115] A rain and snow detection system based on video images, such as Fig.11 As shown, the rain and snow detection method is applied to the rain and snow detection method, including:

[0116] An image acquisition module is used to acquire a video image and extract RGB information, edge information features, and dark channel information features of the video image;

[0117] A cascade fusion module is used to cascade fuse RGB information, edge information features and dark channel information features to obtain a five-channel feature array;

[0118] The input module is used to input the five-channel feature array into the preset deep learning network model and output the rain and snow weather classification results.

[0119] The same or similar reference numerals correspond to the same or similar components;

[0120] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;

[0121] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. A rain and snow detection method based on video images, characterized in that: The following steps are involved: S1: Acquire a video image and extract RGB information, edge information features, and dark channel information features of the video image; S2: Cascade fusion of RGB information, edge information features and dark channel information features to obtain a five-channel feature array; S3: Input the five-channel feature array into the preset deep learning network model and output the rain and snow weather classification results.

2. The method for detecting rain and snow based on video images according to claim 1, characterized in that: The edge information feature is calculated by the Sobel operator, which includes a horizontal operator and a vertical operator.

3. The method for detecting rain and snow based on video images according to claim 2, characterized in that: In step S1, the step of extracting edge information features of a video image comprises the following steps: S1.1: Use the Sobel operator to perform horizontal and vertical convolution operations on a number of pixels centered on each pixel of the video image to obtain the horizontal and vertical grayscale values ​​of each pixel of the video image. G y =(f(i-1,j-1)+2f(i,j-1)+f(i+1,j-1))-(f(i-1,j+1)+2f(i,j+1)+f(i+1,j+1) G x =(f(i-1,j-1)+2f(i-1,j)+f(i-1,j+1))-(f(i+1,j-1)+2f(i+1,j)+f(i+1,j+1)) Where A is the video image, G x is the horizontal gray value of the pixel, G y is the vertical grayscale value of the pixel, and f(i,j) is the grayscale value of the video image; S1.2: The maximum value of the horizontal and vertical grayscale values ​​of each pixel is used as the edge image output value of the pixel. s(i,j)=max(|(f(i-1,j-1)+2f(i-1,j)+f(i-1,j+1))-(f(i+1,j-1)+2f(i+1,j)+f(i+1,j +1))|,|(f(i-1,j-1)+2f(i,j-1)+f(i+1,j-1))-(f(i-1,j+1)+2f(i,j+1)+f(i+1,j+1))|) Where s(i,j) is the edge image; S1.3: Add all edge image output values ​​to obtain edge information features of the video image.

4. The method for detecting rain and snow based on video images according to claim 1, characterized in that: In step S1.1, calculating the grayscale value of the video image includes: Convert the RGB value of each pixel of the video image to a grayscale value.

5. The method for detecting rain and snow based on video images according to claim 1, characterized in that: In step S1, extracting dark channel information features of the video image includes: In the video image, the minimum value of each pixel in the video image in the RGB three channels is extracted as the first minimum value, the first minimum values ​​of all pixels are summarized to obtain a grayscale image, and the minimum value of several pixels in the center of the grayscale image in the RGB three channels is extracted as the second minimum value, and the second minimum value is used instead of the first minimum value to obtain the dark channel information feature. In the formula, c is [R,G,B] One of the three channels, D c (y) is the pixel value of a certain RGB channel of the pixel at the y position, and I(x) is the pixel in the video image.

6. The method for detecting rain and snow based on video images according to claim 5, characterized in that: In step S2, the RGB information, edge information features and dark channel information features are cascaded and fused, including: fusing the edge information features and dark channel information features into the RGB information array in the form of the fourth and fifth channels of the array, and obtaining the fused five-channel feature array as the input of the deep learning network model, Five-channel feature array = (R, G, B, edge information, dark channel information).

7. The method for detecting rain and snow based on video images according to claim 7, characterized in that: The deep learning network model is the InceptionV4 classification model.

8. The method for detecting rain and snow based on video images according to claim 1, characterized in that: In step S3, the rain and snow weather classification results are output, including: The video images whose (R, G, B) values ​​of the five-channel feature array are all greater than the preset value are classified as snowy images.

9. The method for detecting rain and snow based on video images according to claim 1, characterized in that: It is characterized in that Step S1 also includes preprocessing the video image, including: randomly rotating the video image.

10. A rain and snow detection system based on video images, characterized in that: The rain and snow detection method as claimed in any one of claims 1 to 9 comprises: An image acquisition module is used to acquire a video image and extract RGB information, edge information features, and dark channel information features of the video image; A cascade fusion module is used to cascade fuse RGB information, edge information features and dark channel information features to obtain a five-channel feature array; The input module is used to input the five-channel feature array into the preset deep learning network model and output the rain and snow weather classification results.

Citation Information

Patent Citations

  • Weather identification method and apparatus based on image information detection

    CN104834912A

  • Single outdoor color image-based sunny and cloudy weather classification method

    CN107341456A

  • A rainfall and snow environment picture fuzzy monitoring and early warning method based on image local grid

    CN109359593A

  • Severe weather image classification enhancement method based on convolution model and feature fusion

    CN111815528A

  • Fog concentration grade recognition method based on video image multi-feature fusion

    CN112686105A