Brightness adjusting method, brightness adjusting device, electronic equipment and program product
By determining the brightness adjustment threshold based on weather type and sunlight intensity, the problem of unsuitable brightness adjustment for electronic rearview mirror displays in dynamic environments is solved, achieving smooth brightness adjustment, reducing visual interference and improving display effect.
Patent Information
- Application Number
- CN202511833535.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-05
- Publication Date
- 2026-03-03
AI Technical Summary
The existing electronic rearview mirror display brightness adjustment scheme cannot adapt to dynamic environmental changes, resulting in frequent adjustments that cause visual interference.
By acquiring the weather type, sunlight intensity, and scene of the vehicle's current location, a brightness adjustment threshold is determined based on the weather coefficient and sunlight intensity. Adjustment is then made when the brightness difference exceeds the threshold, and smooth adjustment is achieved by combining an exponential smoothing algorithm.
It effectively filters out minor fluctuations, prevents frequent adjustments, reduces visual interference, and allows brightness adjustment to adapt to dynamic environmental changes, thereby improving display performance.
Smart Images

Figure CN121600883A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of automotive electronics technology, and in particular relates to a brightness adjustment method, a brightness adjustment device, an electronic device, and a program product. Background Technology
[0002] An electronic rearview mirror is an indirect field-of-view device consisting of a high-definition camera, a main control unit, a light sensor, and a display screen, used to replace traditional optical rearview mirrors. Current electronic rearview mirror displays primarily use fixed thresholds for brightness adjustment, which cannot adapt to dynamic environmental changes. Summary of the Invention
[0003] This application provides a brightness adjustment method, brightness adjustment device, electronic device, and program product, which enables the brightness adjustment of the display screen of an electronic rearview mirror to adapt to dynamic environmental changes.
[0004] In a first aspect, embodiments of this application provide a brightness adjustment method, including: Obtain the weather type at the vehicle's current location, the sunlight intensity of the vehicle's current environment, and the scene in which the vehicle is currently located; Based on the weather coefficient corresponding to the weather type, the solar radiation intensity, and the current scene of the vehicle, the brightness adjustment threshold of the display screen of the vehicle's electronic rearview mirror is determined. Obtain the target brightness of the display screen; If the difference between the current brightness of the display screen and the target brightness exceeds the brightness adjustment threshold, then the current brightness of the display screen is adjusted to the target brightness.
[0005] In this embodiment, by acquiring the weather type, sunlight intensity, and scene of the vehicle's current location, and based on the weather coefficient, sunlight intensity, and environment corresponding to the weather type, the brightness adjustment threshold of the electronic rearview mirror's display screen is determined. This allows the brightness adjustment threshold to adapt to environmental changes. Furthermore, when the difference between the current brightness and the target brightness of the display screen exceeds the brightness adjustment threshold, the current brightness of the display screen is adjusted to the target brightness. This effectively filters out invalid micro-fluctuations, prevents frequent adjustments, reduces visual interference, and allows the brightness adjustment of the electronic rearview mirror to adapt to dynamic environmental changes.
[0006] In some embodiments of the first aspect, obtaining the target brightness of the display screen includes: Based on the current scene in which the vehicle is located, determine the target ambient illuminance in the current scene in which the vehicle is located; The target brightness is determined based on the target ambient illuminance.
[0007] In some embodiments of the first aspect, determining the target ambient illuminance in the current scene of the vehicle, based on the current scene of the vehicle, includes: If the vehicle is currently in a non-tunnel scenario, or if the vehicle is currently in a tunnel scenario and is in the first stage of the tunnel scenario, then a first ambient light intensity and a second ambient light intensity are obtained; the first ambient light intensity is the illuminance of the environment in which the display screen is currently located, and the second ambient light intensity is the illuminance of the environment in which the electronic rearview mirror camera is currently located; the first stage includes: the stage from when the actual distance to the tunnel entrance is less than a preset distance to when the vehicle has completely exited the tunnel exit; Based on the first weight of the first ambient illuminance and the second weight of the second ambient illuminance, the first ambient illuminance and the second ambient illuminance are weighted and summed to obtain the target ambient illuminance; If the vehicle is currently in the tunnel scenario and is in the second stage of the tunnel scenario, then a tunnel depth correction coefficient is calculated based on the distance between the vehicle and the tunnel entrance; the tunnel depth correction coefficient is negatively correlated with this distance; the second stage includes: the stage from the identification of the tunnel entrance to the actual distance to the tunnel entrance being greater than or equal to the preset distance; The target ambient illuminance is determined based on the weather coefficient corresponding to the weather type and the tunnel depth correction coefficient. If the vehicle is currently in the tunnel scenario and it is detected that the vehicle has completely exited the tunnel exit, then the target ambient illuminance before entering the tunnel is updated based on the compensation coefficient corresponding to the weather type, so as to obtain the target ambient illuminance when the vehicle has completely exited the tunnel exit.
[0008] In some embodiments of the first aspect, when the vehicle is currently in the non-tunnel scenario, before performing a weighted summation of the first ambient illuminance and the second ambient illuminance based on a first weight and a second weight of the second ambient illuminance, the method further includes: If the difference between the first ambient light intensity and the second ambient light intensity does not exceed a preset illuminance threshold, then both the first weight and the second weight are determined to be the first value; If the difference between the first ambient light intensity and the second ambient light intensity exceeds the preset illuminance threshold, and the second ambient light intensity is greater than the first ambient light intensity, then the first weight and the second weight are respectively determined as a second value and a third value, and the second value is greater than the third value; If the difference between the first ambient light intensity and the second ambient light intensity exceeds the preset illuminance threshold and the second ambient light intensity is less than the first ambient light intensity, then the first weight and the second weight are respectively determined as a fourth value and a fifth value, wherein the fourth value is less than the fifth value.
[0009] In some embodiments of the first aspect, the first sub-stage is the stage from when the distance to the tunnel entrance is less than the preset distance until the vehicle has fully entered the tunnel entrance and the tunnel exit is detected; the second sub-stage is the stage from when the tunnel exit is detected until the vehicle has fully exited the tunnel exit; when the vehicle is in the first sub-stage, before weighted summing the first ambient illuminance and the second ambient illuminance based on the first weight and the second weight of the first ambient illuminance, the method further includes: The first weight and the second weight are respectively determined as a sixth value and a seventh value, wherein the sixth value is less than the seventh value; When the vehicle is in the second sub-stage, before performing a weighted summation of the first ambient illuminance and the second ambient illuminance based on the first weight and the second weight of the second ambient illuminance, the method further includes: Both the first weight and the second weight are set to the eighth value.
[0010] In some embodiments of the first aspect, after determining the first weight and the second weight as the sixth value and the seventh value, respectively, the method further includes: Before the vehicle has fully entered the tunnel entrance and the tunnel exit has been identified, if a sudden increase in the second ambient light intensity is detected and the duration of the sudden increase exceeds a preset time, then the first weight and the second weight are determined as the ninth value and the tenth value, respectively, and the ninth value is greater than the tenth value. The sudden increase event is defined as the difference between the second ambient light intensity at a first moment and the second ambient light intensity at a second moment exceeding a preset sudden increase threshold, wherein the first moment and the second moment are two adjacent moments and the first moment is later than the second moment.
[0011] In some embodiments of the first aspect, if the difference between the current brightness and the target brightness exceeds the brightness adjustment threshold, the method further includes: Based on the target ambient light intensity and the second ambient light intensity, the target exposure time and target gain of the electronic rearview mirror camera are determined; Based on the target exposure time and the target gain, send parameter control commands to the electronic rearview mirror camera; The parameter control command is used to instruct the electronic rearview mirror camera to adjust the current exposure time to the target exposure time and the current gain to the target gain, so that the brightness of the electronic rearview mirror image captured by the electronic rearview mirror camera matches the target ambient light.
[0012] In some embodiments of the first aspect, determining the brightness adjustment threshold of the display screen of the vehicle's electronic rearview mirror based on the weather coefficient corresponding to the weather type, the solar radiation intensity, and the current scene of the vehicle includes: If the vehicle is currently in a non-tunnel scenario, the brightness adjustment threshold is determined based on the weather coefficient and the sunlight intensity. If the vehicle is currently in a tunnel, the brightness adjustment threshold is determined based on the weather coefficient, the sunlight intensity, and the preset threshold reduction coefficient, wherein the preset threshold reduction coefficient is greater than zero and less than 1.
[0013] In some embodiments of the first aspect, where the brightness adjustment threshold recorded before entering the tunnel is used as the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance until the tunnel exit is detected, the method further includes: If the difference between the current brightness and the brightness of the display screen at the previous moment exceeds the brightness adjustment threshold, and the difference between the weather coefficient corresponding to the weather type and the weather coefficient recorded before entering the tunnel exceeds the weather coefficient threshold, then based on the weather coefficient corresponding to the weather type, the solar intensity, and the preset threshold reduction coefficient, the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance to when the tunnel exit is identified is re-determined.
[0014] Secondly, embodiments of this application provide a brightness adjustment device, including: The data acquisition module is used to acquire the weather type at the current location of the vehicle, the sunlight intensity of the current environment of the vehicle, and the current scene of the vehicle. The threshold determination module is used to determine the brightness adjustment threshold of the display screen of the vehicle's electronic rearview mirror based on the weather coefficient corresponding to the weather type, the solar radiation intensity, and the current scene of the vehicle. The target acquisition module is used to acquire the target brightness of the display screen; A brightness adjustment module is used to adjust the current brightness of the display screen to the target brightness if the difference between the current brightness of the display screen and the target brightness exceeds the brightness adjustment threshold.
[0015] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the electronic device implements the brightness adjustment method as described in any one of the first aspects above.
[0016] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a computer, implements the method as described in any one of the first aspects above.
[0017] Fifthly, embodiments of this application provide a computer program product, including a computer program, which, when run, causes the brightness adjustment method as described in any one of the first aspects above to be executed.
[0018] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of the structure of the electronic rearview mirror provided in the embodiments of this application; Figure 2 This is a schematic flowchart of the brightness adjustment method provided in the embodiments of this application; Figure 3 This is a flowchart illustrating the process of determining the brightness adjustment threshold in a non-tunnel scenario, as provided in an embodiment of this application. Figure 4 This is a schematic diagram of the brightness adjustment device provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0021] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0022] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0023] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0024] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0025] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.
[0026] The brightness adjustment method provided in this application embodiment can be applied to electronic devices such as mobile phones, tablets, electronic rearview mirrors, desktop computers, servers, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application embodiment does not impose any restrictions on the specific type of electronic device.
[0027] To illustrate the technical solution of this application, specific embodiments are described below.
[0028] For example, Figure 1 A schematic diagram of the structure of the electronic rearview mirror provided in an embodiment of this application is shown. See also... Figure 1As shown, the electronic rearview mirror includes: an electronic rearview mirror camera, a main control unit, a display screen, an advanced driver assistance system (ADAS) front camera, and a brightness sensor.
[0029] The main control unit can establish communication connections with the electronic rearview mirror camera, the display screen, the ADAS front camera, and the brightness sensor respectively, so as to realize the brightness adjustment method provided in the embodiments of this application.
[0030] Optionally, this application does not limit the specific type of the main control unit. For example, the main control unit can be an automotive-grade system on chip (SoC) or a microcontroller unit (MCU).
[0031] Optionally, this application does not limit the specific type of display screen for the electronic rearview mirror. For example, it can be an organic light-emitting diode (OLED) display screen.
[0032] The number of side and rear cameras can be one or more (i.e., at least two). For example, there are two side and rear cameras 101, which are installed on the left and right side mirrors of the vehicle, respectively, and have features such as high resolution and wide viewing angle.
[0033] The side and rear camera has good low-light performance and image stability, and can clearly and stably collect image information from the side and rear of the vehicle under various complex environmental conditions (such as night, rain, fog, etc.) to obtain the electronic rearview mirror image.
[0034] The ADAS front-facing camera can be a monocular or binocular ADAS camera already installed in the vehicle, used to capture images of the road ahead, identify tunnel entrance and exit features, and measure distances.
[0035] ADAS cameras capture real-time images of the road ahead. Using a pre-trained deep learning model (e.g., YOLOv5, with training samples including tunnel entrance and exit images under different lighting conditions and vehicle types), tunnel features (such as the arc shape and rectangular outline of the tunnel entrance, the light-dark boundary line, and the texture of the tunnel walls) are extracted. Scene recognition is then performed based on these features. If a "tunnel entrance" is identified, it is marked as "entering a tunnel scene"; if a "strong light boundary line at the tunnel exit" is identified, it is marked as "leaving a tunnel scene." Both entering and leaving tunnel scenes are considered tunnel scenes.
[0036] The ADAS front-facing camera can use monocular vision for distance measurement, and its distance measurement formula is as follows:
[0037] in, This refers to the actual distance between the vehicle and the tunnel entrance (e.g., the tunnel entrance or tunnel exit); For ADAS camera focal length (pre-calibrated); This is the actual height of the tunnel entrance (which can be obtained from a high-precision map). This represents the height in pixels of the tunnel entrance in the image of the road ahead. In the calculation formula, " / " represents division.
[0038] The brightness sensors include a camera brightness sensor and a display screen brightness sensor. The camera brightness sensor is integrated near the electronic rearview mirror camera and is used to collect the illuminance of the external environment surrounding the camera. The display screen brightness sensor is integrated on the side of the display screen and is used to collect the illuminance of the external environment around the display screen. These brightness sensors can also be referred to as ambient light sensors.
[0039] The main control unit can receive real-time weather data (such as sunny, cloudy, rainy, snowy, etc.) from the cloud through the vehicle-to-everything (T-BOX) Telematics BOX. It can also work with vehicle sensors to assist in correcting the weather type through rain sensors (detecting rainfall intensity) and sunshine sensors (detecting sunshine intensity, in W / m²).
[0040] Please see Figure 2 , Figure 2 A flowchart illustrating a brightness adjustment method provided in an embodiment of this application is shown. This brightness adjustment method can be applied to an electronic rearview mirror, specifically to the main control unit within the electronic rearview mirror. As an example and not a limitation, the application of this electronic rearview mirror control method to the main control unit is used as an example. Figure 2 The process shown is explained in detail. This brightness adjustment method includes the following steps: Step 201: Obtain the weather type of the vehicle's current location, the sunlight intensity of the vehicle's current environment, and the scene in which the vehicle is currently located.
[0041] The above weather types include, but are not limited to, sunny, cloudy, rainy, and snowy days.
[0042] In some embodiments, the main control unit can receive real-time weather data from the cloud via the vehicle-to-everything (V2X) T-BOX and obtain the weather type from the weather data.
[0043] In other embodiments, if the weather data acquired via the vehicle-to-everything (V2X) T-BOX is unclear (e.g., the T-BOX signal is weak), the weather data can be corrected using vehicle body sensors. These vehicle body sensors include, but are not limited to, rain sensors and sunlight sensors. Rain sensors are used to detect whether it is raining. Sunlight sensors are used to detect sunlight intensity.
[0044] To facilitate the calculation of brightness adjustment thresholds, weather types can be quantified into weather coefficients based on the degree of light impact. These weather coefficients can be calibrated through real vehicle testing.
[0045] As an example, not a limitation, the weather coefficient is 1.0 for sunny days; 0.7 for cloudy days; 0.5 for rainy days; and 0.4 for snowy days. When the weather data obtained through the vehicle-to-everything (V2X) T-BOX is ambiguous, the weather coefficient is determined to be 0.5 if the rain sensor detects rainfall, and 0.7 if the sunlight sensor detects a sunlight intensity of less than 200 W / m².
[0046] In some embodiments, the intensity of sunlight in the vehicle's current environment can be detected using a sunlight sensor.
[0047] In some embodiments, the current environment of the vehicle can be detected by the ADAS front-facing camera.
[0048] Step 202: Based on the weather coefficient corresponding to the weather type, the solar radiation intensity, and the current scene of the vehicle, determine the brightness adjustment threshold of the display screen of the vehicle's electronic rearview mirror.
[0049] The aforementioned brightness adjustment threshold is used to determine whether the display screen needs to be adjusted, in order to filter out minor brightness fluctuations that do not require adjustment and avoid eye strain caused by frequent adjustments.
[0050] In this embodiment, when determining the brightness adjustment threshold, considering weather type makes the brightness adjustment behavior more consistent with the physiological characteristics of the human eye under different weather conditions. For example, on a sunny day: the ambient light is strong, the pupils of the human eye constrict, making them more sensitive to strong light, but the ability to distinguish details in dark areas decreases. At this time, the weather coefficient is 1.0, which allows for a higher brightness adjustment threshold. This higher threshold makes the brightness adjustment slightly more "inertial," avoiding frequent adjustments when the light fluctuates slightly (e.g., passing through the shade of trees), while also preventing the display from appearing too dark in already bright environments. On cloudy / rainy / snowy days: the ambient light is weak and soft, the pupils of the human eye dilate, reducing tolerance to glare, but requiring higher display brightness to distinguish details. At this time, the weather coefficients are 0.7, 0.5, and 0.4 respectively, which allow for a lower brightness adjustment threshold. This lower threshold makes the brightness adjustment more "active" and "sensitive."
[0051] In this embodiment, considering sunlight intensity when determining the brightness adjustment threshold allows for more refined supplementation and correction based on weather type. For example, on a sunny day, the sunlight intensity at noon differs significantly from that in the evening. A fixed threshold or relying solely on weather type is insufficient. Correcting the brightness adjustment threshold based on sunlight intensity ensures that it adjusts smoothly and continuously according to the actual sunlight at different times of day. When a vehicle briefly enters under a bridge or along a tree-lined road, the sunlight intensity changes instantaneously, but the weather type remains the same. Correcting the brightness adjustment threshold based on sunlight intensity better addresses these localized, instantaneous changes in lighting conditions.
[0052] In this embodiment, when determining the brightness adjustment threshold, the current scene of the vehicle is taken into account, which enables precise adjustment of the display screen brightness under different scenes.
[0053] Step 203: Obtain the target brightness of the display screen.
[0054] The target brightness is an ideal brightness value for the display screen. This target brightness ensures that the brightness of the electronic rearview mirror image displayed on the screen matches the ambient light level inside the vehicle, thereby improving the display effect of the electronic rearview mirror image and avoiding problems such as loss of detail and overly dark images.
[0055] It should be noted that the brightness of the display screen (e.g., target brightness and current brightness) mentioned in this application may refer to the backlight brightness of the display screen, and its unit is cd / m².
[0056] In some embodiments, the target brightness of the display screen can be determined based on the current scene of the vehicle, thereby setting the target brightness that best matches the visual characteristics of the human eye in different scenes.
[0057] Step 204: If the difference between the current brightness of the display screen and the target brightness exceeds the brightness adjustment threshold, then adjust the current brightness of the display screen to the target brightness.
[0058] The degree of difference between the current brightness and the target brightness can refer to the absolute difference between the current brightness and the target brightness.
[0059] In this embodiment, by adjusting the brightness of the display screen when the difference between the current brightness and the target brightness exceeds the brightness adjustment threshold, and not adjusting the brightness of the display screen when the difference between the current brightness and the target brightness does not exceed the brightness adjustment threshold, invalid minor fluctuations can be effectively filtered out, frequent adjustments can be prevented, and visual interference can be reduced.
[0060] In some embodiments, a brightness adjustment mode can be preset, and based on the brightness adjustment mode, the current brightness of the display screen can be adjusted to the target brightness, thereby ensuring a smooth change in brightness and a natural transition.
[0061] Optionally, the brightness adjustment mode described above can be a step-by-step adjustment algorithm or an exponential smoothing algorithm.
[0062] Step-by-step adjustment method: Divide the brightness change (i.e. the absolute difference between the current brightness and the target brightness) into multiple small steps, with a short interval between each step (e.g., 0.5 seconds, the adjustment is completed within Ts time) to avoid abrupt changes.
[0063] The calculation formula for the above exponential smoothing algorithm is as follows:
[0064] in, Current brightness; Target brightness; The time constant (e.g., 0.67 seconds, which allows adjustment to be completed within Ts time) controls the brightness adjustment speed; t is the adjustment time (i.e., the number of seconds counted from the start of adjustment) to ensure a smooth transition. Ts is the time it takes for the vehicle to arrive at the tunnel entrance, obtained from the vehicle's real-time speed v via the Controller Area Network (CAN) bus, where Ts = D / v, and D is the actual distance between the vehicle and the tunnel entrance.
[0065] In this embodiment, by acquiring the weather type, sunlight intensity, and scene of the vehicle's current location, and based on the weather coefficient, sunlight intensity, and environment corresponding to the weather type, the brightness adjustment threshold of the electronic rearview mirror's display screen is determined. This allows the brightness adjustment threshold to adapt to environmental changes. Furthermore, when the difference between the current brightness and the target brightness of the display screen exceeds the brightness adjustment threshold, the current brightness of the display screen is adjusted to the target brightness. This effectively filters out invalid micro-fluctuations, prevents frequent adjustments, reduces visual interference, and allows the brightness adjustment of the electronic rearview mirror to adapt to dynamic environmental changes.
[0066] In some embodiments of this application, the brightness adjustment threshold of the vehicle's electronic rearview mirror display is determined based on the weather coefficient corresponding to the weather type, the solar radiation intensity, and the current scene of the vehicle, including: If the vehicle is currently in a non-tunnel environment, the brightness adjustment threshold is determined based on the weather coefficient and sunlight intensity. If the vehicle is currently in a tunnel, the brightness adjustment threshold is determined based on the weather coefficient, sunlight intensity, and a preset threshold reduction coefficient. The preset threshold reduction coefficient is greater than zero and less than 1.
[0067] Optionally, a preset threshold reduction factor can be set according to actual needs or empirical values. For example, the preset threshold reduction factor is 0.5.
[0068] Brightness adjustment threshold in non-tunnel scenes The calculation formula is as follows:
[0069] in, This is the basic threshold for brightness. Weather coefficient; This is the solar radiation correction factor.
[0070] Optionally, the aforementioned basic brightness threshold can be a fixed value, corresponding to the display brightness threshold most comfortable for the human eye; alternatively, the aforementioned basic brightness threshold can be pre-calibrated. For example, the aforementioned basic brightness threshold can be the basic brightness threshold corresponding to the target ambient light level. By pre-calibrating the optimal visual brightness basic threshold under each ambient light level, the optimal visual brightness basic threshold under the target ambient light level becomes the basic brightness threshold corresponding to the target ambient light level.
[0071] The formula for calculating the sunshine correction factor is as follows:
[0072] in, This refers to the intensity of solar radiation.
[0073] like Figure 3 The diagram illustrates the process for determining the brightness adjustment threshold in a non-tunnel scenario, as provided in this embodiment. After receiving the T-BOX signal, the main control unit determines its reliability. If reliable, it sets the W coefficient (weather coefficient) based on the weather type in the T-BOX signal. If unreliable, it uses a vehicle body sensor for correction. If a rain sensor detects rainfall, the weather coefficient W = 0.7; if no rainfall is detected and the solar intensity is less than 200 W / m², the weather coefficient W = 0.7; if no rainfall is detected and the solar intensity is greater than or equal to 200 W / m², the default weather coefficient is 1, i.e., the default weather coefficient W = 1.0. After obtaining the weather coefficient, a solar correction coefficient is calculated, and then a dynamic threshold (brightness adjustment threshold) is calculated and saved. The saved brightness adjustment threshold is then used to control the brightness adjustment of the display screen.
[0074] Because brightness changes rapidly and significantly in tunnel environments, a timely response is required. Therefore, a brightness adjustment threshold is needed for tunnel scenarios. The calculation formula is as follows:
[0075] in, Reduce the coefficient for the preset threshold.
[0076] In this embodiment, the brightness adjustment threshold in the tunnel scene is reduced compared to the brightness adjustment threshold in the non-tunnel scene. This can improve response sensitivity in tunnel scenarios by several times.
[0077] Since the tunnel has a limited length, the weather type is usually constant before entering the tunnel and while driving inside. Therefore, to save power and avoid frequent updates to the brightness adjustment threshold, the brightness adjustment threshold recorded before entering the tunnel can be used as the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance until the tunnel exit is detected. In some embodiments of this application, when using the brightness adjustment threshold recorded before entering the tunnel as the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance until the tunnel exit is detected, the method further includes: If the difference between the current brightness and the brightness of the display at the previous moment exceeds the brightness adjustment threshold, and the difference between the weather coefficient corresponding to the weather type and the weather coefficient recorded before entering the tunnel exceeds the weather coefficient threshold, then based on the weather coefficient corresponding to the weather type, the sunlight intensity, and the preset threshold reduction coefficient, the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance to when the tunnel exit is identified is re-determined.
[0078] The difference between the current brightness and the brightness of the display screen at the previous moment can refer to the absolute difference between the current brightness and the brightness at the previous moment.
[0079] The degree of difference between the weather coefficient corresponding to the above weather type and the weather coefficient recorded before entering the tunnel can refer to the absolute difference between the weather coefficient corresponding to the weather type and the weather coefficient recorded before entering the tunnel.
[0080] Optionally, a weather coefficient threshold can be set based on actual needs or empirical values. For example, if the weather coefficient threshold is 0.15, and the difference between the weather coefficient corresponding to the real-time weather type and the previously recorded weather coefficient exceeds 0.15, it is determined that the weather has changed significantly (such as from sunny to cloudy, or from cloudy to rainy), and a weather update can be triggered to update the brightness adjustment threshold.
[0081] In this embodiment, when redefining the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance to when the tunnel exit is detected, the time constant can be increased to extend the adjustment time, allowing for a slower brightness adjustment rate. This avoids excessively rapid adjustment due to changes in both weather and tunnel conditions. For example, in this case, the time constant τ is increased to 1.5 seconds, and the adjustment time Ts is extended to 4 seconds. At Ts = 4 seconds, the completion rate is... (93%), ensuring a smooth transition.
[0082] In some embodiments of this application, obtaining the target brightness of the display screen includes: Based on the current scene in which the vehicle is located, determine the target ambient illuminance in the current scene in which the vehicle is located; The target brightness is determined based on the target ambient illuminance.
[0083] The aforementioned target ambient light intensity refers to the ideal ambient light intensity in the current scene where the vehicle is located, which can also be understood as the ambient light intensity that matches the brightness of the electronic rearview mirror image. When the target ambient light intensity matches the brightness of the electronic rearview mirror image, adjusting the brightness based on the target ambient light intensity can improve the display effect of the electronic rearview mirror image and avoid problems such as loss of detail and overly dark images.
[0084] Since the brightness of a display screen is positively correlated with the illuminance of its surrounding environment (i.e., ambient light), it can be determined based on the formula... Calculate the target brightness. Among them, Target ambient illuminance; This is the proportionality coefficient; Based on the base brightness.
[0085] Optionally, the scaling factor and base brightness can be set according to actual needs or empirical values. For example, the scaling factor can be 0.02; the base brightness can be 50 cd / m² to ensure the minimum visibility of the display screen in dark conditions.
[0086] In some embodiments of this application, determining the target ambient illuminance in the current scene of the vehicle includes: If the vehicle is currently in a non-tunnel scenario, or if the vehicle is currently in a tunnel scenario and is in the first stage of the tunnel scenario, then the first ambient light intensity and the second ambient light intensity are obtained; the first ambient light intensity is the illuminance of the environment in which the display screen is currently located, and the second ambient light intensity is the illuminance of the environment in which the electronic rearview mirror camera is currently located; the first stage includes: the stage from when the actual distance to the tunnel entrance is less than a preset distance to when the vehicle has completely exited the tunnel exit; Based on the first weight of the first ambient illuminance and the second weight of the second ambient illuminance, the first ambient illuminance and the second ambient illuminance are weighted and summed to obtain the target ambient illuminance. If the vehicle is currently in a tunnel scene and is in the second stage of the tunnel scene, then the tunnel depth correction coefficient is calculated based on the distance between the vehicle and the tunnel entrance; the tunnel depth correction coefficient is negatively correlated with this distance (i.e., the distance between the vehicle and the tunnel entrance); the second stage includes: the stage from the recognition of the tunnel entrance to the actual distance to the tunnel entrance being greater than or equal to a preset distance; The target ambient illuminance is determined based on the weather coefficient corresponding to the weather type and the tunnel depth correction coefficient. If the vehicle is currently in a tunnel scene and it is detected that the vehicle has completely driven out of the tunnel exit, the target ambient illuminance before entering the tunnel is updated based on the compensation coefficient corresponding to the weather type, so as to obtain the target ambient illuminance when the vehicle has completely driven out of the tunnel exit.
[0087] It should be noted that the sum of the first weight and the second weight is 1.
[0088] In some embodiments, the current scene of the vehicle can be divided into two types: a tunnel scene and a non-tunnel scene. Based on this, the target ambient illuminance is determined for each of these two scenes.
[0089] In some embodiments, a second ambient light level can be obtained through a camera brightness sensor, and a first ambient light level can be obtained through a display brightness sensor. The unit of ambient light level is lux.
[0090] In some embodiments, the acquisition frequency of the camera brightness sensor and the display brightness sensor can be 1Hz. After the main control unit acquires the first ambient light intensity and the second ambient light intensity, and before determining the target ambient light intensity based on the two ambient light intensity, the two ambient light intensity can be filtered (for example, by using a moving average filter with a window size of 5) to eliminate instantaneous noise in the two ambient light intensity.
[0091] Because the environments in which the electronic rearview mirror camera and display screen are located can differ significantly, the brightness of the electronic rearview mirror image may not match the interior environment. For example, in a nighttime scenario, if the interior lights are off (dark environment), but the electronic rearview mirror camera is directly illuminated by the headlights of a vehicle behind (bright environment), adjusting the display screen brightness based solely on the vehicle's sensors may result in an overly bright image on the electronic rearview mirror itself, leading to distorted display and loss of detail. Conversely, if the interior lights are on (bright environment) but the electronic rearview mirror camera is in a dark environment (such as a dark tunnel), increasing the display screen brightness may result in an overly dark image on the electronic rearview mirror, making it difficult for the driver to see what's behind them. Based on this, in the first stage of both non-tunnel and tunnel scenarios, this embodiment uses a weighted summation of the ambient illuminance inside and outside the vehicle based on a first weight and a second weight to obtain the target ambient illuminance. This approach simultaneously considers the ambient illuminance inside and outside the vehicle, determining a target ambient illuminance that matches the brightness of the electronic rearview mirror image. This improves the display effect of the electronic rearview mirror image, avoids problems such as loss of detail and overly dark images, and thus solves the problem of inconsistency between the electronic rearview mirror image and the in-vehicle environment.
[0092] Optionally, a preset distance can be set according to actual needs or experience. For example, the preset distance is 100m.
[0093] It should be noted that, in order to distinguish the target ambient illuminance calculated using different methods... The ambient illuminance of the target environment in a non-tunnel scene or in the first stage of a tunnel scene can be represented as... The target ambient illuminance in the second stage is expressed as... .
[0094] The formula for calculating the target ambient illuminance in non-tunnel scenes or the first stage of tunnel scenes is as follows:
[0095] in, It is the first weight; The first ambient light level; As the second weight; This refers to the second ambient light intensity.
[0096] In the second stage of the tunnel scenario, the ambient illuminance near the tunnel entrance is significantly affected by weather. For example, on sunny days, a strong "black hole effect" occurs at the tunnel entrance (ambient illuminance outside the tunnel entrance can reach 100,000 lux, while the ambient illuminance inside the tunnel is only 50-200 lux, resulting in a contrast ratio as high as 500:1); while on rainy days, the ambient illuminance outside the tunnel entrance is only 2,000-5,000 lux, and the contrast ratio drops to 20:1. Therefore, the target ambient illuminance in the second stage needs to be dynamically adjusted according to the weather coefficient. The formula for calculating the target ambient illuminance in the second stage is as follows:
[0097] in, The baseline ambient illuminance for the second stage is pre-set, for example, 150 lux (which can be calibrated based on the comfortable brightness for the human eye in the tunnel); This is a weather coefficient, dimensionless, with a value range of 0.4 to 1.0 (1.0 for sunny days, 0.7 for cloudy days, 0.5 for rainy days, and 0.4 for snowy days), reflecting the degree to which weather reduces ambient light intensity; This is a dimensionless tunnel depth correction factor, ranging from 0.8 to 1.0, dynamically calculated based on the actual distance between the vehicle and the tunnel entrance.
[0098] The formula for calculating the tunnel depth correction factor is as follows:
[0099] in, The distance between the vehicle and the tunnel entrance is measured in meters (m) and obtained by ADAS camera ranging; 500 is the reference value for distance normalization, also in meters. Used to ensure hour, Keep the minimum value of 0.8; when (Upon arriving at the tunnel entrance) .
[0100] In one example, the specific application scenario is as follows: Scenario 1: Entering the tunnel on a sunny day (100m from the tunnel entrance), the weather coefficient is 1.0, and the ambient light outside the tunnel is extremely high.
[0101]
[0102]
[0103] Scenario 2: Entering the tunnel on a rainy day (100m from the tunnel entrance), the weather coefficient is 0.5, and the ambient light outside the tunnel is low.
[0104]
[0105]
[0106] In some embodiments, compensation coefficients can be pre-set for different weather types to compensate for the human eye's adaptation to changes in ambient light intensity. Multiplying the compensation coefficient by the target ambient light intensity before entering the tunnel yields the target ambient light intensity when the vehicle has completely exited the tunnel. It should be noted that the compensation coefficient for the same weather type is greater than the weather coefficient for that weather type.
[0107] In one example, the specific application scenario is as follows: The weather coefficient for a sunny day is 1.0, so the compensation coefficient for a sunny day can be 1.2. It is predicted that the ambient light intensity outside the tunnel will reach more than 50,000 lux, which needs to be increased by 20% to compensate for the human eye's adaptation process from darkness to light.
[0108] The weather coefficient for rainy days is 0.5, so the compensation coefficient for rainy days can be 0.9. The ambient light intensity outside the tunnel is estimated to be about 5000 lux, so it should be reduced by 10% to avoid excessive brightness.
[0109] In some embodiments of this application, when the vehicle is currently in a non-tunnel scenario, before weighted summing of the first ambient illuminance and the second ambient illuminance based on the first weight and the second weight of the second ambient illuminance, the method further includes: If the difference between the first ambient light intensity and the second ambient light intensity does not exceed the preset illuminance threshold, then both the first weight and the second weight are determined to be the first value. If the difference between the first ambient light intensity and the second ambient light intensity exceeds a preset illuminance threshold, and the second ambient light intensity is greater than the first ambient light intensity, then the first weight and the second weight are determined as the second value and the third value, respectively, and the second value is greater than the third value. If the difference between the first ambient light intensity and the second ambient light intensity exceeds a preset illuminance threshold and the second ambient light intensity is less than the first ambient light intensity, then the first weight and the second weight are determined as the fourth value and the fifth value, respectively, with the fourth value being less than the fifth value.
[0110] Optionally, a preset illuminance threshold can be set according to actual needs or empirical values. For example, the preset illuminance threshold is 500 lux.
[0111] The degree of difference between the first ambient illuminance and the second ambient illuminance can refer to the absolute difference between the first ambient illuminance and the second ambient illuminance.
[0112] If the difference between the first ambient light intensity and the second ambient light intensity does not exceed the preset illuminance threshold, it indicates that the brightness inside and outside the vehicle is similar, and the ambient light intensity inside and outside the vehicle is equally important. The first weight and the second weight can be set to the same value, for example, both can be set to 0.5.
[0113] If the difference between the first and second ambient light levels exceeds a preset illuminance threshold, and the second ambient light level is greater than the first ambient light level, it indicates that the outside of the vehicle is bright while the inside is dark. Setting the first weight to be greater than the second weight can prevent the display screen from being too bright and glaring. For example, the first weight is 0.6 and the second weight is 0.4.
[0114] If the difference between the first and second ambient light levels exceeds a preset illuminance threshold, and the second ambient light level is lower than the first ambient light level, it indicates that the interior of the vehicle is bright while the exterior is dark. In this case, setting the first weight to be less than the second weight allows for prioritizing the increase of brightness in the electronic rearview mirror image. For example, the first weight could be 0.4, and the second weight could be 0.6.
[0115] In some embodiments of this application, the first stage can be divided into a first sub-stage and a second sub-stage; the first sub-stage is the stage in the first stage from when the distance to the tunnel entrance is less than a preset distance to when the vehicle has fully entered the tunnel entrance and the tunnel exit has been identified; the second sub-stage is the stage in the first stage from when the tunnel exit is identified to when the vehicle has fully exited the tunnel exit; when the vehicle is in the first sub-stage, before the weighted summation of the first ambient illuminance and the second ambient illuminance based on the first weight and the second weight of the second ambient illuminance, the following steps are also included: The first weight and the second weight are respectively determined as the sixth value and the seventh value, with the sixth value being less than the seventh value; When the vehicle is in the second sub-stage, before weighting and summing the first ambient illuminance and the second ambient illuminance based on the first weight and the second weight of the second ambient illuminance, the process further includes: The first and second weights are both set to the eighth value.
[0116] In the first sub-stage, the ambient illuminance inside the vehicle (i.e., the first ambient illuminance) is relatively stable, but the ambient illuminance outside the vehicle (i.e., the second ambient illuminance) drops sharply (e.g., from 5000 lux to 100 lux). Under these circumstances, the changes in the light environment inside the tunnel mainly occur outside the vehicle (e.g., tunnel lighting), and the ambient illuminance inside the vehicle changes little in a short period of time. Since the electronic rearview mirror displays the view outside the vehicle, it should prioritize matching the ambient illuminance outside the vehicle. Therefore, the first weight can be set to be less than the second weight, for example, the first weight is 0.3 and the second weight is 0.7.
[0117] In the second sub-stage, the ambient light intensity inside and outside the vehicle is equally important, so the first and second weights can be set to be the same, for example, both 0.5.
[0118] In some embodiments of this application, after determining the first weight and the second weight as the sixth and seventh values, respectively, the method further includes: If a sudden increase in the second ambient light intensity is detected before the vehicle has fully entered the tunnel entrance and before the tunnel exit is identified, and the duration of the sudden increase exceeds a preset time, then the first weight and the second weight will be determined as the ninth value and the tenth value, respectively, with the ninth value being greater than the tenth value. A sudden increase event is defined as the difference between the second ambient light intensity at the first moment and the second ambient light intensity at the second moment being greater than a preset sudden increase threshold. The first moment and the second moment are two adjacent moments, with the first moment being later than the second moment.
[0119] Before the vehicle fully enters the tunnel entrance and the tunnel exit is detected, the second ambient light intensity should be stable at the tunnel lighting level (e.g., 100-200 lux). However, if the following vehicle turns on its high beams, the second ambient light intensity of the vehicle will instantly increase to more than 5000 lux. In this case, a sudden increase event is detected, and the first and second weights need to be updated.
[0120] To prevent misjudgments, the first and second weights can be updated when a sudden increase in the second ambient light intensity is detected and the duration of the sudden increase is greater than or equal to a preset time. This updates the first weight to be greater than the second weight, thereby suppressing the abnormal impact of the headlights of following vehicles on the brightness of the display screen. For example, the first weight can be updated to 0.7 and the second weight to 0.3.
[0121] It should be noted that if the duration of the sudden event does not exceed the preset time, the sudden event can be determined to be a temporary disturbance rather than a real change in the environment.
[0122] Optionally, a preset surge threshold can be set based on actual needs or empirical values. For example, the preset surge threshold is 2000 lux.
[0123] It should be noted that the above-mentioned preset surge threshold is the threshold for judging surge events. If the value is exceeded, it is judged as a surge event, such as strong light interference caused by the high beams of the following vehicle.
[0124] Optionally, a preset time can be set according to actual needs or experience. For example, the preset time is 3 seconds.
[0125] In some embodiments of this application, when the difference between the current brightness and the target brightness exceeds a brightness adjustment threshold, the method further includes: Based on the target ambient light intensity and the second ambient light intensity, determine the target exposure time and target gain of the electronic rearview mirror camera; Based on the target exposure time and target gain, send parameter control commands to the electronic rearview mirror camera; The parameter control command is used to instruct the electronic rearview mirror camera to adjust the current exposure time to the target exposure time and the current gain to the target gain, so that the brightness of the electronic rearview mirror image captured by the electronic rearview mirror camera matches the target ambient light.
[0126] The aforementioned parameter control instructions may refer to the parameter control instructions of an image signal processor.
[0127] The above target exposure time The calculation formula is as follows:
[0128] in, The preset base exposure time, such as 1 / 100s; To preset the exposure factor, such as 0.001s, avoid overexposure; Target ambient illuminance; This refers to the second ambient light intensity.
[0129] The above target gain The calculation formula is as follows:
[0130] in, Base gain, such as 1 dB; The preset gain factor, such as 0.5dB, is used to prevent... If the value is too high (e.g., exceeding 10dB), image noise will increase dramatically, leading to loss of detail. This can be addressed by adjusting... Limit the maximum value, such as not exceeding 8dB.
[0131] In this embodiment, regardless of how bright or dark the external environment is, by sending parameter control commands to the electronic rearview mirror camera, the electronic rearview mirror camera can adjust the exposure time and gain time through the ISP to output an electronic rearview mirror image that is neither overexposed nor underexposed within a standard range.
[0132] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0133] Corresponding to the brightness adjustment method described in the above embodiments, Figure 4 A schematic diagram of the brightness adjustment device provided in the embodiments of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.
[0134] Reference Figure 4 The device includes: The data acquisition module 401 is used to acquire the weather type of the vehicle's current location, the sunlight intensity of the environment in which the vehicle is currently located, and the scene in which the vehicle is currently located. The threshold determination module 402 is used to determine the brightness adjustment threshold of the display screen of the vehicle's electronic rearview mirror based on the weather coefficient corresponding to the weather type, the solar radiation intensity, and the current scene of the vehicle. Target acquisition module 403 is used to acquire the target brightness of the display screen; The brightness adjustment module 404 is used to adjust the current brightness of the display screen to the target brightness if the difference between the current brightness of the display screen and the target brightness exceeds the brightness adjustment threshold.
[0135] In some embodiments, the target acquisition module 403 includes: An illuminance determination unit is used to determine the target ambient illuminance of the current scene in which the vehicle is located, based on the current scene in which the vehicle is located. The target determination unit is used to determine the target brightness based on the target ambient illuminance.
[0136] In some embodiments, the illuminance determination unit is specifically used for: If the vehicle is currently in a non-tunnel scenario, or if the vehicle is currently in a tunnel scenario and is in the first stage of the tunnel scenario, then a first ambient light intensity and a second ambient light intensity are obtained; the first ambient light intensity is the illuminance of the environment in which the display screen is currently located, and the second ambient light intensity is the illuminance of the environment in which the electronic rearview mirror camera is currently located; the first stage includes: the stage from when the actual distance to the tunnel entrance is less than a preset distance to when the vehicle has completely exited the tunnel exit; Based on the first weight of the first ambient illuminance and the second weight of the second ambient illuminance, the first ambient illuminance and the second ambient illuminance are weighted and summed to obtain the target ambient illuminance; If the vehicle is currently in the tunnel scenario and is in the second stage of the tunnel scenario, then a tunnel depth correction coefficient is calculated based on the distance between the vehicle and the tunnel entrance; the tunnel depth correction coefficient is negatively correlated with this distance; the second stage includes: the stage from the identification of the tunnel entrance to the actual distance to the tunnel entrance being greater than or equal to the preset distance; The target ambient illuminance is determined based on the weather coefficient corresponding to the weather type and the tunnel depth correction coefficient. If the vehicle is currently in the tunnel scenario and it is detected that the vehicle has completely exited the tunnel exit, then the target ambient illuminance before entering the tunnel is updated based on the compensation coefficient corresponding to the weather type, so as to obtain the target ambient illuminance when the vehicle has completely exited the tunnel exit.
[0137] In some embodiments, when the vehicle is currently in the non-tunnel scenario, the illumination determination unit is further configured to: If the difference between the first ambient light intensity and the second ambient light intensity does not exceed a preset illuminance threshold, then both the first weight and the second weight are determined to be the first value; If the difference between the first ambient light intensity and the second ambient light intensity exceeds the preset illuminance threshold, and the second ambient light intensity is greater than the first ambient light intensity, then the first weight and the second weight are respectively determined as a second value and a third value, and the second value is greater than the third value; If the difference between the first ambient light intensity and the second ambient light intensity exceeds the preset illuminance threshold and the second ambient light intensity is less than the first ambient light intensity, then the first weight and the second weight are respectively determined as a fourth value and a fifth value, wherein the fourth value is less than the fifth value.
[0138] In some embodiments, the first sub-stage is the stage in the first stage from when the distance to the tunnel entrance is less than the preset distance until the vehicle has fully entered the tunnel entrance and the tunnel exit is detected; the second sub-stage is the stage in the first stage from when the tunnel exit is detected until the vehicle has fully exited the tunnel exit; when the vehicle is in the first sub-stage, the above-mentioned illuminance determination unit is further configured to: The first weight and the second weight are respectively determined as a sixth value and a seventh value, wherein the sixth value is less than the seventh value; When the vehicle is in the second sub-stage, the above-mentioned illumination determination unit is further configured to: Both the first weight and the second weight are set to the eighth value.
[0139] In some embodiments, the illuminance determination unit is further configured to: Before the vehicle has fully entered the tunnel entrance and the tunnel exit has been identified, if a sudden increase in the second ambient light intensity is detected and the duration of the sudden increase exceeds a preset time, then the first weight and the second weight are determined as the ninth value and the tenth value, respectively, and the ninth value is greater than the tenth value. The sudden increase event is defined as the difference between the second ambient light intensity at a first moment and the second ambient light intensity at a second moment exceeding a preset sudden increase threshold, wherein the first moment and the second moment are two adjacent moments and the first moment is later than the second moment.
[0140] In some embodiments, if the difference between the current brightness and the target brightness exceeds the brightness adjustment threshold, the above-described apparatus further includes: The parameter determination module is used to determine the target exposure time and target gain of the electronic rearview mirror camera based on the target ambient light intensity and the second ambient light intensity. The instruction sending module is used to send parameter control instructions to the electronic rearview mirror camera based on the target exposure time and the target gain; The parameter control command is used to instruct the electronic rearview mirror camera to adjust the current exposure time to the target exposure time and the current gain to the target gain, so that the brightness of the electronic rearview mirror image captured by the electronic rearview mirror camera matches the target ambient light.
[0141] In some embodiments, the threshold determination module 402 is specifically used for: If the vehicle is currently in a non-tunnel scenario, the brightness adjustment threshold is determined based on the weather coefficient and the sunlight intensity. If the vehicle is currently in a tunnel, the brightness adjustment threshold is determined based on the weather coefficient, the sunlight intensity, and the preset threshold reduction coefficient, wherein the preset threshold reduction coefficient is greater than zero and less than 1.
[0142] In some embodiments, where the brightness adjustment threshold recorded before entering the tunnel is used as the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance until the tunnel exit is detected, the threshold determination module 402 is further configured to: If the difference between the current brightness and the brightness of the display screen at the previous moment exceeds the brightness adjustment threshold, and the difference between the weather coefficient corresponding to the weather type and the weather coefficient recorded before entering the tunnel exceeds the weather coefficient threshold, then based on the weather coefficient corresponding to the weather type, the solar intensity, and the preset threshold reduction coefficient, the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance to when the tunnel exit is identified is re-determined.
[0143] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0144] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 As shown, the electronic device 5 of this embodiment includes: at least one processor 50 ( Figure 5 (Only one is shown in the diagram), memory 51, and computer program 52 stored in said memory 51 and executable on said at least one processor 50, wherein said processor 50 executes said computer program 52 to implement the steps in any of the above method embodiments.
[0145] The electronic device may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will understand that... Figure 5 This is merely an example of electronic device 5 and does not constitute a limitation on electronic device 5. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.
[0146] The processor 50 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0147] In some embodiments, the memory 51 may be an internal storage unit of the electronic device 5, such as a hard disk or memory of the electronic device 5. In other embodiments, the memory 51 may be an external storage device of the electronic device 5, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device 5. Furthermore, the memory 51 may include both internal and external storage units of the electronic device 5. The memory 51 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory 51 can also be used to temporarily store data that has been output or will be output.
[0148] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0149] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks.
[0150] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0151] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented 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 considered beyond the scope of this application.
[0152] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0153] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0154] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A brightness adjustment method, characterized in that, include: Obtain the weather type at the vehicle's current location, the sunlight intensity of the vehicle's current environment, and the scene in which the vehicle is currently located; Based on the weather coefficient corresponding to the weather type, the solar radiation intensity, and the current scene of the vehicle, the brightness adjustment threshold of the display screen of the vehicle's electronic rearview mirror is determined. Obtain the target brightness of the display screen; If the difference between the current brightness of the display screen and the target brightness exceeds the brightness adjustment threshold, then the current brightness of the display screen is adjusted to the target brightness.
2. The brightness adjustment method according to claim 1, characterized in that, The step of obtaining the target brightness of the display screen includes: Based on the current scene in which the vehicle is located, determine the target ambient illuminance in the current scene in which the vehicle is located; The target brightness is determined based on the target ambient illuminance.
3. The brightness adjustment method according to claim 2, characterized in that, Determining the target ambient illuminance in the current scene of the vehicle, based on the current scene of the vehicle, includes: If the vehicle is currently in a non-tunnel scenario, or if the vehicle is currently in a tunnel scenario and is in the first stage of the tunnel scenario, then a first ambient light intensity and a second ambient light intensity are obtained; the first ambient light intensity is the illuminance of the environment in which the display screen is currently located, and the second ambient light intensity is the illuminance of the environment in which the electronic rearview mirror camera is currently located; the first stage includes: the stage from when the actual distance to the tunnel entrance is less than a preset distance to when the vehicle has completely exited the tunnel exit; Based on the first weight of the first ambient illuminance and the second weight of the second ambient illuminance, the first ambient illuminance and the second ambient illuminance are weighted and summed to obtain the target ambient illuminance; If the vehicle is currently in the tunnel scenario and is in the second stage of the tunnel scenario, then a tunnel depth correction coefficient is calculated based on the distance between the vehicle and the tunnel entrance; the tunnel depth correction coefficient is negatively correlated with this distance; the second stage includes: the stage from the identification of the tunnel entrance to the actual distance to the tunnel entrance being greater than or equal to the preset distance; The target ambient illuminance is determined based on the weather coefficient corresponding to the weather type and the tunnel depth correction coefficient. If the vehicle is currently in the tunnel scenario and it is detected that the vehicle has completely exited the tunnel exit, then the target ambient illuminance before entering the tunnel is updated based on the compensation coefficient corresponding to the weather type, so as to obtain the target ambient illuminance when the vehicle has completely exited the tunnel exit.
4. The brightness adjustment method according to claim 3, characterized in that, When the vehicle is currently in a non-tunnel scenario, before performing a weighted summation of the first ambient illuminance and the second ambient illuminance based on the first weight of the first ambient illuminance and the second weight of the second ambient illuminance, the method further includes: If the difference between the first ambient light intensity and the second ambient light intensity does not exceed a preset illuminance threshold, then both the first weight and the second weight are determined to be the first value; If the difference between the first ambient light intensity and the second ambient light intensity exceeds the preset illuminance threshold, and the second ambient light intensity is greater than the first ambient light intensity, then the first weight and the second weight are respectively determined as a second value and a third value, and the second value is greater than the third value; If the difference between the first ambient light intensity and the second ambient light intensity exceeds the preset illuminance threshold and the second ambient light intensity is less than the first ambient light intensity, then the first weight and the second weight are respectively determined as a fourth value and a fifth value, wherein the fourth value is less than the fifth value.
5. The brightness adjustment method according to claim 3, characterized in that, The first sub-stage is the stage in the first stage from when the distance to the tunnel entrance is less than the preset distance until the vehicle has fully entered the tunnel entrance and the tunnel exit is detected. The second sub-stage is the stage in the first stage from when the tunnel exit is detected until the vehicle has fully exited the tunnel exit. When the vehicle is in the first sub-stage, before performing a weighted summation of the first ambient illuminance and the second ambient illuminance based on the first weight of the first ambient illuminance and the second weight of the second ambient illuminance, the following is also included: The first weight and the second weight are respectively determined as a sixth value and a seventh value, wherein the sixth value is less than the seventh value; When the vehicle is in the second sub-stage, before performing a weighted summation of the first ambient illuminance and the second ambient illuminance based on the first weight and the second weight of the second ambient illuminance, the method further includes: Both the first weight and the second weight are set to the eighth value.
6. The brightness adjustment method according to claim 5, characterized in that, After determining the first weight and the second weight as the sixth value and the seventh value, respectively, the method further includes: Before the vehicle has fully entered the tunnel entrance and the tunnel exit has been identified, if a sudden increase in the second ambient light intensity is detected and the duration of the sudden increase exceeds a preset time, then the first weight and the second weight are determined as the ninth value and the tenth value, respectively, and the ninth value is greater than the tenth value. The sudden increase event is defined as the difference between the second ambient light intensity at a first moment and the second ambient light intensity at a second moment exceeding a preset sudden increase threshold, wherein the first moment and the second moment are two adjacent moments and the first moment is later than the second moment.
7. The brightness adjustment method according to claim 3, characterized in that, If the difference between the current brightness and the target brightness exceeds the brightness adjustment threshold, the method further includes: Based on the target ambient light intensity and the second ambient light intensity, the target exposure time and target gain of the electronic rearview mirror camera are determined; Based on the target exposure time and the target gain, send parameter control commands to the electronic rearview mirror camera; The parameter control command is used to instruct the electronic rearview mirror camera to adjust the current exposure time to the target exposure time and the current gain to the target gain, so that the brightness of the electronic rearview mirror image captured by the electronic rearview mirror camera matches the target ambient light.
8. The brightness adjustment method according to any one of claims 1 to 7, characterized in that, The step of determining the brightness adjustment threshold of the electronic rearview mirror display screen based on the weather coefficient corresponding to the weather type, the solar radiation intensity, and the current scene of the vehicle includes: If the vehicle is currently in a non-tunnel scenario, the brightness adjustment threshold is determined based on the weather coefficient and the sunlight intensity. If the vehicle is currently in a tunnel, the brightness adjustment threshold is determined based on the weather coefficient, the sunlight intensity, and the preset threshold reduction coefficient, wherein the preset threshold reduction coefficient is greater than zero and less than 1.
9. The brightness adjustment method according to claim 8, characterized in that, In the case where the brightness adjustment threshold recorded before entering the tunnel is used as the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance until the tunnel exit is detected, the method further includes: If the difference between the current brightness and the brightness of the display screen at the previous moment exceeds the brightness adjustment threshold, and the difference between the weather coefficient corresponding to the weather type and the weather coefficient recorded before entering the tunnel exceeds the weather coefficient threshold, then based on the weather coefficient corresponding to the weather type, the solar intensity, and the preset threshold reduction coefficient, the brightness adjustment threshold from when the vehicle fully enters the tunnel entrance to when the tunnel exit is identified is re-determined.
10. A brightness adjustment device, characterized in that, include: The data acquisition module is used to acquire the weather type at the current location of the vehicle, the sunlight intensity of the current environment of the vehicle, and the current scene of the vehicle. The threshold determination module is used to determine the brightness adjustment threshold of the display screen of the vehicle's electronic rearview mirror based on the weather coefficient corresponding to the weather type, the solar radiation intensity, and the current scene of the vehicle. The target acquisition module is used to acquire the target brightness of the display screen; A brightness adjustment module is used to adjust the current brightness of the display screen to the target brightness if the difference between the current brightness of the display screen and the target brightness exceeds the brightness adjustment threshold.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it causes the electronic device to implement the brightness adjustment method as described in any one of claims 1 to 9.
12. A computer program product, characterized in that, Includes a computer program, which, when run, causes the brightness adjustment method as described in any one of claims 1 to 9 to be performed.