Vehicle-mounted screen brightness adjusting method and device, electronic equipment and readable storage medium
By acquiring and processing the light intensity inside and outside the vehicle and adjusting the brightness of the on-board screen in real time, the problem that a single light source adjustment solution in the existing technology is difficult to cope with complex light changes, achieving the best visual effect under different lighting conditions, and improving the driver visual experience and driving safety.
Patent Information
- Application Number
- CN202410911744.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-19
AI Technical Summary
The existing vehicle-mounted screen brightness adjustment solution only considers a single ambient light source, ignoring the complexity and dynamics of the changes in the internal and external ambient light during the vehicle's driving process, making it difficult to provide the best visual effect under different lighting conditions, affecting the driver's operating reaction and driving. Safety.
By obtaining the light intensity inside and outside the car, using image processing algorithms and smoothing algorithms, the brightness of the on-board screen is adjusted in real time, and the lighting conditions of the vehicle's environment are considered to ensure that the screen display effect reaches the best visual effect under different lighting conditions.
It realizes accurate adjustment of the brightness of the on-board screen, improves the driver's visual experience, and improves driving safety. It is suitable for various electronic devices, including on-board terminals, mobile phones and tablets.
Smart Images

Figure CN118982973A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicle-mounted information technology, and in particular relates to a vehicle-mounted screen brightness adjustment method, device, electronic device and readable storage medium. Background Art
[0002] With the continuous improvement of automobile intelligence, in-vehicle infotainment systems have become one of the standard features of modern cars. Among them, the display effect of the in-vehicle screen directly affects the driver's operating convenience and driving safety. Traditional in-vehicle screen brightness adjustment mostly relies on manual settings or automatic adjustment by a single ambient light sensor. It is difficult to accurately adjust the brightness of the in-vehicle screen, which affects the driver's visual experience. Summary of the invention
[0003] The embodiments of the present application provide a method, device, electronic device and readable storage medium for adjusting the brightness of a vehicle screen to accurately adjust the brightness of the vehicle screen and improve the driver's visual experience.
[0004] In a first aspect, an embodiment of the present application provides a method for adjusting the brightness of a vehicle screen, comprising:
[0005] Obtaining the current light intensity inside the vehicle and the current light intensity outside the vehicle;
[0006] The brightness of the vehicle screen is adjusted based on the current light intensity inside the vehicle and the current light intensity outside the vehicle.
[0007] In the embodiment of the present application, by obtaining the current light intensity inside the car and the current light intensity outside the car, the brightness of the car screen can be adjusted in real time based on the light intensity inside the car and the light intensity outside the car. In the above screen brightness adjustment process, not only the light intensity inside the car is taken into account, but also the light intensity outside the car is taken into account. At the same time, the light intensity inside and outside the car is used to comprehensively evaluate the lighting conditions of the vehicle's environment, so that the brightness of the car screen can be accurately adjusted, ensuring that the screen display effect can achieve the best visual effect under different lighting conditions, and improving the driver's visual experience.
[0008] In a second aspect, an embodiment of the present application provides a vehicle-mounted screen brightness adjustment device, comprising:
[0009] An intensity acquisition module, used to acquire the current light intensity inside the vehicle and the current light intensity outside the vehicle;
[0010] The brightness adjustment module is used to adjust the brightness of the vehicle screen based on the light intensity inside the vehicle at the current moment and the light intensity outside the vehicle at the current moment.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for adjusting the brightness of a vehicle screen as described in the first aspect above is implemented.
[0012] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method for adjusting the brightness of the vehicle screen as described in the first aspect above.
[0013] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the method for adjusting the brightness of the vehicle screen described in the first aspect above.
[0014] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying any creative work.
[0016] Figure 1 is a schematic flow chart of a method for adjusting the brightness of a vehicle screen provided in an embodiment of the present application;
[0017] Figure 2 is a schematic flow chart of obtaining the light intensity inside and outside the vehicle at the current moment provided by an embodiment of the present application;
[0018] Figure 3 It is a structural schematic diagram of a vehicle-mounted screen brightness adjustment device provided in an embodiment of the present application;
[0019] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0021] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0022] It should also be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. It should also be understood that in the embodiments of the present application, "multiple" refers to two or more.
[0023] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0024] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0025] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0026] In the prior art, most vehicle-mounted screen brightness adjustment solutions only consider the influence of a single ambient light source, ignoring the complexity and dynamics of changes in ambient light inside and outside the vehicle during driving. For example, when a vehicle drives from a bright outdoor environment into a darker tunnel, or encounters strong light from oncoming vehicles when driving at night, the brightness adjustment solution of a single light source in these cases is often difficult to respond quickly and effectively, thereby affecting the driver's operational response and driving safety. In order to solve these problems, an embodiment of the present application provides a vehicle-mounted screen brightness adjustment method. During the screen brightness adjustment process, not only the light intensity inside the vehicle is considered, but also the light intensity outside the vehicle is considered. At the same time, the light intensity inside and outside the vehicle is used to comprehensively evaluate the lighting conditions of the vehicle's environment, so as to achieve accurate adjustment of the brightness of the vehicle-mounted screen, ensure that the screen display effect can achieve the best visual effect under different lighting conditions, improve the driver's visual experience, and thus improve the driver's driving safety.
[0027] The vehicle screen brightness adjustment method provided in the embodiment of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle terminals, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiment of the present application does not impose any restrictions on the specific types of electronic devices. For example, the electronic device in the embodiment of the present application can be a vehicle terminal, which can automatically adjust the brightness of the vehicle screen based on the light intensity inside the vehicle and the light intensity outside the vehicle.
[0028] See also Figure 1 , Figure 1 A schematic flow chart of a method for adjusting the brightness of a vehicle screen provided in an embodiment of the present application is shown. As an example but not a limitation, the method includes the following steps:
[0029] Step 101, obtaining the current light intensity inside the vehicle and the current light intensity outside the vehicle.
[0030] In this embodiment, the light intensity inside and outside the vehicle can be monitored in real time by using video data collected in real time by cameras installed inside and outside the vehicle, thereby effectively capturing real-time light data (i.e., light intensity).
[0031] In a possible implementation, the camera that collects video data outside the vehicle can be installed near the front windshield of the vehicle, and the camera that collects video data inside the vehicle can be installed on the dashboard or central control area of the vehicle. For the convenience of subsequent related descriptions, the camera that collects video data inside the vehicle can be called the first camera, and the camera that collects video data outside the vehicle can be called the second camera.
[0032] The first camera can transmit the collected in-vehicle video data to the electronic device through a high-speed data interface, and the second camera can transmit the collected out-vehicle video data to the electronic device through a high-speed data interface. After receiving the in-vehicle video data and the out-vehicle video data, the electronic device can analyze the light data using an image processing algorithm.
[0033] The in-vehicle video data includes at least one frame of in-vehicle environment image. The out-vehicle video data includes at least one frame of out-vehicle environment image.
[0034] In order to improve the accuracy and efficiency of light intensity calculation, the interior and exterior environment images may be preprocessed by denoising, color correction, etc.
[0035] Since the camera captures a large area, the collected image may include not only the required information but also other unnecessary information. Therefore, the image of the interior environment and the image of the exterior environment can be segmented according to actual needs, and the key areas representing the interior environment and the key areas representing the exterior environment can be segmented respectively, so as to more accurately obtain the light intensity inside and outside the vehicle.
[0036] See also Figure 2 The electronic device can obtain the light intensity inside and outside the vehicle at the current moment according to steps 201 to 205.
[0037] Step 201, obtaining an image of the vehicle interior environment and an image of the vehicle exterior environment at the current moment.
[0038] The electronic device can obtain the current image of the vehicle interior environment from the first camera, and obtain the current image of the vehicle exterior environment from the second camera.
[0039] In order to improve the accuracy and efficiency of light intensity calculation, the in-vehicle environment image and the out-vehicle environment image may be pre-processed by denoising, color correction, etc. before executing steps 202 and 203 .
[0040] Step 202 : Segment a first key area representing the vehicle interior environment from the vehicle interior environment image.
[0041] Since the installation position of the first camera is fixed, the position of the first key area to be segmented in the vehicle interior environment image is also fixed. Therefore, the position information of the first key area in the vehicle interior environment image can be preset; based on the preset position information of the first key area, the first key area is segmented from the vehicle interior environment image.
[0042] Step 203 : segmenting a second key area representing the vehicle exterior environment from the vehicle exterior environment image.
[0043] Since the installation position of the second camera is fixed, the position of the second key area to be segmented in the vehicle exterior environment image is also fixed. Therefore, the position information of the second key area in the vehicle exterior environment image can be preset; based on the preset position information of the second key area, the second key area is segmented from the vehicle exterior environment image.
[0044] Step 204: Determine the light intensity inside the vehicle at the current moment based on the first key area.
[0045] Since the first key area can more accurately represent the in-vehicle environment, the light intensity in the vehicle can be more accurately determined based on the first key area.
[0046] Step 205: Determine the intensity of light outside the vehicle at the current moment based on the second key area.
[0047] Since the second key area can more accurately represent the in-vehicle environment, the light intensity in the vehicle can be more accurately determined based on the second key area.
[0048] When determining the light intensity based on the key area in step 204 and step 205, the key area may be firstly grayed to extract the light intensity. The graying formula is as follows:
[0049] Y=0.299R+0.587G+0.114B
[0050] Among them, Y is the grayscale value, which can also be understood as the light intensity in this embodiment; R, G, and B are the values of the red, green, and blue color channels of the key area respectively.
[0051] In the above grayscale processing formula, if R, G, and B are the values of the red, green, and blue color channels of the first key area, respectively, then Y is the light intensity inside the car; if R, G, and B are the values of the red, green, and blue color channels of the second key area, respectively, then Y is the light intensity outside the car.
[0052] In order to reduce random fluctuations and noise in data and improve the reliability of data in analysis and decision-making, before executing step 102, a smoothing algorithm can be used to smooth the light intensity inside and outside the vehicle, and the brightness of the vehicle screen can be adjusted using the smoothed light intensity inside and outside the vehicle.
[0053] In actual scenarios, the light inside and outside the car may fluctuate due to various temporary factors (such as the lights of passing vehicles, road reflections, etc.). Directly using the measured light intensity may cause frequent adjustments to the brightness of the car screen, causing unnecessary interference and discomfort. The use of a smoothing algorithm can effectively filter out these short-term fluctuations and obtain a more stable light intensity. Moreover, the smoothing algorithm can give a higher weight to the most recent data while retaining sufficient historical information. This makes the electronic device neither too slow nor too sensitive to light changes, thereby maintaining a better performance balance in a dynamic environment. The smoothed data is more stable, which can improve the overall system robustness.
[0054] The electronic device can use an exponential smoothing algorithm to smooth the light intensity inside and outside the vehicle, or use other smoothing algorithms to smooth the light intensity inside and outside the vehicle, and this application does not limit this. The exponential smoothing algorithm is simple and easy to implement, has low computational requirements, and can analyze the changing trend of light intensity within a certain time window, and is more suitable for real-time processing of light data in a vehicle-mounted system.
[0055] In a possible implementation, the exponential smoothing process can be performed on the light intensity inside and outside the vehicle in the following manner. Specifically, the smoothed value of the light intensity inside the vehicle at the last moment and the smoothed value of the light intensity outside the vehicle at the last moment are obtained; based on the smoothed value of the light intensity inside the vehicle at the current moment and the light intensity inside the vehicle at the last moment, the light intensity inside the vehicle at the current moment is smoothed; based on the smoothed value of the light intensity outside the vehicle at the current moment and the light intensity outside the vehicle at the last moment, the light intensity outside the vehicle at the current moment is smoothed.
[0056] Optionally, the formula for smoothing the light intensity inside the car is as follows:
[0057] S 内 (t) = α1·Y 内 (t)+(1-α1)·S 内 (t-1)
[0058] Among them, S 内 (t) represents the smoothed value of the light intensity inside the car at time t; Y 内 (t) represents the light intensity inside the car at time t; S 内 (t-1) represents the smoothed value of the light intensity inside the car at time t-1; α1 represents the smoothing coefficient, which ranges from greater than zero to less than 1 and is used to control the impact of historical data on the current smoothing value.
[0059] The formula for smoothing the intensity of light outside the car is as follows:
[0060] S 外 (t) = α2·Y 外(t)+(1-α2)·S 外 (t-1)
[0061] Among them, S 外 (t) represents the smoothed value of the light intensity inside the car at time t; Y 外 (t) represents the light intensity inside the car at time t; S 外 (t-1) represents the smoothed value of the light intensity inside the car at time t-1; α2 represents the smoothing coefficient, which ranges from greater than zero to less than 1 and is used to control the impact of historical data on the current smoothing value.
[0062] It should be noted that α1 and α2 may be the same or different, and this application does not limit this.
[0063] For example, if time t is the current time, then time t-1 is the previous time, α1 is used to control the influence of the smoothed value of the light intensity inside the car at the previous time on the smoothed value of the light intensity inside the car at the current time, and α2 is used to control the influence of the smoothed value of the light intensity outside the car at the previous time on the smoothed value of the light intensity outside the car at the current time.
[0064] It should be noted that for the first frame of the vehicle interior environment image and the first frame of the vehicle exterior environment image, it corresponds to the time t=0. In this case, S 内 (0) = Y 内 (0), S 外 (0) = Y 外 (0).
[0065] Step 102, adjusting the brightness of the vehicle screen based on the current light intensity inside the vehicle and the current light intensity outside the vehicle.
[0066] The electronic device can adjust the brightness of the vehicle screen at the current moment based on the current light intensity inside the vehicle and the current light intensity outside the vehicle, thereby achieving real-time adjustment of the brightness of the vehicle screen.
[0067] Because the driver's focus is different when the vehicle is in motion and at rest. When the vehicle is in motion, the driver mainly focuses on the environment outside the vehicle. When the vehicle is at rest, the driver mainly focuses on the environment inside the vehicle. Therefore, in order to more accurately adjust the brightness of the vehicle screen, the current state of the vehicle can also be considered when adjusting the brightness of the vehicle screen. Optionally, the speed of the vehicle can be obtained through a vehicle speed sensor. If the speed is greater than a speed threshold, it is determined that the vehicle is in motion. If the speed is less than or equal to the speed threshold, it is determined that the vehicle is at rest. The speed threshold can be zero or a smaller value, and this application does not limit this.
[0068] Specifically, before adjusting the brightness of the vehicle screen based on the current light intensity inside the vehicle and the current light intensity outside the vehicle, obtain the current state of the vehicle; and adjust the brightness of the vehicle screen based on the current state, the current light intensity inside the vehicle and the current light intensity outside the vehicle.
[0069] When the vehicle is in motion, the driver's eyes are mostly on the outside environment, and only when they need to look at the car screen, they switch their eyes to the inside of the car. In this case, the difference in light intensity inside and outside the car can be used to adjust the brightness of the car screen, so that the brightness difference seen by the driver is smaller. For example, when the light intensity inside and outside the car is very different, if the environment outside the car is brighter and the environment inside the car is darker, when the driver looks at the car screen, it is equivalent to switching from the high brightness outside the car to the low brightness screen inside the car instantly. The brightness difference will be very large, making the screen information difficult to read, affecting driving safety and comfort. Therefore, when the vehicle is in motion, the brightness of the car screen can be dynamically adjusted by the difference in light intensity inside and outside the car.
[0070] Specifically, if the current state is a moving state, the light intensity difference between the light intensity outside the vehicle at the current moment and the light intensity inside the vehicle at the current moment is calculated; based on the light intensity difference, the brightness of the vehicle screen is adjusted.
[0071] The electronic device can subtract the light intensity outside the car from the light intensity inside the car at the same moment, and the difference is the light intensity difference.
[0072] In a possible implementation, adjusting the brightness of the vehicle screen based on the light intensity difference includes:
[0073] Based on the light intensity difference, determining the first target brightness, the first target brightness is positively correlated with the light intensity difference;
[0074] Adjust the brightness of the vehicle screen to the first target brightness.
[0075] The corresponding relationship between the light intensity difference and the first target brightness may be preset, and after the light intensity difference is obtained, the first target brightness may be determined from the corresponding relationship.
[0076] Based on the analysis results of the light intensity difference between inside and outside the vehicle, the electronic device automatically calculates the most suitable screen brightness value (i.e., the first target brightness) through a preset brightness adjustment algorithm (e.g., the correspondence between the preset light intensity difference and the first target brightness), and adjusts the vehicle-mounted screen brightness in real time to ensure that the screen display effect can achieve the best visual effect under different lighting conditions.
[0077] Since the light intensity difference is the difference between the light intensity outside the car and the light intensity inside the car at the same time, the larger the light intensity difference, the brighter the light outside the car is relative to the light inside the car, and the smaller the light intensity difference, the darker or darker the light outside the car is relative to the light inside the car. By setting the first target brightness and the light intensity difference to be positively correlated, when the light outside the car is brighter than the light inside the car, the brightness of the car screen can be increased accordingly to avoid unclear screen information due to the screen being too dark, thereby ensuring a clear display of the car screen while providing a more comfortable and safe driving visual experience; when the light outside the car is dim or darker than the light inside the car, the brightness of the car screen can be reduced accordingly to avoid unclear screen information due to the screen being too bright and glaring, thereby ensuring a clear display of the car screen while providing a more comfortable and safe driving visual experience.
[0078] The brightness adjustment strategy of the vehicle screen when the vehicle is in motion is shown in Table 1 and Table 2.
[0079] As shown in Table 1, it is assumed that within a certain period of time, the light intensity obtained from the cameras inside and outside the vehicle is as follows, and the light intensity has been subjected to exponential smoothing.
[0080] Table 1
[0081] Time External light intensity Light intensity inside the car Light intensity difference 1 800 600 200 2 850 620 230 3 900 630 270 4 950 640 310 5 990 650 340
[0082] In the example shown in Table 1, as time goes by, the light intensity outside the car gradually increases, while the light intensity inside the car increases at a slower rate, resulting in an increasing light intensity difference. The light intensity difference continues to increase from time point 1 to time point 5, from 200 to 340, which means that the light outside the car becomes brighter relative to the light inside the car. According to the brightness adjustment strategy, the light intensity difference is positively correlated with the first target brightness, so when the light intensity difference increases, the first target brightness also gradually increases, thereby increasing the screen brightness accordingly to ensure a clear display on the in-vehicle screen.
[0083] Assume that the initial brightness of the vehicle screen is set to 50%. According to the changing trend of the light intensity difference, the vehicle screen brightness can be gradually adjusted as shown in Table 2.
[0084] Table 2
[0085] Time Light intensity difference Screen brightness adjustment 1 200 50% 2 230 55% 3 270 60% 4 310 65% 5 340 70%
[0086] In the example shown in Table 2, as the light intensity outside the vehicle increases and the light intensity difference increases, the first target brightness is increased from 50% to 70%, thereby gradually increasing the vehicle screen brightness from 50% to 70% to ensure that the driver can clearly see the screen information under different lighting conditions.
[0087] When the vehicle is stationary, the driver is not driving most of the time and his attention is mainly focused on the interior of the car. Therefore, in this case, adjusting the brightness of the car screen based on the light intensity inside the car can provide a more comfortable visual experience for the driver.
[0088] Specifically, if the current state is a stationary state, the light intensity outside the vehicle and the light intensity inside the vehicle are weighted and summed based on the first weight and the second weight to obtain the comprehensive light intensity, the first weight is the weight of the light intensity outside the vehicle, the second weight is the weight of the light intensity inside the vehicle, and the first weight is less than the second weight; based on the comprehensive light intensity, the brightness of the vehicle screen is adjusted. The sum of the first weight and the second weight is 1.
[0089] The above-mentioned comprehensive light intensity is obtained by weighted summing the light intensity outside the vehicle and the light intensity inside the vehicle. By setting the weight of the light intensity inside the vehicle to be greater than the weight of the light intensity outside the vehicle, the comprehensive light intensity can focus on the light intensity inside the vehicle. The brightness of the vehicle screen can be dynamically adjusted based on the comprehensive light intensity, which can provide a more comfortable visual experience for the driver.
[0090] In a possible implementation, adjusting the brightness of the vehicle screen based on the comprehensive light intensity includes:
[0091] Based on the comprehensive light intensity, determining the second target brightness, the second target brightness is positively correlated with the comprehensive light intensity;
[0092] Adjust the brightness of the vehicle screen to the second target brightness.
[0093] The corresponding relationship between the comprehensive light intensity and the second target brightness may be preset, and after the comprehensive light intensity is obtained, the second target brightness may be determined from the corresponding relationship.
[0094] The electronic device automatically calculates the most suitable screen brightness value (i.e., the second target brightness) based on the comprehensive light intensity through a preset brightness adjustment algorithm (e.g., the correspondence between the preset comprehensive light intensity and the second target brightness), and automatically adjusts the brightness of the vehicle screen to the calculated most suitable screen brightness value to adapt to the current lighting conditions, thereby ensuring that the screen display effect can achieve the best visual effect under the current lighting conditions.
[0095] Since the comprehensive light intensity focuses on the light intensity inside the car, the greater the comprehensive light intensity, the brighter the light inside the car; the smaller the comprehensive light intensity, the less bright or darker the light inside the car. By setting the second target brightness to be positively correlated with the comprehensive light intensity, when the comprehensive light intensity is greater, the brightness of the on-board screen can be increased accordingly, so as to reduce the brightness difference between the on-board screen and the light inside the car, and avoid unclear screen information due to the screen being too dark, thereby ensuring the clear display of the on-board screen while providing a more comfortable visual experience; when the comprehensive light intensity is smaller, the brightness of the on-board screen can be reduced accordingly, so as to reduce the brightness difference between the on-board screen and the light inside the car, and avoid unclear screen information due to the screen being too bright and dazzling, thereby ensuring the clear display of the on-board screen while providing a more comfortable visual experience.
[0096] The vehicle screen brightness adjustment strategy when the vehicle is stationary is as follows:
[0097] For example, if the first weight is set to 0.3 and the second weight is set to 0.7, the calculation formula for the comprehensive light intensity L(t) is as follows:
[0098] L(t)=0.3·S 外 (t)+0.7·S 内 (t)
[0099] As shown in Table 3, it is assumed that within a certain period of time, the light intensity obtained from the cameras inside and outside the vehicle, the comprehensive light intensity calculated based on the light intensity inside and outside the vehicle, and the screen brightness are adjusted as follows. The light intensity inside and outside the vehicle in Table 3 has been subjected to exponential smoothing.
[0100] Table 3
[0101]
[0102] In the example shown in Table 3, when the vehicle is stationary, the light intensity outside the vehicle remains unchanged. As the light intensity inside the vehicle increases, the comprehensive light intensity also increases, increasing the second target brightness from 50% to 64%, thereby gradually increasing the brightness of the on-board screen from 50% to 64%, to ensure that the driver can clearly see the screen information under different lighting conditions.
[0103] When adjusting the brightness of the vehicle-mounted screen, this embodiment not only takes into account the light intensity inside the vehicle, but also the light intensity outside the vehicle. At the same time, the light intensity inside and outside the vehicle is used to comprehensively evaluate the lighting conditions of the vehicle's environment, thereby achieving accurate adjustment of the brightness of the vehicle-mounted screen, ensuring that the screen display effect can achieve the best visual effect under different lighting conditions, thereby improving the driver's visual experience.
[0104] Electronic devices can be equipped with user preference settings and learning functions, which can automatically adjust the brightness adjustment strategy according to the user's operating habits and preferences to achieve more personalized brightness control.
[0105] User preference setting and learning include: providing a user interface to allow users to set screen brightness adjustment parameters according to personal preferences, such as brightness adjustment range, response speed, etc. Allow users to set the minimum and maximum values of screen brightness to avoid brightness adjustment beyond personal comfort zone, and allow users to set the response sensitivity of screen brightness adjustment, that is, the speed of screen brightness adjustment after light changes.
[0106] Through the above technical solution, the embodiment of the present application can not only realize the intelligent automatic adjustment of the brightness of the vehicle-mounted screen, but also provide a more comfortable and safe driving visual experience according to the actual lighting conditions inside and outside the vehicle and user preferences.
[0107] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean 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 the present application.
[0108] Corresponding to the vehicle screen brightness adjustment method described in the above embodiment, Figure 3 A schematic diagram of the structure of the vehicle-mounted screen brightness adjustment device provided in an embodiment of the present application is shown. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0109] Reference Figure 3 , the device comprises:
[0110] The intensity acquisition module 31 is used to acquire the light intensity inside the vehicle and the light intensity outside the vehicle at the current moment;
[0111] The brightness adjustment module 32 is used to adjust the brightness of the vehicle screen based on the current light intensity inside the vehicle and the current light intensity outside the vehicle.
[0112] Optionally, the above device further includes:
[0113] A state acquisition module, used to acquire the current state of the vehicle, wherein the current state includes a moving state or a stationary state;
[0114] The brightness adjustment module 32 is specifically used for:
[0115] The brightness of the vehicle screen is adjusted based on the current state, the light intensity inside the vehicle at the current moment, and the light intensity outside the vehicle at the current moment.
[0116] Optionally, the brightness adjustment module 32 includes:
[0117] a difference calculation unit, configured to calculate the light intensity difference between the light intensity outside the vehicle at the current moment and the light intensity inside the vehicle at the current moment if the current state is a moving state;
[0118] A first adjustment unit, used for adjusting the brightness of the vehicle-mounted screen based on the light intensity difference;
[0119] a weighted summing unit, configured to, if the current state is a stationary state, perform weighted summation of the light intensity outside the vehicle and the light intensity inside the vehicle based on a first weight and a second weight to obtain a comprehensive light intensity, wherein the first weight is a weight of the light intensity outside the vehicle, the second weight is a weight of the light intensity inside the vehicle, and the first weight is less than the second weight;
[0120] The second adjustment unit is used to adjust the brightness of the vehicle-mounted screen based on the comprehensive light intensity.
[0121] Optionally, the first adjusting unit is specifically used for:
[0122] Determining a first target brightness based on the light intensity difference, wherein the first target brightness is positively correlated with the light intensity difference;
[0123] The brightness of the vehicle-mounted screen is adjusted to the first target brightness.
[0124] Optionally, the second adjusting unit is specifically used for:
[0125] Based on the integrated light intensity, determining a second target brightness, wherein the second target brightness is positively correlated with the integrated light intensity;
[0126] The brightness of the vehicle-mounted screen is adjusted to the second target brightness.
[0127] Optionally, the above device further includes:
[0128] A smoothing value acquisition module, used to acquire a smoothing value of the intensity of the light inside the vehicle at the last moment and a smoothing value of the intensity of the light outside the vehicle at the last moment;
[0129] A first processing module, configured to perform smoothing processing on the light intensity inside the vehicle at the current moment based on a smoothed value of the light intensity inside the vehicle at the current moment and the light intensity inside the vehicle at the previous moment;
[0130] The second processing module is used to smooth the intensity of the light outside the vehicle at the current moment based on the smoothed value of the intensity of the light outside the vehicle at the current moment and the intensity of the light outside the vehicle at the previous moment.
[0131] Optionally, the intensity acquisition module 31 is specifically used for:
[0132] Acquire the current in-vehicle environment image and the current out-vehicle environment image;
[0133] Segmenting a first key area representing the in-vehicle environment from the in-vehicle environment image at the current moment;
[0134] Segmenting a second key area representing the vehicle exterior environment from the vehicle exterior environment image at the current moment;
[0135] Based on the first key area, determining the light intensity inside the vehicle at the current moment;
[0136] Based on the second key area, the intensity of the light outside the vehicle at the current moment is determined.
[0137] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0138] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure) a processor, a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, and when the processor 40 executes the computer program 42, the steps in any of the above-mentioned embodiments of the vehicle screen brightness adjustment method are implemented.
[0139] The electronic device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the electronic device 4 and does not constitute a limitation on the electronic device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0140] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) 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, etc.
[0141] In some embodiments, the memory 41 may be an internal storage unit of the electronic device 4, such as a hard disk or memory of the electronic device 4. In other embodiments, the memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 4. Further, the memory 41 may also include both an internal storage unit of the electronic device 4 and an external storage device. The memory 41 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0142] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by 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 embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0143] An embodiment of the present application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.
[0144] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0145] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0146] If the integrated unit is implemented in the form of 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, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0147] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0148] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0149] In the embodiments provided in the present 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 schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0150] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0151] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for adjusting the brightness of a vehicle screen, characterized in that: include: Obtaining the current light intensity inside the vehicle and the current light intensity outside the vehicle; The brightness of the vehicle screen is adjusted based on the current light intensity inside the vehicle and the current light intensity outside the vehicle.
2. The method for adjusting the brightness of a vehicle screen according to claim 1, characterized in that: Before adjusting the brightness of the vehicle screen based on the current light intensity inside the vehicle and the current light intensity outside the vehicle, the method further includes: Acquire the current state of the vehicle, where the current state includes a moving state or a stationary state; The adjusting the brightness of the vehicle screen based on the current light intensity inside the vehicle and the current light intensity outside the vehicle includes: The brightness of the vehicle screen is adjusted based on the current state, the light intensity inside the vehicle at the current moment, and the light intensity outside the vehicle at the current moment.
3. The method for adjusting the brightness of a vehicle screen according to claim 2, characterized in that: The adjusting the brightness of the vehicle screen based on the current state, the current light intensity inside the vehicle and the current light intensity outside the vehicle includes: If the current state is a moving state, then calculating the light intensity difference between the light intensity outside the vehicle at the current moment and the light intensity inside the vehicle at the current moment; Based on the light intensity difference, adjusting the brightness of the vehicle-mounted screen; Alternatively, if the current state is a stationary state, a weighted sum of the light intensity outside the vehicle and the light intensity inside the vehicle is obtained based on a first weight and a second weight, wherein the first weight is a weight of the light intensity outside the vehicle, and the second weight is a weight of the light intensity inside the vehicle, and the first weight is less than the second weight; Based on the comprehensive light intensity, the brightness of the vehicle-mounted screen is adjusted.
4. The method for adjusting the brightness of a vehicle screen according to claim 3, characterized in that: The adjusting the brightness of the vehicle-mounted screen based on the light intensity difference includes: Determining a first target brightness based on the light intensity difference, wherein the first target brightness is positively correlated with the light intensity difference; The brightness of the vehicle-mounted screen is adjusted to the first target brightness.
5. The method for adjusting the brightness of a vehicle screen according to claim 4, characterized in that: The adjusting the brightness of the vehicle-mounted screen based on the comprehensive light intensity includes: Based on the integrated light intensity, determining a second target brightness, wherein the second target brightness is positively correlated with the integrated light intensity; The brightness of the vehicle-mounted screen is adjusted to the second target brightness.
6. The method for adjusting the brightness of a vehicle-mounted screen according to any one of claims 1 to 5, characterized in that: Before adjusting the brightness of the vehicle screen based on the current light intensity inside the vehicle and the current light intensity outside the vehicle, the method further includes: Obtain the smoothed value of the intensity of the light inside the vehicle at the last moment and the smoothed value of the intensity of the light outside the vehicle at the last moment; Based on the smoothed value of the light intensity inside the vehicle at the current moment and the light intensity inside the vehicle at the previous moment, smoothing the light intensity inside the vehicle at the current moment; The intensity of the light outside the vehicle at the current moment is smoothed based on the smoothed value of the intensity of the light outside the vehicle at the current moment and the intensity of the light outside the vehicle at the previous moment.
7. The method for adjusting the brightness of a vehicle-mounted screen according to any one of claims 1 to 5, characterized in that: The obtaining of the current light intensity inside the vehicle and the current light intensity outside the vehicle comprises: Acquire the current in-vehicle environment image and the current out-vehicle environment image; Segmenting a first key area representing the in-vehicle environment from the in-vehicle environment image at the current moment; Segmenting a second key area representing the vehicle exterior environment from the vehicle exterior environment image at the current moment; Based on the first key area, determining the light intensity inside the vehicle at the current moment; Based on the second key area, the intensity of the light outside the vehicle at the current moment is determined.
8. A vehicle-mounted screen brightness adjustment device, characterized in that: include: An intensity acquisition module, used to acquire the current light intensity inside the vehicle and the current light intensity outside the vehicle; The brightness adjustment module is used to adjust the brightness of the vehicle screen based on the light intensity inside the vehicle at the current moment and the light intensity outside the vehicle at the current moment.
9. 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, the method for adjusting the brightness of the vehicle screen as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the vehicle-mounted screen brightness adjustment method as described in any one of claims 1 to 7 is implemented.
