Screen brightness adjusting method, vehicle, electronic equipment and storage medium
By obtaining environmental images in the vehicle and detecting special road sections, and predicting changes in ambient brightness in advance, the problem of delay in the brightness adjustment of the on-board screen is solved, timely adjustment of brightness is achieved, and user experience and driving safety are improved.
Patent Information
- Application Number
- CN202411995683.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-02-11
AI Technical Summary
There is a delay in adjusting the brightness of the on-board screen, which cannot quickly adapt to the sudden changes in ambient light brightness, affecting the user experience and may endanger driving safety.
By obtaining the environmental image ahead of the vehicle during driving, detecting whether there are special road sections, such as tunnels or underground parking lots, and determining the ambient light brightness of special road sections based on the image, predicting the brightness changes in advance, and adjusting the screen brightness in time.
The brightness of the on-board display screen is adjusted in a timely manner, avoiding the reduction of user experience and increased driving risks caused by delay adjustment.
Smart Images

Figure CN119418637A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a screen brightness adjustment method, a vehicle, an electronic device and a storage medium. Background Art
[0002] With the development of smart cars, car screens are getting bigger and bigger. While providing users with rich information and a good interactive experience, it also brings some problems. At present, the brightness adjustment of the car screen mainly depends on the light sensor. However, due to the sensitivity and calculation cycle of the light sensor, when the ambient light brightness changes rapidly, the screen brightness cannot quickly adapt to the sudden changes in light. For example, when a vehicle quickly enters a tunnel on a highway, the car screen is dazzlingly bright. This situation not only affects the user experience, but may also affect driving safety, and it is easy for users to miss intersections or other information on the car. Summary of the invention
[0003] In view of this, the present application provides a screen brightness adjustment method, vehicle, electronic device and storage medium, which can predict changes in ambient light brightness in advance and adjust the screen brightness in time, solving the current problem of delay in vehicle-mounted screen brightness adjustment.
[0004] According to a first aspect of the present application, a screen brightness adjustment method is provided, which is applied to a vehicle, wherein the vehicle includes an on-board display screen, and the method includes: during the driving of the vehicle, obtaining an environmental image in front of the vehicle; detecting whether there is a special section in front of the vehicle based on the environmental image, wherein the special section includes one of a tunnel, an underground parking lot, a tunnel exit section, and an underground parking lot exit section; in the case of the existence of the special section, determining a first ambient light brightness of the special section based on the environmental image; determining an adjustment brightness based on the first ambient light brightness, and adjusting the screen brightness of the on-board display screen based on the adjustment brightness.
[0005] Compared with the related art, the embodiment of the present application has at least the following advantages: by acquiring the environmental image in front of the vehicle during the driving process of the vehicle, it is convenient to determine whether there is a special road section in front of the vehicle according to the environmental image, so that the first ambient light brightness of the special road section can be determined according to the environmental image before the vehicle enters the special road section, and the ambient light brightness of the special road section can be predicted in advance. After determining the first ambient light brightness of the special road section, the adjustment brightness is determined according to the first ambient light brightness, and then the screen brightness of the vehicle display is adjusted based on the adjustment brightness, so as to realize the timely adjustment of the screen brightness of the vehicle display, and avoid the situation that "after the vehicle enters the special road section, the screen brightness of the vehicle display is still not adjusted, which increases the driving risk of the user and reduces the user's experience".
[0006] In some embodiments, before determining the first ambient light brightness of the special road section based on the environmental image, it also includes: calculating the driving time of the vehicle from the current position to the special road section based on the environmental image; determining the first ambient light brightness of the special road section based on the environmental image includes: determining the first ambient light brightness based on the environmental image when the driving time is less than or equal to a first preset time.
[0007] In some embodiments, the vehicle includes a photographing device, and obtaining the environmental image in front of the vehicle includes: controlling the photographing device to photograph the environmental image; calculating the driving time of the vehicle from the current position to the special road section based on the environmental image includes: performing image recognition on the environmental image to obtain the position information and size information of the special road section in the environmental image; calculating the distance between the vehicle and the special road section based on the position information, the size information and the shooting parameters of the photographing device; obtaining the speed of the vehicle at the current position; and calculating the driving time based on the distance and the speed.
[0008] In some embodiments, after determining the first ambient light brightness of the special road section according to the ambient image, it also includes: detecting whether the driving time is less than or equal to a second preset time, wherein the second preset time is less than the first preset time; when the driving time is greater than the second preset time, obtaining a new ambient image in front of the vehicle every third preset time; after each acquisition of the new ambient image, determining the new first ambient light brightness of the special road section according to the new ambient image, and calculating the new driving time of the vehicle from the current position to the special road section according to the new first ambient light brightness, until the new driving time is less than or equal to the second preset time; determining the adjusted brightness according to the first ambient light brightness includes: when the new driving time is less than or equal to the second preset time, determining the adjusted brightness according to the new first ambient light brightness determined for the last time.
[0009] In some embodiments, adjusting the screen brightness of the vehicle display screen according to the adjusted brightness includes: gradually adjusting the screen brightness of the vehicle display screen according to the adjusted brightness, and completing the screen brightness adjustment of the vehicle display screen within the new driving time determined last time.
[0010] In some embodiments, determining the adjusted brightness based on the first ambient light brightness includes: determining the adjusted brightness corresponding to the first ambient light brightness based on a first correspondence table, wherein the first correspondence table includes adjusted brightness corresponding to first ambient light brightness of different values; adjusting the screen brightness of the vehicle-mounted display screen based on the adjusted brightness includes: adjusting the screen brightness of the vehicle-mounted display screen to the adjusted brightness.
[0011] In some embodiments, before determining the adjusted brightness according to the first ambient light brightness, it also includes: obtaining the second ambient light brightness at the current position of the vehicle; determining the adjusted brightness according to the first ambient light brightness includes: calculating the brightness difference between the second ambient light brightness and the first ambient light brightness; determining the adjusted brightness corresponding to the brightness difference according to a second correspondence table, wherein the second correspondence table includes adjusted brightness corresponding to brightness differences of different values; adjusting the screen brightness of the vehicle display screen according to the adjusted brightness includes: when the second ambient light brightness is greater than the first ambient light brightness, lowering the screen brightness of the vehicle display screen by the adjusted brightness; when the second ambient light brightness is less than the first ambient light brightness, increasing the screen brightness of the vehicle display screen by the adjusted brightness.
[0012] According to a second aspect of the present application, a vehicle is provided, the vehicle including an on-board display screen, the vehicle also including: an image acquisition module, an image recognition module, an ambient light determination module, a brightness determination module and an adjustment module; the image acquisition module is used to acquire an environmental image in front of the vehicle during the driving of the vehicle; the image recognition module is used to detect whether there is a special road section in front of the vehicle according to the environmental image, wherein the special road section includes one of a tunnel, an underground parking lot, a tunnel exit section and an underground parking lot exit section; the ambient light determination module is used to determine a first ambient light brightness of the special road section according to the environmental image when the special road section exists; the brightness determination module is used to determine an adjustment brightness according to the first ambient light brightness; the adjustment module is used to adjust the screen brightness of the on-board display screen according to the adjustment brightness.
[0013] According to a third aspect of the present application, an electronic device is provided, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned screen brightness adjustment method.
[0014] According to a fourth aspect of the present application, a storage medium is provided, wherein the storage medium stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned screen brightness adjustment method.
[0015] It can be understood that the vehicle of the second aspect provided above, the electronic device provided in the third aspect, and the storage medium of the fourth aspect all correspond to the screen brightness adjustment method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A flowchart of a screen brightness adjustment method provided in an embodiment of the present application.
[0017] Figure 2 A flowchart of a screen brightness adjustment method provided in an embodiment of the present application.
[0018] Figure 3 A flowchart of a screen brightness adjustment method provided in an embodiment of the present application.
[0019] Figure 4 A schematic diagram of functional modules of a vehicle provided in an embodiment of the present application.
[0020] Figure 5 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementations. It should be noted that the implementations of the present application and the features in the implementations can be combined with each other without conflict.
[0022] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0024] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0025] In this application, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0026] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0027] Please refer to Figure 1 , Figure 1 This is a flowchart of the steps of an embodiment of the screen brightness adjustment method of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. The adjustment method can be applied to the ECU (Electronic Control Unit) of the vehicle, but is not limited to this, and the embodiments of the present application are not limited to this.
[0028] The specific process of this embodiment is as follows Figure 1 As shown, the following steps are included: Step 101 , during the driving process of the vehicle, an image of the environment in front of the vehicle is acquired.
[0029] In some embodiments, the vehicle includes a camera, and during the driving of the vehicle, the camera is controlled to capture images of the environment.
[0030] In some embodiments, the shooting device is a camera, which is connected to the ECU. During the driving of the vehicle, the camera transmits the captured environmental image to the ECU, so that the ECU can perform image recognition on the environmental image in subsequent steps.
[0031] In some embodiments, the camera is installed at the front of the vehicle to capture the environment in front of the vehicle. It is understandable that this embodiment does not specifically limit the installation position of the camera, but only needs to ensure that the camera can capture the environment in front of the vehicle.
[0032] In some embodiments, the shooting interval of the shooting device is not specifically limited and can be set according to actual needs. For example, the shooting interval can be set to 1S, 2S, etc.
[0033] Step 102, detecting whether there is a special road section ahead of the vehicle based on the environment image, if there is a special road section, executing step 103; otherwise, executing step 101.
[0034] In some embodiments, the special road section includes one of a tunnel, an underground parking lot, a tunnel exit road section, and an underground parking lot exit road section. It is worth noting that the special road section of this embodiment is not limited to the above-mentioned road sections, and can also be a bridge, a bridge exit road section, etc. Specifically, any road section where the ambient light brightness changes significantly relative to the ambient light brightness of the current position of the vehicle can be regarded as a special road section of this embodiment.
[0035] In some embodiments, the image recognition technology is used to identify whether there is a special road section in the environment image. Specifically, the principle of the image recognition technology in this embodiment may include the following steps: 1. The ECU controls the camera to scan the environment image, obtain the raw data of the environment image, and send the raw data to the ECU.
[0036] 2. The ECU compiles the scanned raw data into digital code for easy processing and analysis by the ECU.
[0037] 3. The ECU extracts key features from the encoded digital code.
[0038] 4. Match the extracted key features with the known image feature library, and identify whether there is a special road section in the environment image by comparison and matching. Specifically, the image feature library stores the features of different types of special road sections. Therefore, by matching the key features extracted from the environment image with the image feature library, it is possible to accurately detect whether there is a special road section ahead of the vehicle.
[0039] Step 103: determine the first ambient light brightness of the special road section according to the ambient image.
[0040] In some embodiments, the ECU converts the environment image into a grayscale image, and then determines the shape and position of the special road section in the grayscale image through the region of interest technology, and finally obtains the first ambient light brightness of the special road section based on the grayscale image.
[0041] Step 104: Determine the adjusted brightness according to the brightness of the first ambient light.
[0042] In some embodiments, the adjusted brightness corresponding to the first ambient light brightness is determined according to a first correspondence table, wherein the first correspondence table includes adjusted brightnesses corresponding to first ambient light brightnesses of different values.
[0043] Specifically, the value of the first ambient light brightness is between 0 and 255, that is, the first ambient light brightness has a total of 256 values.
[0044] In some embodiments, the first correspondence table includes a total of 256 adjustment brightnesses corresponding to 256 ambient light brightnesses, that is, each ambient light brightness corresponds to an adjustment brightness.
[0045] In some embodiments, the value of the first ambient light brightness is divided into multiple intervals, and each interval corresponds to an adjusted brightness. For example, 0 to 255 is divided into 15 intervals, assuming intervals 1 to 15, each interval corresponds to an adjusted brightness, assuming that intervals 1 to 15 correspond to adjusted brightnesses 1 to 15. After determining the first ambient light brightness of a special road section, determine the interval where the first ambient light brightness is located, assuming that the interval where the first ambient light brightness is located is interval 13, then the brightness 13 corresponding to interval 13 is the adjusted brightness of the vehicle display.
[0046] In some embodiments, before determining the adjusted brightness based on the first ambient light brightness, it also includes: obtaining the second ambient light brightness at the current position of the vehicle; determining the adjusted brightness based on the first ambient light brightness, including: calculating the brightness difference between the second ambient light brightness and the first ambient light brightness; according to a second correspondence table, determining the adjusted brightness corresponding to the brightness difference, wherein the second correspondence table includes adjusted brightness corresponding to brightness differences of different values.
[0047] By calculating the brightness difference between the second ambient light brightness at the vehicle's current position and the first ambient light brightness of the special road section, since the brightness difference can accurately reflect the brightness change after the vehicle enters the special road section from the current position, the adjusted brightness determined based on the brightness difference can better meet the screen brightness adjustment requirements of the vehicle display, thereby further improving the user experience.
[0048] In some embodiments, the second correspondence table includes a total of N adjusted brightnesses corresponding to N brightness difference values, where N is an integer greater than 1. That is, each brightness difference value corresponds to an adjusted brightness. In addition, as can be seen from the above description, the ambient light brightness of a special road section will change significantly relative to the ambient light brightness of the current position of the vehicle, so the brightness difference value is not 0.
[0049] In some embodiments, the values of the brightness difference are divided into multiple intervals, and each interval corresponds to an adjusted brightness. For example, N brightness difference values are divided into M intervals, where M is an integer greater than 1 and less than N. Assuming interval A to interval M, each interval corresponds to an adjusted brightness, and assuming that the adjusted brightness corresponding to interval A to interval M is brightness A to brightness M. After determining the first ambient light brightness of the special road section, the second ambient light brightness of the current position of the vehicle is obtained, the brightness difference between the second ambient light brightness and the first ambient light brightness is calculated, and then the interval where the brightness difference value is located is determined. Assuming that the interval where the brightness difference value is located is interval M, the brightness M corresponding to interval M is the adjusted brightness of the vehicle display.
[0050] Step 105, adjusting the screen brightness of the vehicle-mounted display screen according to the adjusted brightness.
[0051] In some embodiments, if the adjusted brightness corresponding to the first ambient light brightness is determined according to the first correspondence table, the determined adjusted brightness is the final display brightness of the vehicle display screen. In other words, the screen brightness of the vehicle display screen is adjusted to the adjusted brightness.
[0052] In some embodiments, if the adjusted brightness corresponding to the brightness difference is determined according to the second correspondence table, the determined adjusted brightness is the brightness that needs to be adjusted for the vehicle display screen. Specifically, when the second ambient light brightness is greater than the first ambient light brightness, it indicates that the vehicle is driving from the current position with higher ambient light brightness to a special section with lower ambient light brightness, and the screen brightness of the vehicle display screen is adjusted down. For example, if the screen brightness of the vehicle display screen is 180 and the adjusted brightness is 30, the screen brightness of the vehicle display screen is adjusted down to 150. When the second ambient light brightness is less than the first ambient light brightness, it indicates that the vehicle is driving from the current position with lower ambient light brightness to a special section with higher ambient light brightness, and the screen brightness of the vehicle display screen is adjusted up. For example, if the screen brightness of the vehicle display screen is 180 and the adjusted brightness is 30, the screen brightness of the vehicle display screen is adjusted up to 210.
[0053] Compared with the related art, the embodiment of the present application has at least the following advantages: by acquiring the environmental image in front of the vehicle during the driving process of the vehicle, it is convenient to determine whether there is a special road section in front of the vehicle according to the environmental image, so that the first ambient light brightness of the special road section can be determined according to the environmental image before the vehicle enters the special road section, and the ambient light brightness of the special road section can be predicted in advance. After determining the first ambient light brightness of the special road section, the adjustment brightness is determined according to the first ambient light brightness, and then the screen brightness of the vehicle display is adjusted based on the adjustment brightness, so as to realize the timely adjustment of the screen brightness of the vehicle display, and avoid the situation that "after the vehicle enters the special road section, the screen brightness of the vehicle display is still not adjusted, which increases the driving risk of the user and reduces the user's experience".
[0054] Please refer to 2, Figure 2 This is a flowchart of the steps in an embodiment of the screen brightness adjustment method of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. The adjustment method can be applied to the ECU of a vehicle, but is not limited thereto, and the embodiments of the present application do not limit this.
[0055] This embodiment is a further improvement of the above embodiment, and the main improvement is that in this embodiment, the step of determining the first ambient light brightness according to the ambient image is performed only when the driving time is less than or equal to the first preset time. In this way, it is possible to prevent the situation where "the car computer freezes and the calculation of the brightness adjustment is not timely, resulting in the inability to adjust the screen brightness of the car display screen in time", thereby improving the reliability of screen brightness adjustment.
[0056] The specific process of this embodiment is as follows Figure 2 As shown, the following steps are included: Step 201 , during the driving process of the vehicle, an image of the environment in front of the vehicle is obtained.
[0057] Step 202, detect whether there is a special road section ahead of the vehicle based on the environmental image, and if there is a special road section, execute step 203; otherwise, execute step 201.
[0058] Step 203, calculating the driving time of the vehicle from the current position to the special road section according to the environment image.
[0059] In some embodiments, image recognition is performed on the environmental image to obtain the position information and size information of the special road section in the environmental image; the distance between the vehicle and the special road section is calculated based on the position information, size information and shooting parameters of the shooting device; the speed of the vehicle at the current position is obtained; and the driving time is calculated based on the distance and speed.
[0060] Specifically, image recognition is performed on the environmental image through image recognition technology. The shooting parameters include the focal length and viewing angle of the camera. Based on the position information and size information of the special road section in the environmental image and the shooting parameters of the shooting device, the position of the special road section in the world coordinate system is obtained, thereby calculating the distance between the vehicle and the special road section. Since the speed of the vehicle is a known quantity, the driving time of the vehicle can be obtained through the calculation formula of "speed*time=distance".
[0061] Step 204 : when the driving time is less than or equal to the first preset time, determine the first ambient light brightness according to the ambient image.
[0062] In some embodiments, the first preset duration is not specifically limited and can be set according to actual needs. The first preset duration of this embodiment can be set to between 4S and 6S, so as to ensure that the screen brightness adjustment of the vehicle display screen is completed within the first preset duration.
[0063] Step 205: Determine the adjusted brightness according to the brightness of the first ambient light.
[0064] Step 206, adjusting the screen brightness of the vehicle-mounted display screen according to the adjusted brightness.
[0065] Step 201 , step 202 , step 205 and step 206 of this embodiment are similar to step 101 , step 102 , step 104 and step 105 of the aforementioned embodiment, and will not be described again here to avoid repetition.
[0066] For ease of understanding, the following takes a tunnel as an example to specifically describe how to adjust the screen brightness in this embodiment: Assume that the camera captures an image of the environment in front of the vehicle every 2 seconds. After each capture by the camera, the ECU detects whether there is a tunnel in front of the vehicle based on the environment image. When the ECU detects that there is a tunnel in front of the vehicle, the ECU determines the distance between the current position of the vehicle and the entrance of the tunnel based on the environment image. The ECU then calculates the driving time of the vehicle from the current position to the entrance of the tunnel by obtaining the current speed of the vehicle. Assuming that the driving time calculated for the first time is 8 seconds, which is greater than the first preset time of 5 seconds, the camera captures an image of the environment in front of the vehicle every 0.3 seconds, and repeats the above process of calculating the driving time until the calculated driving time is less than or equal to 5 seconds. When the driving time is less than or equal to 5 seconds, the ECU determines the first ambient light brightness based on the last ambient light image captured by the camera, and then adjusts the screen brightness of the vehicle display screen according to the first ambient light brightness.
[0067] Compared with the related art, the embodiment of the present application has at least the following advantages: by acquiring the environmental image in front of the vehicle during the driving process of the vehicle, it is convenient to determine whether there is a special road section in front of the vehicle according to the environmental image, so that the first ambient light brightness of the special road section can be determined according to the environmental image before the vehicle enters the special road section, and the ambient light brightness of the special road section can be predicted in advance. After determining the first ambient light brightness of the special road section, the adjustment brightness is determined according to the first ambient light brightness, and then the screen brightness of the vehicle display is adjusted based on the adjustment brightness, so as to realize the timely adjustment of the screen brightness of the vehicle display, and avoid the situation that "after the vehicle enters the special road section, the screen brightness of the vehicle display is still not adjusted, which increases the driving risk of the user and reduces the user's experience".
[0068] Please refer to 3, Figure 3 This is a flowchart of the steps in an embodiment of the screen brightness adjustment method of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. The adjustment method can be applied to the ECU of a vehicle, but is not limited thereto, and the embodiments of the present application do not limit this.
[0069] This embodiment is a further improvement of the above embodiment, and the main improvement is that: in this embodiment, it is also detected whether the driving time is less than or equal to the second preset time. When the driving time is greater than the second preset time, a new environment image in front of the vehicle is obtained every third preset time, and a new driving time is obtained based on the new environment image, until the new driving time is less than or equal to the second preset time, and then the first ambient light brightness is determined based on the new environment image obtained last time. In this way, it is possible to avoid the premature determination of the first ambient light brightness being inaccurate, resulting in inaccurate adjustment brightness determined based on the first ambient light brightness, thereby improving the accuracy of screen brightness adjustment.
[0070] The specific process of this embodiment is as follows Figure 2 As shown, the following steps are included: Step 301 , during the driving process of the vehicle, an image of the environment in front of the vehicle is acquired.
[0071] Step 302 , detecting whether there is a special road section ahead of the vehicle based on the environment image, and if there is a special road section, executing step 303 ; otherwise, executing step 301 .
[0072] Step 303, calculating the driving time of the vehicle from the current position to the special road section according to the environment image.
[0073] Step 304: When the driving time is less than or equal to the first preset time, determine the first ambient light brightness according to the ambient image.
[0074] Step 305 , detecting whether the driving time is less than or equal to a second preset time. If the driving time is greater than the second preset time, executing step 306 ; otherwise, executing step 308 .
[0075] In some embodiments, the second preset duration is not specifically limited and can be set according to actual needs. In this embodiment, the second preset duration can be set to between 2S and 3S, so as to ensure the accuracy of the brightness of the first ambient light.
[0076] Step 306: acquiring a new environment image in front of the vehicle every third preset time period.
[0077] In some embodiments, the third preset time length is set between 0.3S and 0.5S.
[0078] Step 307 , determining a new first ambient light brightness of the special road section according to the new ambient image, and calculating a new driving time of the vehicle from the current position into the special road section according to the new first ambient light brightness, and returning to step 305 .
[0079] It is worth noting that by determining the new first ambient light brightness of the special road section according to the new ambient image each time a new ambient image is obtained, the ambient light brightness change of the special road section can be accurately known, so as to more accurately determine the adjusted brightness.
[0080] Step 308: Determine the adjusted brightness according to the last determined first ambient light brightness.
[0081] Step 309: adjust the screen brightness of the vehicle-mounted display screen according to the adjusted brightness.
[0082] In some embodiments, the screen brightness of the vehicle display screen is adjusted in a gradual manner according to the brightness adjustment, and the screen brightness adjustment of the vehicle display screen is completed within the last determined driving time. In this way, it is possible to ensure that the screen brightness adjustment of the vehicle display screen is completed before the vehicle enters a special road section, and by gradually changing the screen brightness, the sudden change of the screen brightness is avoided from interfering with the driver's vision, reducing the driving risk caused by not being able to see the vehicle display screen clearly.
[0083] For ease of understanding, the following takes the special road section as a tunnel, the first preset time length as 5S, the second preset time length as 3S, and the third preset time length as 0.3S as an example to specifically describe how to adjust the screen brightness in this embodiment: 1. The camera captures an image of the environment in front of the vehicle every 2 seconds. After each capture, the ECU detects whether there is a tunnel in front of the vehicle based on the image. When the ECU detects that there is a tunnel in front of the vehicle, the ECU determines the distance between the current position of the vehicle and the tunnel entrance based on the image. The ECU then calculates the driving time from the current position to the tunnel entrance by obtaining the current speed of the vehicle.
[0084] 2. The driving time calculated by the ECU for the first time is 8S, which is greater than the first preset time of 5S. The camera captures an image of the environment in front of the vehicle every 0.5S, and repeats the above process of calculating the driving time until the calculated driving time is less than or equal to 5S.
[0085] 3. When the driving time is less than or equal to 5 seconds, the ECU determines the first ambient light brightness based on the ambient image last captured by the camera, and then detects whether the driving time is less than or equal to 3 seconds.
[0086] 4. When the driving time is longer than 3 seconds, the camera captures an image of the environment in front of the vehicle every 0.3 seconds to obtain a new image of the environment in front of the vehicle.
[0087] 5. The ECU determines the new first ambient light brightness of the special road section based on the new ambient image, and calculates the new driving time of the vehicle from the current position into the special road section based on the new first ambient light brightness, until the final calculated driving time is less than or equal to 3S.
[0088] 6. The ECU determines the first ambient light brightness according to the ambient image captured by the camera last time, and determines the adjustment brightness according to the first ambient light brightness.
[0089] 7. The ECU adjusts the screen brightness of the vehicle display screen according to the brightness adjustment gradient, and completes the screen brightness adjustment of the vehicle display screen within 1S to 2S.
[0090] Compared with the related art, the embodiment of the present application has at least the following advantages: by acquiring the environmental image in front of the vehicle during the driving process of the vehicle, it is convenient to determine whether there is a special road section in front of the vehicle according to the environmental image, so that the first ambient light brightness of the special road section can be determined according to the environmental image before the vehicle enters the special road section, and the ambient light brightness of the special road section can be predicted in advance. After determining the first ambient light brightness of the special road section, the adjustment brightness is determined according to the first ambient light brightness, and then the screen brightness of the vehicle display is adjusted based on the adjustment brightness, so as to realize the timely adjustment of the screen brightness of the vehicle display, and avoid the situation that "after the vehicle enters the special road section, the screen brightness of the vehicle display is still not adjusted, which increases the driving risk of the user and reduces the user's experience".
[0091] Based on the same idea as the screen brightness adjustment method in the above embodiment, the present application also provides a vehicle, which can be used to perform the above screen brightness adjustment method. For ease of explanation, the structural schematic diagram of the vehicle embodiment only shows the parts related to the embodiment of the present application. It can be understood by those skilled in the art that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown in the diagram, or combine certain components, or arrange the components differently.
[0092] Please refer to Figure 4 , the vehicle 400 includes an image acquisition module 401, an image recognition module 402, an ambient light determination module 403, a brightness determination module 404 and an adjustment module 405; The image acquisition module 401 is used to acquire the environmental image in front of the vehicle during the driving process of the vehicle; the image recognition module 402 is used to detect whether there is a special section in front of the vehicle based on the environmental image, wherein the special section includes a tunnel, an underground parking lot, a tunnel exit section and an underground parking lot exit section; the ambient light determination module 403 is used to determine the first ambient light brightness of the special section based on the environmental image when the special section exists; the brightness determination module 404 is used to determine the adjustment brightness based on the first ambient light brightness; the adjustment module 405 is used to adjust the screen brightness of the vehicle-mounted display screen based on the adjusted brightness.
[0093] Please refer to Figure 5 , Figure 5 This is a schematic diagram of an embodiment of an electronic device of the present application.
[0094] The electronic device 1000 includes a memory 20, a processor 30, and a computer program 40 stored in the memory 20 and executable on the processor 30. When the processor 30 executes the computer program 40, the steps in the above-mentioned screen brightness adjustment method embodiment are implemented, for example Figure 1Steps 101 to 105 are shown.
[0095] Exemplarily, the computer program 40 may also be divided into one or more modules / units, one or more modules / units are stored in the memory 20, and executed by the processor 30. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 40 in the electronic device 1000.
[0096] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 1000 and does not constitute a limitation of the electronic device 1000. The electronic device 1000 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 1000 may also include input and output devices, network access devices, buses, etc.
[0097] The processor 30 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, a single-chip microcomputer, or the processor 30 may also be any conventional processor, etc.
[0098] The memory 20 can be used to store the computer program 40 and / or the module / unit. The processor 30 realizes various functions of the electronic device 1000 by running or executing the computer program and / or the module / unit stored in the memory 20 and calling the data stored in the memory 20. The memory 20 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data (such as audio data) created according to the use of the electronic device 1000, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, 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), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0099] If the module / unit integrated in the electronic device 1000 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, and can also be completed by instructing the relevant hardware through a computer program. 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 include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0100] In the several embodiments provided in this application, it should be understood that the disclosed electronic device and method can be implemented in other ways. For example, the electronic device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation.
[0101] In addition, each functional unit in each embodiment of the present application may be integrated into the same processing unit, each unit may exist physically separately, or two or more units may be integrated into the same unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0102] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or electronic devices stated in the electronic device claim can also be implemented by the same unit or electronic device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A screen brightness adjustment method, characterized in that: Applied to a vehicle, the vehicle includes an on-board display screen, and the method includes: During the driving of the vehicle, acquiring an image of the environment in front of the vehicle; Detecting whether there is a special road section ahead of the vehicle according to the environment image, wherein the special road section includes one of a tunnel, an underground parking lot, a tunnel exit section, and an underground parking lot exit section; In the case where the special road section exists, determining a first ambient light brightness of the special road section according to the ambient image; Determining the adjusted brightness according to the brightness of the first ambient light; The screen brightness of the vehicle-mounted display screen is adjusted according to the adjusted brightness.
2. The screen brightness adjustment method according to claim 1, characterized in that: Before determining the first ambient light brightness of the special road section according to the ambient image, the method further includes: Calculating the driving time of the vehicle from the current position to the special road section according to the environment image; The determining the first ambient light brightness of the special road section according to the ambient image includes: When the driving time is less than or equal to a first preset time, the first ambient light brightness is determined according to the ambient image.
3. The screen brightness adjustment method according to claim 2, characterized in that: The vehicle includes a shooting device, and the step of acquiring an image of the environment in front of the vehicle includes: Controlling the photographing device to photograph the environment image; The calculating, according to the environment image, the driving time of the vehicle from the current position into the special road section comprises: Performing image recognition on the environment image to obtain location information and size information of the special road section in the environment image; Calculating the distance between the vehicle and the special road section according to the position information, the size information and the shooting parameters of the shooting device; Obtaining the speed of the vehicle at the current position; The driving time is calculated according to the distance and the vehicle speed.
4. The screen brightness adjustment method according to claim 2, characterized in that: After determining the first ambient light brightness of the special road section according to the ambient image, the method further includes: Detecting whether the driving time is less than or equal to a second preset time, wherein the second preset time is less than the first preset time; When the driving time is longer than the second preset time, acquiring a new environment image in front of the vehicle every third preset time; After acquiring the new environment image each time, determining a new first environment light brightness of the special road section according to the new environment image, and calculating a new driving time of the vehicle from the current position to the special road section according to the new first environment light brightness, until the new driving time is less than or equal to the second preset time; The step of determining and adjusting the brightness according to the brightness of the first ambient light includes: When the new driving duration is less than or equal to the second preset duration, the adjusted brightness is determined according to the first ambient light brightness determined last time.
5. The screen brightness adjustment method according to claim 4, characterized in that: The step of adjusting the screen brightness of the vehicle-mounted display screen according to the adjusting brightness includes: The screen brightness of the vehicle-mounted display screen is adjusted according to the brightness adjustment gradient, and the screen brightness adjustment of the vehicle-mounted display screen is completed within the last determined driving time.
6. The screen brightness adjustment method according to claim 1, characterized in that: The step of determining and adjusting the brightness according to the brightness of the first ambient light includes: Determine the adjusted brightness corresponding to the first ambient light brightness according to a first correspondence table, wherein the first correspondence table includes adjusted brightnesses corresponding to first ambient light brightnesses of different values; The step of adjusting the screen brightness of the vehicle-mounted display screen according to the adjusting brightness includes: The screen brightness of the vehicle-mounted display screen is adjusted to the adjusted brightness.
7. The screen brightness adjustment method according to claim 1, characterized in that: Before determining and adjusting the brightness according to the first ambient light brightness, the method further includes: Acquire the brightness of a second ambient light at the current position of the vehicle; The step of determining and adjusting the brightness according to the brightness of the first ambient light includes: Calculating a brightness difference between the second ambient light brightness and the first ambient light brightness; Determining the adjusted brightness corresponding to the brightness difference value according to a second correspondence table, wherein the second correspondence table includes adjusted brightness corresponding to brightness difference values of different values; The step of adjusting the screen brightness of the vehicle-mounted display screen according to the adjusting brightness includes: When the brightness of the second ambient light is greater than the brightness of the first ambient light, lowering the screen brightness of the vehicle-mounted display screen by the adjusted brightness; When the brightness of the second ambient light is lower than the brightness of the first ambient light, the screen brightness of the vehicle-mounted display screen is increased by the adjusted brightness.
8. A vehicle, characterized in that: The vehicle includes an on-board display screen, and the vehicle also includes: an image acquisition module, an image recognition module, an ambient light determination module, a brightness determination module, and an adjustment module; The image acquisition module is used to acquire an image of the environment in front of the vehicle during the driving of the vehicle; The image recognition module is used to detect whether there is a special road section in front of the vehicle according to the environmental image, wherein the special road section includes one of a tunnel, an underground parking lot, a tunnel exit section and an underground parking lot exit section; The ambient light determination module is used to determine the first ambient light brightness of the special road section according to the ambient image when the special road section exists; The brightness determination module is used to determine the adjusted brightness according to the brightness of the first ambient light; The adjustment module is used to adjust the screen brightness of the vehicle-mounted display screen according to the adjustment brightness.
9. An electronic device, comprising a processor and a memory, characterized in that: The memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the screen brightness adjustment method according to any one of claims 1 to claim 7.
10. A storage medium, characterized in that: The storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the screen brightness adjustment method according to any one of claims 1 to 7.
Citation Information
Cited By
Display control method and device, head-up display device and computer storage medium
CN120792497A
New energy automobile man-machine interaction screen brightness control method and system
CN121034252A