Weather early warning method and device and storage medium
By using the signal strength and frequency offset of the radar sensor to determine the precipitation status and type of the vehicle's environment, the problems of accurate and timely weather warning in bad weather are solved, and the safety of the vehicle in bad weather is improved.
Patent Information
- Application Number
- CN202510391907.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-06-27
AI Technical Summary
The accuracy and timeliness of weather warnings in severe weather in prior art are difficult to guarantee, especially when visual recognition devices are blocked.
By controlling the radar sensor to emit radar signals, collect the signal strength and frequency offset of the echo signal, determine whether the vehicle's environment is in a precipitation state, and obtain the precipitation type and precipitation amount based on the signal strength and frequency offset for early warning.
It improves the accuracy and timeliness of weather detection and early warning in bad weather, and ensures the safety of vehicles driving in bad weather.
Smart Images

Figure CN120214801A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of vehicle control, and particularly to a method, device, and storage medium for weather warning. Background Art
[0002] With the increase in the number of vehicles, the potential safety hazards of vehicle driving have become diversified. For example, when a vehicle encounters bad weather during driving, in order to ensure the safe driving of the vehicle, the driver needs to immediately react and adjust and control the various functions and components of the vehicle. This requires a relatively high reaction speed from the driver and is rather cumbersome in operation. In the related art, a vision recognition device is used to detect the weather condition of the road where the vehicle is located. In the related art, when encountering weather conditions with low visibility such as fog, rain, or snow, the vision recognition device is easily blocked, thus affecting the accuracy of weather warning. Therefore, how to ensure the accuracy and timeliness of weather warning is a problem that needs to be solved. Summary of the Invention
[0003] The embodiments of the present application provide a method, device, and storage medium for weather warning, which can be used to ensure the accuracy and timeliness of weather warning. The technical solutions are as follows:
[0004] On the one hand, the embodiments of the present application provide a method for weather warning, the method comprising:
[0005] Controlling a radar sensor to emit radar signals at a preset frequency;
[0006] Collecting echo signals corresponding to the radar signals;
[0007] Obtaining the signal intensity and frequency offset of the echo signals;
[0008] Based on the signal intensity, obtaining a precipitation detection result of the environment where the vehicle is located, the precipitation detection result of the environment where the vehicle is located indicating whether the environment where the vehicle is located is in a precipitation state;
[0009] In response to obtaining the precipitation detection result of the environment where the vehicle is located indicating that the environment where the vehicle is located is in the precipitation state, obtaining the precipitation type and precipitation amount based on the signal intensity and the frequency offset;
[0010] Issuing a warning for the precipitation type and the precipitation amount.
[0011] On the other hand, a device for weather warning is provided, the device comprising:
[0012] A control module, configured to control a radar sensor to emit radar signals at a preset frequency;
[0013] A collection module, configured to collect echo signals corresponding to the radar signals;
[0014] A first acquisition module, configured to acquire the signal intensity and frequency offset of the echo signal;
[0015] A second acquisition module, configured to acquire a precipitation detection result of the environment where the vehicle is located based on the signal intensity, and the precipitation detection result of the environment where the vehicle is located indicates whether the environment where the vehicle is located is in a precipitation state;
[0016] A third acquisition module, configured to, in response to acquiring the precipitation detection result of the environment where the vehicle is located indicating that the environment where the vehicle is located is in the precipitation state, acquire the precipitation type and precipitation amount based on the signal intensity and the frequency offset;
[0017] An early warning module, configured to give an early warning of the precipitation type and the precipitation amount.
[0018] On the other hand, a non-transitory computer-readable storage medium is further provided, characterized in that a computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the method for weather early warning described in any one of the above.
[0019] On the other hand, a computer program product is further provided, the computer program product includes computer instructions, and when the computer instructions are executed by a processor, the steps of the method for weather early warning described in any one of the above are implemented.
[0020] The technical solution provided by this application at least brings the following beneficial effects:
[0021] This application acquires the signal intensity and frequency offset of the echo signal by collecting the echo signal corresponding to the radar signal emitted by the radar sensor; then determines whether the environment where the vehicle is located is in a precipitation state based on the signal intensity of the echo signal; if it is detected that the environment where the vehicle is located is in a precipitation state, acquires the precipitation type and precipitation amount based on the signal intensity and frequency offset of the echo signal; and gives an early warning of the precipitation type and precipitation amount. By combining the frequency offset and the signal intensity, the precipitation type and precipitation amount are judged more intuitively and accurately. Through the high penetration ability and high acquisition frequency of the radar sensor, the accuracy and timeliness of weather detection and early warning in bad weather such as rainy days, snowy days and foggy days are improved, ensuring the safety of the vehicle when driving in bad weather. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0023] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0024] Figure 2 It is a flowchart of a weather warning method provided by an embodiment of the present application;
[0025] Figure 3 It is a schematic structural diagram of a weather warning device provided by an embodiment of the present application. Specific embodiments
[0026] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the implementation manners of the present application in detail with reference to the accompanying drawings.
[0027] An embodiment of the present application provides a weather warning method. Please refer to Figure 1 , which shows a schematic diagram of the method implementation environment provided by an embodiment of the present application. This implementation environment may include: HCU (Hybrid Control Unit, vehicle controller) 11, radar sensor 12, HUD (Head-Up Display, head-up display system) 13, and in-vehicle audio 14.
[0028] In a possible implementation manner, the radar sensor 12 is fixed in any direction around the vehicle at a position 0.5 meters - 1 meter above the ground through a shockproof bracket, and is used to emit radar signals and collect echo signals corresponding to the radar signals, so that the HCU 11 can obtain the signal strength and frequency offset of the echo signals, and is used to determine whether the environment where the vehicle is located is in a precipitation state, and after determining that the environment where the vehicle is located is in a precipitation state, determine the precipitation type and precipitation amount.
[0029] Optionally, the HUD 13 is located in front of the driver's line of sight and is used to project the precipitation type, so that the driver can view the precipitation type without lowering the head. The in-vehicle audio 14 is used to broadcast the precipitation type and precipitation amount. Among them, the HCU 11, radar sensor 12, HUD 13, and in-vehicle audio 14 establish a communication connection through a wired or wireless network.
[0030] Based on the above Figure 1 shown implementation environment, an embodiment of the present application provides a weather warning method as Figure 2 shown. Taking this method applied to the HCU as an example, this method includes steps 201 - step 206.
[0031] In step 201, the HCU controls the radar sensor to emit radar signals at a preset frequency.
[0032] In a possible implementation, the radar sensor can be a 24 GHz (gigahertz) microwave radar sensor or a 77 GHz millimeter-wave radar sensor, and is fixed in any direction around the vehicle at a height of 0.5 meters to 1 meter from the ground through a shockproof bracket. Optionally, the HCU controls the radar sensor to emit radar signals at a preset frequency, including: the HCU controls the microwave radar sensor or the millimeter-wave radar sensor to emit radar signals at a frequency of 1000 times per second, and emits at a higher frequency to ensure the timeliness of detection and warning.
[0033] In step 202, the HCU acquires the echo signals corresponding to the radar signals.
[0034] Exemplarily, the HCU acquires the echo signals corresponding to the radar signals, and based on the duration from the emission of the radar signals by the radar sensor to the reception of each echo signal, calculates the distance between the reflection target corresponding to each echo signal and the vehicle, and then filters out the echo signals with a distance between 50 meters and 200 meters for subsequent detection. Among them, the reflection target can be raindrops, snowflakes, fog, etc. in the environment where the vehicle is located.
[0035] Optionally, the method for calculating the distance between the reflection target corresponding to each echo signal and the vehicle includes, but is not limited to: the HCU calculates the result of multiplying the duration from the emission of the radar signal by the radar sensor to the reception of the echo signal by the speed of light, and takes the calculation result as the distance between the reflection target corresponding to the echo signal and the vehicle.
[0036] In a possible implementation, after completing the acquisition of the echo signals corresponding to the radar signals and the filtering of the echo signals, the echo signals are filtered to remove the interference of wind noise; the echo signals are converted from time-domain signals to frequency-domain signals.
[0037] Exemplarily, the method for filtering the echo signals includes, but is not limited to: the HCU filters the echo signals through a digital filter to remove low-frequency interferences such as wind noise. Optionally, the digital filter can be a low-pass filter. Among them, wind noise is formed by the existence of wind in the environment where the vehicle is located. The reflection target will generate low-frequency signals due to minute vibrations, and these low-frequency signals are superimposed on the true echo signals of the reflection target. The low-pass filter in the digital filter can filter out low-frequency interferences to facilitate better extraction of target information.
[0038] Optionally, after removing the interference of wind noise, the method for converting the echo signals from time-domain signals to frequency-domain signals includes, but is not limited to: the HCU converts the echo signals from time-domain signals to frequency-domain signals through FFT (Fast Fourier Transform) to facilitate the analysis of the spectral characteristics of the echo signals.
[0039] In step 203, the HCU obtains the signal strength and frequency offset of the echo signal.
[0040] In a possible implementation, after obtaining the echo signal in the frequency domain, the HCU obtains the signal strength and frequency offset of the echo signal, including: the HCU can calculate the amplitude value of the echo signal in the frequency domain as the signal strength of the echo signal, and calculate the difference between the frequency of the echo signal and the reference frequency as the frequency offset of the echo signal. Exemplarily, the reference frequency can be obtained by detecting the frequency of the echo signal in the non-precipitation state. Optionally, the formula for calculating the amplitude of the echo signal is as follows:
[0041]
[0042] X(f) is the echo signal in the frequency domain, R e (X(f)) is the real part of the echo signal in the frequency domain, I m (X(f)) is the imaginary part of the echo signal in the frequency domain.
[0043] In step 204, the HCU obtains the precipitation detection result of the environment where the vehicle is located based on the signal strength, and the precipitation detection result of the environment where the vehicle is located indicates whether the environment where the vehicle is located is in a precipitation state.
[0044] Optionally, after determining the signal strength of the echo signal, the HCU obtains the precipitation detection result of the environment where the vehicle is located based on the signal strength, where the precipitation detection result of the environment where the vehicle is located indicates whether the environment where the vehicle is located is in a precipitation state. Exemplarily, the HCU obtains the precipitation detection result of the environment where the vehicle is located based on the signal strength, including: in response to the signal strength being less than or equal to the first strength threshold and greater than the fourth strength threshold, obtaining the precipitation detection result of the environment where the vehicle is located indicating that the environment where the vehicle is located is in a precipitation state.
[0045] In a possible implementation, after obtaining the signal strength of the echo signal, the HCU compares the signal strength of the echo signal with the first strength threshold and the fourth strength threshold. If the signal strength is less than or equal to the first strength threshold and greater than the fourth strength threshold, the HCU obtains the precipitation detection result of the environment where the vehicle is located indicating that the environment where the vehicle is located is in a precipitation state; if the signal strength is greater than or equal to the first strength threshold, or less than the fourth strength threshold, the HCU obtains the precipitation detection result of the environment where the vehicle is located indicating that the environment where the vehicle is located is not in a precipitation state.
[0046] Exemplarily, the first strength threshold can be set to the signal strength of the echo signal in the state of just starting to fog, and the fourth strength threshold can be set to the signal strength of the echo signal under the daily maximum rainfall, and it is required that the first strength threshold is greater than the fourth strength threshold.
[0047] In step 205, in response to obtaining a precipitation detection result of the vehicle's environment indicating that the vehicle's environment is in a precipitation state, the HCU obtains the precipitation type and precipitation amount based on the signal strength and frequency offset.
[0048] Optionally, after obtaining a precipitation detection result of the vehicle's environment indicating that the vehicle's environment is in a precipitation state, the HCU obtains the precipitation type and precipitation amount based on the signal strength and frequency offset, including: determining the precipitation amount based on the signal strength; in response to the frequency offset reaching a first change amount but not reaching a second change amount, the signal strength being less than or equal to a first intensity threshold and greater than a second intensity threshold, determining that the precipitation type is fog; in response to the frequency offset reaching the second change amount but not reaching the third change amount, the signal strength being less than or equal to the second intensity threshold and greater than the third intensity threshold, determining that the precipitation type is snow; in response to the frequency offset reaching the third change amount, the signal strength being less than or equal to the third intensity threshold and greater than the fourth intensity threshold, determining that the precipitation type is rain.
[0049] Exemplarily, determining the precipitation amount based on the signal strength includes: the HCU determines the precipitation amount of the vehicle's environment based on the signal strength according to the correspondence between the signal strength and the actual precipitation amount. Among them, the correspondence between the signal strength and the actual precipitation amount can be determined according to experiments. Optionally, the HCU further compares the frequency offset of the echo signal with the first change amount, the second change amount, and the third change amount, and compares the signal strength of the echo signal with the second intensity threshold and the third intensity threshold.
[0050] In a possible implementation, if the frequency offset is greater than or equal to the first change amount, the frequency offset is less than or equal to the second change amount, the signal strength is less than or equal to the first intensity threshold and greater than the second intensity threshold, the HCU determines that the precipitation type is fog. If the frequency offset is greater than the second change amount and less than or equal to the third change amount, the signal strength is less than or equal to the second intensity threshold and greater than the third intensity threshold, the HCU determines that the precipitation type is snow; if the frequency offset is greater than the third change amount, the signal strength is less than or equal to the third intensity threshold and greater than the fourth intensity threshold, the HCU determines that the precipitation type is rain.
[0051] Exemplarily, the second intensity threshold and the third intensity threshold are between the first intensity threshold and the fourth intensity threshold, and the second intensity threshold is greater than the third intensity threshold. For example, the second intensity threshold can be set to the signal strength of the minimum echo signal in a snowy state, and the third intensity threshold can be set to the signal strength of the minimum echo signal in a rainy state.
[0052] Optionally, the first variation can be set to the frequency offset of the minimum echo signal in foggy weather, the second variation can be set to the frequency offset of the minimum echo signal in snowy weather, and the third variation can be set to the frequency offset of the minimum echo signal in rainy weather, and it is required that the first variation is less than the second variation, and the second variation is less than the third variation.
[0053] In step 206, the HCU gives early warnings about the precipitation type and precipitation amount.
[0054] Optionally, after determining the precipitation type and precipitation amount of the vehicle's environment, the HCU gives early warnings about the precipitation type and precipitation amount, including: the HCU gives early warnings about different precipitation amounts through different colors and displays the precipitation type.
[0055] In a possible implementation, the way for the HCU to give early warnings about different precipitation amounts through different colors includes, but is not limited to: when the precipitation amount is greater than the first precipitation threshold and less than or equal to the second precipitation threshold, the HCU controls the lights on the instrument panel to flash in green; when the precipitation amount is greater than the second precipitation threshold and less than or equal to the third precipitation threshold, the HCU controls the lights on the instrument panel to flash in yellow; when the precipitation amount is greater than the third precipitation threshold, the HCU controls the lights on the instrument panel to flash in red, where the colors of the light flashes can be adjusted.
[0056] Exemplarily, the first precipitation threshold, the second precipitation threshold, and the third precipitation threshold can be set according to experience, and it is required that the first precipitation threshold is less than the second precipitation threshold, and the second precipitation threshold is less than the third precipitation threshold. For example, the first precipitation threshold can be 0, the second precipitation threshold can be 2 mm / h, and the third precipitation threshold can be 5 mm / h.
[0057] Optionally, the way for the HCU to display the precipitation type includes, but is not limited to: the HCU projects the precipitation type onto the HUD in front of the driver's line of sight, so that the driver can view the precipitation type without lowering the head. Exemplarily, the HCU can also broadcast the precipitation type and precipitation amount through the in-vehicle audio, where the broadcast volume can be set to 75 decibels.
[0058] In a possible implementation, the HCU can also display the precipitation type, precipitation amount, warning level, and recommended driving speed through the display screen on the instrument panel, where the information under different precipitation types can be displayed in different colors of text.
[0059] Colors for displaying information under different precipitation types, including but not limited to: when the precipitation type is fog, information can be displayed in gray text; when the precipitation type is rain, information can be displayed in blue text; when the precipitation type is snow, information can be displayed in purple text.
[0060] Optionally, the warning level and the recommended driving speed can be determined based on the precipitation type and the precipitation amount. Among them, the correspondence between the precipitation type and the precipitation amount and the warning level and the recommended driving speed can be set according to experience. Exemplarily, the display screen of the instrument panel also provides a data storage function for finding historical weather data within a certain period. For example, the certain period can be set to 24 hours.
[0061] In a possible implementation, after collecting the echo signal corresponding to the radar signal, the HCU identifies the other vehicles or pedestrians around the vehicle based on the echo signal; tracks the other vehicles or pedestrians around the vehicle in real time; and in response to the distance between at least one of the other vehicles or pedestrians and the vehicle being less than the distance threshold, gives a warning of the collision risk. Exemplarily, the HCU can identify and track the other vehicles or pedestrians around the vehicle through a target detection algorithm. Among them, the target detection algorithm includes the Hough transform.
[0062] Exemplarily, the HCU can also calculate the distance between the other vehicles or pedestrians and the vehicle based on the echo signal. Then compare the distance between the other vehicles or pedestrians and the vehicle with the distance threshold. If the distance between at least one of the other vehicles or pedestrians and the vehicle is less than the distance threshold, the HCU gives a warning of the collision risk through the display screen of the instrument panel.
[0063] In the embodiment of the present application, by collecting the echo signal corresponding to the radar signal emitted by the radar sensor, the signal intensity and frequency offset of the echo signal are obtained; then based on the signal intensity of the echo signal, it is judged whether the environment where the vehicle is located is in a precipitation state; if it is detected that the environment where the vehicle is located is in a precipitation state, the precipitation type and precipitation amount are obtained based on the signal intensity and frequency offset of the echo signal; and a warning is given for the precipitation type and precipitation amount. By combining the frequency offset and signal intensity, the precipitation type and precipitation amount are judged more intuitively and accurately. Because the radar sensor has high penetration ability and high acquisition frequency, the accuracy and timeliness of weather detection and warning in bad weather such as rainy days, snowy days and foggy days are improved, ensuring the safety of the vehicle when driving in bad weather.
[0064] See Figure 3 , the embodiment of the present application provides a weather warning device, and the device includes:
[0065] A control module 301, configured to control the radar sensor to emit radar signals at a preset frequency;
[0066] The acquisition module 302 is configured to acquire an echo signal corresponding to a radar signal;
[0067] The first acquisition module 303 is configured to acquire the signal intensity and frequency offset of the echo signal;
[0068] The second acquisition module 304 is configured to obtain a precipitation detection result of the environment where the vehicle is located based on the signal intensity, and the precipitation detection result of the environment where the vehicle is located indicates whether the environment where the vehicle is located is in a precipitation state;
[0069] The third acquisition module 305 is configured to, in response to obtaining the precipitation detection result of the environment where the vehicle is located indicating that the environment where the vehicle is located is in a precipitation state, acquire the precipitation type and precipitation amount based on the signal intensity and frequency offset;
[0070] The warning module 306 is configured to give a warning about the precipitation type and precipitation amount.
[0071] In a possible implementation manner, the acquisition module 302 is further configured to filter the echo signal to remove the interference of wind noise; convert the echo signal from a time-domain signal to a frequency-domain signal.
[0072] In a possible implementation manner, the third acquisition module 305 is configured to determine the precipitation amount based on the signal intensity; in response to the frequency offset reaching a first change amount but not reaching a second change amount, and the signal intensity being less than or equal to a first intensity threshold and greater than a second intensity threshold, determine that the precipitation type is fogging; in response to the frequency offset reaching the second change amount but not reaching a third change amount, and the signal intensity being less than or equal to the second intensity threshold and greater than a third intensity threshold, determine that the precipitation type is snowfall; in response to the frequency offset reaching the third change amount, and the signal intensity being less than or equal to the third intensity threshold and greater than a fourth intensity threshold, determine that the precipitation type is rainfall.
[0073] In a possible implementation manner, the second acquisition module 304 is configured to, in response to the signal intensity being less than or equal to the first intensity threshold and greater than the fourth intensity threshold, obtain the precipitation detection result of the environment where the vehicle is located indicating that the environment where the vehicle is located is in a precipitation state.
[0074] In a possible implementation manner, the warning module 306 is configured to give warnings about different precipitation amounts through different colors and display the precipitation type.
[0075] In a possible implementation manner, the acquisition module 302 is further configured to identify other vehicles or pedestrians around the vehicle based on the echo signal; continuously track other vehicles or pedestrians around the vehicle; in response to the distance between at least one of the other vehicles or pedestrians and the vehicle being less than a distance threshold, give a warning about the collision risk.
[0076] This device acquires the echo signal corresponding to the radar signal emitted by the radar sensor, and obtains the signal intensity and frequency offset of the echo signal; then determines whether the environment where the vehicle is located is in a precipitation state based on the signal intensity of the echo signal; if it is detected that the environment where the vehicle is located is in a precipitation state, obtains the precipitation type and precipitation amount based on the signal intensity and frequency offset of the echo signal; and issues a warning for the precipitation type and precipitation amount. By combining the frequency offset and signal intensity, it is possible to more intuitively and accurately determine the precipitation type and precipitation amount. Because the radar sensor has high penetration ability and high acquisition frequency, it improves the accuracy and timeliness of weather detection and warning in bad weather such as rainy days, snowy days, and foggy days, ensuring the safety of the vehicle when driving in bad weather.
[0077] It should be noted that when the device provided in the above embodiment realizes its functions, only the division of the above function modules is used for illustration. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0078] In an exemplary embodiment, a computer-readable storage medium is also provided. At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by the processor of the computer device to enable the computer to implement any one of the above weather warning methods.
[0079] In a possible implementation, the above computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0080] In an exemplary embodiment, a computer program product or a computer program is also provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to enable the computer device to implement any one of the above weather warning methods.
[0081] It should be noted that the information involved in this application (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the signal intensity and frequency offset of the echo signal, the precipitation detection result, precipitation type and precipitation amount in the environment where the vehicle is located involved in this application are all obtained under full authorization.
[0082] It should be understood that the term "a plurality of" mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0083] It should be noted that the terms "first", "second", etc. (if any) in the description and claims of this application are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. On the contrary, they are only examples of devices and methods consistent with some aspects of this application as detailed in the appended claims.
[0084] The above are only exemplary embodiments of this application and are not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the principle of this application shall be included in the protection scope of this application.
Claims
1. A weather warning method, characterized in that: The method comprises: Controlling the radar sensor to transmit radar signals at a preset frequency; Collecting an echo signal corresponding to the radar signal; Acquire the signal strength and frequency offset of the echo signal; Acquire a precipitation detection result of the environment where the vehicle is located based on the signal strength, wherein the precipitation detection result of the environment where the vehicle is located indicates whether the environment where the vehicle is located is in a precipitation state; In response to obtaining a precipitation detection result of the environment where the vehicle is located indicating that the environment where the vehicle is located is in the precipitation state, obtaining a precipitation type and a precipitation amount based on the signal strength and the frequency offset; An early warning is issued for the precipitation type and the precipitation amount.
2. The method according to claim 1, characterized in that After collecting the echo signal corresponding to the radar signal, the method further includes: Filtering the echo signal to remove interference from wind noise; The echo signal is converted from a time domain signal to a frequency domain signal.
3. The method according to claim 1, characterized in that The obtaining the precipitation type and precipitation amount based on the signal strength and the frequency offset includes: determining the precipitation amount based on the signal strength; In response to the frequency offset reaching a first change amount but not reaching a second change amount, the signal strength is less than or equal to a first strength threshold and greater than a second strength threshold, determining that the precipitation type is fog; In response to the frequency offset reaching the second change amount but not reaching the third change amount, the signal strength is less than or equal to the second strength threshold and greater than the third strength threshold, determining that the precipitation type is snowfall; In response to the frequency offset reaching the third change amount, the signal strength is less than or equal to the third strength threshold and greater than a fourth strength threshold, and the precipitation type is determined to be rain.
4. The method according to claim 3, characterized in that The obtaining of a precipitation detection result of an environment where the vehicle is located based on the signal strength includes: In response to the signal strength being less than or equal to the first strength threshold and greater than the fourth strength threshold, a precipitation detection result of the vehicle environment is obtained, indicating that the vehicle environment is in the precipitation state.
5. The method according to claim 1, characterized in that: The early warning of the precipitation type and the precipitation amount includes: Different colors are used to warn of different precipitation amounts and display the precipitation type.
6. The method according to claim 1, characterized in that After acquiring the echo signal corresponding to the radar signal, the method further includes: identifying other vehicles or pedestrians around the vehicle based on the echo signal; Tracking other vehicles or pedestrians around the vehicle in real time; In response to a distance between the vehicle and at least one of the remaining vehicles or the pedestrian being less than a distance threshold, a warning of a collision risk is issued.
7. A weather warning device, characterized in that: The device comprises: A control module, used for controlling the radar sensor to transmit a radar signal at a preset frequency; An acquisition module, used for acquiring an echo signal corresponding to the radar signal; A first acquisition module, used to acquire the signal strength and frequency offset of the echo signal; A second acquisition module, configured to acquire a precipitation detection result of the environment where the vehicle is located based on the signal strength, wherein the precipitation detection result of the environment where the vehicle is located indicates whether the environment where the vehicle is located is in a precipitation state; a third acquisition module, configured to, in response to acquiring a precipitation detection result of the vehicle environment indicating that the vehicle environment is in the precipitation state, acquire a precipitation type and a precipitation amount based on the signal strength and the frequency offset; The early warning module is used to issue an early warning for the precipitation type and the precipitation amount.
8. The device according to claim 7, characterized in that The acquisition module is further used to filter the echo signal to remove the interference of wind noise; and convert the echo signal from a time domain signal to a frequency domain signal.
9. A computer program product, comprising computer instructions, which, when executed by a processor, implement the steps of the weather warning method according to any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the weather warning method according to any one of claims 1 to 6.