A method and system for detecting leaks in a vehicle window rain test

By combining visible light and infrared image sequences with a lightweight dual-stream network for detection, a leakage risk parameter map is generated, which solves the accuracy problem of rain leakage detection for vehicle windows, realizes quantitative leakage detection and precise location under multiple working conditions, and improves the objectivity and reliability of the detection.

CN123155097APending Publication Date: 2026-11-24SHAANXI HAISURVEY ELECTRONIC TECH SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611321276.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies for detecting rain leakage in vehicle windows suffer from high subjectivity, high rates of missed detection, and high rates of misjudgment. They also struggle to quantify and differentiate between internal and external interference, thus affecting the objectivity and reliability of the overall vehicle airtightness quality assessment.

Method used

By simultaneously acquiring visible light image sequences and raw infrared temperature map sequences of a car window under rain, a lightweight dual-stream network is used for leakage detection to generate a final leakage intensity map. Based on the feature fusion of the infrared temperature difference map and the visible light image, a leakage risk parameter map is generated to accurately locate the leakage point.

Benefits of technology

It improves the accuracy of rain leakage detection for vehicle windows, enables quantitative leakage detection under multiple operating conditions, reduces the rate of missed detection and false judgment, and improves the reliability of the overall vehicle airtightness quality assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123155097A_ABST
    Figure CN123155097A_ABST
Patent Text Reader

Abstract

This application discloses a method and system for detecting leakage during a rain test on a vehicle window. The method includes: simultaneously acquiring a visible light image sequence and an infrared raw temperature map sequence of the vehicle window under rain conditions; generating an infrared temperature difference map sequence based on the infrared raw temperature map sequence and an acquired set temperature inside the vehicle; performing leakage detection on the visible light image sequence and the infrared temperature difference map sequence through a pre-determined lightweight dual-stream network to obtain a final leakage intensity map; generating a vehicle window leakage risk parameter map based on the final leakage intensity map; determining a calibration parameter set; and accurately locating the leakage point based on the vehicle window leakage risk parameter map and the calibration parameter set. This solution can improve the accuracy of leakage detection during a rain test on a vehicle window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle window rain leakage detection technology, specifically to a vehicle window rain leakage test method and system. Background Technology

[0002] The rain-sealing test for vehicle windows is a critical quality inspection step in the manufacturing process of automobiles and their components. Its core purpose is to verify the dynamic sealing performance of the window glass and sealing strips under simulated rain conditions. In actual rain tests, leakage behavior is not a simple binary state of "leaking or not leaking," but rather involves a series of highly dynamic and nonlinear physical processes, including raindrop impact, sealing strip compression and deformation, capillary siphon, temperature difference driving pressure difference, and evaporative cooling. The amount of leakage exhibits complex nonlinear response characteristics as the rain intensity, rain angle, and ambient temperature difference change.

[0003] Traditional rain tests rely primarily on inspectors visually observing whether there are visible signs of leakage such as water droplets, water flow, or fog on the inner surface of the car window. This method is highly subjective, has a high rate of missed detection, and cannot be quantified. Some companies have introduced visible light camera systems to assist in recording, but visible light images are easily affected by raindrops and water flow outside the car, as well as reflections from the glass surface. It is difficult to reliably capture real signs of leakage inside the car, and a single frame image cannot distinguish between beads hanging outside the car and leaks inside the car, resulting in a high rate of misjudgment.

[0004] Meanwhile, the physical nature of window leaks means that their detection faces multiple complex interferences: raindrops outside the vehicle and leaking water droplets inside the vehicle have a highly similar appearance in the visible light spectrum; condensation caused by temperature differences on the inside of the glass is difficult to distinguish from actual leakage; and the stress state of the rubber seal joint surface varies significantly under different rain angles. This leads to existing technologies generally suffering from problems such as "unquantifiable state, indistinguishable interference from inside and outside the vehicle, and unpredictable response under multiple operating conditions" in leak detection, directly affecting the objectivity and reliability of the overall vehicle airtightness quality assessment. Summary of the Invention

[0005] This application aims to provide a method and system for detecting leakage during a rain test on vehicle windows, which can improve the accuracy of leakage detection during a rain test on vehicle windows.

[0006] The technical solution of this application is implemented as follows: In a first aspect, embodiments of this application provide a method for detecting leakage during a rain test on a vehicle window, the method comprising: Simultaneously acquire visible light image sequences and raw infrared temperature map sequences under rain conditions on the car window; and generate an infrared temperature difference map sequence based on the raw infrared temperature map sequence and the acquired set temperature inside the car. Leakage detection is performed on the visible light image sequence and the infrared temperature difference image sequence using a pre-determined lightweight dual-stream network to obtain the final leakage intensity map. Based on the final leakage intensity map, a window leakage risk parameter map is generated. Determine the calibration parameter set; and based on the window leakage risk parameter map and the calibration parameter set, accurately locate the leakage point.

[0007] In the above scheme, the step of performing leakage detection on the visible light image sequence and the infrared thermogram sequence through a pre-determined lightweight dual-stream network to obtain the final leakage intensity map includes: The visible light image sequence and the infrared temperature difference map sequence are time-stacked through the input layer of the lightweight dual-stream network to obtain a visible light time-series tensor and an infrared time-series tensor. The encoder of the lightweight dual-stream network extracts features from the visible light temporal tensor and the infrared temporal tensor to obtain visible light features and infrared features. The visible light features and the infrared features are spliced ​​and averaged using the feature splicing and aggregation layer of the lightweight dual-stream network to obtain spliced ​​and fused features. The time-dimension feature extraction of the infrared features is performed through the time-series discrimination module of the lightweight dual-stream network to obtain a spatial attention weight map. The spliced ​​and fused features are convolutionally processed by the fusion decoder of the lightweight dual-stream network to obtain a preliminary leakage intensity map. The final leakage intensity map is obtained by fusing the preliminary leakage intensity map and the spatial attention weight map through the final fusion output layer of the lightweight dual-stream network.

[0008] In the above scheme, generating a window leakage risk parameter map based on the final leakage intensity map includes: Based on the final leakage intensity map and the pre-determined effective detection area mask, a leakage edge intensity map is generated; Based on the effective detection area mask and the leakage edge intensity map, a polynomial fitting is performed to obtain the window leakage risk parameter map.

[0009] In the above scheme, generating a leakage edge intensity map based on the final leakage intensity map and a pre-determined effective detection area mask includes: Based on the final leakage intensity map and the pre-acquired rain intensity array, rain angle fusion is performed to obtain a rain angle fused leakage intensity map; The leakage edge intensity map is obtained by multiplying the leakage intensity map by pixels of the rain angle fusion map and the effective detection area mask.

[0010] In the above scheme, the step of performing polynomial fitting based on the effective detection area mask and the leakage edge intensity map to obtain the window leakage risk parameter map includes: Based on the effective detection area mask, the effective pixel positions are determined; Extract the fitting coefficients corresponding to the effective pixel positions and the leakage intensity values ​​corresponding to the effective pixel positions from the leakage edge intensity map; wherein, the leakage intensity values ​​have corresponding normalized intensity values; Based on the fitting coefficients, the leakage intensity value, and the normalized intensity value, a polynomial fitting is performed to obtain the window leakage risk parameter map.

[0011] In the above scheme, determining the calibration parameter set includes: A calibration plate is determined; wherein the plane of the calibration plate is closely fitted and parallel to the inner surface of the vehicle window glass, and the calibration plate is a checkerboard calibration plate of known size; Based on the calibration board, the horizontal pixel equivalent factor and the vertical pixel equivalent factor are determined; Based on the corner points in the calibration board, the physical origin is determined; and based on the physical origin, the image pixel coordinates corresponding to the physical origin are determined. A calibration parameter set is generated based on the horizontal pixel equivalent factor, the vertical pixel equivalent factor, and the image pixel coordinates corresponding to the physical origin.

[0012] In the above scheme, determining the horizontal pixel equivalent factor and the vertical pixel equivalent factor based on the calibration board includes: Determine the actual horizontal and vertical lengths of the calibration plate; The pixel coordinates of each corner point of the calibration board are obtained by using a checkerboard corner detection algorithm; and the corresponding pixel distances in the horizontal and vertical directions of the calibration board are calculated based on the pixel coordinates of each corner point of the calibration board. The horizontal pixel equivalent factor is calculated based on the actual length in the horizontal direction and the corresponding pixel distance in the horizontal direction; The vertical pixel equivalent factor is calculated based on the actual length in the vertical direction and the corresponding pixel distance in the vertical direction.

[0013] Secondly, embodiments of this application provide a vehicle window rain test leakage detection system, which includes: an acquisition module, a generation module, a detection module, and a determination module; wherein... The acquisition module is used to simultaneously acquire a visible light image sequence and an infrared raw temperature map sequence under rain conditions on a car window; The generation module is used to generate an infrared temperature difference map sequence based on the original infrared temperature map sequence and the acquired in-vehicle set temperature. The detection module is used to perform leakage detection on the visible light image sequence and the infrared temperature difference map sequence through a pre-determined lightweight dual-stream network to obtain the final leakage intensity map. The generation module is also used to generate a window leakage risk parameter map based on the final leakage intensity map; The determining module is used to determine the calibration parameter set; and to accurately locate the leakage point based on the window leakage risk parameter map and the calibration parameter set.

[0014] Thirdly, embodiments of this application provide a vehicle window rain test leakage detection device, including: a processor and a memory; wherein, The memory is used to store computer programs; The processor is configured to call and run the computer program from the memory to perform the method as described in the first aspect.

[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing executable instructions for causing a processor to perform the method described in the first aspect.

[0016] This application provides a method and system for detecting leakage during a rain test on a vehicle window. The method includes: simultaneously acquiring a visible light image sequence and an infrared raw temperature map sequence under rain conditions on the vehicle window; generating an infrared temperature difference map sequence based on the infrared raw temperature map sequence and an acquired set temperature inside the vehicle; performing leakage detection on the visible light image sequence and the infrared temperature difference map sequence through a pre-determined lightweight dual-stream network to obtain a final leakage intensity map; generating a vehicle window leakage risk parameter map based on the final leakage intensity map; determining a calibration parameter set; and accurately locating the leakage point based on the vehicle window leakage risk parameter map and the calibration parameter set. In the above scheme, the visible light image sequence and the infrared temperature difference map sequence are acquired simultaneously, and a high-transmittance infrared anti-reflection scattering film is attached to the inner surface of the glass. This allows the raindrops outside the vehicle in the visible light image to be blurred into a uniform background while maintaining high transmission in the infrared band, achieving complementary information separation from the signal source, where visible light provides geometric contours and infrared provides temperature difference timing. By utilizing the spatiotemporal information of visible light image sequences and infrared temperature difference image sequences, a lightweight dual-stream network is used to generate a final leakage intensity map, achieving an end-to-end mapping from multimodal time-series signals to quantified leakage indicators. Based on the final leakage intensity map, a window leakage risk parameter map is generated, and a calibration parameter set is determined. Furthermore, based on the window leakage risk parameter map and the calibration parameter set, leakage points are precisely located. By simply inputting any specified rain intensity, the full-map leakage intensity distribution under that intensity can be generated in real time, achieving a leap in the ability to detect leakage under finite conditions and predict leakage under infinite conditions, thereby improving the accuracy of window rain test leakage detection. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application. Obviously, the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0018] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0019] Figure 1 This is an optional flowchart illustrating a method for detecting leakage during a rain test on a vehicle window, provided in an embodiment of this application. Figure 2 A schematic diagram of multiple fitting for a method for detecting leakage during a rain test on a vehicle window provided in an embodiment of this application; Figure 3A schematic diagram of a vehicle window rain test leakage detection system provided in this application embodiment; Figure 4 This is a schematic diagram of a vehicle window rain test leakage detection device provided in an embodiment of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.

[0021] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used in this application is for the purpose of describing embodiments of this application only and is not intended to be limiting of this application.

[0022] In the following description, references to "some embodiments," "this embodiment," "this application embodiment," and examples, etc., describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subset of all possible embodiments and may be combined with each other without conflict.

[0023] If the application documents contain similar descriptions such as "first / second", the following explanation shall be added: In the following description, the terms "first / second / third" are used only to distinguish similar objects and do not represent a specific order of objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0024] This application provides a method for detecting leakage during a rain test on a vehicle window. Figure 1 This is an optional flowchart illustrating a method for detecting leakage during a rain test on a vehicle window, provided in an embodiment of this application. Figure 1 The steps shown are explained.

[0025] S101. Simultaneously acquire the visible light image sequence and the original infrared temperature map sequence under rain on the car window; and generate an infrared temperature difference map sequence based on the original infrared temperature map sequence and the acquired set temperature inside the car.

[0026] In some embodiments of this application, before acquiring visible light image sequences and infrared raw temperature map sequences, the ambient temperature of the rain shower room, the set temperature inside the vehicle, the rain shower angle array, and the rain shower intensity array are set; under the same hardware trigger signal, the visible light image sequence and the infrared raw temperature map sequence under rain shower are acquired simultaneously; based on the infrared raw temperature map sequence and the set temperature inside the vehicle, an infrared temperature difference map sequence is generated.

[0027] For example, the ambient temperature of the rain shower room is set to T_amb (unit: °C), and the interior temperature of the vehicle is set to T_cabin (unit: °C), satisfying T_cabin < T_amb (i.e., low temperature inside the vehicle and high temperature outside the vehicle), with a temperature difference of no less than 10 °C. This serves as the physical benchmark for infrared detection. The interior temperature T_cabin is obtained in real time by a temperature sensor installed inside the vehicle cabin. The pixel values ​​P_amb and P_cabin corresponding to T_amb and T_cabin are calibrated according to the infrared camera, always assuming P_cabin < P_amb. A rain shower angle array angle_rain[i] (i=1,...,M) and a rain shower intensity array intensity_rain[j] (j=1,...,N) are defined to cover multiple rain shower angles and multiple intensity combinations.

[0028] A visible light-infrared coaxial binocular camera was installed, ensuring spatial alignment of the two cameras' fields of view. A high-transmittance infrared anti-reflection and scattering film was attached to the inner surface of the glass under test, covering the entire inner surface and extending its edge to the junction with the sealing strip (excluding the strip itself). This film blurs external raindrops into a uniform background in the visible light band, eliminating interference from water droplets on visible light textures; it maintains high transmittance in the infrared band, ensuring that temperature difference signals from the inner side of the glass can be properly received by the infrared camera. This film arrangement is the hardware foundation that distinguishes this solution from purely vision-based solutions.

[0029] Under each set of operating conditions [i][j], after the rain stabilizes, a sequence of K visible light images, Img_Vis_Raw[i][j][k] (k=1,2,...,K), is continuously acquired at a fixed frame rate. The visible light images are used to provide geometric contours and flow direction texture information of the water seepage traces.

[0030] Under the same hardware trigger signal as the visible light acquisition, the infrared camera is synchronously triggered to continuously acquire K frames of raw infrared temperature map sequence Img_IR_Raw[i][j][k], ensuring that each frame of visible light and infrared image is strictly aligned in time.

[0031] Subtract the vehicle interior set temperature T_cabin from each frame of the absolute temperature map pixel by pixel to obtain the infrared temperature difference map sequence Img_IR_Delta[i][j][k] = Img_IR_Raw[i][j][k] - T_cabin.

[0032] The signs of the difference results have explicit physical meanings: Positive value: The temperature of this pixel is higher than the set temperature T_cabin inside the vehicle, corresponding to the area with a temperature higher than T_cabin - including hot water droplets outside the vehicle (temperature close to T_amb) and initial water droplets that have just seeped into the vehicle and have not yet reached thermal equilibrium with the interior environment; Negative value: The temperature of this pixel is lower than the vehicle interior set temperature T_cabin, corresponding to an area with a temperature lower than T_cabin -- usually corresponding to a localized evaporative cooling effect caused by continuous leakage; Approaching zero: The pixel temperature has reached thermal equilibrium with the vehicle's interior environment, corresponding to stable residual water or dry glass areas.

[0033] The physical criterion based on the time-series temperature difference is as follows: Since P_amb > P_cabin, water droplets outside the vehicle exhibit a stable, large positive value in the difference graph (approximately T_amb - T_cabin). However, the difference value of water droplets seeping inside the vehicle shows a clear time-varying trajectory: initially, carrying external heat, the difference value is positive; as heat exchange and evaporative cooling occur in the low-temperature environment inside the vehicle, the difference value gradually decreases, turning negative after evaporation and cooling, then increases again and approaches 0, matching the temperature inside the vehicle. This trajectory is directly represented by a temperature difference sequence in this scheme, allowing for direct processing by the neural network without conversion back to temperature units. It also provides a directly quantifiable physical criterion in the numerical domain for the network to distinguish between water droplets hanging outside the vehicle and water seepage inside. Therefore, a single frame temperature difference cannot distinguish between the two; this scheme utilizes the subsequent time-series temperature difference changes for differentiation.

[0034] S102. Using a pre-defined lightweight dual-stream network, leakage detection is performed on the visible light image sequence and the infrared temperature difference map sequence to obtain the final leakage intensity map.

[0035] In some embodiments of this application, the lightweight dual-stream network takes a visible light image sequence and an infrared thermogram sequence as input and outputs a corresponding leakage intensity map. The lightweight dual-stream network employs a dual-stream encoding-fusion-decoding structure, taking K frames of visible light and infrared image sequences as input and outputting a single leakage intensity map (Map_Leak) with a resolution of H×W (consistent with the input image). Each pixel value represents the leakage intensity at that location (a floating-point number from 0 to 1). The structural configuration of the lightweight dual-stream network is shown in Table 1, where B represents the batch size.

[0036] Table 1

[0037] First, the lightweight dual-stream network is explained. The lightweight dual-stream network is designed to accurately learn the mapping relationship between visible light image sequences, infrared temperature difference sequence, and the final leakage intensity map.

[0038] The training method includes three parts: training dataset construction, network architecture and training objective design, and model training and optimization strategies.

[0039] First, the construction of the training dataset includes data sources, sample construction, and dataset partitioning. Each training sample comes from a set of rain conditions [i][j] (i.e., the i-th rain angle and the j-th intensity). A set of rain conditions [i][j] includes input and label. Input: X_Vis ∈ R (K×H×W×1) (K frames of visible light images stacked), X_IR ∈ R (K×H×W×1) (K frames of infrared temperature difference image sequence stacked). The label is the pixel-level leakage intensity label Label_Leak ∈ R (H×W×1) corresponding to the network output. The value range of each pixel is [0,1]. Multiple engineers jointly determine the leakage intensity level (no leakage = 0, slight dampness = 0.3, obvious water flow = 0.7, continuous dripping = 1.0) based on the water stain area and brightness in the visible light image and the temperature anomaly area at the corresponding position in the infrared temperature difference image. The average value is then used to generate a pixel-level label image, which is then smoothed by median filtering.

[0040] The dataset is randomly divided according to the rain condition combination [i][j] (i.e., the joint combination of rain angle and rain intensity), and divided into training set, validation set and test set in proportions of 70%, 15% and 15% respectively. During the division, it is ensured that any complete condition combination belongs to only one subset and does not appear in cross sets.

[0041] Second, the loss function uses pixel-level mean squared error (MSE): ; Where Map_Leak(u,v) is the leakage intensity predicted by the network; Label_Leak(u,v) is the actual leakage intensity at the corresponding location; H and W are the height and width of the output image, respectively; and u and v are the row and column pixel position indices.

[0042] Model training and optimization strategies. The optimizer and hyperparameter settings are shown in Table 2. The training process is as follows: 1. Randomly sample a batch from the training set and read the visible light time series tensor X_Vis, the infrared time series tensor X_IR, and the corresponding leakage intensity label Label_Leak.

[0043] 2. Input X_Vis into the visible light timing encoder to extract the visible light spatiotemporal features; input X_IR into the infrared timing encoder to extract the infrared temperature difference timing features.

[0044] 3. The two features are concatenated along the channel dimension, and after time-dimensional mean pooling, they are input into the fusion decoder to generate the initial leakage intensity map Map_Raw; at the same time, the infrared encoded features are input into the temporal discrimination module to generate the spatial probability weight map Prob_Leak.

[0045] 4. Upsample the Prob_Leak bilinear interpolation to the same size as Map_Raw, and multiply it pixel by pixel with Map_Raw to obtain the final leakage intensity map Map_Leak=Map_Raw×Prob_Leak_Up.

[0046] 5. Calculate the mean squared error loss L based on the predicted result Map_Leak and the true label Label_Leak, calculate the gradient of each network parameter using the backpropagation algorithm, and update the network parameters using the AdamW optimizer.

[0047] 6. After each epoch, calculate the average loss on the validation set; if the validation set loss does not decrease for 15 consecutive epochs, reduce the learning rate to 0.5 times its original value; if it does not decrease for 25 consecutive epochs, stop training and restore the model parameters corresponding to the minimum validation set loss.

[0048] 7. After training, save the network model with the lowest loss on the validation set as the inference model for subsequent window leakage detection.

[0049] Table 2

[0050] In some embodiments of this application, S102 can be implemented by S1021-S1026, as follows: S1021. The visible light image sequence and the infrared temperature difference map sequence are time-stacked through the input layer of a lightweight dual-stream network to obtain the visible light time-series tensor and the infrared time-series tensor.

[0051] S1022. Using a lightweight dual-stream network encoder, feature extraction is performed on the visible light temporal tensor and the infrared temporal tensor to obtain visible light features and infrared features.

[0052] S1023. Visible light features and infrared features are spliced ​​and averaged using a feature splicing and aggregation layer of a lightweight dual-stream network to obtain spliced ​​and fused features.

[0053] S1024. The temporal discrimination module of the lightweight dual-stream network is used to extract the temporal dimension features of the infrared features to obtain the spatial attention weight map.

[0054] S1025. The spliced ​​and fused features are convolutionally processed by a lightweight dual-stream network fusion decoder to obtain a preliminary leakage intensity map.

[0055] S1026. The preliminary leakage intensity map and the spatial attention weight map are fused through the final fusion output layer of the lightweight dual-stream network to obtain the final leakage intensity map.

[0056] For example, the input data for a lightweight two-stream network is as follows: 1. A visible light image sequence Img_Vis_Raw[k], k=1,2,...,K, with a shape of (H, W, 1) grayscale image; 2. Infrared temperature difference image sequence Img_IR_Delta[k], k=1,2,...,K, shape is (H, W, 1) single-channel difference image (signed pixel value difference).

[0057] The input layer of the lightweight two-stream network stacks K frames of visible light images along the time dimension to form a visible light temporal tensor X_Vis∈R(B×K×H×W×1); and stacks K frames of infrared temperature difference image sequences along the time dimension to form an infrared temporal tensor X_IR∈R(B×K×H×W×1).

[0058] The lightweight two-stream network visible light temporal encoder comprises two layers of 3D convolutions (3×3×3 kernels, with 16 and 32 filters respectively), batch normalization, ReLU activation, and 3D max pooling (2×2×2). The input is a stacked visible light temporal tensor (shape (B,K,H,W,1)), and the output is visible light features of shape (B,K,H / 4,W / 4,32).

[0059] The lightweight dual-stream network's infrared temporal encoder takes stacked infrared temporal tensors (of shape (B,K,H,W,1)) as input. First, the input tensor is rearranged to (B,H,W,K,1), placing the temporal dimension K after the spatial dimension. This ensures the network independently processes the corresponding K-frame temperature difference temporal sequence at each spatial location (u,v). Subsequently, it undergoes sequential processing via 1D temporal convolution (kernel 5, stride 1, filter 16), 1D max pooling (window 2, stride 2), 1D temporal convolution (kernel 3, stride 1, filter 32), 1D max pooling (window 2, stride 2), and BiLSTM (hidden layer dimension 16, bidirectional). Finally, the BiLSTM output is rearranged back to (B,K,H / 4,W / 4,32) to obtain the infrared features, maintaining the same size as the spatiotemporal features output by the visible light temporal encoder. This coding strategy enables the network to perceive the temporal trajectory of temperature difference at each pixel location, rather than relying solely on the instantaneous temperature difference value of a single frame.

[0060] The lightweight dual-stream network's feature concatenation and aggregation layer concatenates the outputs (B,K,H / 4,W / 4,32) from the visible light temporal encoder and the infrared temporal encoder (B,K,H / 4,W / 4,32) along the channel dimension to obtain (B,K,H / 4,W / 4,64). Mean pooling is then performed along the time dimension K, resulting in the concatenated and fused feature shape (B,H / 4,W / 4,64).

[0061] The lightweight dual-stream network's temporal discrimination module runs in parallel with the fusion decoder, not participating in feature reconstruction, but only outputting spatial attention weights. The input is the output features (B, K, H / 4, W / 4, 32) of the infrared temporal encoder. For each spatial location (u, v), its complete feature vector along the temporal dimension (dimension K×32) is extracted, mapped to one dimension through a fully connected layer, and then activated by a sigmoid function. The output is the probability that this location belongs to the true temporal characteristics of in-vehicle leakage. The output shape is (B, H / 4, W / 4, 1), denoted as the spatial attention weight map Prob_Leak.

[0062] The input to the lightweight dual-stream network's fusion decoder is (B, H / 4, W / 4, 64) from the feature concatenation and aggregation layer outputs. This is then processed sequentially through upsampling convolution (UpConv, 3×3, filter 64, stride 2), Batch Normalization (BN), ReLU, upsampling convolution (UpConv, 3×3, filter 32, stride 2), BN, ReLU, and a 3×3 convolution (filter 1), outputting a preliminary leakage intensity map Map_Raw ∈ (B, H, W, 1).

[0063] The final fusion output layer of the lightweight dual-stream network upsamples the Prob_Leak bilinear interpolation to H×W to obtain Prob_Leak_Up ∈ (B,H,W,1), which is then multiplied pixel-by-pixel with Map_Raw to obtain the final leakage intensity map Map_Leak (floating-point number) = Map_Raw × Prob_Leak_Up.

[0064] S103. Based on the final leakage intensity map, generate a window leakage risk parameter map.

[0065] In some embodiments of this application, S103 can be implemented by S1031 and S1032, as follows: S1031. Based on the final leakage intensity map and the pre-determined effective detection area mask, generate a leakage edge intensity map.

[0066] In some embodiments of this application, rain angle fusion is performed based on the final leakage intensity map and the pre-acquired rain intensity array to obtain a rain angle fused leakage intensity map; the rain angle fused leakage intensity map and the effective detection area mask are multiplied by pixels to obtain a leakage edge intensity map.

[0067] S1032. Based on the effective detection area mask and the leakage edge intensity map, perform polynomial fitting to obtain the window leakage risk parameter map.

[0068] In some embodiments of this application, effective pixel positions are determined based on the effective detection area mask; fitting coefficients and leakage intensity values ​​corresponding to the effective pixel positions are extracted from the leakage edge intensity map; wherein, the leakage intensity value has a corresponding normalized intensity value; based on the fitting coefficients, leakage intensity values, and normalized intensity values, polynomial fitting is performed to obtain a window leakage risk parameter map.

[0069] For example, based on the physical mechanism of window leakage, since the glass itself is an impermeable material, leakage can only occur at the interface between the glass edge and the sealing strip. Therefore, an effective detection area mask (H×W shape, binary image) needs to be pre-constructed to shield the internal areas of the glass and non-background areas.

[0070] The mask is generated as follows: 1. In the first visible light image, manually or semi-automatically define the precise outline (polygon) of the inner surface of the glass. 2. Shrink the outline inward to generate an annular strip area with a width of 2 to 5 pixels (this width covers the range of compression deformation of the adhesive strip and possible capillary leakage paths). 3. Set the pixels within the strip area to 1, and set the remaining pixels (including the inside of the glass and the background outside the car) to 0 to obtain Mask_Edge.

[0071] Input M×N final leakage intensity maps Map_Leak[i][j], all with shape (H,W) and pixel values ​​∈ [0,1], and a rainfall intensity array intensity_rain[j] (j=1,...,N) in mm / min; perform rainfall angle fusion based on the final leakage intensity maps and the rainfall intensity array, fixing the rainfall intensity index j, and taking the maximum value of each pixel in the leakage intensity maps Map_Leak[i][j] (i=1,...,M) under M rainfall angles for fusion: Map_Angle_Leak[j](u,v) = max_i { Map_Leak[i][j](u,v)}; Where (u,v) are pixel coordinates, and Map_Angle_Leak[j] (j=1,...,N) corresponds to N different rain intensities. After fusion, N rain angle fused leakage intensity maps are obtained. The physical basis of this fusion strategy is that under any rain angle, if a pixel shows leakage, it indicates that there is a risk of leakage at that location under that intensity. Taking the maximum value can avoid missed detections caused by occlusion from a single rain angle.

[0072] The Map_Angle_Leak[j] (j=1,...,N) obtained by fusing the above rain angles is multiplied pixel by pixel with the obtained Mask_Edge to achieve the constraint of the glass-adhesive strip connection line area: Map_Angle_Leak_Edge[j](u,v) = Map_Angle_Leak[j](u,v) × Mask_Edge(u,v); Subsequent pixel-level polynomial fitting uses the leakage edge intensity map Map_Angle_Leak_Edge[j](u,v) as input. Map_Angle_Leak_Edge[j](u,v) in areas outside the glass-adhesive strip connection line is forcibly set to zero and is not included in the fitting calculation.

[0073] For each valid pixel position (u,v) marked as Mask_Edge 1, extract the fitting coefficients (a, b, c) of the corresponding pixel position in Map_Angle_Leak_Edge[j] (i.e., the pixel position where Mask_Edge is 1); for all pixels in the glass body region, the non-glass background region, and outside of Mask_Edge, force the values ​​of all three channels to be set to zero (a=b=c=0).

[0074] The physical basis for this limitation is that vehicle window glass is a dense inorganic non-metallic material that water molecules cannot penetrate. All visible leaks (dripping, seepage, fogging) originate at the dynamic interface between the glass edge and the rubber strip. By precisely narrowing the detection range to this connection line, false responses caused by temperature differences, dirt, and uneven film materials inside the glass can be eliminated, significantly improving the physical reliability and engineering practicality of the fitted parameters.

[0075] For each pixel location (u,v), extract its leakage intensity value y_j under N different rain intensities: y_j = Map_Angle_Leak_Edge [j](u,v), corresponding to the normalized intensity value x_j = intensity_rain[j] / intensity_max.

[0076] Where intensity_max = max_j{ intensity_rain[j]}, is the maximum rain intensity value among all discrete working conditions.

[0077] like Figure 2 As shown, a cubic polynomial with physical constraints (forced to pass through the origin) is used for least squares fitting: y = a·x 3 + b·x 2 + c·x; Where x ∈ [0,1] is the normalized rainfall intensity, and y ∈ [0,1] is the predicted leakage intensity; where x and y are both dimensionless scalars; x is obtained by normalizing the actual rainfall intensity (mm / min) to the [0,1] interval; y is the pixel-level leakage intensity index, the closer the value is to 1, the more serious the leakage at that point.

[0078] The fitting objective is to minimize the sum of squared residuals: ; Where j is the index of the rainfall intensity, and N is the total number of rainfall intensities.

[0079] Finally, for each pixel position (u,v), the corresponding a, b, and c are output.

[0080] A cubic polynomial can simultaneously describe slow growth at low intensity, rapid growth at high intensity, and local saturation trends, while maintaining fitting accuracy with a small number of parameters.

[0081] Based on the above outputs a, b, and c, a 3-channel parametric map, Param_Map, with shape (H, W, 3), is obtained, as shown in Table 3.

[0082] Table 3

[0083] Param_Map is stored as a model of the risk parameters for window leakage. It is used to quickly generate the corresponding leakage intensity prediction map under any rain intensity without having to conduct rain tests again. The three channels of non-glass areas and invalid pixels are all set to zero.

[0084] For any given rain intensity x (normalized to [0,1]), substitute the pixel coefficients of the Param_Map into the formula y_pred(u,v) = a(u,v)·x 3 + b(u,v)·x 2 By adding c(u,v)·x, a leakage intensity map of the glass-sealing strip connection area at that intensity can be generated in real time.

[0085] S104. Determine the calibration parameter set; and based on the window leakage risk parameter diagram and the calibration parameter set, accurately locate the leakage point.

[0086] In some embodiments of this application, the plane of the calibration plate is closely fitted and parallel to the inner surface of the window glass, and the calibration plate is a checkerboard calibration plate of known size; based on the calibration plate, a set of calibration parameters is determined; and based on the window leakage risk parameter map and the set of calibration parameters, the leakage point is accurately located.

[0087] Understandably, by simultaneously acquiring visible light image sequences and infrared temperature difference image sequences, and attaching a high-transmittance infrared anti-reflection and scattering film to the inner surface of the glass, raindrops outside the vehicle in the visible light image are blurred into a uniform background while maintaining high transmission in the infrared band. This achieves complementary information separation from the signal source, using the geometric contours provided by visible light and the temporal sequence of temperature difference provided by infrared light. Utilizing the spatiotemporal information of the visible light image sequences and infrared temperature difference image sequences, a lightweight dual-stream network is used to generate a final leakage intensity map, achieving an end-to-end mapping from multimodal temporal signals to quantified leakage indicators. Based on the final leakage intensity map, a window leakage risk parameter map is generated, and a calibration parameter set is determined. Based on the window leakage risk parameter map and the calibration parameter set, the leakage point is accurately located. By simply inputting any specified rain intensity, the full-map leakage intensity distribution under that intensity can be generated in real time, achieving a leap in the ability to detect leakage under finite conditions and predict leakage under infinite conditions, thereby improving the accuracy of window rain test leakage detection.

[0088] In some embodiments of this application, determining the calibration parameter set in S104 can be achieved through S1041-S1043, as follows: S1041. Determine the calibration plate; wherein the plane of the calibration plate is in close contact with and parallel to the inner surface of the window glass, and the calibration plate is a checkerboard calibration plate of known size.

[0089] S1042. Based on the calibration board, determine the horizontal pixel equivalent factor and the vertical pixel equivalent factor.

[0090] In some embodiments of this application, the actual horizontal and vertical lengths of the calibration board are determined; the pixel coordinates of each corner point of the calibration board are obtained using a checkerboard corner detection algorithm; and the corresponding pixel distances in the horizontal and vertical directions of the calibration board are calculated based on the pixel coordinates of each corner point; the horizontal pixel equivalent factor is calculated based on the actual horizontal length and the corresponding horizontal pixel distance; and the vertical pixel equivalent factor is calculated based on the actual vertical length and the corresponding vertical pixel distance.

[0091] S1043. Determine the physical origin based on the corner points in the calibration board; and determine the image pixel coordinates corresponding to the physical origin based on the physical origin.

[0092] S1044. Generate a calibration parameter set based on the horizontal pixel equivalence factor, the vertical pixel equivalence factor, and the image pixel coordinates corresponding to the physical origin.

[0093] For example, before the test begins, a checkerboard calibration plate of known size (e.g., 10mm side length for each square, total size 100mm × 100mm) is placed on the inner surface of the glass to be tested, ensuring that the plane of the calibration plate is in close contact with and parallel to the inner surface of the glass. An image of the calibration plate is then captured using a calibrated visible light camera.

[0094] The pixel coordinates of each corner point are obtained using a checkerboard corner detection algorithm. Combined with the known physical dimensions of the calibration board, the pixel equivalent factors (unit: mm / px) in the horizontal and vertical directions are calculated respectively. scale_u = Actual horizontal length of calibration board (mm) / Pixel distance of calibration board in the horizontal direction (px); scale_v = actual vertical length of calibration board (mm) / corresponding pixel distance in the vertical direction of calibration board (px); If the camera's optical axis is perpendicular to the glass plane and lens distortion is negligible, we can take scale = scale_u ≈ scale_v; if there is obvious perspective or distortion, we can store scale_u and scale_v respectively.

[0095] Simultaneously, a specific feature corner point on the calibration board (such as the first corner point in the upper left corner of a chessboard) is selected as the physical origin. The position of this corner point in the image pixel coordinate system is recorded as (u0, v0), and the corresponding physical coordinates of this point are defined as (0,0). This determines the calibration parameter set (scale_u, scale_v, u0, v0).

[0096] In this application, the image pixel coordinate system takes the top left corner of the image as the origin, with the positive u-axis pointing horizontally to the right and the positive v-axis pointing vertically downwards. For any valid pixel position (u,v) in the output (i.e., the pixel position marked with Mask_Edge as 1), its actual physical coordinates (X_mm, Y_mm) relative to the physical origin (0,0) are calculated using the following formula: X_mm = (u - u0) × scale_u; Y_mm = (v - v0) × scale_v; Wherein, when (u,v) = (u0,v0), (X_mm, Y_mm) = (0, 0), which is the physical origin; when u > u0, X_mm is a positive value, indicating that the pixel is located to the right of the physical origin; when u < u0, it is a negative value, indicating that it is located to the left; when v > v0, Y_mm is a positive value, indicating that the pixel is located below the physical origin; when v < v0, it is a negative value, indicating that it is located above.

[0097] In actual engineering applications, in addition to the output Param_Map (shape H×W×3, storing the a, b, and c coefficients for each pixel), a calibration parameter set (scale_u, scale_v, u0, v0) is also output and saved together with the Param_Map.

[0098] The specific procedure for locating leaks is as follows: 1. Based on the specified rain intensity x, substitute the pixel coefficients of Param_Map to calculate the leakage intensity map Map_Pred(u,v); 2. Filter pixel areas in Map_Pred where the leakage intensity is higher than a preset threshold (e.g., 0.5); 3. Convert any selected pixel (u,v) into its actual physical coordinates (X_mm, Y_mm); 4. Using the physical origin as a reference, perform actual distance measurements and markings on the glass or sealing strip to accurately locate the leak point. Invalid pixels inside the glass and outside the Mask_Edge are not included in the above mapping calculation.

[0099] This application has the following beneficial effects: First, by constructing a temperature difference environment with low temperature inside the vehicle and high temperature outside the vehicle as the physical benchmark for infrared detection, and combining a visible light-infrared coaxial binocular synchronous acquisition strategy, a high-transmittance infrared anti-reflection scattering film is attached to the inner surface of the glass to blur the raindrops outside the vehicle in the visible light image into a uniform background. This effectively eliminates the influence of interference factors such as raindrops and reflections outside the vehicle on the detection results, and realizes stable acquisition and mode decoupling of leakage signals under complex rain conditions.

[0100] Secondly, based on pixel-by-pixel temporal analysis of K-frame infrared temperature difference image sequences, the essential difference in temporal morphology between raindrops outside the vehicle (with a constant large positive temperature difference value) and water droplets inside the vehicle (with a time-varying trajectory where the temperature difference value changes from positive to negative and then returns to zero) is quantified into a discriminable numerical criterion. The infrared temporal encoder and temporal discrimination module in the dual-stream network enable automatic separation of the two types of signals, fundamentally solving the technical problem of not being able to distinguish between beads hanging outside the vehicle and water seepage inside the vehicle in traditional visible light detection.

[0101] Furthermore, by using a dual-stream coding-fusion-decoding network structure, the geometric texture information of the visible light image sequence and the temporal thermodynamic information of the infrared temperature difference image sequence are fully utilized to output a leakage intensity map with pixel-level continuous values ​​of 0 to 1. This transforms the traditional qualitative judgment that relies on manual visual inspection into a quantifiable and comparable objective evaluation index, thereby improving the consistency and accuracy of rain test evaluation.

[0102] Finally, based on pixel-level cubic polynomial fitting with physical constraints, the leakage detection results under finite rain conditions are transformed into a parametric response model. This allows engineers to predict the leakage intensity at each pixel location in real time simply by substituting any specified rain intensity. This overcomes the limitation of traditional detection methods that only "measure once and know for a short time," and expands the capability from discrete condition detection to continuous condition prediction. It provides an efficient and computable engineering tool for the comprehensive evaluation of vehicle window sealing quality.

[0103] Based on the above embodiments of the method for detecting leakage during a rain test on a vehicle window, this application also provides a system for detecting leakage during a rain test on a vehicle window, such as... Figure 3 As shown, Figure 3 This is a schematic diagram of a vehicle window rain test leakage detection system provided in an embodiment of this application. The vehicle window rain test leakage detection system 3 includes: an acquisition module 301, a generation module 302, a detection module 303, and a determination module 304; wherein, The acquisition module 301 is used to simultaneously acquire a visible light image sequence and an infrared raw temperature map sequence under rain conditions on a car window. The generation module 302 is used to generate an infrared temperature difference map sequence based on the original infrared temperature map sequence and the obtained in-vehicle set temperature. The detection module 303 is used to perform leakage detection on the visible light image sequence and the infrared temperature difference map sequence through a pre-determined lightweight dual-stream network to obtain the final leakage intensity map. The generation module 302 is also used to generate a window leakage risk parameter map based on the final leakage intensity map; The determining module 304 is used to determine the calibration parameter set; and to accurately locate the leakage point based on the window leakage risk parameter map and the calibration parameter set.

[0104] Based on the above embodiments of the method for detecting leakage during a rain test on a vehicle window, this application also provides a device for detecting leakage during a rain test on a vehicle window, such as... Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of a vehicle window rain test leakage detection device provided in an embodiment of this application. The vehicle window rain test leakage detection device 4 includes: a processor 401 and a memory 402. The memory 402 is used to store computer programs; the processor 401 is used to call and run the computer programs from the memory to execute a vehicle window rain test leakage detection method as described in the above embodiment.

[0105] In the embodiments of this application, the processor 401 described above can be at least one of the following: Application-Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor. It is understood that for different devices, the electronic device used to implement the above processor function can also be other types, and the embodiments of this application do not specifically limit it.

[0106] This application provides a computer-readable storage medium storing a computer program for implementing, when executed by a processor, a method for detecting leakage during a rain test on a vehicle window as described in any of the above embodiments.

[0107] For example, the program instructions corresponding to a vehicle window rain test leakage detection method in this embodiment can be stored on a storage medium such as an optical disc, hard disk, or USB flash drive. When the program instructions corresponding to a vehicle window rain test leakage detection method in the storage medium are read or executed by an electronic device, a vehicle window rain test leakage detection method as described in any of the above embodiments can be implemented.

[0108] Furthermore, in the embodiments of this application, the functional modules can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional module.

[0109] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the method of this embodiment. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0110] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the embodiments in this application are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, these will not be repeated here.

[0111] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.

[0112] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.

[0113] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0114] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0115] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0116] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0117] The above description is merely an embodiment of this application, but the protection scope of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A method for detecting leakage in vehicle windows during a rain test, characterized in that, include: Simultaneously acquire visible light image sequences and raw infrared temperature map sequences under rain conditions on car windows; Based on the original infrared temperature map sequence and the obtained in-vehicle set temperature, an infrared temperature difference map sequence is generated; Leakage detection is performed on the visible light image sequence and the infrared temperature difference image sequence using a pre-determined lightweight dual-stream network to obtain the final leakage intensity map. Based on the final leakage intensity map, a window leakage risk parameter map is generated. Determine the calibration parameter set; Based on the window leakage risk parameter map and the calibration parameter set, the leakage point is accurately located.

2. The method according to claim 1, characterized in that, The process of performing leakage detection on the visible light image sequence and the infrared thermogram sequence using a pre-determined lightweight dual-stream network to obtain a final leakage intensity map includes: The visible light image sequence and the infrared temperature difference map sequence are time-stacked through the input layer of the lightweight dual-stream network to obtain a visible light time-series tensor and an infrared time-series tensor. The encoder of the lightweight dual-stream network extracts features from the visible light temporal tensor and the infrared temporal tensor to obtain visible light features and infrared features. The visible light features and the infrared features are spliced ​​and averaged using the feature splicing and aggregation layer of the lightweight dual-stream network to obtain spliced ​​and fused features. The time-dimension feature extraction of the infrared features is performed through the time-series discrimination module of the lightweight dual-stream network to obtain a spatial attention weight map. The spliced ​​and fused features are convolutionally processed by the fusion decoder of the lightweight dual-stream network to obtain a preliminary leakage intensity map. The final leakage intensity map is obtained by fusing the preliminary leakage intensity map and the spatial attention weight map through the final fusion output layer of the lightweight dual-stream network.

3. The method according to claim 1, characterized in that, The process of generating a window leakage risk parameter map based on the final leakage intensity map includes: Based on the final leakage intensity map and the pre-determined effective detection area mask, a leakage edge intensity map is generated; Based on the effective detection area mask and the leakage edge intensity map, a polynomial fitting is performed to obtain the window leakage risk parameter map.

4. The method according to claim 3, characterized in that, The step of generating a leakage edge intensity map based on the final leakage intensity map and a pre-determined effective detection area mask includes: Based on the final leakage intensity map and the pre-acquired rain intensity array, rain angle fusion is performed to obtain a rain angle fused leakage intensity map; The leakage edge intensity map is obtained by multiplying the leakage intensity map by pixels of the rain angle fusion map and the effective detection area mask.

5. The method according to claim 3, characterized in that, The process of performing polynomial fitting based on the effective detection area mask and the leakage edge intensity map to obtain the window leakage risk parameter map includes: Based on the effective detection area mask, the effective pixel positions are determined; Extract the fitting coefficients corresponding to the effective pixel positions and the leakage intensity values ​​corresponding to the effective pixel positions from the leakage edge intensity map; wherein, the leakage intensity values ​​have corresponding normalized intensity values; Based on the fitting coefficients, the leakage intensity value, and the normalized intensity value, a polynomial fitting is performed to obtain the window leakage risk parameter map.

6. The method according to claim 1, characterized in that, The determination of the calibration parameter set includes: A calibration plate is determined; wherein the plane of the calibration plate is closely fitted and parallel to the inner surface of the vehicle window glass, and the calibration plate is a checkerboard calibration plate of known size; Based on the calibration board, the horizontal pixel equivalent factor and the vertical pixel equivalent factor are determined; Based on the corner points in the calibration board, the physical origin is determined; and based on the physical origin, the image pixel coordinates corresponding to the physical origin are determined. A calibration parameter set is generated based on the horizontal pixel equivalent factor, the vertical pixel equivalent factor, and the image pixel coordinates corresponding to the physical origin.

7. The method according to claim 6, characterized in that, The determination of the horizontal pixel equivalent factor and the vertical pixel equivalent factor based on the calibration board includes: Determine the actual horizontal and vertical lengths of the calibration plate; The pixel coordinates of each corner point of the calibration board are obtained by using a checkerboard corner detection algorithm; and the corresponding pixel distances in the horizontal and vertical directions of the calibration board are calculated based on the pixel coordinates of each corner point of the calibration board. The horizontal pixel equivalent factor is calculated based on the actual length in the horizontal direction and the corresponding pixel distance in the horizontal direction; The vertical pixel equivalent factor is calculated based on the actual length in the vertical direction and the corresponding pixel distance in the vertical direction.

8. A vehicle window rain test leakage detection system, characterized in that, include: The module comprises an acquisition module, a generation module, a detection module, and a determination module; among which, The acquisition module is used to simultaneously acquire a visible light image sequence and an infrared raw temperature map sequence under rain conditions on a car window; The generation module is used to generate an infrared temperature difference map sequence based on the original infrared temperature map sequence and the acquired in-vehicle set temperature. The detection module is used to perform leakage detection on the visible light image sequence and the infrared temperature difference map sequence through a pre-determined lightweight dual-stream network to obtain the final leakage intensity map. The generation module is also used to generate a window leakage risk parameter map based on the final leakage intensity map; The determining module is used to determine the calibration parameter set; and to accurately locate the leakage point based on the window leakage risk parameter map and the calibration parameter set.

9. A vehicle window rain test leakage detection device, characterized in that, include: Processor and memory, of which, The memory is used to store computer programs; The processor is configured to call and run the computer program from the memory to perform the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, It stores executable instructions for causing a processor to execute, thereby implementing the method of any one of claims 1 to 7.