CN114937347A - Rainfall detection method, device and equipment of vehicle and computer-readable storage medium - Google Patents

Rainfall detection method, device and equipment of vehicle and computer-readable storage medium Download PDF

Info

Publication number
CN114937347A
CN114937347A CN202210662109.6A CN202210662109A CN114937347A CN 114937347 A CN114937347 A CN 114937347A CN 202210662109 A CN202210662109 A CN 202210662109A CN 114937347 A CN114937347 A CN 114937347A
Authority
CN
China
Prior art keywords
rainfall
value
rain
image
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210662109.6A
Other languages
Chinese (zh)
Inventor
张鹏程
李铭杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yuanyue Automotive Electronics Co ltd
Original Assignee
Shanghai Yuanyue Automotive Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yuanyue Automotive Electronics Co ltd filed Critical Shanghai Yuanyue Automotive Electronics Co ltd
Priority to CN202210662109.6A priority Critical patent/CN114937347A/en
Publication of CN114937347A publication Critical patent/CN114937347A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/048Detecting movement of traffic to be counted or controlled with provision for compensation of environmental or other condition, e.g. snow, vehicle stopped at detector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Abstract

The application relates to a rainfall detection method, a rainfall detection device, rainfall detection equipment and a computer readable storage medium of a vehicle, which relate to the technical field of vehicles, and the rainfall detection method comprises the following steps: acquiring image information corresponding to a vehicle window in a preset period, wherein the image information comprises a plurality of single-frame images and shooting time corresponding to each single-frame image; selecting a single frame image from a plurality of single frame images as a rainfall detection image, and determining a first rainfall value based on the rainfall detection image; acquiring a second rainfall value detected by a rainfall detection device, wherein the acquisition time of the second rainfall value is consistent with the shooting time of the rainfall detection image; and if the difference value between the first rainfall value and the second rainfall value is smaller than a preset value, determining the current rainfall value based on the first rainfall value and the second rainfall value. This application has the effect that the rainfall value accuracy on the improvement detects the door window.

Description

Rainfall detection method, device and equipment of vehicle and computer-readable storage medium
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for detecting rainfall of a vehicle.
Background
Automobiles are increasingly used as a transportation tool in people's lives, more and more automobiles detect a rainfall value by installing a light and rainfall detection device, and automatically control a windscreen wiper to operate according to a corresponding working mode according to the detected rainfall value.
However, the installation position of the light and rain amount detection device is fixed and is easily interfered by the external environment, so that the rain amount value collected by the light and rain amount detection device is inaccurate, and the operation mode of the windshield wiper is not matched with the actual rain amount value.
Disclosure of Invention
In order to improve the accuracy of detecting the rainfall value on the vehicle window, the application provides a rainfall detection method, a rainfall detection device, rainfall detection equipment and a computer-readable storage medium of a vehicle.
In a first aspect, the present application provides a method, an apparatus, a device and a computer-readable storage medium for detecting rainfall of a vehicle, which adopt the following technical solutions:
the rainfall detection method of the vehicle comprises the steps of obtaining image information corresponding to a vehicle window in a preset period, wherein the image information comprises a plurality of single-frame images and shooting time corresponding to each single-frame image;
selecting a single frame image from a plurality of single frame images as a rainfall detection image, and determining a first rainfall value based on the rainfall detection image;
acquiring a second rainfall value detected by a rainfall detection device, wherein the acquisition time of the second rainfall value is consistent with the shooting time of the rainfall detection image;
and if the difference value between the first rainfall value and the second rainfall value is smaller than a preset value, determining the current rainfall value based on the first rainfall value and the second rainfall value.
By adopting the technical scheme, the current rainfall value is determined by utilizing the first rainfall value and the second rainfall value, the possibility that the rainfall value detected by using the rainfall sensor is possibly interfered by the external environment is reduced, and the accuracy of determining the current rainfall value is improved.
Optionally, the selecting one single frame image from the multiple single frame images as a rainfall detection image, and determining a first rainfall value based on the rainfall detection image includes:
preprocessing a plurality of single-frame images, wherein the preprocessing comprises image consistency adjustment and light consistency adjustment;
inputting the preprocessed multiple single-frame images into a preset image recognition model for feature extraction to obtain feature information;
selecting a single-frame image with the largest rainfall as a rainfall detection image based on the characteristic information;
and inputting the rainfall detection image into a preset rainfall value model to obtain a first rainfall value.
By adopting the technical scheme, the characteristic information of the plurality of single-frame images is extracted by utilizing image recognition, and the single-frame image with the largest rainfall in the plurality of single-frame images is used as the rainfall detection image, so that the single-frame image corresponding to the vehicle window is more obvious, and the accuracy of determining the first rainfall value is improved.
Optionally, if a difference between the first rainfall value and the second rainfall value is greater than a preset value, the method further includes:
acquiring current illumination intensity information and vehicle running speed information;
judging whether the current illumination intensity information meets a preset illumination condition and/or whether the vehicle running speed information meets a preset vehicle running speed condition;
if so, calculating a third rainfall value based on the illumination intensity information, the vehicle running speed information, the first rainfall value and the second rainfall value, and taking the third rainfall value as a current rainfall value;
otherwise, executing the step of acquiring the image information corresponding to the vehicle window.
By adopting the technical scheme, since the external environment light possibly influences the accuracy of the rainfall detection device for detecting the second rainfall value, the vehicle running speed is high and the accuracy of the first rainfall value can be influenced, the current rainfall value is calculated through the illumination intensity information, the vehicle running speed information, the first rainfall value and the second rainfall value, and the certainty of determining the current rainfall value is improved.
Optionally, the determining the current rainfall value based on the first rainfall value and the second rainfall value includes:
selecting a first rainfall value as a current rainfall value; alternatively, the first and second electrodes may be,
selecting a second rainfall value as a current rainfall value; alternatively, the first and second electrodes may be,
and calculating the average value of the first rain amount value and the second rain amount value, and taking the average value as the current rain amount value.
Optionally, the obtaining the current illumination intensity information includes:
and inputting the rainfall detection image into a preset illumination intensity detection model to obtain illumination intensity information.
Optionally, the calculating a third rain amount value based on the illumination intensity information, the vehicle driving speed information, the first rain amount value and the second rain amount value, and taking the third rain amount value as a current rain amount value includes:
mapping the illumination intensity information into an illumination intensity level;
mapping the vehicle travel speed information to a speed class;
assigning a first weight to the first rain amount value and a second weight to the second rain amount value based on the illumination intensity level and the speed level;
calculating a third rain magnitude value based on the first rain magnitude value, the second rain magnitude value, the first weight, and the second weight, the third rain magnitude value being a current rain magnitude value.
By adopting the technical scheme, the first weight of the first rain amount value and the second weight of the second rain amount value are determined according to the two conditions of the illumination intensity level and the speed level, and the current rain amount value is calculated according to the first rain amount value, the second rain amount value, the first weight and the second weight, so that the determined current rain amount value is more accurate.
Optionally, the rainfall category is judged based on the current rainfall value, and the rainfall category includes no rain, light rain, medium rain, heavy rain and heavy rain;
if the current rain amount value is heavy rain or heavy rain, judging whether the vehicle running speed information is larger than a preset running speed or not;
and if so, sending out alarm prompt information for reminding the user of reducing the running speed.
By adopting the technical scheme, when the current rain amount value is heavy rain or heavy rain and the vehicle running speed is greater than the preset running speed, the warning information is utilized to remind the driver to reduce the running speed, so that the possibility of dangerous accidents in rainy days is reduced.
In a second aspect, the present application provides a rainfall detection device for a vehicle, which adopts the following technical solution:
the rainfall detection device of the vehicle comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring image information corresponding to an inner window based on a preset period, and the image information comprises a plurality of single-frame images and shooting time corresponding to each single-frame image;
the selecting module is used for selecting one single-frame image from the single-frame images as a rainfall detection image and determining a first rainfall value based on the rainfall detection image;
the second acquisition module is used for acquiring a second rainfall value detected by the rainfall detection device, and the acquisition time of the second rainfall value is consistent with the shooting time of the rainfall detection image;
the determining module is used for determining the current rainfall value based on the first rainfall value and the second rainfall value if the difference value between the first rainfall value and the second rainfall value is smaller than a preset value.
By adopting the technical scheme, the current rainfall value is determined by utilizing the first rainfall value and the second rainfall value, the possibility that the rainfall value detected by using the rainfall sensor is possibly interfered by the external environment is reduced, and the accuracy of determining the current rainfall value is improved.
In a third aspect, the present application provides a vehicle, which adopts the following technical solution:
an electronic device comprising a memory and a processor, the memory having stored thereon a computer program that is loadable by the processor and operable to execute the method of detecting rainfall for a vehicle of any of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium storing a computer program that can be loaded by a processor and executes the rainfall detection method of the vehicle according to any one of the first aspects.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the first rainfall value and the second rainfall value are used for determining the current rainfall value, so that the possibility that the rainfall value detected by using the rainfall sensor is possibly interfered by the external environment is reduced, and the accuracy of determining the current rainfall value is improved;
2. when the current rain amount value is heavy rain or heavy rain and the vehicle running speed is higher than the preset running speed, the warning information is used for reminding a driver to reduce the running speed, so that the possibility of dangerous accidents in rainy days is reduced.
Drawings
Fig. 1 is a schematic flowchart of a method for detecting rainfall of a vehicle according to an embodiment of the present disclosure.
Fig. 2 is a block diagram illustrating a structure of a vehicle rainfall detection device 200 according to an embodiment of the present invention.
Fig. 3 is a block diagram of an electronic device 300 according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiment of the application provides a vehicle rainfall detection method, which can be executed by an electronic device, wherein the electronic device is installed in a vehicle, the electronic device can be a server or a terminal device, the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud computing service. The terminal device may be a tablet computer or the like, but is not limited thereto.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto. As shown in fig. 1, the main flow of the method is described as follows (steps S101 to S104).
Step S101, image information corresponding to a vehicle window in a preset period is obtained, wherein the image information comprises a plurality of single-frame images and shooting time corresponding to each single-frame image;
in this embodiment, before acquiring image information corresponding to a vehicle window in a preset period, the electronic device needs to acquire state information of the vehicle and weather information based on preset time, where the state information includes a working state and a non-working state of the vehicle; then controlling the wiper to be started and closed based on the state information and the weather information; and if the acquired weather information is rainy weather and the state of the vehicle is a working state, controlling the wiper to be opened. The weather information can be acquired through communication technologies such as ethernet, wireless fidelity, bluetooth, third generation mobile communication, fourth generation mobile communication, and the like.
In this embodiment, after the weather information is determined to be rainy weather, the current rainfall value of the window is detected by acquiring the graphic information corresponding to the window in the preset period, and the working state of the wiper is controlled by using the current rainfall value. The preset period can be preset, and the set duration of the preset period can be obtained according to big data analysis; the window is a windshield of an automobile, and the windshield is generally a front windshield.
Step S102, selecting a single frame image from the single frame images as a rainfall detection image, and determining a first rainfall value based on the rainfall detection image;
specifically, preprocessing a plurality of single-frame images, wherein the preprocessing comprises image consistency adjustment and light consistency adjustment; inputting the preprocessed multiple single-frame images into a preset image recognition model for feature extraction to obtain feature information; selecting a single-frame image with the largest rainfall as a rainfall detection image based on the characteristic information; and inputting the rainfall detection image into a preset rainfall value model to obtain a first rainfall value.
In this embodiment, inputting the preprocessed multiple single-frame images into the image recognition model to perform feature extraction, so as to obtain feature information specifically includes: the method comprises the steps of converting a plurality of preprocessed single-frame images into a plurality of gray-scale images in one-to-one correspondence, then carrying out binarization processing on the plurality of gray-scale images to obtain a plurality of images to be recognized, enabling the single-frame images corresponding to vehicle windows to be more obvious, and then recognizing raindrops in the plurality of images to be recognized based on an image recognition algorithm in a preset image recognition model to obtain characteristic information.
It should be noted that the image recognition model and the preset rainfall value model are deep neural networks for performing image recognition, and the deep neural networks may be convolutional neural networks, and it should be noted that the image recognition model here is merely an example, and those skilled in the art may also perform training through other deep learning architectures, which is not limited in this embodiment of the present invention.
Step S103, acquiring a second rainfall value detected by the rainfall detection device, wherein the acquisition time of the second rainfall value is consistent with the shooting time of the rainfall detection image;
in order to ensure the accuracy of the rainfall value at the moment of shooting the rainfall detection image, the rainfall detection device is adopted to detect the second rainfall value consistent with the shooting time of the rainfall detection image, and the first rainfall value and the second rainfall value are utilized to jointly judge the accuracy of the detected rainfall value. In this embodiment, the rainfall detection device may be a rainfall sensor.
And step S104, if the difference value between the first rainfall value and the second rainfall value is smaller than a preset value, determining the current rainfall value based on the first rainfall value and the second rainfall value.
Since the difference value between the first rainfall value and the second rainfall value is smaller than the preset value, the measured first rainfall value and second rainfall value are more accurate. Specifically, the electronic device selects a first rainfall value as a current rainfall value; or the electronic equipment selects the second rainfall value as the current rainfall value; or the electronic device calculates an average value of the first rain amount value and the second rain amount value, and the average value is used as the current rain amount value.
The method determines the current rainfall value by utilizing the first rainfall value and the second rainfall value, reduces the possibility that the rainfall value detected by using the rainfall sensor is possibly interfered by the external environment, and improves the accuracy of determining the current rainfall value.
As a further embodiment of the rainfall detection, if the difference between the first rainfall value and the second rainfall value is greater than a preset value, the method further comprises (steps Sa to Sb) (neither shown in the figures):
step Sa, obtaining current illumination intensity information and vehicle driving speed information;
in the embodiment, the rainfall detection image can be input into a preset illumination intensity detection model by acquiring the current illumination intensity, so that illumination intensity information is obtained; the illumination intensity may also be detected by an illumination sensor to obtain illumination intensity information, which is not specifically limited in this embodiment.
Step Sb, judging whether the current illumination intensity information meets a preset illumination condition and/or whether the vehicle running speed information meets a preset vehicle running speed condition; if so, calculating a third rainfall value based on the illumination intensity information, the vehicle running speed information, the first rainfall value and the second rainfall value, and taking the third rainfall value as the current rainfall value; otherwise, executing the step of acquiring the image information corresponding to the vehicle window.
Since the external environment light may affect the accuracy of detecting the second rainfall value by the rainfall detection device, the accuracy of detecting the first rainfall value may be affected by the fact that the vehicle runs at a high speed, and the current rainfall value is determined by calculating the third rainfall value based on the illumination intensity information, the vehicle running speed information, the first rainfall value and the second rainfall value, so that the certainty of determining the current rainfall value is improved.
In the present embodiment, when either of the above two conditions is satisfied, a third rain amount value is calculated from the illumination intensity information, the vehicle running speed information, the first rain amount value, and the second rain amount value;
for example, when the illumination intensity information does not satisfy the preset illumination condition and the vehicle running speed information satisfies the preset vehicle running speed condition, a first weight may be assigned to the first rain amount value as 100%, a second weight may be assigned to the second rain amount value as 0%, and the current rain amount value is equal to the first rain amount value;
when the illumination intensity information meets the preset illumination condition and the vehicle running speed information does not meet the preset vehicle running speed condition, a first weight of 0% can be assigned to the first rainfall value, a second weight of 100% can be assigned to the second rainfall value, and the current rainfall value is equal to the second rainfall value;
and when the illumination intensity information meets the preset illumination condition and the vehicle running speed information meets the preset vehicle running condition, distributing a first weight to the first rain amount value and distributing a second weight to the second rain amount value according to the illumination intensity level and the speed level. Specifically, the illumination intensity information is mapped into an illumination intensity level; mapping the vehicle running speed information into a speed grade; assigning a first weight to the first rain amount value and a second weight to the second rain amount value based on the illumination intensity level and the speed level; and calculating a third rain amount value based on the first rain amount value, the second rain amount value, the first weight and the second weight, and taking the third rain amount value as the current rain amount value.
For example, the illumination intensity levels are a first illumination level, a second illumination level and a second illumination level, and the speed levels are a first speed level, a second speed level and a third speed level, if the illumination intensity level is the first illumination level and the speed level is the first speed level, then a first weight of 50% may be assigned to the first rainfall value, and a weight of 50% may be assigned to the second rainfall value, and the current rainfall value is equal to the sum of the first rainfall value multiplied by 50% and the second rainfall value multiplied by 50%; if the light intensity level is the third light level and the speed level is the first speed level, the first rain amount value may be assigned a first weight of 70% and the second rain amount value may be assigned a weight of 30%, the current rain amount value being equal to the sum of the first rain amount value multiplied by 70% and the second rain amount value multiplied by 30%.
Since driving a vehicle is prone to danger in rainy weather, as a further embodiment of rain detection, to reduce the possibility of rain accidents occurring in rainy weather, the method further comprises:
judging the rainfall categories based on the current rainfall value, wherein the rainfall categories comprise no rain, light rain, medium rain, heavy rain and heavy rain; if the current rain amount value is heavy rain or heavy rain, judging whether the vehicle running speed information is greater than a preset running speed; if yes, sending out alarm information to remind the user to reduce the driving speed.
In this embodiment, the warning information may be a voice prompt, a text prompt, or a prompt through a prompt lamp, where the voice prompt may be "XX driver, driving speed is too fast, please pay attention to safety", "XX driver, driving speed is too fast, please slow down", and the like, where the contents of the voice prompt and the text prompt may be set, and this embodiment is not limited specifically.
When the current rain value is heavy rain or heavy rain and the vehicle running speed is higher than the preset running speed, the warning information is utilized to remind the driver to reduce the running speed, and the possibility of dangerous accidents in rainy days is reduced.
The above is a description of embodiments of the method, and the embodiments of the apparatus are described further below.
Fig. 2 is a block diagram of a rainfall detection device 200 of a vehicle according to an embodiment of the present application.
As shown in fig. 2, the rainfall detection device 200 of the vehicle mainly includes:
the first obtaining module 201 is configured to obtain image information corresponding to an interior window based on a preset period, where the image information includes a plurality of single-frame images and shooting time corresponding to each single-frame image;
the selecting module 202 is configured to select one single-frame image from the multiple single-frame images as a rainfall detection image, and determine a first rainfall value based on the rainfall detection image;
a second obtaining module 203, configured to obtain a second rainfall value detected by the rainfall detection device, where the obtaining time of the second rainfall value is consistent with the shooting time of the rainfall detection image;
a determining module 204, configured to determine a current rain amount value based on the first rain amount value and the second rain amount value if a difference between the first rain amount value and the second rain amount value is smaller than a preset value.
As an optional implementation manner of this embodiment, the selecting module 201 is specifically configured to perform preprocessing on a plurality of single-frame images, where the preprocessing includes image consistency adjustment and light consistency adjustment; inputting the preprocessed multiple single-frame images into a preset image recognition model for feature extraction to obtain feature information; selecting a single-frame image with the largest rainfall as a rainfall detection image based on the characteristic information; and inputting the rainfall detection image into a preset rainfall value model to obtain a first rainfall value.
As an optional implementation manner of this embodiment, if the difference between the first rainfall value and the second rainfall value is greater than the preset value, the rainfall detection device 200 of the vehicle further includes a calculation module, and the calculation module includes:
the acquisition submodule is used for acquiring current illumination intensity information and vehicle running speed information;
the judging submodule is used for judging whether the current illumination intensity information meets a preset illumination condition and/or whether the vehicle running speed information meets a preset vehicle running speed condition; if so, calculating a third rainfall value based on the illumination intensity information, the vehicle running speed information, the first rainfall value and the second rainfall value, and taking the third rainfall value as the current rainfall value; otherwise, the step of obtaining the image information corresponding to the vehicle window is executed.
In this optional embodiment, the obtaining sub-module is specifically configured to input the rainfall detection image into a preset illumination intensity detection model, so as to obtain illumination intensity information.
In this optional embodiment, the calculation sub-module is specifically configured to map the illumination intensity information into an illumination intensity level; mapping the vehicle running speed information into a speed grade; assigning a first weight to the first rain amount value and a second weight to the second rain amount value based on the illumination intensity level and the speed level; and calculating a third rain amount value based on the first rain amount value, the second rain amount value, the first weight and the second weight, and taking the third rain amount value as the current rain amount value.
As an optional implementation manner of this embodiment, the determining module 203 is specifically configured to select a first rainfall value as the current rainfall value; or selecting the second rainfall value as the current rainfall value; or calculating the average value of the first rain amount value and the second rain amount value, and taking the average value as the current rain amount value.
As an optional implementation manner of this embodiment, the rainfall detection device 200 of the vehicle further includes an alarm module, and the alarm module is specifically configured to determine a rainfall category based on the current rainfall value, where the rainfall category includes no rain, light rain, medium rain, heavy rain, and heavy rain; if the current rain amount value is heavy rain or heavy rain, judging whether the vehicle running speed information is greater than a preset running speed; if the speed is higher than the preset speed, sending an alarm prompt message to remind a user of reducing the driving speed.
In one example, the modules in any of the above apparatus may be one or more integrated circuits configured to implement the above method, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), or a combination of at least two of these integrated circuit forms.
For another example, when a module in a device can be implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling programs. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
Various objects such as various messages/information/devices/network elements/systems/devices/actions/operations/procedures/concepts may be named in the present application, it is to be understood that these specific names do not constitute limitations on related objects, and the named names may vary according to circumstances, contexts, or usage habits, and the understanding of the technical meaning of the technical terms in the present application should be mainly determined by the functions and technical effects embodied/performed in the technical solutions.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the module described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Fig. 3 is a block diagram of an electronic device 300 according to an embodiment of the present disclosure.
As shown in FIG. 3, electronic device 300 includes a processor 301 and a memory 302, and may further include one or more of an information input/information output (I/O) interface 303 and a communications component 304, and a communications bus 305.
The processor 301 is configured to control the overall operation of the electronic device 300 to complete all or part of the steps in the above-mentioned rainfall detection method for a vehicle; the memory 302 is used to store various types of data to support operation at the electronic device 300, such data may include, for example, instructions for any application or method operating on the electronic device 300, as well as application-related data. The Memory 302 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as Static Random Access Memory (Static Random Access Memory,
a Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
The I/O interface 303 provides an interface between the processor 301 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 304 is used for testing wired or wireless communication between the electronic device 300 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC for short), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 304 may include: Wi-Fi part, Bluetooth part, NFC part.
The communication bus 305 may include a path to transfer information between the aforementioned components. The communication bus 305 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus 305 may be divided into an address bus, a data bus, a control bus, and the like.
The electronic Device 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is used to perform the method for detecting rainfall in a vehicle according to the above embodiments.
The electronic device 300 may include, but is not limited to, a digital broadcast receiver, a mobile terminal such as a PDA (personal digital assistant), a PMP (portable multimedia player), and the like, a stationary terminal such as a digital TV, a desktop computer, and the like, and may also be a server, and the like.
In the following, a computer-readable storage medium provided by an embodiment of the present application is introduced, and the computer-readable storage medium described below and the method for detecting rainfall of a vehicle described above may be referred to correspondingly.
The present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above-mentioned method for detecting rainfall of a vehicle.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the application referred to in the present application is not limited to the embodiments with a particular combination of the above-mentioned features, but also encompasses other embodiments with any combination of the above-mentioned features or their equivalents without departing from the spirit of the application. For example, the above features may be replaced with (but not limited to) features having similar functions as those described in this application.

Claims (10)

1. A rainfall detection method for a vehicle, characterized by comprising:
acquiring image information corresponding to a vehicle window in a preset period, wherein the image information comprises a plurality of single-frame images and shooting time corresponding to each single-frame image;
selecting a single frame image from a plurality of single frame images as a rainfall detection image, and determining a first rainfall value based on the rainfall detection image;
acquiring a second rainfall value detected by a rainfall detection device, wherein the acquisition time of the second rainfall value is consistent with the shooting time of the rainfall detection image;
and if the difference value between the first rainfall value and the second rainfall value is smaller than a preset value, determining the current rainfall value based on the first rainfall value and the second rainfall value.
2. The method of claim 1, wherein selecting a single frame image among the plurality of single frame images as a rainfall detection image and determining a first rainfall value based on the rainfall detection image comprises:
preprocessing a plurality of single-frame images, wherein the preprocessing comprises image consistency adjustment and light consistency adjustment;
inputting the preprocessed multiple single-frame images into a preset image recognition model for feature extraction to obtain feature information;
selecting a single-frame image with the largest rainfall as a rainfall detection image based on the characteristic information;
and inputting the rainfall detection image into a preset rainfall value model to obtain a first rainfall value.
3. The method of claim 1, wherein if the difference between the first rain magnitude and the second rain magnitude is greater than a preset value, the method further comprises:
acquiring current illumination intensity information and vehicle running speed information;
judging whether the current illumination intensity information meets a preset illumination condition and/or whether the vehicle running speed information meets a preset vehicle running speed condition;
if so, calculating a third rainfall value based on the illumination intensity information, the vehicle running speed information, the first rainfall value and the second rainfall value, and taking the third rainfall value as a current rainfall value;
otherwise, the step of obtaining the image information corresponding to the vehicle window is executed.
4. The method of claim 1, wherein the determining a current rainfall value based on the first rainfall value and the second rainfall value comprises:
selecting a first rainfall value as a current rainfall value; alternatively, the first and second electrodes may be,
selecting a second rainfall value as a current rainfall value; alternatively, the first and second electrodes may be,
and calculating the average value of the first rain amount value and the second rain amount value, and taking the average value as the current rain amount value.
5. The method of claim 3, wherein the obtaining current illumination intensity information comprises:
and inputting the rainfall detection image into a preset illumination intensity detection model to obtain illumination intensity information.
6. The method of claim 2 or 5, wherein the calculating a third rain amount value based on the illumination intensity information, the vehicle travel speed information, the first rain amount value, and the second rain amount value, and the taking the third rain amount value as a current rain amount value comprises:
mapping the illumination intensity information into an illumination intensity level;
mapping the vehicle travel speed information to a speed class;
assigning a first weight to the first rain amount value and a second weight to the second rain amount value based on the illumination intensity level and the speed level;
calculating a third rain magnitude value based on the first rain magnitude value, the second rain magnitude value, the first weight, and the second weight, the third rain magnitude value being a current rain magnitude value.
7. The method of claim 3 or 6, further comprising:
judging rainfall categories based on the current rainfall value, wherein the rainfall categories comprise no rain, light rain, medium rain, heavy rain and heavy rain;
if the current rain amount value is heavy rain or heavy rain, judging whether the vehicle running speed information is larger than a preset running speed or not;
if yes, sending out alarm information to remind the user to reduce the driving speed.
8. A rainfall detection device for a vehicle, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring image information corresponding to an inner window based on a preset period, and the image information comprises a plurality of single-frame images and shooting time corresponding to each single-frame image;
the selecting module is used for selecting one single-frame image from the single-frame images as a rainfall detection image and determining a first rainfall value based on the rainfall detection image;
the second acquisition module is used for acquiring a second rainfall value detected by the rainfall detection device, and the acquisition time of the second rainfall value is consistent with the shooting time of the rainfall detection image;
the determining module is used for determining the current rainfall value based on the first rainfall value and the second rainfall value if the difference value between the first rainfall value and the second rainfall value is smaller than a preset value.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that executes the method according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored which can be loaded by a processor and which executes the method according to any one of claims 1 to 7.
CN202210662109.6A 2022-06-13 2022-06-13 Rainfall detection method, device and equipment of vehicle and computer-readable storage medium Pending CN114937347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210662109.6A CN114937347A (en) 2022-06-13 2022-06-13 Rainfall detection method, device and equipment of vehicle and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210662109.6A CN114937347A (en) 2022-06-13 2022-06-13 Rainfall detection method, device and equipment of vehicle and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN114937347A true CN114937347A (en) 2022-08-23

Family

ID=82866671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210662109.6A Pending CN114937347A (en) 2022-06-13 2022-06-13 Rainfall detection method, device and equipment of vehicle and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN114937347A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814139A (en) * 2010-04-14 2010-08-25 华中科技大学 Raindrop identifying method
CN102254149A (en) * 2011-06-13 2011-11-23 南京航空航天大学 Method for detecting and identifying raindrops in video image
CN205273417U (en) * 2015-12-23 2016-06-01 浙江吉利控股集团有限公司 Windscreen wiper device before car auto -induction formula
CN110276318A (en) * 2019-06-26 2019-09-24 北京航空航天大学 Nighttime road rains recognition methods, device, computer equipment and storage medium
CN112699719A (en) * 2019-10-07 2021-04-23 株式会社电装 Raindrop recognition device, vehicle control device, method of training model, and training model
CN113815523A (en) * 2020-06-19 2021-12-21 比亚迪股份有限公司 Method for controlling vehicle windscreen wiper and light, storage medium and vehicle
CN113978420A (en) * 2021-12-10 2022-01-28 华人运通(上海)云计算科技有限公司 Vehicle control system and method based on rainfall monitoring
CN114266993A (en) * 2021-12-10 2022-04-01 广州海格星航信息科技有限公司 Image-based road environment detection method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814139A (en) * 2010-04-14 2010-08-25 华中科技大学 Raindrop identifying method
CN102254149A (en) * 2011-06-13 2011-11-23 南京航空航天大学 Method for detecting and identifying raindrops in video image
CN205273417U (en) * 2015-12-23 2016-06-01 浙江吉利控股集团有限公司 Windscreen wiper device before car auto -induction formula
CN110276318A (en) * 2019-06-26 2019-09-24 北京航空航天大学 Nighttime road rains recognition methods, device, computer equipment and storage medium
CN112699719A (en) * 2019-10-07 2021-04-23 株式会社电装 Raindrop recognition device, vehicle control device, method of training model, and training model
CN113815523A (en) * 2020-06-19 2021-12-21 比亚迪股份有限公司 Method for controlling vehicle windscreen wiper and light, storage medium and vehicle
CN113978420A (en) * 2021-12-10 2022-01-28 华人运通(上海)云计算科技有限公司 Vehicle control system and method based on rainfall monitoring
CN114266993A (en) * 2021-12-10 2022-04-01 广州海格星航信息科技有限公司 Image-based road environment detection method and device

Similar Documents

Publication Publication Date Title
US11173927B2 (en) Method, apparatus, computer device and storage medium for autonomous driving determination
CN108248540B (en) Vehicle wading alarm device and method and vehicle
CN106815574B (en) Method and device for establishing detection model and detecting behavior of connecting and calling mobile phone
US10889240B2 (en) Method, computer device and storage medium for communicating with a rear vehicle
CN108307312B (en) Congestion prompting method, server, client and storage medium
WO2020188562A1 (en) Systems and methods for evaluation of vehicle technologies
CN114463985A (en) Driving assistance method, device, equipment and storage medium
CN114937347A (en) Rainfall detection method, device and equipment of vehicle and computer-readable storage medium
CN110843481B (en) Hydrogen leakage processing method, processing device, hydrogen energy automobile and storage medium thereof
CN112016625A (en) Vehicle abnormality detection method, device, electronic device, and storage medium
CN115662400A (en) Processing method, device and equipment for voice interaction data of vehicle machine and storage medium
CN114022973B (en) Method, device, equipment and storage medium for processing vehicle faults
CN116923372A (en) Driving control method, device, equipment and medium
CN114801632A (en) Suspension height adjusting method, device, equipment and storage medium
CN111452798B (en) Driver state detection method and device, electronic equipment and storage medium
CN113978468A (en) Vehicle speed control method, device, equipment and medium based on water accumulation environment
CN113147794A (en) Method, device and equipment for generating automatic driving early warning information and automatic driving vehicle
CN114559775A (en) Automobile tire abnormity identification system and identification method
CN114022899A (en) Method and device for detecting body part of vehicle occupant extending out of vehicle window and vehicle
CN112002034A (en) Vehicle accident rescue method, device, equipment and storage medium
CN112183415A (en) Lane line processing method, vehicle, and readable storage medium
CN113793134B (en) Vehicle alarm method, device and computer readable storage medium
CN114969224B (en) Vehicle test driving reservation method and device, electronic equipment and medium
CN110276322B (en) Image processing method and device combined with vehicle machine idle resources
US20210334660A1 (en) Technology for analyzing sensor data to detect configurations of vehicle operation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination