Vehicle rearview mirror control method, vehicle and storage medium
By calculating the average value of the light intensity in front of the vehicle, it determines whether the vehicle is stable in a dark environment, which solves the problem that the vehicle accidentally triggers the anti-glare function at the junction of light and dark, and improves the driver's field of vision and driving safety.
Patent Information
- Application Number
- CN202510845155.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, when a vehicle enters a tunnel, a bridge or an underground garage, the anti-glare function of the rearview mirror is easily triggered by mistake, affecting the driver's field of vision and safety.
By calculating the average value of the light intensity in front of the car over a period of time, we can determine whether the vehicle is stable in a dark environment, so as to determine whether the anti-glare function of the rearview mirror can be enabled and avoid accidentally triggering the anti-glare function at the junction of light and dark.
It improves the experience and driving safety of the rearview mirror in an alternating environment of light and darkness, reduces the false triggering of the anti-glare function, and ensures that the driver has sufficient field of view in a dark environment.
Smart Images

Figure CN120396832A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicles, and more specifically, to a vehicle rearview mirror control method, a vehicle, and a storage medium. Background Art
[0002] With the popularization of vehicles, driving safety has attracted more and more attention. As a vehicle safety auxiliary accessory, the vehicle rearview mirror plays an indispensable role. It can reflect the situation behind the vehicle, expand the driver's field of vision, and facilitate the driver to observe the situation behind the vehicle, thereby improving driving safety.
[0003] However, in a dark environment (such as at night), due to strong light irradiation from the following vehicle, the light intensity reflected by the vehicle rearview mirror into the driver's eyes is too high, and it is easy to cause a large safety hazard due to the glare of the rearview mirror. Therefore, the automatic anti-glare rearview mirror came into being.
[0004] In the related art, whether to turn on the anti-glare function of the rearview mirror is mainly determined based on the intensity difference between the front and rear ambient light of the current vehicle. However, when entering a scene with light and dark switching such as a tunnel, a bridge opening, or an underground garage, the anti-glare function of the rearview mirror is easily mis-triggered, affecting the driver's view of the rearview mirror. Summary of the Invention
[0005] Based on the above defects and deficiencies of the prior art, the present application provides a vehicle rearview mirror control method, a vehicle, and a storage medium, which can solve the problem that the anti-glare function of the rearview mirror is easily mis-triggered when the vehicle enters a scene with light and dark switching such as a tunnel, a bridge opening, or an underground garage in the prior art.
[0006] According to a first aspect of the present application, there is provided a vehicle rearview mirror control method, the method comprising:
[0007] Obtaining the light intensity in front of the vehicle collected within a first duration;
[0008] Determining an average value of the light intensity in front of the vehicle within the first duration according to the light intensity in front of the vehicle collected within the first duration;
[0009] In the case where the average value is less than or equal to a first light intensity, determining that the vehicle is stably in a dark environment; wherein the first light intensity is used to represent a relatively small ambient light intensity;
[0010] In the case where the vehicle is stably in a dark environment, enabling the anti-glare function of the vehicle rearview mirror.
[0011] In this application, by calculating the average value of the light intensity in front of the vehicle collected over a period of time (i.e., the first duration), it is determined whether the vehicle is stably in a dark environment, thereby determining whether to enable the anti-glare function of the rearview mirror. Since the ambient light intensity varies during the process of the vehicle entering the dark environment from a bright environment, and at this time the vehicle is not stably in the dark environment, the average value calculated during this process will probably be greater than the preset light intensity threshold (i.e., the first light intensity). Therefore, the anti-glare function is disabled at this time, which can largely avoid the accidental triggering of the anti-glare function when the vehicle passes through the light and dark boundary. After the vehicle enters the dark environment, the ambient brightness is relatively stable, and the vehicle is stably in the dark environment. The average value calculated therefrom will probably be less than or equal to the preset light intensity threshold. At this time, enabling the anti-glare function can reduce the impact of the rear vehicle's high beam on the driver of the own vehicle through the anti-glare function.
[0012] In some alternative embodiments, obtaining the light intensity in front of the vehicle collected within the first duration includes:
[0013] When the current time is within the target time period of the day, obtaining the light intensity in front of the vehicle collected within the first duration; wherein, the target time period of the day refers to the time period in a day when the light intensity of the external natural ambient light generally does not require enabling the anti-glare function.
[0014] During the daytime, the light intensity of the external natural ambient light is relatively bright, and vehicles generally do not use high beams, so there is no need to enable the anti-glare function either. However, during this time period, the vehicle may enter scenarios with changing light and darkness such as tunnels and underground garages. At this time, it is necessary to determine whether to enable the anti-glare function. Therefore, this application can obtain the light intensity in front of the vehicle collected within the first duration when the current time is within the target time period of the day (corresponding to the daytime), and based on the average value of the light intensity in front of the vehicle within the first duration, determine whether to enable the anti-glare function of the rearview mirror. In this way, it is possible to avoid frequently determining whether to enable the anti-glare function of the rearview mirror based on the average value within the first duration, which can reduce invalid judgments to a certain extent and at the same time reduce the vehicle data processing volume.
[0015] In some alternative embodiments, when the current time is within the target time period of the day, obtaining the light intensity in front of the vehicle collected within the first duration includes:
[0016] When the current time is within the target time period of the day and the vehicle is about to enter a position in a target type of scenario, obtaining the light intensity in front of the vehicle collected within the first duration; wherein, the target type of scenario refers to a scenario where light and darkness changes occur when entering or exiting.
[0017] During daylight hours, when the vehicle enters a target type of scene, the light intensity in front of the vehicle changes from bright to dark. At this time, it is necessary to determine whether to enable the anti-glare function. Therefore, based on the current time and the type of scene that the vehicle is about to enter, the determination timing of enabling the anti-glare function can be further refined to reduce ineffective judgments.
[0018] In some alternative embodiments, while collecting the light intensity in front of the vehicle, the light intensity behind the vehicle is also collected;
[0019] The determining that the vehicle is stably in a dark environment when the average value is less than or equal to the first light intensity includes:
[0020] When the average value is less than or equal to the first light intensity and the vehicle speed is less than or equal to the vehicle speed threshold, if at least one light intensity behind the vehicle less than or equal to the second light intensity is collected within the first duration, and / or the exposure duration of the target camera is greater than the duration threshold, it is determined that the vehicle is stably in a dark environment; wherein, the second light intensity is used to characterize the dark environment, and the target camera is a camera disposed at the rear of the vehicle.
[0021] During the process of the vehicle slowly entering the dark environment from the bright environment, it is possible that the average value of the light intensity in front of the vehicle is less than or equal to the first light intensity, but at this time the vehicle is not stably in the dark environment. In this scenario, there will be a situation where the light intensity in front of the vehicle is inconsistent with the light intensity behind the vehicle and the difference is large, where the light intensity in front of the vehicle is weak and the light intensity behind the vehicle is strong. This phenomenon also indicates that the vehicle is not stably in the dark environment. If the vehicle is stably in the dark environment, the light intensity behind the vehicle will also drop synchronously to a smaller value. Therefore, when the calculated average value of the light intensity in front of the vehicle is less than or equal to the first light intensity and the vehicle speed is less than or equal to the vehicle speed threshold, if at least one light intensity behind the vehicle less than or equal to the second light intensity is collected within the first duration, it indicates that the whole vehicle is in the dark environment, and thus it can be further determined that the vehicle is stably in the dark environment, thereby further improving the accuracy of the judgment result.
[0022] In addition, in such scenarios, the present application can also combine the exposure duration of the target camera to further determine whether the vehicle is stably in the dark environment, thereby improving the accuracy of the judgment result.
[0023] In some alternative embodiments, the anti-glare function of the vehicle rearview mirror includes multiple anti-glare levels, and different anti-glare levels correspond to different ranges of light intensity behind the vehicle and different mirror reflectivities;
[0024] The second light intensity is the maximum value of the range of light intensity behind the vehicle corresponding to the lowest anti-glare level, where the lowest anti-glare level is the level without adjusting the mirror reflectivity.
[0025] Since the lowest level of anti-glare does not require adjusting the mirror reflectivity, the need to enable the anti-glare function is low at this time. Therefore, in order to minimize the probability of false triggering, the second light intensity can be set to the maximum value within the range of the rear-vehicle light intensity corresponding to the lowest level of anti-glare. If the front-vehicle light intensity is less than or equal to the second light intensity, it indicates the necessity to enable the anti-glare function to avoid driver glare.
[0026] In some alternative embodiments, before obtaining the front-vehicle light intensity collected within the first duration, the method further includes:
[0027] Obtain the current vehicle speed;
[0028] Among a plurality of preset durations, determine the first duration corresponding to the current vehicle speed; wherein, different preset durations correspond to different vehicle speed ranges.
[0029] Since the time required for a vehicle to enter a dark environment from a bright environment is different at different vehicle speeds, in order to more accurately determine whether the vehicle is stably traveling in a dark environment and thus enable the anti-glare function in a timely manner, the vehicle speed can be divided into multiple vehicle speed ranges, and for each vehicle speed range, the time required for the vehicle to enter a dark environment from a bright environment and be able to stably travel in the dark environment is set accordingly. By setting different times required for the vehicle to enter a dark environment from a bright environment and be able to stably travel in the dark environment for different vehicle speed ranges, it is possible to more accurately determine whether the vehicle is stably traveling in a dark environment, thus enabling the anti-glare function in a timely manner and improving the safety of the vehicle when traveling in a dark environment.
[0030] In some alternative embodiments, obtaining the front-vehicle light intensity collected within the first duration includes:
[0031] Obtain the front-vehicle light intensity collected within the first duration every second duration; wherein, the second duration is less than the first duration.
[0032] In this application, the front-vehicle light intensity data used for calculating the average value each time can overlap with the front-vehicle light intensity data used for calculating the average value in the previous time, which is conducive to tracking the continuous change of the data and improving the information utilization rate.
[0033] In some alternative embodiments, the method further includes:
[0034] When the current time is within the target time period of the day, obtain the first front-vehicle light intensity collected currently and the second front-vehicle light intensity collected three durations before the current time; wherein, the target time period of the day refers to the time period in a day when the light intensity of the external natural environment light generally does not require enabling the anti-glare function;
[0035] When the difference between the first front vehicle light intensity and the second front vehicle light intensity is less than or equal to the third light intensity, if the front vehicle light intensity lasts for a fourth duration and is less than the fourth light intensity, the anti-glare function of the vehicle rearview mirror is enabled.
[0036] In this application, when there is a jump in the front vehicle light intensity and it jumps from bright to dark, if the front vehicle light intensity continuously remains less than a relatively small light intensity threshold (i.e., the fourth light intensity, a light intensity value greater than 0), it is considered that the vehicle is stably in a dark environment. At this time, the anti-glare function of the vehicle rearview mirror can be enabled. In this way, it is possible to largely avoid the mis-triggering of the anti-glare function when the vehicle passes through the light-dark boundary, affecting the driver's use of the vehicle rearview mirror.
[0037] According to a second aspect of the present application, there is provided a vehicle rearview mirror control device, the device comprising:
[0038] A first acquisition module, configured to acquire the front vehicle light intensity collected within a first duration;
[0039] A first determination module, configured to determine the average value of the front vehicle light intensity within the first duration according to the front vehicle light intensity collected within the first duration;
[0040] A second determination module, configured to determine that the vehicle is stably in a dark environment when the average value is less than or equal to a first light intensity; wherein, the first light intensity is used to represent a relatively small ambient light intensity;
[0041] A first control module, configured to enable the anti-glare function of the vehicle rearview mirror when the vehicle is stably in a dark environment.
[0042] According to a third aspect of the present application, there is provided an electronic device, comprising: a memory and a processor;
[0043] The memory is connected to the processor and is used to store programs;
[0044] The processor is configured to implement the vehicle rearview mirror control method as described in the first aspect by running the programs in the memory.
[0045] According to a fourth aspect of the present application, there is provided a vehicle, comprising the electronic device as described in the third aspect, and the vehicle implements the vehicle rearview mirror control method as described in the first aspect through this electronic device.
[0046] According to a fifth aspect of the present application, there is provided a storage medium, on which a computer program is stored, and when the computer program is run by a processor, it implements the vehicle rearview mirror control method as described in the first aspect.
[0047] According to a sixth aspect of the present application, there is provided a computer program product or a computer program. The computer program product includes the computer program, and when a processor executes the computer program, the steps in the vehicle rearview mirror control method described in the first aspect are implemented. Description of the Drawings
[0048] By reading the detailed description of the following embodiments, the advantages and benefits of various embodiments will become clear to those of ordinary skill in the art. In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on the provided drawings.
[0049] Figure 1 A flowchart of a vehicle rearview mirror control method provided by an embodiment of the present application;
[0050] Figure 2 A schematic structural diagram of a rear housing of a vehicle rearview mirror provided by an embodiment of the present application;
[0051] Figure 3 A flowchart of another vehicle rearview mirror control method provided by an embodiment of the present application;
[0052] Figure 4 A block diagram of a vehicle rearview mirror control device provided by an embodiment of the present application;
[0053] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0054] Figure 6 A schematic structural diagram of a vehicle provided by an embodiment of the present application. Detailed Embodiments
[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0056] Application Overview
[0057] A vehicle rearview mirror is an essential safety component of a vehicle. It can reflect the road conditions behind and on the sides of the vehicle, expand the driver's field of vision, assist the driver in observing the road conditions around the vehicle, and enhance the safety of operations such as lane changing and reversing.
[0058] Traditional rearview mirrors usually adopt a flat mirror design, providing a direct view for the driver by reflecting the scene behind. However, its reflectivity is fixed, and it is prone to glare in strong light environments (such as when the high beam of a vehicle behind shines at night), resulting in a brief visual failure of the driver and posing a safety hazard.
[0059] To solve the above problems, vehicle rearview mirrors with anti-glare functions have emerged. The anti-glare function of such vehicle rearview mirrors is mainly used in scenes with relatively dim light such as at night, in tunnels, or in underground garages to avoid the strong light reflection of the high beam of a vehicle behind causing glare to the driver and improve driving safety.
[0060] For the anti-glare function, the first to appear was the manual anti-glare rearview mirror, which adjusts the mirror angle through a physical dial to reduce the reflection of the rearview mirror. As the technology of vehicle rearview mirrors has evolved gradually, automatic anti-glare rearview mirrors have also emerged. The automatic anti-glare rearview mirror adjusts the mirror reflectivity automatically based on the light intensity around the vehicle and combines algorithms. For example, it dims the mirror through electrochromic materials to lower the mirror reflectivity and achieve intelligent anti-glare.
[0061] For automatic anti-glare rearview mirrors, in related technologies, it is mainly based on the intensity difference between the current front and rear ambient light of the vehicle to determine whether to turn on the anti-glare function of the rearview mirror. For example, if the intensity difference between the ambient light behind the vehicle and the ambient light in front of the vehicle is greater than or equal to a preset light intensity difference threshold, the anti-glare function of the rearview mirror is turned on. However, when a vehicle passes through scenes with rapid light and dark changes such as under a bridge, under an overpass, or blocked by trees during the day, it may be mis-triggered due to sudden changes in light. For example, when the light in front of the vehicle suddenly decreases, the intensity difference between the ambient light behind the vehicle and the ambient light in front of the vehicle is greater than or equal to the preset light intensity difference threshold, and the anti-glare function is turned on, resulting in a sudden decrease in the mirror reflectivity. Such unnecessary light and dark changes of the mirror will not only make the driver feel uncomfortable but also reduce the observation clarity of the rearview mirror due to the too low mirror reflectivity during the day, affecting the observation of distant objects behind during the day, such as the detail identification in low-light environments, thus affecting the driving experience and safety.
[0062] Therefore, there is an urgent need for an anti-glare function control method that can more accurately identify the actual demand scenarios to avoid mis-triggering the anti-glare function in the light and dark alternating environment during the day, thereby improving the use experience of the rearview mirror and driving safety.
[0063] To this end, the embodiments of the present application provide a vehicle rearview mirror control solution. By calculating the average value of the light intensity in front of the vehicle over a period of time, it is determined whether the vehicle is stably in a dark environment, so as to determine whether to enable the anti-glare function of the rearview mirror. Since the light intensity of the ambient light varies during the process of the vehicle entering the dark environment from the bright environment, and at this time the vehicle is not stably in the dark environment, the average value calculated during this process will probably be greater than the preset light intensity threshold. Therefore, the anti-glare function is disabled at this time, which can largely avoid the accidental triggering of the anti-glare function when the vehicle passes through the light-dark boundary. After the vehicle enters the dark environment, the ambient brightness is relatively stable, and the vehicle is stably in the dark environment. The average value calculated therefrom will probably be less than or equal to the preset light intensity threshold. At this time, when the vehicle behind turns on the high beam, the anti-glare function can be activated to reduce the impact of the high beam of the vehicle behind on the driver of the vehicle itself through the anti-glare function.
[0064] Regarding the vehicle rearview mirror control solution provided by the embodiments of the present application, details can be seen below.
[0065] Exemplary Method
[0066] The embodiments of the present application provide a vehicle rearview mirror control method, which is applied to a vehicle equipped with a rearview mirror. The execution subject of this method can be a vehicle controller, which can be a vehicle controller, a cockpit domain controller or an intelligent driving domain controller, or a microcontroller for controlling the rearview mirror, etc.
[0067] The rearview mirror mentioned here can include but is not limited to: external rearview mirror and internal rearview mirror. The external rearview mirror includes but is not limited to: left external rearview mirror and right external rearview mirror.
[0068] The vehicle rearview mirror in the embodiments of the present application has an automatic anti-glare function. The anti-glare principle can be to adjust the mirror reflectivity through electrochromic materials, or can be achieved through other implementable principles. The embodiments of the present application do not specifically limit this.
[0069] The following details this method through some embodiments. The following several embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Among them,
[0070] As Figure 1 shown, this method can include step 101 to step 103, as described below:
[0071] Step 101: Obtain the light intensity in front of the vehicle collected within the first duration.
[0072] In the embodiments of the present application, the light intensity in front of the vehicle can be collected by setting a light sensor (i.e., a photosensitive sensor) on the vehicle. A light sensor is an electronic device that can detect the ambient light intensity and convert it into an electrical signal, and is widely used in fields such as automatic control. Its core function is to sense the change in the intensity of light and provide real-time light data for the system.
[0073] To improve the accuracy of collecting the light intensity in front of the vehicle, the installation position of the light sensor should at least meet the following conditions: First, it is set at the front end of the vehicle; second, the light intensity at the installation position is less affected by the light behind the vehicle.
[0074] Optionally, in the embodiments of the present application, the light intensity in front of the vehicle can be collected by installing a light sensor on the rear shell of the target rearview mirror. The target rearview mirror can be one of the interior rearview mirror, the left exterior rearview mirror, and the right exterior rearview mirror. Since the rear shell of the rearview mirror is located at the front end of the vehicle and is shielded by the mirror surface, the light intensity at the rear shell of the rearview mirror is less affected by the light behind the vehicle. Therefore, it can be seen that the light intensity in front of the vehicle can be collected by the light sensor installed on the rear shell of the target rearview mirror.
[0075] Preferably, the target rearview mirror can be the interior rearview mirror. As Figure 2 shown, the light sensor 202 can be set on the rear shell 201 of the interior rearview mirror, and the specific installation position can be determined according to actual needs, not limited to the position shown in the figure.
[0076] Since the exterior rearview mirror is directly exposed to the external environment, the light sensor installed on its rear shell will also be directly exposed to the external environment, making it vulnerable to pollution such as rain, snow, mud, and fog, resulting in inaccurate light detection. Moreover, the two exterior rearview mirrors are respectively set on both sides of the vehicle, and the light intensity on both sides of the vehicle may be different, making it difficult to determine the reference object, that is, it is difficult to determine which side of the light intensity is used as the reference object. However, the interior rearview mirror is located inside the vehicle, can be far away from external pollutants, is less affected by external pollutants, and the number of interior rearview mirrors is one, and the interior rearview mirror is in the center position of the vehicle, so there is no need to worry about the reference object problem, and the probability of inconsistent light intensity is also small. Therefore, by setting a light sensor on the rear shell of the interior rearview mirror to collect the light intensity in front of the vehicle, compared with setting a light sensor on the rear shell of the exterior rearview mirror to collect the light intensity in front of the vehicle, the accuracy of detecting the light intensity in front of the vehicle can be improved.
[0077] In the embodiments of the present application, the target rearview mirror can periodically collect the light intensity in front of the vehicle. For example, it can collect the light intensity in front of the vehicle once every 100 ms, and the specific collection period can be set according to actual requirements. Of course, it can be understood that non-periodic collection is also possible. For example, it can be collected according to the rules of 100 ms, 50 ms, 100 ms, 50 ms... etc.
[0078] In the embodiments of the present application, the light intensity in front of the vehicle collected by the target rearview mirror can be recorded. Therefore, the light intensity in front of the vehicle collected within the first duration can be obtained according to requirements. The first duration described here can be a period from the past to the present, and its specific value can be set according to actual requirements, such as 8 seconds, 9 seconds, 10 seconds, etc. In the case where the target rearview mirror periodically collects the light intensity in front of the vehicle, the first duration can be an integer multiple of the collection period of the light intensity in front of the vehicle. Assume that the collection period of the light intensity in front of the vehicle is 100 ms, then the first duration can be 100×100 ms = 10 s.
[0079] Step 102: Determine the average value of the light intensity in front of the vehicle within the first duration according to the light intensity in front of the vehicle collected within the first duration.
[0080] In the embodiments of the present application, to avoid the problem of accidentally triggering the anti-glare function due to sudden changes in light when the vehicle briefly passes through scenes with rapid switching between light and darkness such as under a bridge, under an overpass, or blocked by trees during the day, it is possible to calculate the average value of the light intensity in front of the vehicle within a period of time (i.e., the first duration) to determine whether the vehicle is stably in a dark environment, so as to determine whether to enable the anti-glare function of the rearview mirror. Among them, the light intensity in front of the vehicle reflects the brightness level of the environment in front of the vehicle.
[0081] If the vehicle is stably in a dark environment, the anti-glare function of the rearview mirror can be enabled; on the contrary, if the vehicle is not stably in a dark environment, the anti-glare function of the rearview mirror can be controlled to be disabled. The enabling of the anti-glare function described here can be understood as enabling or activating the anti-glare function, and the disabling of the anti-glare function described here can be understood as turning off the anti-glare function. It should be noted that enabling the anti-glare function does not mean immediately reducing the mirror reflectivity, but means that the rearview mirror can automatically determine whether to reduce the mirror reflectivity according to the ambient light. If the anti-glare function is in a disabled state, even if the vehicle is in a dark environment and the vehicle behind turns on the high beam, the mirror reflectivity cannot be adjusted.
[0082] The dark environment described here refers to an environment where the light intensity satisfies the enabling condition of the anti-glare function, that is, an environment with a relatively small light intensity.
[0083] The stable state in the dark environment described herein can be understood as that the vehicle travels in the dark environment for a period of time (such as the first duration), or the ratio of the duration of the vehicle in the dark environment to the statistical duration (such as the first duration) is greater than or equal to the ratio threshold (such as 90%, 95%, etc., which can be specifically set according to actual requirements). Among them, the duration of the vehicle in the dark environment can start from the moment when the first light intensity less than the light intensity threshold (used to represent the light intensity of the dark environment, which can be specifically set according to actual requirements) is collected within the statistical duration, and end at the moment when the last light intensity less than the light intensity threshold is continuously collected.
[0084] By calculating the average value of the light intensity in front of the vehicle within a period of time, it is convenient to quickly understand the overall trend of the change of the light intensity in front of the vehicle, so as to determine whether the vehicle is stably in the dark environment.
[0085] Step 103: When the calculated average value is less than or equal to the first light intensity, it is determined that the vehicle is stably in the dark environment.
[0086] In the embodiment of the present application, when the calculated average value of the light intensity in front of the vehicle is greater than the first light intensity, it can be considered that the vehicle is not stably in the dark environment; on the contrary, when the calculated average value is less than or equal to the first light intensity, it can be considered that the vehicle is stably in the dark environment.
[0087] The first light intensity described herein is used to characterize a relatively small ambient light intensity, such as 30 lux. The first light intensity can be a value between the minimum light intensity corresponding to the bright environment and the maximum light intensity corresponding to the dark environment, or a value less than or equal to the maximum light intensity corresponding to the dark environment, which can be specifically set according to actual requirements.
[0088] Since the ambient light intensity is large and small during the process of the vehicle entering the dark environment from the bright environment, the average value calculated during this process will probably be greater than the first light intensity, which also indicates that the vehicle is not stably in the dark environment. After the vehicle enters the dark environment, the ambient brightness is relatively stable, so the average value calculated therefrom will probably be less than or equal to the first light intensity, which indicates that the vehicle is stably in the dark environment.
[0089] Step 104: When the vehicle is stably in the dark environment, enable the anti-glare function of the vehicle rearview mirror.
[0090] When the vehicle enters a dark environment from a bright environment, the ambient light intensity varies. At this time, the vehicle is not yet stably in the dark environment. Therefore, the anti-glare function is disabled, which can largely prevent the anti-glare function from being accidentally triggered when the vehicle passes through the boundary between light and darkness, affecting the driver's use of the vehicle's rearview mirror. After the vehicle enters the dark environment, the ambient brightness is relatively stable, and the vehicle is stably in the dark environment. At this time, the anti-glare function needs to be activated so that when the high beam of the following vehicle shines on the rearview mirror surface, the mirror reflectivity can be lowered to achieve automatic anti-glare and improve driving safety.
[0091] In some alternative embodiments, when the vehicle slowly enters a dark scene during the day, such as slowly entering a garage, queuing at the garage entrance, or slowly entering a tunnel due to traffic congestion, etc., the average value of the front vehicle light intensity within the first duration may be less than or equal to the first light intensity. However, it is obviously not appropriate to enable the anti-glare function at this time. Also, since the vehicle head is in the dark and the carriage is in the light, the rear vehicle light intensity is generally high at this time. Therefore, to further improve the accuracy of judgment, further judgment can also be based on the vehicle speed and the rear vehicle light intensity, as described in detail below.
[0092] In the embodiments of the present application, while collecting the front vehicle light intensity, the rear vehicle light intensity can also be collected. The rear vehicle light intensity can be collected by setting a light sensor on the vehicle. Optionally, a light sensor can be set in front of the target rearview mirror to collect the rear vehicle light intensity, which can also be understood as collecting the mirror photosensitive intensity.
[0093] Correspondingly, step 103: When the average value is less than or equal to the first light intensity, determining that the vehicle is stably in the dark environment may include:
[0094] When the calculated average value of the front vehicle light intensity is less than or equal to the first light intensity and the vehicle speed is less than or equal to the speed threshold, if at least one rear vehicle light intensity less than or equal to the second light intensity is collected within the first duration, it is determined that the vehicle is stably in the dark environment.
[0095] The second light intensity described here is used to characterize the dark environment and can be specifically set according to actual needs.
[0096] When the vehicle slowly enters a dark environment from a bright environment, it is possible that the average value of the front vehicle light intensity is less than or equal to the first light intensity. However, at this time, the vehicle is not stably in the dark environment. In this scenario, there will be a situation where the front vehicle light intensity is inconsistent with the rear vehicle light intensity and the difference is large, where the front vehicle light intensity is weak and the rear vehicle light intensity is strong. This phenomenon also indicates that the vehicle is not stably in the dark environment. If the vehicle is stably in the dark environment, the rear vehicle light intensity will also synchronously decrease to a small value. Therefore, when the calculated average value of the front vehicle light intensity is less than or equal to the first light intensity and the vehicle speed is less than or equal to the vehicle speed threshold, if at least one rear vehicle light intensity less than or equal to the second light intensity is collected within the first duration, it indicates that the whole vehicle is in the dark environment. From this, it can be more certain that the vehicle is stably in the dark environment, thereby further improving the accuracy of the judgment result.
[0097] The vehicle speed threshold mentioned here is a vehicle speed with a small speed, such as 1 m / s, and can be specifically set according to actual needs.
[0098] Optionally, the anti-glare function in the embodiments of the present application includes multiple anti-glare levels from low to high, and different anti-glare levels correspond to different rear vehicle light intensity ranges and different mirror reflectivities.
[0099] Assume that the anti-glare function includes 0-level anti-glare, 1-level anti-glare, 2-level anti-glare, and 3-level anti-glare from low to high, and the corresponding mirror reflectivities are 40%, 30%, 20%, and 10% respectively.
[0100] The mirror light sensor (i.e., the sensor for collecting the rear vehicle light intensity) can collect the rear vehicle light intensity at a period a (such as 100 ms). Assume the collected value is K, and at the same time, a set of thresholds t1 (such as 4 lux), t2 (such as 6 lux), and t3 (such as 8 lux) are set, where t1 < t2 < t3.
[0101] When 0 ≤ K < t1, enter 0-level anti-glare (the highest reflectivity, no anti-glare).
[0102] When t1 ≤ K < t2, enter 1-level anti-glare.
[0103] When t2 ≤ K < t3, enter 2-level anti-glare.
[0104] When K ≥ t3, enter 3-level anti-glare.
[0105] Based on the above content, it can be known that the rear vehicle light intensity that needs to adjust the mirror reflectivity should be at least greater than or equal to t1. Therefore, the second light intensity can be set to the maximum value of the rear vehicle light intensity range corresponding to the lowest anti-glare level. The lowest anti-glare level is 0-level, which does not require adjusting the mirror reflectivity. This is beneficial to further improving the accuracy of the judgment result.
[0106] Based on the above, it can be known that for the lowest anti-glare level, it is not necessary to adjust the mirror reflectivity. The light intensity behind the vehicle that requires adjusting the mirror reflectivity should be at least greater than or equal to t1. Therefore, in order to minimize the probability of false triggering, the second light intensity can be set to the maximum value of the light intensity range behind the vehicle corresponding to the lowest anti-glare level. If the light intensity in front of the vehicle is less than or equal to the second light intensity, it indicates the necessity of enabling the anti-glare function to avoid driver glare.
[0107] In some other embodiments, generally, a camera is provided at the rear of the vehicle, such as a reverse image camera, a perception camera of an intelligent driving vehicle, a camera of a streaming rearview mirror, etc. The exposure time of the camera is short in a bright environment and long in a dark environment. Therefore, when the vehicle slowly enters a dark scene during the day, the embodiments of the present application can also utilize this characteristic to determine whether the vehicle is stably in a dark environment, as described in detail below.
[0108] Step 103: When the average value is less than or equal to the first light intensity, determining that the vehicle is stably in a dark environment may include:
[0109] When the calculated average value of the light intensity in front of the vehicle is less than or equal to the first light intensity, and the vehicle speed is less than or equal to the vehicle speed threshold, if the exposure duration of the target camera is greater than the duration threshold, it is determined that the vehicle is stably in a dark environment.
[0110] The target camera described here is a camera provided at the rear of the vehicle.
[0111] During the process of the vehicle slowly entering the dark environment from the bright environment, it is possible that the average value of the light intensity in front of the vehicle is less than or equal to the first light intensity, but at this time the vehicle is not stably in the dark environment. For example, the front of the vehicle enters the dark environment while the carriage or the rear of the vehicle is still in the bright environment. At this time, the exposure time of the target camera in the bright environment is short. When the vehicle stably enters the dark environment, the exposure time of the target camera in the dark environment becomes longer. Therefore, when the calculated average value of the light intensity in front of the vehicle is less than or equal to the first light intensity, and the vehicle speed is less than or equal to the vehicle speed threshold, if the exposure duration of the target camera is greater than the duration threshold, it indicates that the whole vehicle is in the dark environment, and thus it can be more certain that the vehicle is stably in the dark environment, further improving the accuracy of the judgment result. And the camera is more sensitive to ambient light, so it helps to improve the accuracy of the judgment result.
[0112] In some alternative embodiments, in order to avoid frequently judging whether to enable the anti-glare function of the rearview mirror based on the average value within the first duration, it can be determined whether to execute step 101 according to the current time. Therefore, step 101: Obtaining the light intensity in front of the vehicle collected within the first duration may include:
[0113] When the current time is within the target time period of the day, obtain the light intensity in front of the vehicle collected within the first duration.
[0114] The target time period mentioned here refers to the time period in a day when the light intensity of the external natural ambient light generally belongs to the time period when the anti-glare function does not need to be enabled (which can be called daylight time). For example, from 6:00 am to 7:00 pm in a day, the light intensity of the external natural ambient light is relatively bright, and the vehicle generally does not use high beams, so there is no need to enable the anti-glare function either. However, during this time period, the vehicle may enter scenarios with changing light and darkness such as tunnels and underground garages. At this time, it is necessary to determine whether to enable the anti-glare function. Therefore, in the embodiments of the present application, when the current time is within the target time period of the day, the light intensity in front of the vehicle collected within the first duration can be obtained, and based on the average value of the light intensity in front of the vehicle within the first duration, it is determined whether to enable the rearview mirror anti-glare function. In this way, invalid judgments can be reduced to a certain extent, and at the same time, the vehicle data processing volume can be reduced.
[0115] It can be understood that for time periods other than the target time period of the day, it refers to the time period in a day when the light intensity of the external natural ambient light generally belongs to the time period when the anti-glare function needs to be enabled (which can be called night time), such as from 7:00 pm to 12:00 am on the same day, or from 12:00 am to 6:00 am currently. Therefore, when the current time is in other time periods outside the target time period of the day, the anti-glare function of the vehicle rearview mirror can be directly enabled. In this way, invalid judgments can also be reduced to a certain extent, and at the same time, the vehicle data processing volume can be reduced.
[0116] It should be noted that since the daylight time is different in different regions and different seasons, in the embodiments of the present application, different daylight times can be set for different seasons in different regions to improve the accuracy of the target time period, thereby accurately determining the timing of enabling the anti-glare function. Therefore, before the foregoing step "When the current time is within the target time period of the day, obtain the light intensity in front of the vehicle collected within the first duration", the method may further include:
[0117] Based on the region where the vehicle is located and the season it is in, determine the matching target time period.
[0118] Among them, the region where the vehicle is located can be determined based on navigation information, and the season the vehicle is in can be obtained based on network connection information. The daylight times corresponding to different seasons in different regions are pre-stored in the vehicle.
[0119] Optionally, in order to further avoid frequently determining whether to enable the rearview mirror anti-glare function, the embodiments of the present application may also obtain the light intensity in front of the vehicle collected within the first duration when the current time is within the target time period of the day and the vehicle is about to enter a target type scenario.
[0120] The target type scenarios described herein refer to scenarios where the light changes from bright to dark when entering a meeting, such as underground garages, tunnels, bridge openings, etc.
[0121] During daylight hours, when a vehicle enters a target type scenario, the light intensity in front of the vehicle will change from bright to dark. At this time, it is necessary to determine whether to enable the anti-glare function. Therefore, based on the current time and the type of scenario to be entered, the determination timing of enabling the anti-glare function can be further refined to reduce ineffective determinations.
[0122] Among them, the type of scenario that the vehicle is about to enter can be determined based on the navigation information. The navigation information includes the driving path of the vehicle, from which the future passing places or destinations of the vehicle can be determined, and thus the type of scenario to be entered can be determined.
[0123] In some alternative embodiments, in order to avoid frequently determining whether to enable the rearview mirror anti-glare function based on the average value within the first time period, it is also possible to determine whether to perform step 101 according to the current light intensity in front of the vehicle. Therefore, step 101: obtaining the light intensity in front of the vehicle collected within the first time period may include:
[0124] When the current light intensity in front of the vehicle is less than the third light intensity, obtain the light intensity in front of the vehicle collected within the first time period.
[0125] The third light intensity described herein is used to represent the light intensity in a dark environment and can be specifically set according to actual needs.
[0126] When the current light intensity in front of the vehicle is greater than or equal to the third light intensity, it indicates that the vehicle has not entered a dark environment, and there is no need to determine whether to enable the rearview mirror anti-glare function; when the current light intensity in front of the vehicle is less than the third light intensity, it indicates that the vehicle is likely to enter a dark environment. At this time, it is necessary to determine whether the vehicle is stably in a dark environment. Therefore, in the embodiments of the present application, when the current light intensity in front of the vehicle is less than the third light intensity, the light intensity in front of the vehicle collected within the first time period can be obtained, and then based on the average value of the light intensity in front of the vehicle within the first time period, determine whether to enable the rearview mirror anti-glare function. In this way, ineffective determinations can be reduced to a certain extent while reducing the vehicle data processing volume.
[0127] It can be understood that this embodiment can also be combined with the target time period embodiment. For example, when the current time is within the target time period of the day and the current light intensity in front of the vehicle is less than the third light intensity, obtain the light intensity in front of the vehicle collected within the first time period, thereby further reducing ineffective determinations.
[0128] In some alternative embodiments, the first time period can be a fixed time period.
[0129] For example, it can be set based on the longest time required for the vehicle to enter a dark environment from a bright environment and be able to drive stably in the dark environment. Assuming that when the vehicle is driving normally, the longest time required to enter a dark environment from a bright environment and be able to drive stably in the dark environment is 10 seconds, the first duration can be set to 10 seconds, or the first duration can be set to 11 seconds which is greater than the longest time, etc., so as to ensure the validity of the judgment result.
[0130] In some alternative embodiments, the first duration can also be a non-fixed duration.
[0131] Since the time required for the vehicle to enter a dark environment from a bright environment is different at different vehicle speeds, in order to more accurately determine whether the vehicle is driving stably in the dark environment and thus enable the anti-glare function in a timely manner, the vehicle speed can be divided into multiple vehicle speed ranges, and the time required for the vehicle to enter a dark environment from a bright environment and be able to drive stably in the dark environment is set corresponding to each vehicle speed range.
[0132] Therefore, before step 101: obtaining the light intensity in front of the vehicle collected within the first duration, the method can further include:
[0133] Obtaining the current vehicle speed; among multiple preset durations, determining the first duration corresponding to the current vehicle speed.
[0134] Wherein, the multiple preset durations mentioned here are the times required for the vehicle to enter a dark environment from a bright environment and be able to drive stably in the dark environment set corresponding to each vehicle speed range. Therefore, different preset durations correspond to different vehicle speed ranges.
[0135] In the embodiments of the present application, after obtaining the current vehicle speed, the target vehicle speed range to which the current vehicle speed belongs can be determined, and then the preset duration corresponding to the target vehicle speed range can be determined, so that the first duration corresponding to the current vehicle speed can be determined.
[0136] By setting different times required for the vehicle to enter a dark environment from a bright environment and be able to drive stably in the dark environment for different vehicle speed ranges, it is possible to more accurately judge whether the vehicle is driving stably in the dark environment, thus enabling the anti-glare function in a timely manner and improving the safety of the vehicle when driving in the dark environment.
[0137] In some alternative embodiments, step 101: obtaining the light intensity in front of the vehicle collected within the first duration can include:
[0138] Obtaining the light intensity in front of the vehicle collected within the first duration every second duration. Wherein, the second duration is less than the first duration.
[0139] In an embodiment of the present application, the vehicle front light intensity data used to calculate the average value each time may overlap with the vehicle front light intensity data used to calculate the average value the previous time, which is conducive to tracking the continuous changes in data and improving information utilization.
[0140] In the case of periodically collecting the vehicle's front light intensity, the second time period mentioned here can be set based on the collection period of the vehicle's front light intensity. Assume that the vehicle's front light intensity used for calculating the average value for the first time is represented by data L1, L2, L3, ..., L X , and assuming that the second time length is the same as the vehicle front light intensity acquisition cycle, the average value calculation method can be a rolling calculation, that is, the first set of data is (L1~L x ), the second group is (L2~L x+1 ), the third group is (L3~L x+2 ), scroll and calculate in sequence.
[0141] like Figure 3 As shown, the embodiment of the present application also provides another vehicle rearview mirror control method, which may include steps 301 to 302 as follows:
[0142] Step 301: When the current time is in the target time period of the day, obtain a first light intensity in front of the vehicle currently collected and a second light intensity in front of the vehicle collected a third time period ago.
[0143] The target time period of the day mentioned here refers to the time period during the day when the intensity of the external natural ambient light is usually such that the anti-glare function does not need to be enabled. It is the same as the time period of the day mentioned above. Please refer to the above article for details and will not be repeated here.
[0144] Step 302: When the difference between the first front light intensity and the second front light intensity is less than or equal to the second light intensity threshold, if the front light intensity is less than the fourth light intensity for a fourth time period, the anti-glare function of the vehicle rearview mirror is enabled.
[0145] In an embodiment of the present application, during daylight hours, upon detecting a jump in the light intensity in front of the vehicle, specifically a jump from bright to dark, if the light intensity in front of the vehicle remains less than a smaller light intensity threshold (i.e., a fourth light intensity, a light intensity value greater than 0) for a fourth duration, the vehicle is deemed to be in a stable dark environment, and the anti-glare function of the vehicle's rearview mirror can be enabled. This can largely prevent the anti-glare function from being falsely triggered when the vehicle travels through a bright-dark interface, thereby affecting the driver's use of the vehicle's rearview mirror. The anti-glare function can also be promptly activated when the vehicle is in a stable dark environment, so that when the high beam of a rearward vehicle illuminates the rearview mirror surface, the mirror reflectivity can be lowered, achieving automatic anti-glare and improving driving safety.
[0146] The third duration and the fourth duration described here can be set according to actual needs.
[0147] The difference between the first light intensity in front of the vehicle and the second light intensity in front of the vehicle refers to the difference obtained by subtracting the second light intensity in front of the vehicle from the first light intensity in front of the vehicle.
[0148] In summary, in the embodiment of the present application, by calculating the average value of the light intensity in front of the vehicle collected over a period of time, it is determined whether the vehicle is stably in a dark environment, thereby determining whether to enable the anti-glare function of the rearview mirror. Since the ambient light intensity varies in the process of the vehicle entering a dark environment from a bright environment, the vehicle is not stably in a dark environment at this time. Therefore, the average value calculated in this process is likely to be greater than the preset light intensity threshold. Therefore, disabling the anti-glare function at this time can largely avoid the vehicle from mistakenly triggering the anti-glare function when passing through the boundary between light and dark. After the vehicle enters a dark environment, the ambient brightness is relatively stable, and the vehicle is stably in a dark environment. The average value calculated from this is likely to be less than or equal to the preset light intensity threshold. At this time, the anti-glare function needs to be activated to reduce the impact of the rear high beam on the driver of the vehicle through the anti-glare function when the rear vehicle turns on the high beam.
[0149] Exemplary Device
[0150] Correspondingly, an embodiment of the present application also provides a vehicle rearview mirror control device, which is applied to a vehicle equipped with a rearview mirror.
[0151] The rearview mirrors described herein include but are not limited to: an exterior rearview mirror and an interior rearview mirror. Exterior rearview mirrors include but are not limited to: a left rearview mirror and a right rearview mirror.
[0152] The vehicle rearview mirror in the embodiment of the present application has an automatic anti-glare function. The anti-glare principle can be achieved by adjusting the mirror reflectivity through electrochromic materials, or by other feasible principles. The embodiment of the present application does not specifically limit this.
[0153] like Figure 4 As shown, the device may include:
[0154] A first acquisition module 401 is used to acquire the light intensity in front of the vehicle collected within a first time period;
[0155] A first determining module 402 is configured to determine an average value of the light intensity in front of the vehicle during the first time period based on the light intensity in front of the vehicle collected during the first time period;
[0156] The second determination module 403 is configured to determine that the vehicle is stably in a dark environment when the average value is less than or equal to the first light intensity; wherein, the first light intensity is used to represent a relatively low ambient light intensity.
[0157] The first control module 404 is configured to enable the anti-glare function of the vehicle rearview mirror when the vehicle is stably in a dark environment.
[0158] In some alternative embodiments, the first acquisition module 401 may specifically be configured to:
[0159] When the current time is within the target time period of the day, acquire the light intensity in front of the vehicle collected within the first duration; wherein, the target time period of the day refers to the time period in a day when the light intensity of the external natural ambient light generally belongs to the time period when the anti-glare function does not need to be enabled.
[0160] In some alternative embodiments, the first acquisition module 401 may specifically be configured to:
[0161] When the current time is within the target time period of the day and the vehicle is about to drive into a location of a target type of scene, acquire the light intensity in front of the vehicle collected within the first duration; wherein, the target type of scene refers to a scene where light and darkness changes occur when entering or exiting.
[0162] In some alternative embodiments, the light intensity behind the vehicle is acquired while acquiring the light intensity in front of the vehicle.
[0163] The second determination module 403 may specifically be configured to:
[0164] When the average value is less than or equal to the first light intensity and the vehicle speed is less than or equal to the vehicle speed threshold, if at least one light intensity behind the vehicle less than or equal to the second light intensity is collected within the first duration, and / or the exposure duration of the target camera is greater than the duration threshold, determine that the vehicle is stably in a dark environment; wherein, the second light intensity is used to represent a dark environment, and the target camera is a camera installed at the rear of the vehicle.
[0165] In some alternative embodiments, the anti-glare function of the vehicle rearview mirror includes multiple anti-glare levels, and different anti-glare levels correspond to different ranges of light intensity behind the vehicle and different mirror reflectivities;
[0166] The second light intensity is the maximum value of the range of light intensity behind the vehicle corresponding to the lowest anti-glare level, wherein the lowest anti-glare level is the level that does not require adjustment of the mirror reflectivity.
[0167] In some alternative embodiments, the device may further include:
[0168] A second acquisition module, configured to acquire the current vehicle speed.
[0169] A third determination module, configured to determine a first duration corresponding to the current vehicle speed from multiple preset durations; wherein, different preset durations correspond to different vehicle speed ranges.
[0170] In some alternative embodiments, the first acquisition module 401 may specifically be configured to:
[0171] Acquire the light intensity in front of the vehicle collected within the first duration every second duration; wherein, the second duration is less than the first duration.
[0172] In some alternative embodiments, the apparatus may further include:
[0173] A third acquisition module, configured to acquire the first light intensity in front of the vehicle currently collected and the second light intensity in front of the vehicle collected third duration before the current time when the current time is within the target time period of the day; wherein, the target time period of the day refers to the time period in a day when the light intensity of the external natural environment light generally belongs to the time period where the anti-glare function does not need to be enabled;
[0174] A second control module, configured to enable the anti-glare function of the vehicle rearview mirror if the difference between the first light intensity in front of the vehicle and the second light intensity in front of the vehicle is less than or equal to the third light intensity and the light intensity in front of the vehicle is continuously less than the fourth light intensity for the fourth duration.
[0175] The vehicle rearview mirror control device provided in this embodiment belongs to the same inventive concept as the vehicle rearview mirror control method provided in the foregoing embodiments of the present application, and can execute the vehicle rearview mirror control method provided in any of the foregoing embodiments of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, reference may be made to the specific processing content of the vehicle rearview mirror control method provided in the foregoing embodiments of the present application, which will not be elaborated herein.
[0176] Exemplary Electronic Device
[0177] An embodiment of the present application further provides an electronic device, as Figure 5 shown, the electronic device includes: a memory 500 and a processor 510.
[0178] The memory 500 is connected to the processor 510 and is used to store programs.
[0179] The processor 510 is configured to implement the vehicle rearview mirror control method in the foregoing embodiments by running the programs stored in the memory 500.
[0180] Specifically, the foregoing electronic device may further include: a communication interface 520, an input device 530, an output device 540, and a bus 550.
[0181] The processor 510, the memory 500, the communication interface 520, the input device 530, and the output device 540 are interconnected via a bus. Among them:
[0182] The bus 550 may include a path for transmitting information between various components of the computer system.
[0183] The processor 510 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention solution. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0184] The processor 510 may include a main processor, and may also include a baseband chip, a modem, etc.
[0185] The memory 500 stores a program for implementing the technical solution of the present invention, and may also store an operating system and other critical services. Specifically, the program may include program code, and the program code includes computer operation instructions. More specifically, the memory 500 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk memory, a flash memory, etc.
[0186] The input device 530 may include a device for receiving user input data and information, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor, etc.
[0187] The output device 540 may include a device for allowing outputting information to the user, such as a display screen, a printer, a speaker, etc.
[0188] The communication interface 520 may include a device of any transceiver type for communicating with other devices or communication networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.
[0189] The processor 510 executes the program stored in the memory 500 and calls other devices, which can be used to implement each step of the vehicle rearview mirror control method provided in the above embodiments of the present application.
[0190] Exemplary Vehicle
[0191] The embodiments of the present application also provide a vehicle. Exemplarily, as Figure 6 shown, the vehicle 600 includes a memory 601 and a processor 602. Among them, an executable program code 6011 is stored in the memory 601, and the processor 602 is configured to call and execute the executable program code 6011 to execute the vehicle rearview mirror control method provided in the above embodiments of the present application.
[0192] The embodiments of the present application can divide the functions of the vehicle according to the above method examples. For example, for each functional module, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in the embodiments of the present application is illustrative, only a logical function division, and there may be other division methods in actual implementation.
[0193] In the case of dividing each functional module according to each function, the vehicle may include a detection module 401, a processing module 402, etc. It should be noted that all relevant contents of each step involved in the above method embodiments can be cited in the function descriptions of the corresponding functional modules, and will not be repeated here.
[0194] The vehicle provided by the embodiments of the present application is used to execute the above vehicle rearview mirror control method, and thus can achieve the same effects as the above implementation method.
[0195] In the case of adopting an integrated unit, the vehicle may include a processing module and a storage module. Among them, the processing module can be used to control and manage the actions of the vehicle. The storage module can be used to support the vehicle to execute mutual program codes and data, etc.
[0196] Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logical blocks, modules, and circuits described in combination with the disclosure of the present application. The processor can also be a combination that realizes computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory.
[0197] Exemplary Computer Program Product and Storage Medium
[0198] In addition to the above methods and devices, the embodiments of the present application may also be a computer program product, which includes computer program instructions. When the computer program instructions are run by a processor, the processor is caused to execute the steps in the vehicle rearview mirror control method described in the embodiments of the present application.
[0199] The above computer program product can be specifically implemented in the form of hardware, software, or a combination thereof. In an alternative embodiment, the computer program product is specifically embodied as a computer storage medium. In another alternative embodiment, the computer program product is specifically embodied as a software product, such as a Software Development Kit (SDK), etc.
[0200] The computer program product can be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present application. The programming languages include object-oriented programming languages, such as Java, C++, etc., and also include conventional procedural programming languages, such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as an independent software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0201] In addition, an embodiment of the present application can also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to perform the steps in the vehicle rearview mirror control method described in the embodiments of the present application.
[0202] In addition, an embodiment of the present application can also be a chip, which includes a processor and a data interface. The processor reads instructions stored on a memory through the data interface to perform the steps in the vehicle rearview mirror control method described in the embodiments of the present application.
[0203] For the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0204] It should be noted that the embodiments in this specification are all described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0205] The steps in the methods of the embodiments of the present application can be adjusted, combined, and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.
[0206] The devices, modules, and sub-modules in the embodiments of the present application can be combined, divided, and deleted according to actual needs.
[0207] In several embodiments provided in the present application, it should be understood that the disclosed terminals, devices, and methods can be implemented in other ways. For example, the terminal embodiments described above are merely illustrative. For example, the division of modules or sub-modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple sub-modules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of devices or modules can be in electrical, mechanical, or other forms.
[0208] The modules or sub-modules described as separate components may or may not be physically separated. The components as modules or sub-modules may or may not be physical modules or sub-modules, that is, they can be located in one place, or can be distributed to multiple network modules or sub-modules. Some or all of the modules or sub-modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0209] In addition, each functional module or sub-module in the embodiments of the present application can be integrated in a processing module, or each module or sub-module can exist physically alone, or two or more modules or sub-modules can be integrated in one module. The above-mentioned integrated modules or sub-modules can be implemented in the form of hardware or in the form of software functional modules or sub-modules.
[0210] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
[0211] The steps of the methods or algorithms described in combination with the embodiments disclosed in this article can be directly implemented by hardware, software units executed by a processor, or a combination of the two methods. The software units can be placed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0212] Finally, it should also 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 actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device.
Claims
1. A vehicle rearview mirror control method, characterized in that The method includes: Obtaining the light intensity in front of the vehicle collected within the first duration; Determining the average value of the light intensity in front of the vehicle within the first duration according to the light intensity in front of the vehicle collected within the first duration; When the average value is less than or equal to the first light intensity, determining that the vehicle is stably in a dark environment; wherein, the first light intensity is used to represent a relatively small ambient light intensity; When the vehicle is stably in a dark environment, enabling the anti-glare function of the vehicle rearview mirror.
2. The vehicle rearview mirror control method according to claim 1, characterized in that, The obtaining the light intensity in front of the vehicle collected within the first duration includes: When the current time is within the target time period of the day, obtaining the light intensity in front of the vehicle collected within the first duration; wherein, the target time period of the day refers to the time period in a day when the light intensity of the external natural ambient light generally belongs to the time period when the anti-glare function does not need to be enabled.
3. The vehicle rearview mirror control method according to claim 2, wherein The when the current time is within the target time period of the day, obtaining the light intensity in front of the vehicle collected within the first duration includes: When the current time is within the target time period of the day and the vehicle is about to drive into a target type of scene, obtaining the light intensity in front of the vehicle collected within the first duration; wherein, the target type of scene is a scene where light and darkness changes occur when entering or exiting.
4. The vehicle rearview mirror control method according to claim 1 or 2, characterized in that, Collecting the light intensity behind the vehicle while collecting the light intensity in front of the vehicle; The when the average value is less than or equal to the first light intensity, determining that the vehicle is stably in a dark environment includes: When the average value is less than or equal to the first light intensity and the vehicle speed is less than or equal to the vehicle speed threshold, if at least one light intensity behind the vehicle less than or equal to the second light intensity is collected within the first duration, and / or the exposure duration of the target camera is greater than the duration threshold, then determining that the vehicle is stably in a dark environment; wherein, the second light intensity is used to represent a dark environment, and the target camera is a camera installed at the rear of the vehicle.
5. The vehicle rearview mirror control method according to claim 4, wherein The anti-glare function of the vehicle rearview mirror includes multiple anti-glare levels, and different anti-glare levels correspond to different ranges of light intensity behind the vehicle and different mirror reflectivities; The second light intensity is the maximum value of the range of light intensity behind the vehicle corresponding to the lowest anti-glare level, wherein the lowest anti-glare level is the level that does not require adjustment of the mirror reflectivity.
6. The vehicle rearview mirror control method according to claim 1 or 2, characterized in that Before obtaining the light intensity in front of the vehicle collected within the first duration, the method further includes: Obtaining the current vehicle speed; Among multiple preset durations, determining the first duration corresponding to the current vehicle speed; wherein, different preset durations correspond to different vehicle speed ranges.
7. The vehicle rearview mirror control method according to claim 2 or 3, characterized in that The obtaining the light intensity in front of the vehicle collected within the first duration includes: Obtaining the light intensity in front of the vehicle collected within the first duration every second duration; wherein, the second duration is less than the first duration.
8. The vehicle rearview mirror control method according to claim 1, characterized in that, The method further includes: When the current time is within the target time period of the day, obtaining the first light intensity in front of the vehicle currently collected and the second light intensity in front of the vehicle collected three durations before the current time; wherein, the target time period of the day refers to the time period in a day when the light intensity of the external natural ambient light generally belongs to the time period when the anti-glare function does not need to be enabled. When the difference between the first vehicle front illumination intensity and the second vehicle front illumination intensity is less than or equal to the third illumination intensity, if the vehicle front illumination intensity continuously lasts for a fourth duration and is less than the fourth illumination intensity, the anti-glare function of the vehicle rearview mirror is enabled.
9. A vehicle, characterized in that, Including: A memory and a processor; The memory is connected to the processor and is used for storing programs; The processor is used for implementing the vehicle rearview mirror control method according to any one of claims 1 to 8 by running the programs in the memory.
10. A storage medium, characterized in that, A computer program is stored on the storage medium, and when the computer program is run by the processor, the vehicle rearview mirror control method according to any one of claims 1 to 8 is implemented.