Brightness adjustment method and device, equipment and storage medium
By setting the display mode according to the vehicle's location and time, and using the ambient light sensor to adjust the brightness, the problem of inappropriate brightness of the vehicle display under different lighting conditions is solved, improving driving safety and user experience.
Patent Information
- Application Number
- CN202510892830.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-09-26
AI Technical Summary
Under different lighting conditions, the fixed brightness of the car display screen causes visual discomfort or difficulty in identifying information, affecting driving safety.
Determine sunrise and sunset times based on the vehicle's location's latitude, longitude, and date, set light mode for daytime and dark mode for nighttime, and adjust display brightness via the ambient light sensor.
It automatically adjusts the screen brightness according to the light intensity, improving driving safety and user experience.
Smart Images

Figure CN120708561A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle engineering, and in particular to a brightness adjustment method, device, equipment and storage medium. Background Art
[0002] With the increasing degree of automobile electrification, in-vehicle infotainment systems (Infotainment Hub Unit, IHU), digital instrument panels and other related display devices have become part of the standard configuration of modern cars.
[0003] However, fixed screen brightness often causes visual discomfort or difficulty recognizing information under varying lighting conditions. For example, in bright sunlight, insufficient screen brightness can make information difficult to discern; while in dim light, excessive screen brightness can interfere with the driver's vision and cause fatigue. Summary of the Invention
[0004] This application provides a brightness adjustment method, device, equipment, and storage medium to ensure driving safety. The technical solution is as follows:
[0005] According to one aspect of the present application, a brightness adjustment method is provided, the method comprising:
[0006] Determine the sunrise and sunset times based on the latitude and longitude of the vehicle's location and the current date;
[0007] Setting display modes for at least two display screens according to the current time, the sunrise time, and the sunset time; the display modes include a light mode corresponding to the daytime period and a dark mode corresponding to the nighttime period;
[0008] Obtaining the ambient light intensity corresponding to at least two display screens;
[0009] The display brightness of the at least two display screens is adjusted respectively according to the ambient light intensity and the display mode respectively corresponding to the at least two display screens.
[0010] According to another aspect of the present application, a brightness adjustment device is provided, comprising:
[0011] A determination module, configured to determine a sunrise time and a sunset time based on the latitude and longitude of the vehicle's location and the current date;
[0012] A display module, configured to set display modes of at least two display screens according to the current time, the sunrise time, and the sunset time; the display modes include a light mode corresponding to the daytime period and a dark mode corresponding to the nighttime period;
[0013] A sensor module, configured to obtain ambient light intensities corresponding to at least two display screens;
[0014] The display module is used to adjust the display brightness of the at least two display screens according to the ambient light intensity and the display mode respectively corresponding to the at least two display screens.
[0015] According to another aspect of the present application, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the brightness adjustment method described above.
[0016] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the brightness adjustment method described above.
[0017] According to another aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the brightness adjustment method provided in various optional implementations of the above aspects.
[0018] The beneficial effects of the technical solution provided by this application include at least:
[0019] The vehicle can obtain accurate sunrise and sunset times based on its current longitude and latitude, and set the display mode of the vehicle's display screen according to the current time period, using a light mode during bright daylight hours and a dark mode during dark nighttime hours. Furthermore, an ambient light sensor is installed near each vehicle's display screen to detect the ambient light intensity at each display's location. The brightness of the display screen is adjusted based on the display's current display mode and the ambient light intensity at that location. This method can automatically adjust screen brightness based on ambient light intensity, providing users with a better experience and safer driving conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0021] Figure 1 is a structural diagram of a brightness adjustment system provided by an exemplary embodiment of the present application;
[0022] Figure 2 is a structural diagram of a brightness adjustment system provided by an exemplary embodiment of the present application;
[0023] Figure 3 is a flow chart of a brightness adjustment method provided by an exemplary embodiment of the present application;
[0024] Figure 4 is a schematic diagram of a brightness adjustment method provided by an exemplary embodiment of the present application;
[0025] Figure 5 is a schematic diagram of a brightness adjustment method provided by an exemplary embodiment of the present application;
[0026] Figure 6 is a schematic diagram of a brightness adjustment method provided by an exemplary embodiment of the present application;
[0027] Figure 7 is a schematic diagram of a brightness adjustment method provided by an exemplary embodiment of the present application;
[0028] Figure 8 is a schematic diagram of a brightness adjustment method provided by an exemplary embodiment of the present application;
[0029] Figure 9 is a flow chart of a brightness adjustment method provided by an exemplary embodiment of the present application;
[0030] Figure 10 is a schematic diagram of a brightness adjustment method provided by an exemplary embodiment of the present application;
[0031] Figure 11 is a schematic diagram of a brightness adjustment method provided by an exemplary embodiment of the present application;
[0032] Figure 12 is a structural diagram of a brightness adjustment device provided by an exemplary embodiment of the present application;
[0033] Figure 13 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application.
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0036] Figure 1 A schematic diagram of a brightness adjustment system provided by an exemplary embodiment of the present application is shown. The system includes a controller 101 and a vehicle-mounted display screen 102 .
[0037] The controller 101 is used to locate signals, sense signals (e.g., a sense signal of ambient light intensity), determine sunrise and sunset times, and control the vehicle display screen 102. For example, the controller 101 is used to adjust the display mode and brightness of the display screen 102 upon receiving a preset type of vehicle control signal.
[0038] The controller 101 may include a first memory and a first processor. A brightness adjustment program is stored in the first memory; the brightness adjustment program is called and executed by the first processor to implement the brightness adjustment method provided in the present application. The first memory may include, but is not limited to, the following: random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), and electrically erasable programmable read-only memory (EEPROM).
[0039] For example, Figure 2As shown, the controller 101 may include a DMC (Data Management Center) 103 and a T-Box (Elematics Box) / eCall (Emergency Call) / ERA-GLONASS (Emergency Response for Accidents-Global Navigation Satellite System) 104. The DMC 103 includes a Soc (System on Chip), a sensor-IMU (Inertial Measurement Unit), an MCU (Microcontroller Unit), and a built-in positioning chip. The DMC 103 and the T-Box / eCall / ERA-GLONASS 104 may transmit data via a USB (Universal Serial Bus). The T-Box / eCall / ERA-GLONASS 104 is used to provide positioning data to the DMC 103.
[0040] Figure 3 This is a flow chart of a brightness adjustment method provided by an exemplary embodiment of the present application. Figure 1 In the brightness adjustment system shown, for example, the method is executed by the controller 101. The method includes the following steps.
[0041] Step 210: Determine the sunrise time and sunset time according to the latitude and longitude of the vehicle's location and the current date.
[0042] Exemplarily, the sunrise time and sunset time are calculated based on the latitude and longitude of the vehicle's location and the current date.
[0043] Exemplarily, the vehicle obtains the latitude and longitude of its location by: for connected vehicles, obtaining GPS (Global Positioning System) positioning through the T-Box; for non-connected vehicles with Ecall or ERA-Glonass configuration, using an external GPS, otherwise using the DMC (Data Memory Card) built-in GPS chip to obtain the latitude and longitude.
[0044] Step 220: Setting display modes of at least two display screens according to the current time, sunrise time, and sunset time; the display modes include a light mode corresponding to the daytime period and a dark mode corresponding to the nighttime period.
[0045] Exemplarily, the at least two display screens may include a central control display screen and an instrument display screen. The display modes of the central control display screen and the instrument display screen are set according to the current time, sunrise time, and sunset time.
[0046] For example, dark mode is a display interface mode that uses a black or dark background with light-colored text and icons. This reduces overall screen brightness to reduce light stimulation. Dark mode is suitable for low-light environments, can reduce eye fatigue and potentially extend device battery life, while providing a more immersive visual experience.
[0047] Light mode uses a white or light background with dark text and elements, ensuring clear readability under high contrast. Light mode performs better in bright environments and is in line with the daily habits of most users, but prolonged use may increase eye strain, especially in dim conditions.
[0048] For example, Figure 4 As shown, the display screen's settings interface provides display mode settings options. The user can select light mode 301 or dark mode 302. The user can also set the display mode to automatically adjust. When the automatic control 303 is off, the user can manually set the light mode 301 or dark mode 302. When the automatic control 303 is on, if the user manually adjusts the display mode of the display screen, the automatic control 303 is automatically turned off and the display screen is adjusted according to the display mode selected by the user.
[0049] For example, Figure 5 As shown, if the display screen is currently in light mode 301 (daytime period), clicking the option of dark mode 302 will immediately switch the display screen to dark mode 302 and display a text prompt below: Keep dark appearance before sunrise. Figure 6 As shown, if the display screen is currently in dark mode 302 (night time period), clicking the light mode 301 option will immediately switch the display screen to light mode 301 and display a text prompt below: Maintain a light appearance before sunset.
[0050] Step 230: Obtain the ambient light intensities corresponding to at least two display screens.
[0051] Exemplarily, a first ambient light intensity at the location of the central control display screen is obtained, and a second ambient light intensity at the location of the instrument display screen is obtained.
[0052] Exemplarily, the ambient light intensity may be acquired by a light intensity sensor disposed near the display screen.
[0053] Step 240: Adjust the display brightness of the at least two display screens according to the ambient light intensity and display mode corresponding to the at least two display screens.
[0054] Exemplarily, the central control display screen is adjusted to a first display brightness according to the display mode of the central control display screen and the first ambient light intensity; the instrument display screen is adjusted to a second display brightness according to the display mode of the instrument display screen and the second ambient light intensity; wherein the first display brightness and the second display brightness are the same or different.
[0055] For example, Figure 7 As shown, the setting interface of the central control display screen provides a brightness adjustment control 304 for the central control display screen. The user can drag to adjust the brightness of the central control display screen, or turn on the automatic control to enable the central control display screen to automatically adjust the brightness according to the ambient light intensity and display mode. And, as Figure 8 As shown, the setting interface of the instrument display screen provides a brightness adjustment control 305 for the instrument display screen. The user drags to adjust the brightness of the instrument display screen, or turns on the automatic control to enable the instrument display screen to automatically adjust the brightness according to the ambient light intensity and display mode.
[0056] This embodiment only takes the vehicle-mounted display screen including the central control display screen and the instrument display screen as an example for explanation. Of course, other types of display screens can also be provided in the vehicle, such as the rearview mirror display screen, the air conditioning temperature control display screen, etc. The brightness of any type of vehicle-mounted display screen can be adjusted using the method provided in this embodiment.
[0057] In summary, the method provided in the embodiment of the present application allows the vehicle to obtain the accurate sunrise and sunset times based on the current longitude and latitude, and to set the display mode of the vehicle display screen according to the time period of the current time, using a light mode during the day when the light is strong, and a dark mode during the night when the light is darker. Furthermore, an ambient light sensor is provided near each vehicle display screen to detect the ambient light intensity at the location of each display, and to adjust the brightness of the display screen according to the current display mode of the display screen and the ambient light intensity at the location. This method can automatically adjust the screen brightness according to the ambient light intensity, providing users with a better experience and safe driving conditions.
[0058] For example, an embodiment of adjusting the brightness of a display screen is provided.
[0059] Figure 9 This is a flow chart of a brightness adjustment method provided by an exemplary embodiment of the present application. Figure 1 In the brightness adjustment system shown, for example, the method is executed by the controller 101. The method includes the following steps.
[0060] Step 210: Determine the sunrise time and sunset time according to the latitude and longitude of the vehicle's location and the current date.
[0061] Regarding sunrise and sunset times, the controller can calculate them once per power-on cycle: when the vehicle is powered on and a valid GPS signal is first acquired, the controller calculates and updates the sunrise and sunset times. Upon the next power-on, but before a GPS signal is acquired, the controller can operate according to the previously memorized sunrise and sunset times. It will then update the times once a valid GPS signal is acquired. For example, the controller will store the sunrise and sunset time periods from the previous ignition cycle in the MCU.
[0062] For example, when a positioning signal is first acquired after the vehicle is powered on, the sunrise and sunset times are calculated based on the longitude and latitude indicated by the positioning signal and the current date. Alternatively, before a positioning signal is acquired after the vehicle is powered on, the last calculated sunrise and sunset times are used.
[0063] For long-distance travel across cities, sunrise and sunset times may change dynamically. Therefore, sunrise and sunset times can be calculated and updated periodically based on time or distance traveled. For example, they can be calculated every hour or every 100 kilometers.
[0064] For example, after the vehicle is powered on, when the mileage growth value is higher than a threshold value, the sunrise time and sunset time are periodically calculated according to the time or the mileage growth cycle.
[0065] Optionally, the controller can calculate the sunrise and sunset times based on the sun's mean ecliptic diameter, mean anomaly, ecliptic longitude, earth inclination, etc. The sunrise and sunset times can be directly calculated by inputting the longitude and latitude information and the current date, and the error of the calculation result is within 1 minute.
[0066] Step 220: Setting display modes of at least two display screens according to the current time, sunrise time, and sunset time; the display modes include a light mode corresponding to the daytime period and a dark mode corresponding to the nighttime period.
[0067] Exemplarily, when the current time is in the daytime period, at least two display screens are set to light mode; the daytime period is the period between sunrise and sunset.
[0068] For example, when the current time is in the night time period, the central control display screen and the instrument display screen are set to dark mode; the night time period includes the time period before sunrise and the time period after sunset.
[0069] For example, the controller may periodically compare the current time with sunrise and sunset times to determine the time period within which the current time falls, and automatically adjust the display mode of the display screen when the time period changes. For example, the controller may compare the current time with sunrise and sunset times once every minute. Optionally, if the comparison algorithm uses local standard time and the vehicle's operating system uses daylight saving time, the comparison is performed after adjusting the daylight saving time to the current standard time.
[0070] Step 230: Obtain the ambient light intensities corresponding to at least two display screens.
[0071] Exemplarily, at least two display screens include a first display screen; obtaining a first sampling value of the ambient light intensity sampled at the location of the first display screen at a current sampling moment; calculating a first product of the first sampling value and a first filter coefficient; calculating a second product of the ambient light intensity output by the first display screen at a previous sampling moment and the complement of the first filter coefficient; and determining the sum of the first product and the second product as the first ambient light intensity output at the current sampling moment; wherein the first filter coefficient is determined based on the brightness level of the display screen.
[0072] For example, a first-order filtering process may be performed on the continuously collected ambient light intensity signal:
[0073] Y(n)=αX(n)+(1-α)Y(n-1)
[0074] Where α is the filter coefficient, X(n) is the current sampled value of the ambient light intensity, Y(n-1) is the previous filtered output value of the ambient light intensity, and Y(n) is the current filtered output value of the ambient light intensity. The value of α is 2^(-b), and the value of b is the brightness level of the display. For example, the sampling frequency of the light intensity can be 10ms, and the output value Y(n) is calculated once for each sampled point.
[0075] For example, a first sampling value of the ambient light intensity at the location of the central control display screen sampled at the current sampling moment is obtained; a first product of the first sampling value and the first filter coefficient is calculated; a second product of the ambient light intensity output by the central control display screen at the previous sampling moment and the complement of the first filter coefficient is calculated; the sum of the first product and the second product is determined as the first ambient light intensity output at the current sampling moment; wherein the first filter coefficient is determined according to the brightness level of the central control display screen; and,
[0076] Obtain a second sampling value of the ambient light intensity at the location of the instrument display screen sampled at the current sampling moment; calculate a third product of the second sampling value and the second filter coefficient; calculate a fourth product of the ambient light intensity output by the instrument display screen at the previous sampling moment and the complement of the second filter coefficient; determine the sum of the third product and the fourth product as the second ambient light intensity output at the current sampling moment; wherein the second filter coefficient is determined based on the brightness level of the instrument display screen.
[0077] For example, Figure 10 As shown, when the display brightness adjustment is in automatic mode 306, the controller obtains the ambient light intensity signal and performs a first-order filter on it to obtain the ambient light intensity. The corresponding brightness level is then determined based on the hysteresis band. The MCU then maps the brightness level to brightness, and the display is adjusted to the corresponding brightness via SPI communication and the QNX driver.
[0078] Step 241 : When the ambient light intensity is within a first light intensity range corresponding to the display mode, adjust the display screen to a first display brightness corresponding to the first light intensity range.
[0079] Exemplarily, the display mode, light intensity, and display brightness have a one-to-one correspondence; wherein different display modes correspond to different light intensity interval division methods.
[0080] For example, the brightness levels of the center console and instrument panel in dark mode are Level 1 = 5%, with each 5% increment being Level 2 = 10%, Level 3 = 15%, and so on, all the way up to Level 10 = 50%. It should be noted that the brightness of the center console and instrument panel can be adjusted independently.
[0081] For another example, the corresponding relationship among display mode, ambient light intensity, brightness level and brightness may be shown in Table 1.
[0082]
[0083]
[0084] For example, different vehicle models can set the corresponding relationship between display mode, ambient light intensity, brightness level and brightness according to actual needs. For example, vehicles with different screen suppliers and different screen models need to recalibrate the values in Table 1.
[0085] For example, when the first ambient light intensity is within a first light intensity range corresponding to the display mode, the central control display screen is adjusted to a first display brightness corresponding to the first light intensity range. When the second ambient light intensity is within a second light intensity range corresponding to the display mode, the instrument display screen is adjusted to a second display brightness corresponding to the second light intensity range.
[0086] Optionally, to ensure that brightness changes do not jump, the display screen can be adjusted from the initial brightness to the first display brightness if the display screen remains at the initial brightness for longer than a time threshold. For example, if the central control display screen remains at the first initial brightness for longer than a time threshold, the central control display screen can be adjusted from the first initial brightness to the first display brightness. For another example, if the instrument display screen remains at the second initial brightness for longer than a time threshold, the instrument display screen can be adjusted from the second initial brightness to the second display brightness. For example, the display screen can only enter the next brightness level after maintaining the current brightness level for more than 150 milliseconds.
[0087] For example, when the automatic brightness control is turned off, the user can manually set the brightness value of the display screen and save the user-set brightness level, and the automatic adjustment will be disabled. When the automatic control is turned on, manual brightness adjustment can only be maintained for 2 seconds (not saved), and then the automatic brightness mode will remain unless the user turns off the automatic control. After the vehicle is in sleep mode or powered off, the controller remembers the brightness level manually adjusted by the user, including the brightness level in dark mode and the brightness level in light mode.
[0088] In an optional embodiment, when automatic brightness adjustment of the display screen is turned on, in response to receiving a brightness adjustment operation, the display brightness of the display screen is adjusted according to the brightness adjustment operation and timing is performed; when the timing duration reaches a time threshold, the display brightness of the display screen is restored.
[0089] For example, when the automatic brightness adjustment of the central control display is turned on, in response to receiving a brightness adjustment operation, the display brightness of the central control display is adjusted according to the brightness adjustment operation and timing is performed; when the timing duration reaches a time threshold, the display brightness of the central control display is restored.
[0090] When the automatic brightness adjustment of the instrument display is turned on, in response to receiving a brightness adjustment operation, the display brightness of the instrument display is adjusted according to the brightness adjustment operation and timing is performed; when the timing duration reaches a time threshold, the display brightness of the instrument display is restored.
[0091] In an optional embodiment, when the automatic brightness adjustment of the display screen is turned off and the vehicle is powered off, the brightness of the display screen in the dark mode and the brightness in the light mode are stored.
[0092] For example, when the automatic brightness adjustment of the central control display is turned off and the vehicle is powered off, the brightness of the central control display in dark mode and the brightness in light mode are stored.
[0093] When automatic brightness adjustment of the instrument display is turned off and the vehicle is powered off, the brightness of the instrument display in dark mode and the brightness in light mode are stored.
[0094] In an optional embodiment, when the automatic brightness adjustment of the display screen is turned off and the vehicle is powered on, the stored display brightness is read according to the display mode of the display screen, and the display screen is adjusted according to the stored display brightness.
[0095] For example, when the automatic brightness adjustment of the central control display is turned off and the vehicle is powered on, the stored display brightness is read according to the display mode of the central control display, and the central control display is adjusted according to the stored display brightness.
[0096] When the automatic brightness adjustment of the instrument display is turned off and the vehicle is powered on, the stored display brightness is read according to the display mode of the instrument display and the instrument display is adjusted according to the stored display brightness.
[0097] Optionally, a hysteresis band is provided between two adjacent display brightness levels to prevent frequent switching of display brightness. The hysteresis band corresponds to a range of light intensity. For example, a first hysteresis band is provided between a first display brightness and a second display brightness. If the ambient light intensity is higher than the first hysteresis band, the display screen is adjusted from the first display brightness to the second display brightness. If the ambient light intensity is lower than the first hysteresis band, the display screen is adjusted from the second display brightness to the first display brightness.
[0098] To avoid frequent switching near the critical values of two brightness levels (such as a tree-lined road), a hysteresis interval needs to be introduced, for example Figure 11 As shown in Table 1, the brightness is increased only when the ambient light intensity exceeds the upper limit of the hysteresis band, and is decreased only when the ambient light intensity falls below the lower limit of the hysteresis band. For example, if the hysteresis band is [800, 1000], the brightness level will be increased when the ambient light intensity is greater than 1000, and the brightness level will be decreased when the ambient light intensity is less than 800.
[0099] In summary, the method provided in the embodiment of the present application allows the vehicle to obtain the accurate sunrise and sunset times based on the current longitude and latitude, and to set the display mode of the vehicle display screen according to the time period of the current time, using a light mode during the day when the light is strong, and a dark mode during the night when the light is darker. Furthermore, an ambient light sensor is provided near each vehicle display screen to detect the ambient light intensity at the location of each display, and to adjust the brightness of the display screen according to the current display mode of the display screen and the ambient light intensity at the location. This method can automatically adjust the screen brightness according to the ambient light intensity, providing users with a better experience and safe driving conditions.
[0100] Figure 12 : This is a schematic diagram of the structure of a brightness adjustment device provided by an exemplary embodiment of the present application. The device includes:
[0101] A determination module 501 is configured to determine a sunrise time and a sunset time based on the latitude and longitude of the vehicle's location and the current date;
[0102] Display module 502, configured to set display modes of at least two display screens according to the current time, the sunrise time, and the sunset time; the display modes include a light mode corresponding to the daytime period and a dark mode corresponding to the nighttime period;
[0103] The sensing module 503 is used to obtain the ambient light intensity corresponding to at least two display screens;
[0104] The display module 502 is configured to adjust the display brightness of the at least two display screens according to the ambient light intensity and the display mode corresponding to the at least two display screens respectively.
[0105] In an optional embodiment, the display mode, the illumination intensity, and the display brightness have a one-to-one correspondence;
[0106] The display module 502 is configured to adjust the display screen to the first display brightness corresponding to the first light intensity interval when the ambient light intensity is within the first light intensity interval corresponding to the display mode;
[0107] Among them, different display modes correspond to different ways of dividing light intensity intervals.
[0108] In an optional embodiment, the display module 502 is configured to adjust the display screen from the initial brightness to the first display brightness when the duration of the display screen being at the initial brightness is greater than a time threshold.
[0109] In an optional embodiment, a hysteresis band is provided between two adjacent display brightnesses, the hysteresis band being used to avoid frequent switching of the display brightness, and the hysteresis band corresponds to a light intensity interval;
[0110] A first hysteresis band is provided between the first display brightness and the second display brightness;
[0111] The display module 502 is configured to adjust the display screen from the first display brightness to the second display brightness when the ambient light intensity is higher than the first hysteresis band;
[0112] The display module 502 is configured to adjust the display screen from the second display brightness to the first display brightness when the ambient light intensity is lower than the first hysteresis band.
[0113] In an optional embodiment, the at least two display screens include a first display screen;
[0114] The sensor module 503 is configured to obtain a first sampling value of the ambient light intensity at the location of the first display screen sampled at a current sampling moment;
[0115] The sensing module 503 is configured to calculate a first product of a first sampling value and a first filter coefficient;
[0116] The sensing module 503 is configured to calculate a second product of the ambient light intensity output by the first display screen at a previous sampling moment and the complement of the first filter coefficient;
[0117] The sensing module 503 is configured to determine the sum of the first product and the second product as the first ambient light intensity output at the current sampling moment;
[0118] The first filter coefficient is determined according to the brightness level of the display screen.
[0119] In an optional embodiment, the determining module 501 is configured to calculate the sunrise time and the sunset time according to the latitude and longitude indicated by the positioning signal and the current date when the positioning signal is acquired for the first time after the vehicle is powered on;
[0120] The determining module 501 is configured to use the sunrise time and sunset time calculated last time before the vehicle is powered on and a positioning signal is not acquired;
[0121] The determining module 501 is configured to periodically calculate the sunrise time and the sunset time based on time or a mileage growth cycle when the mileage growth value is higher than a threshold value after the vehicle is powered on.
[0122] In an optional embodiment, the display module 502 is configured to set the at least two display screens to the light color mode when the current time is in the daytime period; the daytime period is the period between sunrise and sunset;
[0123] The display module 502 is configured to set the at least two display screens to the dark mode when the current time is in the dark time period; the dark time period includes the time period before the sunrise time and the time period after the sunset time.
[0124] In an optional embodiment, the display module 502 is configured to, in response to receiving a brightness adjustment operation, adjust the display brightness of the display according to the brightness adjustment operation and count the time; and restore the display brightness of the display when the counted time reaches a time threshold;
[0125] The display module 502 is configured to store the brightness of the display screen in the dark mode and the brightness of the display screen in the light mode when the automatic brightness adjustment of the display screen is turned off and the vehicle is powered off;
[0126] The display module 502 is configured to read the stored display brightness according to the display mode of the display screen when the automatic brightness adjustment of the display screen is turned off and the vehicle is powered on, and adjust the display screen according to the stored display brightness.
[0127] It should be noted that the brightness adjustment device provided in the above embodiment is merely an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the brightness adjustment device provided in the above embodiment and the brightness adjustment method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0128] Embodiments of the present application further provide a computer device comprising: a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the brightness adjustment methods provided in the above-described method embodiments. The computer device can be implemented as a controller.
[0129] For example, Figure 13 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application.
[0130] Typically, the computer device 1700 includes a processor 1701 and a memory 1702 .
[0131] The processor 1701 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. The processor 1701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), or a PLA (Programmable Logic Array). The processor 1701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1701 may also include an AI (Artificial Intelligence) processor, which is used to handle computing operations related to machine learning.
[0132] Memory 1702 may include one or more computer-readable storage media, which may be non-transitory. Memory 1702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1702 is used to store at least one instruction, which is executed by processor 1701 to implement the brightness adjustment method provided in the method embodiment of the present application.
[0133] Those skilled in the art will understand that Figure 13 The structure shown in the figure does not constitute a limitation on the computer device 1700, and the computer device 1700 may include more or fewer components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0134] In an embodiment of the present application, a computer-readable storage medium is also provided, which stores at least one instruction, at least one program, code set, or instruction set. When the at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor of a computer device, the brightness adjustment method provided by the above-mentioned method embodiments is implemented.
[0135] The present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the brightness adjustment methods provided in the above-mentioned method embodiments.
[0136] Those skilled in the art will understand that all or part of the steps of implementing the above embodiments may be accomplished by hardware, or may be accomplished by a program instructing the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned readable storage medium may be a read-only memory, a disk or an optical disk, etc.
[0137] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A brightness adjustment method, characterized in that: The method comprises: Determine the sunrise and sunset times based on the latitude and longitude of the vehicle's location and the current date; Setting display modes for at least two display screens according to the current time, the sunrise time, and the sunset time; the display modes include a light mode corresponding to the daytime period and a dark mode corresponding to the nighttime period; Obtaining the ambient light intensity corresponding to at least two display screens; The display brightness of the at least two display screens is adjusted respectively according to the ambient light intensity and the display mode respectively corresponding to the at least two display screens.
2. The method according to claim 1, characterized in that The display mode, the illumination intensity and the display brightness have a one-to-one correspondence; The adjusting the display brightness of the at least two display screens respectively according to the ambient light intensity and the display mode respectively corresponding to the at least two display screens includes: When the ambient light intensity is within a first light intensity interval corresponding to the display mode, adjusting the display screen to the first display brightness corresponding to the first light intensity interval; Among them, different display modes correspond to different ways of dividing light intensity intervals.
3. The method according to claim 2, characterized in that The adjusting the display screen to the first display brightness corresponding to the first light intensity range includes: When the duration of the display screen being at the initial brightness is longer than a time threshold, the display screen is adjusted from the initial brightness to the first display brightness.
4. The method according to claim 2, characterized in that A hysteresis band is provided between two adjacent display brightnesses, and the hysteresis band is used to avoid frequent switching of the display brightness, and the hysteresis band corresponds to a light intensity interval; A first hysteresis band is provided between the first display brightness and the second display brightness; The method further comprises at least one of the following: When the ambient light intensity is higher than the first hysteresis band, adjusting the display screen from the first display brightness to the second display brightness; When the ambient light intensity is lower than the first hysteresis band, the display screen is adjusted from the second display brightness to the first display brightness.
5. The method according to any one of claims 1 to 4, characterized in that: The at least two display screens include a first display screen; The obtaining of the ambient light intensities corresponding to the at least two display screens includes: Obtain a first sampling value of the ambient light intensity at the location of the first display screen sampled at the current sampling moment; Calculating a first product of a first sampling value and a first filter coefficient; Calculating a second product of the ambient light intensity output by the first display screen at a previous sampling moment and the complement of the first filter coefficient; Determine the sum of the first product and the second product as the first ambient light intensity output at the current sampling moment; The first filter coefficient is determined according to the brightness level of the display screen.
6. The method according to any one of claims 1 to 4, characterized in that: Determining the sunrise time and sunset time based on the latitude and longitude of the vehicle's location and the current date includes at least one of the following: When a positioning signal is acquired for the first time after the vehicle is powered on, calculating the sunrise time and the sunset time according to the latitude and longitude indicated by the positioning signal and the current date; After the vehicle is powered on and before a positioning signal is acquired, the sunrise time and the sunset time calculated last are used; After the vehicle is powered on, when the mileage increase value is higher than a threshold value, the sunrise time and the sunset time are periodically calculated according to the time or the mileage increase cycle.
7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises at least one of the following: When automatic brightness adjustment of the display screen is turned on, in response to receiving a brightness adjustment operation, adjusting the display brightness of the display screen according to the brightness adjustment operation and timing; when the timing reaches a time threshold, restoring the display brightness of the display screen; When automatic brightness adjustment of the display screen is turned off and the vehicle is powered off, storing the brightness of the display screen in the dark mode and the brightness of the display screen in the light mode; When the automatic brightness adjustment of the display screen is turned off and the vehicle is powered on, the stored display brightness is read according to the display mode of the display screen, and the display screen is adjusted according to the stored display brightness.
8. A brightness adjustment device, characterized in that: The device comprises: A determination module, configured to determine a sunrise time and a sunset time based on the latitude and longitude of the vehicle's location and the current date; A display module, configured to set display modes of at least two display screens according to the current time, the sunrise time, and the sunset time; the display modes include a light mode corresponding to the daytime period and a dark mode corresponding to the nighttime period; A sensor module, configured to obtain ambient light intensities corresponding to at least two display screens; The display module is used to adjust the display brightness of the at least two display screens according to the ambient light intensity and the display mode respectively corresponding to the at least two display screens.
9. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the brightness adjustment method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The readable storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the brightness adjustment method according to any one of claims 1 to 7.