Windshield demisting method, device and equipment, readable storage medium and vehicle
By detecting the degree of blur on the windshield and controlling the heating wire to perform a decontamination plan, it solves the problem of data anomalies caused by fog in autonomous vehicles and ensures driving safety.
Patent Information
- Application Number
- CN202310333845.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
Smart Images

Figure CN118722503A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicles, and in particular to a windshield defog method, device, equipment, readable storage medium and vehicle. Background Art
[0002] In the field of autonomous driving, sensors such as cameras or lidars are usually used as image acquisition devices, and various information required for decision-making is collected through image acquisition devices. Usually, image acquisition devices are arranged behind the front windshield of the vehicle. Due to common problems such as fogging inside and outside the windshield, the images collected by the camera may appear blurred or the point cloud collected by the lidar may appear sparse, which may cause abnormal collection data problems, thereby affecting the subsequent decision-making work of autonomous driving. When the image acquisition device has the above problems, the driver may not have any perception and will not take corresponding measures, causing safety hazards. Therefore, how to avoid abnormal collection data of image acquisition devices has become an urgent problem to be solved. Summary of the invention
[0003] In order to solve the above technical problems, the present disclosure provides a windshield defog method, device, equipment, readable storage medium and vehicle to ensure that the sensors related to autonomous driving can be protected from the interference of glass fogging and effectively ensure driving safety.
[0004] In a first aspect, an embodiment of the present disclosure provides a windshield demisting method, comprising:
[0005] Obtaining image acquisition results for a vehicle windshield;
[0006] Perceiving the blur degree of the windshield according to the area ratio of the blocked area in the image acquisition result;
[0007] According to the different blurring degrees of the windshield, the heating wire is controlled to work according to a preset decontamination scheme corresponding to the blurring degrees;
[0008] After a first preset time has passed, determining whether the blur level of the windshield has degraded;
[0009] If the cloudiness of the windshield has not degraded, a cleaning regimen is performed.
[0010] In some embodiments, before acquiring the image acquisition result of the vehicle windshield, the method further includes:
[0011] detecting the temperature of the windshield;
[0012] If the temperature is lower than the preset temperature, the heating wire is controlled to heat at full power for a second preset time; or,
[0013] If the temperature is not lower than the preset temperature, an image acquisition result for the vehicle windshield is obtained.
[0014] In some embodiments, sensing the blurriness of the windshield according to the area ratio of the blocked area in the image acquisition result includes:
[0015] If the proportion of the blocked area to the windshield area is greater than a preset proportion value, the blur level is determined to be severe blur; or
[0016] If the proportion of the blocked area to the windshield area is less than or equal to a preset proportion value, the blur level is determined to be light to medium blur.
[0017] In some embodiments, according to the different blur levels of the windshield, controlling the heating wire to operate according to a preset decontamination scheme corresponding to the blur levels includes:
[0018] When the blur level is severe blur, the heating wire is controlled to heat at full power for a third preset time; or,
[0019] When the blur level is light to medium blur, the heating wire is controlled to heat for a fourth preset time at a preset current duty cycle.
[0020] In some embodiments, the determining whether the blur level of the windshield is degraded; if the blur level of the windshield is not degraded, executing a cleaning solution, further includes:
[0021] If the blur level of the windshield is degraded, the process proceeds to the step of acquiring an image acquisition result for the vehicle windshield.
[0022] In some embodiments, after performing the cleaning regimen, the method further comprises:
[0023] After a fifth preset time, the image acquisition result of the vehicle windshield is acquired again, and the blur degree of the windshield is sensed.
[0024] In a second aspect, an embodiment of the present disclosure provides a windshield defogger, comprising:
[0025] An acquisition module, used to acquire image acquisition results of a vehicle windshield;
[0026] A perception module, used to perceive the blur degree of the windshield according to the area ratio of the blocked area in the image acquisition result;
[0027] A control module, for controlling the heating wire to work according to a preset decontamination scheme corresponding to the blurring degree according to the blurring degree of the windshield;
[0028] A judgment module, used for judging whether the blur level of the windshield is degraded after a first preset time has passed;
[0029] A cleaning module is used to execute a cleaning solution when the cloudiness of the windshield is not degraded.
[0030] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0031] Memory;
[0032] Processor; and
[0033] Computer programs;
[0034] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect.
[0035] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the method described in the first aspect.
[0036] In a fifth aspect, an embodiment of the present disclosure provides a vehicle, comprising the device, electronic device or computer-readable storage medium as described above.
[0037] The windshield defog method, device, equipment, readable storage medium and vehicle provided by the embodiments of the present disclosure automatically control the heating wire to execute different defouling schemes according to the severity of fogging on the windshield, thereby ensuring that fog of different degrees can be completely dissipated under the action of the heating wire, ensuring that the sensors related to automatic driving can be free from interference from glass fogging, and effectively ensuring driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 A flow chart of a windshield defogging method provided in an embodiment of the present disclosure;
[0041] Figure 2 A flow chart of a windshield defogging method provided by another embodiment of the present disclosure;
[0042] Figure 3 A flow chart of a windshield defogging method provided by another embodiment of the present disclosure;
[0043] Figure 4 A schematic diagram of the structure of a windshield defogger provided in an embodiment of the present disclosure;
[0044] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0046] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0047] The embodiments of the present disclosure provide a method for defogging a windshield, which will be described below in conjunction with specific embodiments.
[0048] Figure 1 A flow chart of a windshield demisting method provided in an embodiment of the present disclosure. The method can be applied to a terminal device, wherein the terminal device can be a car computer, a smart phone, a PDA, a tablet computer, a laptop computer, an all-in-one machine, an intelligent driving device, etc. It is understandable that the windshield demisting method provided in an embodiment of the present disclosure can also be applied in other scenarios.
[0049] Below Figure 1 The windshield demisting method shown in the figure is introduced, and the specific steps of the method are as follows:
[0050] S101: Obtain image acquisition results for a vehicle windshield.
[0051] The image of the front windshield of the vehicle is captured by an image capture device installed on the vehicle.
[0052] Specifically, the image acquisition device includes but is not limited to a camera, a radar sensor, etc. The image acquisition device may also be a camera or a laser radar sensor used to collect information about the vehicle's surrounding environment in autonomous driving decisions, and the image acquisition result may also be an image acquisition result obtained by a camera or a laser radar sensor through the vehicle windshield in autonomous driving decisions.
[0053] S102: Sense the blur degree of the windshield according to the area ratio of the blocked area in the image acquisition result.
[0054] When the windshield is fogged or otherwise contaminated, there will be an obstructed area in the image acquisition result of the windshield due to the contamination. When the area of the obstructed area in the image acquisition result accounts for a large proportion, it means that the contamination problem on the windshield is serious, and the blur level of the windshield is considered to be high; when the area of the obstructed area in the image acquisition result accounts for a small proportion, it can be considered that there is a small amount of contamination on the windshield, and the blur level of the windshield is considered to be low.
[0055] Specifically, the clarity of each position in the image acquisition result is detected by a preset algorithm (such as Brenner gradient function, Tenengrad gradient function, etc.). For each position, if the image clarity at the position is greater than the preset clarity, the position is considered to be unobstructed; or, if the image clarity at the position is less than or equal to the preset clarity, the position is considered to belong to the obstructed area. Among them, each position in the image acquisition result can refer to each pixel point in the image acquisition result, or the image acquisition result can be divided into multiple local images according to the preset area, which is not limited in the embodiment of the present disclosure.
[0056] Furthermore, the occlusion of each position in the image acquisition result is detected by a pre-trained machine model or a neural network model. Specifically, the image acquisition result is input into a pre-trained detection model, and the detection model determines the clarity of each position in the image acquisition result based on the above-mentioned preset algorithm, and then calculates and outputs the area ratio of the occluded area in the image acquisition result.
[0057] S103, according to different blurring degrees of the windshield, controlling the heating wire to operate according to a preset decontamination scheme corresponding to the blurring degrees.
[0058] Different decontamination solutions are pre-set for different blur levels of the windshield. After determining the blur level of the current windshield, the corresponding decontamination solution is selected to eliminate the windshield contamination problem.
[0059] There are multiple linear heating resistors, i.e. heating wires, evenly distributed on the car windshield. When defrosting, snowing or heating is needed in rainy, snowy or foggy weather, the heating function is turned on, the heating wires are powered on and heated, the glass temperature rises, and the frost or fog attached to the glass is melted by the heat, and melted into water droplets flowing down or volatilizing into mist, thereby achieving the defrosting and fogging effect.
[0060] Specifically, the working power of the heating wire in different heating schemes is different, and the effect of demisting and snow removal is also different. When the heating wire power is greater, the speed of demisting and snow removal is faster; correspondingly, the smaller the heating wire power is, the speed of demisting and snow removal is relatively slow. Therefore, when the degree of blurriness of the windshield is high, the decontamination scheme with higher heating wire power is implemented; when the degree of blurriness of the windshield is low, the decontamination scheme with lower heating wire power is implemented.
[0061] S104: After a first preset time has passed, determine whether the blur level of the windshield has degraded.
[0062] After the heating wire is controlled to work for a period of time according to the preset decontamination scheme corresponding to the blurriness, the existence of the stain on the windshield can be re-detected to determine whether the decontamination scheme is effective. Specifically, after the heating wire is controlled to work for a first preset time according to the preset decontamination scheme corresponding to the blurriness, an image of the current vehicle windshield can be captured, and the blurriness of the current vehicle windshield is perceived based on the image captured this time, and then compared with the blurriness perceived last time, to determine whether the blurriness of the vehicle windshield has been degraded, that is, to determine whether the stain on the vehicle windshield has been reduced compared to before the first preset time.
[0063] S105: If the blur level of the windshield is not degraded, a cleaning solution is executed.
[0064] If the blurriness of the windshield has not been degraded, it is considered that the current windshield is heavily stained, or there is other dirt on the windshield that blocks the view and cannot be removed in time by heating with the heating wire. At this time, a cleaning plan needs to be implemented. The cleaning plan may include any of the following: sending a cleaning reminder message to the driver, turning on the wipers, and turning on the wipers after sending a cleaning reminder message to the driver. For example, the driver is prompted to turn on the wiper switch to clean the windshield; or, the wipers are automatically started to clean the windshield; or, the driver is reminded that the current windshield is stained and the wipers are about to be turned on. After a preset waiting time (for example, waiting for five seconds), the wipers are started to clean the windshield.
[0065] The disclosed embodiment obtains an image acquisition result of a vehicle windshield; senses the blurriness of the windshield according to the area ratio of the blocked area in the image acquisition result; controls the heating wire to operate according to a preset decontamination scheme corresponding to the blurriness according to the different blurriness degrees of the windshield; determines whether the blurriness degree of the windshield is degraded after a first preset time; if the blurriness degree of the windshield is not degraded, executes a cleaning scheme, and automatically controls the heating wire to execute different decontamination schemes according to the different severity of fogging of the windshield, thereby ensuring that different degrees of fog can be completely dissipated under the action of the heating wire, ensuring that the sensors related to automatic driving can be free from the interference of glass fogging, and effectively ensuring driving safety.
[0066] Based on the above embodiment, before obtaining the image acquisition result of the vehicle windshield, the method also includes: detecting the temperature of the windshield; if the temperature is lower than the preset temperature, controlling the heating wire to heat at full power for a second preset time; or, if the temperature is not lower than the preset temperature, obtaining the image acquisition result of the vehicle windshield.
[0067] When the temperature of the windshield is lower than the preset temperature, due to the large temperature difference with the environment, it is considered that the windshield will be seriously fogged or in a state of easy fogging. Therefore, in this case, the windshield is heated first. Specifically, the heating wire is controlled to heat at full power for the second preset time. Correspondingly, when the temperature of the windshield is not lower than the preset temperature, the image acquisition result of the vehicle windshield is obtained to identify the degree of windshield blur, and the corresponding decontamination solution is executed.
[0068] The disclosed embodiment determines the temperature of the windshield before capturing the image of the vehicle windshield, and directly controls the heating wire to heat the windshield when the temperature is too low and is prone to severe fogging, thereby effectively improving the efficiency of the windshield defogger method and reducing the possibility of abnormal data collection in the image acquisition device due to dirty glass.
[0069] Figure 2 A flow chart of a method for removing dirt from a windshield provided by another embodiment of the present disclosure. Figure 2 As shown, the method includes the following steps:
[0070] S201: Obtain image acquisition results for a vehicle windshield.
[0071] Specifically, the implementation process and principle of S201 and S101 are the same, and will not be repeated here.
[0072] S202: Sense the blur degree of the windshield according to the area ratio of the blocked area in the image acquisition result.
[0073] Specifically, if the proportion of the obscured area to the windshield area is greater than a preset proportion value, the blur degree is determined to be severe blur; or if the proportion of the obscured area to the windshield area is less than or equal to a preset proportion value, the blur degree is determined to be light to medium blur.
[0074] In some embodiments, the clarity of each position in the image acquisition result is detected by a preset algorithm (such as Brenner gradient function, Tenengrad gradient function, etc.). For each position, if the image clarity at the position is greater than the preset clarity, the position is considered to be unobstructed; or, if the image clarity at the position is less than or equal to the preset clarity, the position is considered to belong to the obstructed area. Among them, each position in the image acquisition result can refer to each pixel point in the image acquisition result, or the image acquisition result can be divided into multiple local images according to the preset area, which is not limited in the embodiments of the present disclosure.
[0075] Furthermore, the occlusion of each position in the image acquisition result is detected by a pre-trained machine model or a neural network model. Specifically, the image acquisition result is input into a pre-trained detection model, and the detection model determines the clarity of each position in the image acquisition result based on the above-mentioned preset algorithm, and then calculates and outputs the area ratio of the occluded area in the image acquisition result.
[0076] When the proportion of the area of the blocked area to the area of the windshield is greater than the preset proportion value, it is considered that the windshield is severely dirty at this time, and the blur level of the current windshield is determined to be severe blur, which seriously blocks the driving line of sight or the collection effect of the environmental information collection device placed behind the windshield; when the proportion of the area of the blocked area to the area of the windshield is less than or equal to the preset proportion value, it is considered that there is partial dirt on the windshield at this time, and the blur level of the current windshield is determined to be light to moderate blur, which has a certain impact on the driving line of sight or the collection effect of the environmental information collection device placed behind the windshield.
[0077] It can be understood that the classification of the blur degree of the windshield in the embodiment of the present disclosure is only used as an example. In other embodiments, the blur degree of the windshield can be divided into primary blur, secondary blur, tertiary blur, etc. according to the proportion of the blocked area to the area of the windshield, or any other arbitrary blur level determination method can be adopted, and the embodiment of the present disclosure is not limited to this.
[0078] S203, according to different blurring degrees of the windshield, controlling the heating wire to operate according to a preset decontamination scheme corresponding to the blurring degrees.
[0079] Different decontamination schemes are pre-set for different blur levels of the windshield. After determining the blur level of the current windshield, a corresponding decontamination scheme is selected to remove the decontamination of the windshield.
[0080] Specifically, when the blur level is severe, the heating wire is controlled to heat at full power for a third preset time; or, when the blur level is light to medium, the heating wire is controlled to heat at a preset current duty cycle for a fourth preset time.
[0081] When the heating wire power is greater, the defog speed is faster; correspondingly, the smaller the heating wire power is, the defog speed is relatively slower. Therefore, when the windshield is more blurred, a decontamination scheme with a higher heating wire power is implemented; when the windshield is less blurred, a decontamination scheme with a lower heating wire power is implemented. When the blur is severe, the heating wire is controlled to heat at full power for the third preset time; when the blur is mild to moderate, the heating wire is controlled to heat at a preset current duty cycle for the fourth preset time to achieve a fast defogging effect.
[0082] Among them, the preset current duty cycle is an adjustable duty cycle, and the heating power of the heating wire is adjusted by the duty cycle. In pulse width modulation (PWM), the duty cycle refers to the proportion of the power-on time to the total time in a pulse cycle. The higher the duty cycle, the higher the heating power of the heating wire, and the lower the duty cycle, the lower the heating power of the heating wire. At the same time, the third preset time and the fourth preset time can be manually preset or adjusted.
[0083] S204: After a first preset time has passed, determine whether the blur level of the windshield is degraded.
[0084] After the heating wire is controlled to work for a period of time according to the preset decontamination scheme corresponding to the blur level, the presence of contamination on the windshield can be re-detected to determine whether the decontamination scheme is effective. Specifically, after the heating wire is controlled to work for a first preset time according to the preset decontamination scheme corresponding to the blur level, an image of the current vehicle windshield can be captured, and it can be determined whether the area ratio of the blocked area is reduced compared to the previous recognition result, that is, whether the contamination on the vehicle windshield has been reduced compared to before the first preset time.
[0085] In some embodiments, when the current windshield is judged to be severely blurred based on the last recognition result, the blurriness of the current vehicle windshield is perceived based on the re-captured image to determine whether the blurriness of the vehicle windshield has been degraded; when the current windshield is judged to be lightly or moderately blurred based on the last recognition result, if the area ratio of the obscured area is lower than the last recognition result, it is considered that the blurriness of the vehicle windshield has been degraded, thereby determining whether the stains on the vehicle windshield have been reduced compared to the first preset time.
[0086] S205: If the blur level of the windshield is degraded, proceed to the step of obtaining an image acquisition result of the vehicle windshield.
[0087] If the blur level of the windshield is degraded, it is considered that the contamination on the windshield has been alleviated after defogger is performed by the heating wire, and there is no need to execute the cleaning solution at this time. Therefore, the process can be transferred to the step of obtaining the image acquisition result of the vehicle windshield, that is, step 201. In this way, the steps of obtaining the image acquisition result of the current windshield, detecting the blur level of the windshield, and executing corresponding processing measures can be executed again.
[0088] The disclosed embodiment proposes different defouling schemes for different degrees of windshield fouling, which can quickly defog when fogging is severe. At the same time, it can also save energy while ensuring the defouling effect when fogging is mild to moderate, thereby improving the flexibility of the windshield defouling method.
[0089] Figure 3 A flow chart of a windshield defogging method provided by another embodiment of the present disclosure. Figure 3 As shown, the method includes the following steps:
[0090] S301, detect whether the temperature of the windshield is lower than a preset temperature. If yes, execute S302; if no, execute S303.
[0091] S302, controlling the heating wire to heat at full power for a second preset time.
[0092] When the temperature of the windshield is lower than the preset temperature, due to the large temperature difference with the ambient temperature, it is considered that the windshield is seriously fogged or is in a state of being easy to fog, so in this case, the windshield is heated first. Specifically, the heating wire is controlled to heat at full power for the second preset time.
[0093] S303: Obtain image acquisition results for the vehicle windshield.
[0094] Correspondingly, when the temperature of the windshield is not lower than the preset temperature, the image acquisition result of the vehicle windshield is obtained to identify the degree of blur of the windshield, and a corresponding decontamination solution is executed.
[0095] S304: Determine whether the area ratio of the blocked area in the image acquisition result is greater than a preset ratio value. If yes, execute S305; if no, execute S306.
[0096] S305, controlling the heating wire to heat at full power for a third preset time.
[0097] When the heating wire power is greater, the defogging speed is faster; correspondingly, when the heating wire power is smaller, the defogging speed is relatively slower. Therefore, when the windshield is more blurred, a defogging scheme with a higher heating wire power is executed, such as controlling the heating wire to heat at full power for a third preset time.
[0098] S306, controlling the heating wire to heat for a fourth preset time at a preset current duty cycle.
[0099] When the blur degree is light to medium blur, the heating wire is controlled to heat for a fourth preset time at a preset current duty cycle to achieve a quick defogging effect.
[0100] The preset current duty cycle is an adjustable duty cycle, and the heating power of the heating wire is adjusted by the duty cycle. The duty cycle refers to the proportion of the power-on time to the total time in a pulse cycle. The higher the duty cycle, the higher the heating power of the heating wire, and the lower the duty cycle, the lower the heating power of the heating wire.
[0101] At the same time, the third preset time and the fourth preset time can be manually preset or arbitrarily adjusted. The third preset time and the fourth preset time can be the same or different, and the embodiment of the present disclosure does not limit this.
[0102] S307: After a first preset time has passed, determine whether the blur level of the windshield is degraded. If so, execute S303; if not, execute S308.
[0103] After the heating wire is controlled to work for a period of time according to the preset decontamination scheme corresponding to the blur level, the presence of contamination on the windshield can be re-detected to determine whether the decontamination scheme is effective. Specifically, after the heating wire is controlled to work for a first preset time according to the preset decontamination scheme corresponding to the blur level, an image of the current vehicle windshield can be captured, and it can be determined whether the area ratio of the blocked area is reduced compared to the previous recognition result, that is, whether the contamination on the vehicle windshield has been reduced compared to before the first preset time.
[0104] In some embodiments, when the current windshield is judged to be severely blurred based on the last recognition result, the blurriness of the current vehicle windshield can be perceived based on the image collected this time to determine whether the blurriness of the vehicle windshield has been degraded; when the current windshield is judged to be lightly or moderately blurred based on the last recognition result, if the area ratio of the obscured area is lower than the last recognition result, it is considered that the blurriness of the vehicle windshield has been degraded, thereby determining whether the stains on the vehicle windshield have been reduced compared to the first preset time.
[0105] If the blur level of the windshield is degraded, it is considered that the contamination on the windshield has been alleviated after defogger is performed by the heating wire. At this time, there is no need to execute the cleaning solution. Instead, the image acquisition result of the current windshield is obtained again and the blur level of the windshield is continuously detected to execute S303.
[0106] S308, executing the cleaning plan.
[0107] If the area ratio of the blocked area of the windshield does not decrease, it is considered that the fog on the current windshield is heavy, or there is other dirt on the windshield that blocks the view, which cannot be removed in time by heating wire defogger. At this time, a cleaning solution needs to be implemented. For example, the driver is prompted to turn on the wiper switch to clean the windshield; or, the wiper is automatically started to clean the windshield; or, the driver is prompted that the current windshield is dirty and the wiper is about to be turned on, and the wiper is started after a preset waiting time (for example, waiting for five seconds) to clean the windshield.
[0108] After a fifth preset time, the image acquisition result of the vehicle windshield is acquired again, and the blur degree of the windshield is sensed. The fifth preset time may be counted from the start of the wiper working, or after a prompt is given to the driver.
[0109] The disclosed embodiment automatically controls the heating wire to execute different defouling schemes according to the severity of fogging of the windshield, thereby ensuring that the sensors related to autonomous driving can be free from interference from glass fogging and effectively ensuring driving safety. At the same time, before collecting the image of the vehicle windshield, the temperature of the windshield is first judged, and when the temperature of the windshield is too low and it is very easy to fog up heavily, the heating wire is directly controlled to heat it, thereby effectively improving the efficiency of the windshield defogging method and reducing the possibility of abnormal data collection in the image acquisition device due to glass dirt.
[0110] Figure 4The windshield demisting device provided in the embodiment of the present disclosure is a schematic diagram of the structure. The windshield demisting device may be the terminal device described in the above embodiment, or the windshield demisting device may be a component or assembly in the terminal device. The windshield demisting device provided in the embodiment of the present disclosure may execute the processing flow provided in the windshield demisting method embodiment, such as Figure 4 As shown, the windshield defogger 40 includes: an acquisition module 41, a perception module 42, a control module 43, a judgment module 44, and a cleaning module 45; wherein the acquisition module 41 is used to acquire the image acquisition result of the vehicle windshield; the perception module 42 is used to perceive the blur degree of the windshield according to the area ratio of the blocked area in the image acquisition result; the control module 43 is used to control the heating wire to work according to the preset decontamination scheme corresponding to the blur degree according to the different blur degrees of the windshield; the judgment module 44 is used to judge whether the blur degree of the windshield is degraded after a first preset time; the cleaning module 45 is used to execute the cleaning scheme when the blur degree of the windshield is not degraded.
[0111] Optionally, the windshield defogger 40 also includes a detection module 46, which is used to detect the temperature of the windshield before obtaining the image acquisition result of the vehicle windshield; the control module 43 is also used to control the heating wire to heat at full power for a second preset time when the temperature is lower than the preset temperature; the acquisition module 41 is also used to obtain the image acquisition result of the vehicle windshield when the temperature is not lower than the preset temperature.
[0112] Optionally, the perception module 42 is specifically used to determine that the degree of blur is severe blur if the proportion of the obscured area to the windshield area is greater than a preset proportion value; or to determine that the degree of blur is light to medium blur if the proportion of the obscured area to the windshield area is less than or equal to a preset proportion value.
[0113] Optionally, the control module 43 is specifically used to control the heating wire to heat at full power for a third preset time when the blur level is severe; or, when the blur level is light to medium, control the heating wire to heat at a preset current duty cycle for a fourth preset time.
[0114] Optionally, the perception module 42 is further configured to, after determining whether the blur level of the windshield is degraded, obtain the image acquisition result of the vehicle windshield by the acquisition module 41 if the blur level of the windshield is degraded.
[0115] Optionally, the acquisition module 41 is further used to acquire the image acquisition result of the vehicle windshield again after a fifth preset time has passed after the cleaning scheme is executed; the perception module 42 is further used to perceive the blurriness of the windshield.
[0116] Optionally, the cleaning module 45 is used to execute any one of the following cleaning schemes: sending a cleaning reminder message to the driver, turning on the wipers, and turning on the wipers after sending a cleaning reminder message to the driver.
[0117] Figure 4 The windshield defogger device of the illustrated embodiment can be used to implement the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0118] In addition, an embodiment of the present disclosure also provides a vehicle, which includes the windshield defogger device as described in the above embodiment.
[0119] Figure 5 Schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. The electronic device may be a terminal device as described in the above embodiment. The electronic device provided in an embodiment of the present disclosure may execute the processing flow provided in an embodiment of the windshield defogging method, such as Figure 5 As shown, the electronic device 50 includes: a memory 51, a processor 52, a computer program and a communication interface 53; wherein the computer program is stored in the memory 51 and is configured so that the processor 52 executes the windshield defog method as described above.
[0120] In addition, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the windshield defog method described in the above embodiment.
[0121] In addition, an embodiment of the present disclosure also provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the windshield defog method as described above is implemented.
[0122] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0123] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0124] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0125] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
