A method and system for automatically defogging a vehicle and a vehicle
By obtaining the difference in the clearness of the vehicle's internal and external temperature and the front windshield, and automatically adjusting the window lifting parameters to defog, the problem that the front windshield of the car is prone to form a fog layer during parking, realizing automatic defog removal, improving driving safety and reducing maintenance costs.
Patent Information
- Application Number
- CN202411850071.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-01
AI Technical Summary
The front windshield of the car is prone to form a fog layer when the temperature difference inside and outside the car is large, causing the driver to wait for defog when starting the vehicle, extending the preparation time, and long-term fog increases safety hazards and maintenance costs. The prior art cannot automatically defog during vehicle parking.
By obtaining the outdoor and indoor temperatures at the current moment of the vehicle, we judge whether the temperature difference is greater than the preset threshold, and perform grayscale conversion and denoising based on the clarity picture of the front windshield, evaluate the clarity difference value, determine the fogging level, and then determine the window lifting parameters based on the temperature difference value, clarity difference value and fogging level, and automatically lift the window to defogging.
Automatic defog removal during vehicle parking is achieved, preventing the risk of fogging after vehicle starts, improving driving safety and reducing maintenance costs.
Smart Images

Figure CN119737098A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle defogger, and in particular to a vehicle automatic defogger method, system and vehicle. Background Art
[0002] The fogging of the car windshield is a common problem in the current automotive industry. It is a layer of fog formed by condensation of water vapor on the glass surface when the air circulation in the car is insufficient, the humidity in the car is high, and the temperature inside the car is higher than the ambient temperature outside the car. In cold weather, when the vehicle is parked in a parking lot or outdoors, the temperature difference between the inside and outside of the car increases, and the front windshield is very easy to form a fog layer. At this time, if the driver wants to start the vehicle, he has to turn on the defog mode in the car and wait patiently for the fog to dissipate, which undoubtedly prolongs the driver's preparation time before setting off safely; if the driver chooses to ignore the fog and go on the road directly, this layer of blurred fog will seriously block the line of sight, making the road and other vehicles unclear, greatly increasing the safety risks during driving; in addition, the long-term presence of fog in the car may also cause damage to the equipment inside the vehicle, or accelerate the aging of the window seals, thereby pushing up the maintenance costs of the vehicle.
[0003] At present, the main methods used by the industry to deal with the fogging problem are to install air conditioning defogging mode, heat the glass surface with electric heating wires, and use anti-fogging coated glass. However, these solutions are not only costly and complex to implement, but also have varying defogging effects. More importantly, they are unable to achieve automatic defogging of vehicles while they are parked. Therefore, it is particularly urgent and important to develop a new defogging method that can automatically defog parked vehicles and effectively prevent the risk of fogging after the vehicle is started.
[0004] Application Contents
[0005] The present application provides a vehicle automatic defog method, system and vehicle, which can automatically defog a parked vehicle and effectively prevent the risk of fogging after the vehicle is started.
[0006] In a first aspect, the present application provides a vehicle automatic defogging method, comprising:
[0007] If the time difference between the current time and the time when the vehicle is powered off meets the preset time threshold, the outdoor temperature and indoor temperature of the vehicle at the current time are respectively obtained, and the temperature difference is determined based on the outdoor temperature and the indoor temperature;
[0008] If the temperature difference is greater than a preset temperature threshold, determining a first clarity based on a first picture of the front windshield obtained, determining a second clarity based on a second picture of the front windshield obtained, and determining a clarity difference based on the first clarity and the second clarity, wherein the first picture is obtained at a time when the vehicle is powered off, and the second picture is obtained at a current time;
[0009] It is determined whether the clarity difference falls within a preset clarity range, a fogging level is determined based on the determination result, a window lifting parameter is determined based on the temperature difference, the clarity difference and the fogging level, and the window is automatically lifted or lowered according to the window lifting parameter.
[0010] The embodiment of the present application can accurately determine the temperature difference between the internal and external environments of the vehicle by respectively obtaining the outdoor temperature and the indoor temperature of the vehicle at the current moment, so as to facilitate the subsequent accurate judgment of whether the window is fogged; by respectively obtaining the clarity corresponding to the time when the vehicle is powered off and the current moment, the clarity difference between the time when the vehicle is powered off and the current moment can be accurately determined, so as to facilitate the subsequent judgment of whether the window is fogged; by judging whether the clarity difference belongs to the preset clarity range, it can accurately judge whether fogging and the fogging level can be determined, so as to facilitate the subsequent corresponding defogger for different fogging levels; based on the temperature difference, the clarity difference and the fogging level, the window lifting parameters can be determined accurately, and the window lifting parameters can be automatically performed based on the window lifting parameters, and the parked vehicle can be automatically defogged for different fogging levels, effectively preventing the risk of fogging after the vehicle is started. Compared with the prior art, the present application can automatically defog the parked vehicle, effectively preventing the risk of fogging after the vehicle is started.
[0011] Further, the determining of the first clarity based on the acquired first picture of the front windshield is specifically:
[0012] Obtain the first image of the front windshield when the vehicle is powered off;
[0013] Performing grayscale conversion and denoising on the first image to obtain a third image;
[0014] The clarity of the third picture is evaluated by a clarity evaluation algorithm to determine a first clarity.
[0015] In this way, by obtaining the clarity at the time when the vehicle is powered off, it is convenient to subsequently determine the clarity difference between the time when the vehicle is powered off and the current time, and then facilitate the subsequent judgment of whether the window is fogged.
[0016] Furthermore, before determining the second clarity based on the acquired second picture of the front windshield, the method further includes:
[0017] Obtaining the current brightness of the vehicle interior, and determining whether the brightness of the vehicle interior is lower than a preset brightness threshold;
[0018] If the interior brightness of the vehicle at the current moment is lower than a preset brightness threshold, providing compensation light;
[0019] A second image after providing the compensation light is obtained, and a second definition corresponding to the second image is determined.
[0020] In this way, by providing compensatory light when the brightness inside the car is low, it can ensure that the clarity of the front windshield at the current moment can be accurately obtained, which is convenient for the subsequent accurate determination of the clarity difference between the moment when the vehicle is powered off and the current moment, and convenient for the subsequent judgment of whether the window is fogged.
[0021] Furthermore, the window lifting and lowering parameters are determined based on the temperature difference, the clarity difference and the fogging level, specifically:
[0022] The temperature difference, the clarity difference and the fogging level are input into a pre-trained prediction model to determine the window lifting parameters, wherein the window lifting parameters include lifting height, lifting speed and lifting time.
[0023] In this way, by determining the window lifting parameters based on the temperature difference, the clarity difference and the fogging level, the window lifting parameters can be accurately determined, and the windows can be automatically lifted and lowered based on the window lifting parameters. Parked vehicles can be automatically defogged according to different fogging levels, effectively preventing the risk of fogging after the vehicle is started.
[0024] Furthermore, after the window is automatically raised and lowered according to the window raising and lowering parameters, the method further includes:
[0025] The temperature difference is updated based on the temperature of the vehicle internal and external environment at the current moment acquired in real time, and the clarity difference is updated based on the third clarity of the front windshield at the current moment acquired in real time;
[0026] If the temperature difference is less than a preset temperature threshold or the clarity difference does not fall within a preset clarity range, the vehicle window is controlled to be closed.
[0027] In this way, by continuously obtaining the temperature of the environment inside and outside the vehicle to update the temperature difference, and continuously obtaining the third clarity of the front windshield to update the clarity difference, and by comparing with the preset temperature threshold and the preset clarity range in real time, the windows can be controlled to close when the fogging conditions are not met to ensure vehicle safety.
[0028] In a second aspect, the present application provides a vehicle automatic defog system, comprising: an acquisition module, a determination module and a first control module;
[0029] The acquisition module is used to respectively acquire the outdoor temperature and indoor temperature of the vehicle at the current moment if the time difference between the current moment and the time when the vehicle is powered off meets a preset time threshold, and determine the temperature difference based on the outdoor temperature and the indoor temperature;
[0030] The determination module is configured to determine a first clarity based on a first picture of the front windshield obtained, determine a second clarity based on a second picture of the front windshield obtained, and determine a clarity difference based on the first clarity and the second clarity if the temperature difference is greater than a preset temperature threshold, wherein the first picture is obtained at a time when the vehicle is powered off, and the second picture is obtained at a current time;
[0031] The first control module is used to determine whether the clarity difference falls within a preset clarity range, determine a fogging level based on the determination result, determine a window lifting parameter based on the temperature difference, the clarity difference and the fogging level, and automatically lift the window according to the window lifting parameter.
[0032] The embodiment of the present application can accurately determine the temperature difference between the internal and external environments of the vehicle by respectively obtaining the outdoor temperature and the indoor temperature of the vehicle at the current moment, so as to facilitate the subsequent accurate judgment of whether the window is fogged; by respectively obtaining the clarity corresponding to the time when the vehicle is powered off and the current moment, the clarity difference between the time when the vehicle is powered off and the current moment can be accurately determined, so as to facilitate the subsequent judgment of whether the window is fogged; by judging whether the clarity difference belongs to the preset clarity range, it can accurately judge whether fogging and the fogging level can be determined, so as to facilitate the subsequent corresponding defogger for different fogging levels; based on the temperature difference, the clarity difference and the fogging level, the window lifting parameters can be determined accurately, and the window lifting parameters can be automatically performed based on the window lifting parameters, and the parked vehicle can be automatically defogged for different fogging levels, effectively preventing the risk of fogging after the vehicle is started. Compared with the prior art, the present application can automatically defog the parked vehicle, effectively preventing the risk of fogging after the vehicle is started.
[0033] Further, the determination module includes: a first acquisition unit, a processing unit and an evaluation unit;
[0034] The first acquisition unit is used to acquire a first image of the front windshield when the vehicle is powered off;
[0035] The processing unit is used to perform grayscale conversion and denoising on the first image to obtain a third image;
[0036] The evaluation unit is used to evaluate the clarity of the third picture by using a clarity evaluation algorithm to determine the first clarity.
[0037] Furthermore, the vehicle automatic defog system further includes a compensation module, which includes: a second acquisition unit, a compensation unit and a determination unit;
[0038] The second acquisition unit is used to acquire the current brightness of the vehicle interior and determine whether the brightness of the vehicle interior is lower than a preset brightness threshold;
[0039] The compensation unit is used to provide compensation light if the brightness inside the vehicle at the current moment is lower than a preset brightness threshold;
[0040] The determining unit is used to obtain a second image after providing the compensation light, and determine a second definition corresponding to the second image.
[0041] Furthermore, the vehicle automatic defog system further comprises: a second control module, the second control module comprising: an updating unit and a control unit;
[0042] The updating unit is used to update the temperature difference value based on the temperature of the vehicle internal and external environment at the current moment obtained in real time, and to update the clarity difference value based on the third clarity of the front windshield at the current moment obtained in real time;
[0043] The control unit is used to control the vehicle window to close if the temperature difference is less than a preset temperature threshold or the clarity difference does not fall within a preset clarity range.
[0044] In a third aspect, the present application also provides a vehicle, which is configured to execute the vehicle automatic defog method as described in any one of the present applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is a flow chart of an embodiment of a vehicle automatic defogging method provided by the present application;
[0046] Figure 2 It is a structural schematic diagram of an embodiment of a vehicle automatic defog system provided by the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] It should be understood that the step numbers used in this article are only for the convenience of description and are not intended to limit the order in which the steps are executed.
[0049] It should be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.
[0050] The terms “include” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0051] The term "and / or" means and includes any and all possible combinations of one or more of the associated listed items.
[0052] The fogging of car windshields is a common problem in the current automotive industry. In cold weather, when a vehicle is parked in a parking lot or outdoors, a fog layer is easily formed on the windshield due to the increased temperature difference between the inside and outside of the car. At this time, if the driver wants to start the vehicle, he needs to start the defog mode and wait patiently for the fog to dissipate, which undoubtedly prolongs the driver's preparation time before safe departure; if the driver ignores the fog and goes on the road directly, this layer of fog will seriously block the line of sight, posing a major safety hazard; at the same time, the long-term presence of fog in the car may also damage the equipment in the car, accelerate the aging of the sealing strip, and increase the vehicle maintenance cost. The industry currently uses methods such as air conditioning defogger, electric heating wire heating, and anti-fog coating, but the cost is high, the effect is inconsistent, and it is impossible to automatically defog parked vehicles. Therefore, it is urgent to develop a new defogger method that automatically defogs parked vehicles and prevents fogging.
[0053] Next, the nouns involved in this application are analyzed:
[0054] Artificial intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. AI is a branch of computer science that attempts to understand the essence of intelligence and produce a new type of intelligent machine that can respond in a similar way to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing and expert systems. AI can simulate the information process of human consciousness and thinking. AI is also a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0055] The fogging of the car windshield is the formation of a fog layer due to condensation of water vapor on the glass surface when there is insufficient air circulation in the car, high humidity in the car, and high temperature inside the car and the ambient temperature outside the car.
[0056] Based on this, the embodiments of the present application provide a vehicle automatic defog method, system and vehicle, which can automatically defog a parked vehicle and effectively prevent the risk of fogging after the vehicle is started.
[0057] An automatic vehicle defog method, system and vehicle provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, an automatic vehicle defog method in the embodiments of the present application is described.
[0058] An automatic vehicle defog method provided in an embodiment of the present application relates to the field of power system communications. An automatic vehicle defog method provided in an embodiment of the present application can be applied in a terminal, can be applied in a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or can be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements an automatic vehicle defog method, etc., but is not limited to the above forms.
[0059] The present application can also be used in numerous general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0060] Embodiment 1
[0061] Please refer to Figure 1 , Figure 1 It is a flow chart of an embodiment of a vehicle automatic defogging method provided by the present application, including steps S101 to S103;
[0062] Step S101, if the time difference between the current time and the time when the vehicle is powered off meets the preset time threshold, respectively obtain the outdoor temperature and indoor temperature of the vehicle at the current time, and determine the temperature difference based on the outdoor temperature and the indoor temperature;
[0063] In some embodiments, when the vehicle is powered off, the current system time is recorded as the power-off time through the on-board network terminal (TBOX). After the vehicle is turned off, the TBOX will enter a low-power sleep mode, and compare the time difference between the current time and the power-off time with a preset time threshold. If the time difference meets the threshold, the TBOX will automatically wake up at this time, and the TBOX will connect to the network to obtain the temperature of the vehicle's environment, that is, the outdoor temperature. At the same time, the sensor on the vehicle will obtain the temperature of the interior environment, that is, the indoor temperature, and transmit the indoor temperature and the outdoor temperature to the integrated body control system (I BC), so that the IBC calculates the temperature difference between the obtained outdoor temperature and the indoor temperature.
[0064] Step S102, if the temperature difference is greater than a preset temperature threshold, determining a first clarity based on a first picture of the front windshield obtained, determining a second clarity based on a second picture of the front windshield obtained, and determining a clarity difference based on the first clarity and the second clarity, wherein the first picture is obtained at a time when the vehicle is powered off, and the second picture is obtained at a current time;
[0065] In some embodiments, if the temperature difference is greater than a preset temperature threshold, specifically, the temperature threshold can be freely set. When the temperature difference is greater than the preset temperature threshold, it indicates that the windshield may be fogged, and further analysis of the clarity of the windshield is required to determine the fogging level.
[0066] In some embodiments, the first clarity is determined based on the first image of the front windshield obtained, including: obtaining a first image of the front windshield at the time when the vehicle is powered off; grayscale conversion and denoising of the first image to obtain a third image; evaluating the clarity of the third image by a clarity evaluation algorithm to determine the first clarity. Specifically, first, a high-definition camera capable of photographing the windshield is installed inside the vehicle, and the camera is connected to the vehicle power management system so that when the vehicle is powered off, the camera function can be triggered to take the first image of the front windshield at the time when the vehicle is powered off; secondly, after the first image is obtained, the first image is converted into a grayscale image, and the grayscale image is denoised to remove noise caused by dust on the camera lens, insufficient light, or interference during image transmission to obtain a third image; finally, the first clarity of the third image is calculated based on characteristic images such as the gradient, edge strength, and contrast of the third image.
[0067] In some embodiments, the denoising method may be, but is not limited to, mean filtering, median filtering, Gaussian filtering, etc.
[0068] In some embodiments, the clarity assessment algorithm may be, but is not limited to, Laplacian operator, variance method, gradient norm method, etc.
[0069] In some embodiments, the first clarity or the second clarity may be a specific value, indicating the clarity of the image, or may be a grade, indicating the quality of the image clarity.
[0070] In this way, by obtaining the clarity at the time when the vehicle is powered off, it is convenient to subsequently determine the clarity difference between the time when the vehicle is powered off and the current time, and then facilitate the subsequent judgment of whether the window is fogged.
[0071] In some embodiments, before determining the second clarity based on the second image of the front windshield, it also includes: obtaining the brightness inside the vehicle at the current moment, and determining whether the brightness inside the vehicle is lower than a preset brightness threshold; if the brightness inside the vehicle at the current moment is lower than the preset brightness threshold, providing compensation light; obtaining the second image after providing the compensation light, and determining the second clarity corresponding to the second image. Specifically, one or more light sensors are installed inside the vehicle to obtain the brightness inside the vehicle at the current moment. When the brightness inside the vehicle is lower than the preset brightness threshold, it means that the current brightness is low, and it is necessary to control the brightness of the adjustable brightness light source to provide sufficient compensation light. After providing the compensation light, when the brightness inside the vehicle meets the preset threshold, the camera is triggered to take a new image as the second image.
[0072] In some embodiments, the preset brightness threshold can be freely set according to factors such as the vehicle's internal environment, time, weather conditions, etc.
[0073] In some embodiments, providing the compensatory light can be achieved by controlling the power of the light source, turning on additional lights, or adjusting the angle of the lights.
[0074] In this way, by providing compensatory light when the brightness inside the car is low, it can ensure that the clarity of the front windshield at the current moment can be accurately obtained, which is convenient for the subsequent accurate determination of the clarity difference between the moment when the vehicle is powered off and the current moment, and convenient for the subsequent judgment of whether the window is fogged.
[0075] In some embodiments, the second clarity is determined based on the acquired second picture of the front windshield, specifically, the second picture of the front windshield at the current moment is taken by a high-definition camera; secondly, after the second picture is acquired, the second picture is converted into a grayscale image, and the grayscale image is denoised to remove noise caused by dust on the camera lens, insufficient light or interference during image transmission to obtain a fourth picture; finally, the second clarity of the fourth image is calculated based on the characteristic images of the fourth image, such as gradient, edge strength, contrast, etc.
[0076] In some embodiments, the clarity difference is determined based on the first clarity and the second clarity. Specifically, after obtaining the first clarity and the second clarity, the two clarity are subtracted to determine the clarity difference corresponding to the current moment, so as to facilitate the subsequent determination of the specific fogging level.
[0077] Step S103, determining whether the clarity difference falls within a preset clarity range, determining a fogging level based on the determination result, determining window lifting parameters based on the temperature difference, the clarity difference and the fogging level, and automatically lifting and lowering the window according to the window lifting parameters.
[0078] In some embodiments, it is determined whether the clarity difference belongs to a preset clarity range, and the fogging level is determined based on the judgment result. Specifically, three clarity ranges are set, and each range corresponds to a different fogging level, such as range A is slightly fogged, range B is moderately fogged, and range C is heavily fogged, wherein each range has an upper and lower limit of clarity, which is used to determine which level the clarity difference belongs to, and the calculated clarity difference is compared with the preset clarity range to determine which range it belongs to, and then the current fogging level is determined according to the range to which the clarity difference belongs. Exemplarily, when the clarity difference is less than or equal to 30%, it means that the front windshield at the current moment is slightly fogged, and no defogging is required at this time. When the clarity difference is greater than 30% and less than or equal to 50%, it means that the front windshield at the current moment is moderately fogged, and defogging is required at this time. When the clarity difference is greater than 50%, it means that the front windshield at the current moment is heavily fogged, and defogging is also required.
[0079] It should be noted that both moderate and severe fogging require defogging of the front windshield, but the degree of defogging is different. The defogging measures for severe fogging will be greater than those for moderate fogging.
[0080] In some embodiments, the window lifting parameters are determined based on the temperature difference, the clarity difference and the fogging level, and the window lifting is automatically performed according to the window lifting parameters, specifically: the temperature difference, the clarity difference and the fogging level are input into a pre-trained prediction model to determine the window lifting parameters, wherein the window lifting parameters include lifting height, lifting speed and lifting time. Specifically, a large amount of historical data needs to be collected. These data should include the window lifting parameters (lifting height, lifting speed and lifting time) under different conditions, as well as the corresponding temperature difference, clarity difference and fogging level. After that, the collected data is preprocessed to extract the temperature difference, clarity difference and fogging level as features (input variables), and the lifting height, lifting speed and lifting time are used as target variables (output variables). Then, a suitable model is selected and the processed data set is used to train the model so that the model learns the relationship between the features and the target variables. The performance of the model is evaluated through cross-validation and other methods to ensure that the model can accurately predict the window lifting parameters to obtain a trained prediction model. Finally, the temperature difference, the clarity difference and the fogging level are input into the pre-trained prediction model, and the prediction model will output the predicted window lifting parameters (lifting height, lifting speed and lifting time) according to the input features.
[0081] In this way, by determining the window lifting parameters based on the temperature difference, the clarity difference and the fogging level, the window lifting parameters can be accurately determined, and the windows can be automatically lifted and lowered based on the window lifting parameters. Parked vehicles can be automatically defogged according to different fogging levels, effectively preventing the risk of fogging after the vehicle is started.
[0082] In some embodiments, the window is automatically raised and lowered according to the window lifting parameters. Specifically, the window lifting parameters (lifting height, lifting speed and lifting time) output by the prediction model are converted into control instructions for the window motor, and the IBC is transmitted to the MCU of the glass lifter through the LIN bus. Then the MCU drives the motor to rotate the corresponding angle according to the received control instruction to ensure that the window is opened to the corresponding height (leaving a gap between the door and window glass). At this time, when the window is lowered, the fog layer will weaken over time, so it is necessary to monitor the temperature of the internal and external environments in real time to update the temperature difference, monitor the clarity of the front windshield at the current moment in real time to update the clarity difference, and continuously update the fogging level to determine the new window lifting parameters, and then drive the motor to rotate the corresponding angle through the IBC to ensure that the window rises to a certain height, until the fogging condition is not met, the window is controlled to close. That is, the IBC will continuously obtain the temperature and humidity in the car, constantly adjust the size of the window opening, and control the temperature difference between the internal and external environments within a certain range through the air circulation inside and outside the car, thereby preventing the car windshield from fogging.
[0083] In some embodiments, after the window is automatically raised and lowered according to the window raising and lowering parameters, it also includes: updating the temperature difference based on the temperature of the vehicle's internal and external environment at the current moment obtained in real time, and updating the clarity difference based on the third clarity of the front windshield at the current moment obtained in real time; if the temperature difference is less than the preset temperature threshold or the clarity difference does not belong to the preset clarity range, then control the window to close. Specifically, TBOX will monitor the temperature of the vehicle's internal and external environment at the next moment in real time to update the temperature difference, and monitor the clarity of the front windshield at the next moment in real time to update the clarity difference, and compare the temperature difference with the preset temperature threshold to determine whether the clarity difference belongs to the preset clarity range. If the temperature difference is less than the preset temperature threshold or the clarity difference does not belong to the preset clarity range, it means that the front windshield is free of fog, and then control the window to close to ensure property safety.
[0084] In some embodiments, when the front windshield is defogged, the I BC sends a signal to the user's APP, and the APP sends a pop-up window to prompt the user that the defog function of the entire vehicle is turned on, and the relevant defog information can be viewed within the APP.
[0085] In this way, by continuously obtaining the temperature of the environment inside and outside the vehicle to update the temperature difference, and continuously obtaining the third clarity of the front windshield to update the clarity difference, and by comparing with the preset temperature threshold and the preset clarity range in real time, the windows can be controlled to close when the fogging conditions are not met to ensure vehicle safety.
[0086] The embodiment of the present application can accurately determine the temperature difference between the internal and external environments of the vehicle by respectively obtaining the outdoor temperature and the indoor temperature of the vehicle at the current moment, so as to facilitate the subsequent accurate judgment of whether the window is fogged; by respectively obtaining the clarity corresponding to the time when the vehicle is powered off and the current moment, the clarity difference between the time when the vehicle is powered off and the current moment can be accurately determined, so as to facilitate the subsequent judgment of whether the window is fogged; by judging whether the clarity difference belongs to the preset clarity range, it can accurately judge whether fogging and the fogging level can be determined, so as to facilitate the subsequent corresponding defogger for different fogging levels; based on the temperature difference, the clarity difference and the fogging level, the window lifting parameters can be determined accurately, and the window lifting parameters can be automatically performed based on the window lifting parameters, and the parked vehicle can be automatically defogged for different fogging levels, effectively preventing the risk of fogging after the vehicle is started. Compared with the prior art, the present application can automatically defog the parked vehicle, effectively preventing the risk of fogging after the vehicle is started.
[0087] Embodiment 2
[0088] Figure 2It is a structural schematic diagram of an embodiment of a vehicle automatic defog system provided by the present application, including an acquisition module 100, a determination module 200 and a first control module 300;
[0089] The acquisition module 100 is used to respectively acquire the outdoor temperature and indoor temperature of the vehicle at the current moment if the time difference between the current moment and the time when the vehicle is powered off meets a preset time threshold, and determine the temperature difference based on the outdoor temperature and the indoor temperature;
[0090] In some embodiments, when the vehicle is powered off, the current system time is recorded as the power-off time through the on-board network terminal (TBOX). After the vehicle is turned off, the TBOX will enter a low-power sleep mode, and compare the time difference between the current time and the power-off time with a preset time threshold. If the time difference meets the threshold, the TBOX will automatically wake up at this time, and the TBOX will connect to the network to obtain the temperature of the vehicle's environment, that is, the outdoor temperature. At the same time, the sensor on the vehicle will obtain the temperature of the interior environment, that is, the indoor temperature, and transmit the indoor temperature and the outdoor temperature to the integrated body control system (I BC), so that the IBC calculates the temperature difference between the obtained outdoor temperature and the indoor temperature.
[0091] The determination module 200 is configured to determine a first clarity based on a first picture of the front windshield obtained, determine a second clarity based on a second picture of the front windshield obtained, and determine a clarity difference based on the first clarity and the second clarity if the temperature difference is greater than a preset temperature threshold, wherein the first picture is obtained at a time when the vehicle is powered off, and the second picture is obtained at a current time;
[0092] In some embodiments, if the temperature difference is greater than a preset temperature threshold, specifically, the temperature threshold can be freely set. When the temperature difference is greater than the preset temperature threshold, it indicates that the windshield may be fogged, and further analysis of the clarity of the windshield is required to determine the fogging level.
[0093] In some embodiments, the determination module 200 includes: a first acquisition unit, a processing unit and an evaluation unit; the first acquisition unit is used to acquire a first picture of the front windshield when the vehicle is powered off; the processing unit is used to perform grayscale conversion and denoising on the first picture to obtain a third picture; the evaluation unit is used to evaluate the clarity of the third picture through a clarity evaluation algorithm to determine the first clarity. Specifically, firstly, a high-definition camera capable of photographing the windshield is installed inside the vehicle, and the camera is connected to the vehicle power management system so that when the vehicle is powered off, a camera function can be triggered to take a first picture of the front windshield when the vehicle is powered off; secondly, after acquiring the first picture, the first picture is converted into a grayscale image, and the grayscale image is denoised to remove noise caused by dust on the camera lens, insufficient light or interference during image transmission to obtain a third picture; finally, the first clarity of the third image is calculated based on characteristic images such as gradient, edge intensity, contrast, etc. of the third image.
[0094] In some embodiments, the denoising method may be, but is not limited to, mean filtering, median filtering, Gaussian filtering, etc.
[0095] In some embodiments, the clarity assessment algorithm may be, but is not limited to, Laplacian operator, variance method, gradient norm method, etc.
[0096] In some embodiments, the first clarity or the second clarity may be a specific value, indicating the clarity of the image, or may be a grade, indicating the quality of the image clarity.
[0097] In this way, by obtaining the clarity at the time when the vehicle is powered off, it is convenient to subsequently determine the clarity difference between the time when the vehicle is powered off and the current time, and then facilitate the subsequent judgment of whether the window is fogged.
[0098] In some embodiments, the vehicle automatic defog system further includes a compensation module, and the compensation module includes: a second acquisition unit, a compensation unit, and a determination unit; the second acquisition unit is used to acquire the brightness inside the vehicle at the current moment, and determine whether the brightness inside the vehicle is lower than a preset brightness threshold; the compensation unit is used to provide compensation light if the brightness inside the vehicle at the current moment is lower than the preset brightness threshold; the determination unit is used to acquire a second picture after providing the compensation light, and determine the second clarity corresponding to the second picture. Specifically, one or more light sensors are installed inside the vehicle to acquire the brightness inside the vehicle at the current moment. When the brightness inside the vehicle is lower than the preset brightness threshold, it means that the current brightness is low, and it is necessary to control the brightness of the adjustable brightness light source to provide sufficient compensation light. After providing the compensation light, when the brightness inside the vehicle meets the preset threshold, the camera is triggered to take a new picture as the second picture.
[0099] In some embodiments, the preset brightness threshold can be freely set according to factors such as the vehicle's internal environment, time, weather conditions, etc.
[0100] In some embodiments, providing the compensatory light can be achieved by controlling the power of the light source, turning on additional lights, or adjusting the angle of the lights.
[0101] In this way, by providing compensatory light when the brightness inside the car is low, it can ensure that the clarity of the front windshield at the current moment can be accurately obtained, which is convenient for the subsequent accurate determination of the clarity difference between the moment when the vehicle is powered off and the current moment, and convenient for the subsequent judgment of whether the window is fogged.
[0102] In some embodiments, the second clarity is determined based on the acquired second picture of the front windshield, specifically, the second picture of the front windshield at the current moment is taken by a high-definition camera; secondly, after the second picture is acquired, the second picture is converted into a grayscale image, and the grayscale image is denoised to remove noise caused by dust on the camera lens, insufficient light or interference during image transmission to obtain a fourth picture; finally, the second clarity of the fourth image is calculated based on the characteristic images of the fourth image, such as gradient, edge strength, contrast, etc.
[0103] In some embodiments, the clarity difference is determined based on the first clarity and the second clarity. Specifically, after obtaining the first clarity and the second clarity, the two clarity are subtracted to determine the clarity difference corresponding to the current moment, so as to facilitate the subsequent determination of the specific fogging level.
[0104] The first control module 300 is used to determine whether the clarity difference falls within a preset clarity range, determine a fogging level based on the determination result, determine window lifting parameters based on the temperature difference, the clarity difference and the fogging level, and automatically lift and lower the windows according to the window lifting parameters.
[0105] In some embodiments, it is determined whether the clarity difference belongs to a preset clarity range, and the fogging level is determined based on the judgment result. Specifically, three clarity ranges are set, and each range corresponds to a different fogging level, such as range A is slightly fogged, range B is moderately fogged, and range C is heavily fogged, wherein each range has an upper and lower limit of clarity, which is used to determine which level the clarity difference belongs to, and the calculated clarity difference is compared with the preset clarity range to determine which range it belongs to, and then the current fogging level is determined according to the range to which the clarity difference belongs. Exemplarily, when the clarity difference is less than or equal to 30%, it means that the front windshield at the current moment is slightly fogged, and no defogging is required at this time. When the clarity difference is greater than 30% and less than or equal to 50%, it means that the front windshield at the current moment is moderately fogged, and defogging is required at this time. When the clarity difference is greater than 50%, it means that the front windshield at the current moment is heavily fogged, and defogging is also required.
[0106] It should be noted that both moderate and severe fogging require defogging of the front windshield, but the degree of defogging is different. The defogging measures for severe fogging will be greater than those for moderate fogging.
[0107] In some embodiments, the window lifting parameters are determined based on the temperature difference, the clarity difference and the fogging level, and the window lifting is automatically performed according to the window lifting parameters, specifically: the temperature difference, the clarity difference and the fogging level are input into a pre-trained prediction model to determine the window lifting parameters, wherein the window lifting parameters include lifting height, lifting speed and lifting time. Specifically, a large amount of historical data needs to be collected. These data should include the window lifting parameters (lifting height, lifting speed and lifting time) under different conditions, as well as the corresponding temperature difference, clarity difference and fogging level. After that, the collected data is preprocessed to extract the temperature difference, clarity difference and fogging level as features (input variables), and the lifting height, lifting speed and lifting time are used as target variables (output variables). Then, a suitable model is selected and the processed data set is used to train the model so that the model learns the relationship between the features and the target variables. The performance of the model is evaluated through cross-validation and other methods to ensure that the model can accurately predict the window lifting parameters to obtain a trained prediction model. Finally, the temperature difference, the clarity difference and the fogging level are input into the pre-trained prediction model, and the prediction model will output the predicted window lifting parameters (lifting height, lifting speed and lifting time) according to the input features.
[0108] In this way, by determining the window lifting parameters based on the temperature difference, the clarity difference and the fogging level, the window lifting parameters can be accurately determined, and the windows can be automatically lifted and lowered based on the window lifting parameters. Parked vehicles can be automatically defogged according to different fogging levels, effectively preventing the risk of fogging after the vehicle is started.
[0109] In some embodiments, the window is automatically raised and lowered according to the window lifting parameters. Specifically, the window lifting parameters (lifting height, lifting speed and lifting time) output by the prediction model are converted into control instructions for the window motor, and the IBC is transmitted to the MCU of the glass lifter through the LIN bus. Then the MCU drives the motor to rotate the corresponding angle according to the received control instruction to ensure that the window is opened to the corresponding height (leaving a gap between the door and window glass). At this time, when the window is lowered, the fog layer will weaken over time, so it is necessary to monitor the temperature of the internal and external environments in real time to update the temperature difference, monitor the clarity of the front windshield at the current moment in real time to update the clarity difference, and continuously update the fogging level to determine the new window lifting parameters, and then drive the motor to rotate the corresponding angle through the IBC to ensure that the window rises to a certain height, until the fogging condition is not met, the window is controlled to close. That is, the IBC will continuously obtain the temperature and humidity in the car, constantly adjust the size of the window opening, and control the temperature difference between the internal and external environments within a certain range through the air circulation inside and outside the car, thereby preventing the car windshield from fogging.
[0110] In some embodiments, the vehicle automatic defog system further includes: a second control module, the second control module includes: an updating unit and a control unit; the updating unit is used to update the temperature difference based on the temperature of the vehicle's internal and external environment at the current moment obtained in real time, and to update the clarity difference based on the third clarity of the front windshield at the current moment obtained in real time; the control unit is used to control the window to close if the temperature difference is less than a preset temperature threshold or the clarity difference does not belong to the preset clarity range. Specifically, TBOX will monitor the temperature of the vehicle's internal and external environment at the next moment in real time to update the temperature difference, and monitor the clarity of the front windshield at the next moment in real time to update the clarity difference, and compare the temperature difference with the preset temperature threshold to determine whether the clarity difference belongs to the preset clarity range. If the temperature difference is less than the preset temperature threshold or the clarity difference does not belong to the preset clarity range, it means that the front windshield is free of fog, and the window is controlled to close to ensure property safety.
[0111] In some embodiments, when the front windshield is defogged, the I BC sends a signal to the user's APP, and the APP sends a pop-up window to prompt the user that the defog function of the entire vehicle is turned on, and the relevant defog information can be viewed within the APP.
[0112] In this way, by continuously obtaining the temperature of the environment inside and outside the vehicle to update the temperature difference, and continuously obtaining the third clarity of the front windshield to update the clarity difference, and by comparing with the preset temperature threshold and the preset clarity range in real time, the windows can be controlled to close when the fogging conditions are not met to ensure vehicle safety.
[0113] The embodiment of the present application can accurately determine the temperature difference between the internal and external environments of the vehicle by respectively obtaining the outdoor temperature and the indoor temperature of the vehicle at the current moment, so as to facilitate the subsequent accurate judgment of whether the window is fogged; by respectively obtaining the clarity corresponding to the time when the vehicle is powered off and the current moment, the clarity difference between the time when the vehicle is powered off and the current moment can be accurately determined, so as to facilitate the subsequent judgment of whether the window is fogged; by judging whether the clarity difference belongs to the preset clarity range, it can accurately judge whether fogging and the fogging level can be determined, so as to facilitate the subsequent corresponding defogger for different fogging levels; based on the temperature difference, the clarity difference and the fogging level, the window lifting parameters can be determined accurately, and the window lifting parameters can be automatically performed based on the window lifting parameters, and the parked vehicle can be automatically defogged for different fogging levels, effectively preventing the risk of fogging after the vehicle is started. Compared with the prior art, the present application can automatically defog the parked vehicle, effectively preventing the risk of fogging after the vehicle is started.
[0114] The present application also provides a vehicle, which is configured to execute the vehicle automatic defog method as described in the present application.
[0115] The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, i.e., may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the method of this embodiment.
[0116] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-monitorable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0117] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application.
[0118] It is particularly pointed out that for those skilled in the art, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A vehicle automatic defogging method, characterized in that: include: If the time difference between the current time and the time when the vehicle is powered off meets the preset time threshold, the outdoor temperature and indoor temperature of the vehicle at the current time are respectively obtained, and the temperature difference is determined based on the outdoor temperature and the indoor temperature; If the temperature difference is greater than a preset temperature threshold, determining a first clarity based on a first picture of the front windshield obtained, determining a second clarity based on a second picture of the front windshield obtained, and determining a clarity difference based on the first clarity and the second clarity, wherein the first picture is obtained at a time when the vehicle is powered off, and the second picture is obtained at a current time; It is determined whether the clarity difference falls within a preset clarity range, a fogging level is determined based on the determination result, a window lifting parameter is determined based on the temperature difference, the clarity difference and the fogging level, and the window is automatically lifted or lowered according to the window lifting parameter.
2. The vehicle automatic defogging method according to claim 1, characterized in that: The determining of the first clarity based on the acquired first picture of the front windshield is specifically: Obtain the first image of the front windshield when the vehicle is powered off; Performing grayscale conversion and denoising on the first image to obtain a third image; The clarity of the third picture is evaluated by a clarity evaluation algorithm to determine a first clarity.
3. The vehicle automatic defogging method according to claim 1, characterized in that: Before determining the second clarity based on the acquired second picture of the front windshield, the method further includes: Obtaining the current brightness of the vehicle interior, and determining whether the brightness of the vehicle interior is lower than a preset brightness threshold; If the interior brightness of the vehicle at the current moment is lower than a preset brightness threshold, providing compensation light; A second image after providing the compensation light is obtained, and a second definition corresponding to the second image is determined.
4. The vehicle automatic defogging method according to claim 1, characterized in that: The determining of the window lifting and lowering parameters based on the temperature difference, the clarity difference and the fogging level is specifically: The temperature difference, the clarity difference and the fogging level are input into a pre-trained prediction model to determine the window lifting parameters, wherein the window lifting parameters include lifting height, lifting speed and lifting time.
5. The vehicle automatic defogging method according to claim 4, characterized in that: After the window is automatically raised and lowered according to the window raising and lowering parameters, the method further includes: The temperature difference is updated based on the temperature of the vehicle internal and external environment at the current moment acquired in real time, and the clarity difference is updated based on the third clarity of the front windshield at the current moment acquired in real time; If the temperature difference is less than a preset temperature threshold or the clarity difference does not fall within a preset clarity range, the vehicle window is controlled to be closed.
6. A vehicle automatic defog system, characterized in that: include: An acquisition module, a determination module and a first control module; The acquisition module is used to respectively acquire the outdoor temperature and indoor temperature of the vehicle at the current moment if the time difference between the current moment and the time when the vehicle is powered off meets a preset time threshold, and determine the temperature difference based on the outdoor temperature and the indoor temperature; The determination module is configured to determine a first clarity based on a first picture of the front windshield obtained, determine a second clarity based on a second picture of the front windshield obtained, and determine a clarity difference based on the first clarity and the second clarity if the temperature difference is greater than a preset temperature threshold, wherein the first picture is obtained at a time when the vehicle is powered off, and the second picture is obtained at a current time; The first control module is used to determine whether the clarity difference falls within a preset clarity range, determine a fogging level based on the determination result, determine a window lifting parameter based on the temperature difference, the clarity difference and the fogging level, and automatically lift the window according to the window lifting parameter.
7. The vehicle automatic defog system according to claim 6, characterized in that: The determination module includes: a first acquisition unit, a processing unit and an evaluation unit; The first acquisition unit is used to acquire a first image of the front windshield when the vehicle is powered off; The processing unit is used to perform grayscale conversion and denoising on the first image to obtain a third image; The evaluation unit is used to evaluate the clarity of the third picture by using a clarity evaluation algorithm to determine the first clarity.
8. The vehicle automatic defog system according to claim 6, characterized in that: Also includes a compensation module, the compensation module includes: a second acquisition unit, a compensation unit and a determination unit; The second acquisition unit is used to acquire the current brightness of the vehicle interior and determine whether the brightness of the vehicle interior is lower than a preset brightness threshold; The compensation unit is used to provide compensation light if the brightness inside the vehicle at the current moment is lower than a preset brightness threshold; The determining unit is used to obtain a second image after providing the compensation light, and determine a second definition corresponding to the second image.
9. The vehicle automatic defog system according to claim 6, characterized in that: Also includes: A second control module, the second control module comprising: an updating unit and a control unit; The updating unit is used to update the temperature difference value based on the temperature of the vehicle internal and external environment at the current moment obtained in real time, and to update the clarity difference value based on the third clarity of the front windshield at the current moment obtained in real time; The control unit is used to control the vehicle window to close if the temperature difference is less than a preset temperature threshold or the clarity difference does not fall within a preset clarity range.
10. A vehicle, characterized in that: The vehicle is configured to execute the vehicle automatic defog method according to any one of claims 1-5.
Citation Information
Cited By
Visual perception side vehicle window demisting method and system based on commercial vehicle and vehicle
CN121341113A