Control method and device for atmosphere lamp in vehicle and vehicle

By obtaining the remaining duration and duration of the color change of traffic lights, and combining the ambient light intensity and Stevens' Law to calculate the target brightness of the ambient lights, the problem of the single color-changing method of in-vehicle ambient lights is solved, achieving a safer and more personalized driving experience.

CN121734236APending Publication Date: 2026-03-27GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-17
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing in-vehicle ambient lighting has a limited range of color-changing methods and lacks diversity. It cannot effectively utilize traffic light signals to alert drivers, thus affecting driving safety and user experience.

Method used

By obtaining the remaining duration and duration of the traffic light color change, and combining the ambient light intensity and Stevens' Law to calculate the target brightness of the ambient lights, the ambient lights are controlled to remind the driver with different brightness levels, thereby improving the interactivity and diversity of the ambient lights.

Benefits of technology

It improves vehicle driving safety and user experience, enhances drivers' perception of traffic light signals, and improves drivers' concentration and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121734236A_ABST
    Figure CN121734236A_ABST
Patent Text Reader

Abstract

The invention discloses an in-vehicle atmosphere lamp control method and device and a vehicle, and the method comprises the steps: obtaining the remaining time length of a traffic light closest to the front of a driving path of a vehicle from a first color to a second color as a first time length, the first color being red or green, and the second color being red or green, the first color is different from the second color; acquiring the duration of keeping the first color of the traffic light in the current motion state of the vehicle as a second duration; target brightness is determined according to a brightness calculation function, the ambient light brightness in the vehicle, the first duration and the second duration, and the brightness calculation function is determined based on the Stevens law corresponding to the brightness perceived by the human eyes; and the atmosphere lamp of the vehicle is controlled to work based on the target brightness, so that the brightness of the atmosphere lamp is determined according to the traffic light signal, the atmosphere lamp is driven to remind a driver to drive at different brightness, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of atmosphere lamp control, and more particularly, to a control method and device of an in-vehicle atmosphere lamp and a vehicle. BACKGROUND

[0002] With the continuous progress of science and technology, in-vehicle atmosphere lamps have become an important configuration for improving the personalization, comfort and safety of intelligent cockpits. However, the color changing mode of the current in-vehicle atmosphere lamps is still limited to preset colors and fixed modes, and there is a problem of too single adjustment mode. SUMMARY

[0003] In view of this, the embodiments of the present application provide a control method and device of an in-vehicle atmosphere lamp and a vehicle to improve the above problems.

[0004] In a first aspect, the embodiments of the present application provide a control method of an in-vehicle atmosphere lamp, the method comprising: obtaining a remaining time length for a traffic light closest to a driving path of a vehicle to change from a first color to a second color as a first time length, wherein the first color is red or green, the second color is red or green, and the first color is different from the second color; obtaining a time length for the traffic light to keep the first color in a current motion state of the vehicle as a second time length; determining a target brightness according to a brightness calculation function, an ambient light brightness in the vehicle, the first time length and the second time length, wherein the brightness calculation function is determined based on the Stevens' Law corresponding to the perceived brightness of the human eye; and controlling the atmosphere lamp of the vehicle to work based on the target brightness.

[0005] In a second aspect, the embodiments of the present application provide a control device of an in-vehicle atmosphere lamp, the device comprising: a traffic light color changing remaining time length obtaining module, a vehicle waiting traffic light color changing time length obtaining module, a target brightness determining module and an atmosphere lamp brightness control module. The traffic light color changing remaining time length obtaining module is configured to obtain a remaining time length for a traffic light closest to a driving path of a vehicle to change from a first color to a second color as a first time length, wherein the first color is red or green, the second color is red or green, and the first color is different from the second color. The vehicle waiting traffic light color changing time length obtaining module is configured to obtain a time length for the traffic light to keep the first color in a current motion state of the vehicle as a second time length. The target brightness determining module is configured to determine a target brightness according to a brightness calculation function, an ambient light brightness in the vehicle, the first time length and the second time length, wherein the brightness calculation function is determined based on the Stevens' Law corresponding to the perceived brightness of the human eye. The atmosphere lamp brightness control module is configured to control the atmosphere lamp of the vehicle to work based on the target brightness.

[0006] In a third aspect, an electronic device is provided, which includes a memory and a processor, the memory is coupled to the processor, and the memory stores instructions, when the instructions are executed by the processor, the processor executes the control method of the in-vehicle atmosphere lamp provided in the first aspect.

[0007] In a fourth aspect, a vehicle is provided, which includes the electronic device provided in the third aspect.

[0008] In a fifth aspect, a computer readable storage medium is provided, which stores program codes, the program codes can be invoked by a processor to execute the control method of the in-vehicle atmosphere lamp provided in the first aspect.

[0009] In the scheme of the present application, the remaining time length for the traffic light closest to the driving path of the ego vehicle changing from the first color of red or green to the second color of red or green different from the first color is obtained as the first time length, and the time length for the traffic light keeping the first color under the current motion state of the ego vehicle is obtained as the second time length; then, the target brightness is determined according to the brightness calculation function determined based on the Stevens law corresponding to the human eye perceived brightness, the ambient light brightness in the ego vehicle, the first time length and the second time length, and the atmosphere lamp of the ego vehicle is controlled to work based on the target brightness, so as to determine the brightness of the atmosphere lamp according to the traffic light signal, to drive the atmosphere lamp to remind the driver to drive at different brightness, thereby improving the diversity of the atmosphere lamp control, improving the safety of the vehicle driving, and improving the user experience. BRIEF DESCRIPTION OF DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0011] Figure 1 A flowchart of the control method of the in-vehicle atmosphere lamp provided by an embodiment of the present application is shown; Figure 2 A flowchart of the control method of the in-vehicle atmosphere lamp provided by an embodiment of the present application is shown; Figure 3 A flowchart of the control method of the in-vehicle atmosphere lamp provided by an embodiment of the present application is shown; Figure 4 A flowchart of the control method of the in-vehicle atmosphere lamp provided by an embodiment of the present application is shown; Figure 5A flowchart illustrating a method for controlling in-vehicle ambient lighting according to an embodiment of this application is shown. Figure 6 A block diagram of a vehicle interior ambient lighting control device according to an embodiment of this application is shown; Figure 7 A block diagram of an electronic device for performing a vehicle interior ambient lighting control method according to an embodiment of this application is shown. Detailed Implementation

[0012] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0013] The implementation details of the technical solutions in the embodiments of this application are described in detail below: With technological advancements, ambient lighting in vehicles has become an indispensable part of smart cockpits, providing drivers with a more personalized, comfortable, and safe experience. However, most current ambient lighting systems only offer basic illumination and color adjustment functions, rarely used to indicate critical states such as traffic lights during intelligent driving. Even where technologies exist to synchronize traffic light status with light colors, the interaction methods remain simplistic.

[0014] To address the aforementioned problems, the inventors, through extensive research, have developed a method, device, and vehicle for controlling in-vehicle ambient lighting, as described in this application. By determining the brightness of the ambient lighting based on traffic light signals, the ambient lighting is driven to provide different brightness levels to alert the driver, thus improving the versatility of ambient lighting control, enhancing vehicle driving safety, and improving the user experience. The specific control method for the in-vehicle ambient lighting will be described in detail in subsequent embodiments.

[0015] The embodiments involved in this application will now be described with reference to the accompanying drawings.

[0016] Please see Figure 1 , Figure 1 A flowchart illustrating a method for controlling ambient lighting in a vehicle according to an embodiment of this application is shown. In a specific embodiment, this method for controlling ambient lighting in a vehicle can be applied to, for example... Figure 6 The illustrated vehicle interior ambient lighting control device 200 and the electronic device 100 equipped with the vehicle interior ambient lighting control device 200 are shown. Figure 7 The following will use an electronic device as an example to illustrate the specific process of this embodiment. Of course, it is understood that the electronic device used in this embodiment may include vehicles, in-vehicle terminals, computers, etc., and is not limited thereto. The following will focus on... Figure 1 The process shown will be described in detail. The method for controlling the ambient lighting inside the vehicle may specifically include the following steps: Step S110: acquiring, as a first time length, a remaining time length for the traffic light closest to the self vehicle to change from a first color to a second color, wherein the first color is red or green, and the second color is red or green, and the first color is different from the second color.

[0017] In some embodiments, the electronic device in the present embodiment can be a vehicle, which can be understood as a self vehicle, and the self vehicle can be provided with an ambient light. In the process of driving, the self vehicle can acquire, by a navigation system of the self vehicle, a current color of a traffic light closest to a driving path of the self vehicle, and acquire, in a case where the current color of the traffic light is determined to be a first color, a remaining time length for the traffic light to change from the first color to a second color as a first time length. The first time length can be a theoretical time length for the traffic light closest to the driving path to change from the first color to the second color, or can be a remaining time length for the traffic light closest to the driving path to change from the first color to the second color at a current time.

[0018] The first color can be red or green, and the second color can be red or green, and the second color is different from the first color. Optionally, the current color of the traffic light can be the first color, or can be a color other than the first color, which is not limited herein.

[0019] In some embodiments, after acquiring the current color of the traffic light closest to the driving path, the self vehicle can control the ambient light to work based on the current color. For example, the self vehicle can control the color of the ambient light to match the current color of the traffic light, as shown in Table 1. Table 1 Red light state Ambient light presents color Red light Red Green light Green Yellow light Yellow Thus, the ambient light is used to display the current state of the traffic light in different colors, improving the driving experience of the user.

[0020] Step S120: acquiring, as a second time length, a time length for the traffic light to maintain the first color in a current motion state of the self vehicle.

[0021] In some embodiments, after acquiring the first time length, the self vehicle can acquire, as a second time length, a time length for the traffic light closest to the driving path to maintain the first color in a current motion state of the self vehicle. Optionally, the self vehicle can acquire, as the second time length, a time length for the traffic light closest to the driving path to maintain the first color in a state of parking; or the self vehicle can acquire, as the second time length, a time length for the traffic light closest to the driving path to maintain the first color in a state of driving, which is not limited herein.

[0022] For example, the first color is red, and the self vehicle can obtain, in a stopped state (e.g., a vehicle speed of 0), a duration for which a nearest traffic light in front of a driving path remains red as the second duration during a process in which the self vehicle obtains a vehicle speed of 0.

[0023] Step S130: determining a target brightness according to a brightness calculation function, an ambient light brightness in the self vehicle, the first duration, and the second duration, wherein the brightness calculation function is determined based on a Stevens law corresponding to a human eye perceived brightness.

[0024] In some embodiments, the self vehicle can perceive the ambient light brightness in the self vehicle in real time through an in-vehicle light sensor, and can determine the target brightness according to the brightness calculation function, the ambient light brightness in the self vehicle, the first duration, and the second duration after obtaining the first duration and the second duration.

[0025] In this embodiment, the brightness calculation function can be determined based on a Stevens law corresponding to a human eye perceived brightness, considering that a level of the human eye perceived brightness is nonlinear, and in the same environment, a brightness change is small when the brightness is relatively dark, and a perceived brightness level is increased by one; and the brightness change is large when the brightness is relatively bright, and the perceived brightness level is increased by one. γ In this embodiment, the brightness calculation function can be determined based on a Stevens law corresponding to a human eye perceived brightness, considering the influence of the ambient light. γ / (I_env + I0) β , wherein S can represent a human eye perceived brightness (a subjective brightness feeling), I_target can represent a physical brightness of the ambient light, I_env can represent an ambient light brightness, k0 can represent a reference sensitivity constant (a sensitivity under a standard or a preset reference environment), γ can represent a Stevens index (e.g., 0.33-0.5, etc.), β can represent an ambient light adaptation coefficient (e.g., 0.5-0.8, etc.), and I0 can represent a dark noise constant (which can prevent division by zero and represent an internal noise level of a visual system). For example, the Stevens index γ can be 0.4, the ambient light adaptation coefficient β can be 0.6, the reference sensitivity constant k0 can be 1.0, and the dark noise constant I0 can be 0.01 cd / m 2 .

[0026] In this embodiment, the self vehicle can determine the target brightness according to the brightness calculation function, the ambient light brightness in the self vehicle, the first duration, and the second duration after determining the Stevens law corresponding to the human eye perceived brightness. For example, the brightness calculation function can be: I_target= [k*(1-t)*I_envα*γ + c * t * I_env β*γ ] 1 / γ Wherein, I_target can represent the target brightness, k can represent the minimum sensitivity constant (e.g., 0.01-0.05, etc.), t can represent the ratio of the second time length to the first time length, I_env can represent the ambient light brightness in the vehicle, a can represent the minimum ambient light adaptation coefficient (e.g., 0.5-0.8, etc.), g can represent the Stevens index (e.g., 0.33-0.5, etc.), c can represent the minimum sensitivity constant (e.g., 10-100, etc.), and b can represent the maximum ambient light adaptation coefficient (e.g., 0.3-0.6, etc.). Wherein, the time length that the traffic light remains the first color in the current motion state of the vehicle can be t, wherein t can be normalized so that t∈[0, 1], and the corresponding first time length can be 1. The remaining waiting time for the vehicle to wait for the traffic light to change from the first color to the second color can be (1-t). Thus, the target brightness of the control atmosphere lamp is determined according to the ambient light brightness in the vehicle, the first time length, and the second time length, wherein the target brightness is positively correlated with the second time length. In the process of waiting for the traffic light to change color, the smaller the traffic light color change countdown, the greater the brightness of the atmosphere lamp, so as to drive the atmosphere lamp to remind the driver to drive at different brightness, thereby improving the user's experience.

[0027] Step S140: controlling the atmosphere lamp of the vehicle to work based on the target brightness.

[0028] In some embodiments, after the vehicle determines the target brightness in real time, the atmosphere lamp of the vehicle can be controlled to work based on the target brightness determined in real time, so as to drive the atmosphere lamp to remind the driver to drive at different brightness, thereby improving the user's experience.

[0029] For example, please refer to Figure 2Fig. 1 shows an interaction diagram of a control method of an in-vehicle atmosphere lamp according to an embodiment of the present application. In the figure, the ego vehicle can obtain, through a navigation module, a remaining time length for a traffic light closest to the ego vehicle in a driving path to change from a first color to a second color, as a first time length, and a time length for the traffic light to keep the first color in a current motion state of the ego vehicle, as a second time length. The navigation module can send the first time length and the second time length to an atmosphere lamp control logic module of the ego vehicle. The atmosphere lamp control logic module can determine a target brightness according to a brightness calculation function determined based on the Stevens law corresponding to the perceived brightness of the human eye, the ambient light brightness in the ego vehicle, the first time length, and the second time length. The atmosphere lamp control logic module can send the target brightness to the atmosphere lamp of the ego vehicle to control the atmosphere lamp to work based on the target brightness. Thus, the countdown state of the color change of the closest traffic light on the driving path of the ego vehicle is represented by adjusting the brightness of the atmosphere lamp, and a reminder of the color change of the traffic light is provided for the driver and passengers in the vehicle, so that the driver can be mentally prepared for the traffic indication in advance, the safety of vehicle driving is improved, and the user experience is improved.

[0030] The control method of the in-vehicle atmosphere lamp provided by an embodiment of the present application can obtain a remaining time length for a traffic light closest to the ego vehicle in a driving path to change from a first color to a second color, as a first time length, and a time length for the traffic light to keep the first color in a current motion state of the ego vehicle, as a second time length. Then, a target brightness is determined according to a brightness calculation function determined based on the Stevens law corresponding to the perceived brightness of the human eye, the ambient light brightness in the ego vehicle, the first time length, and the second time length, and the atmosphere lamp of the ego vehicle is controlled to work based on the target brightness. Thus, the brightness of the atmosphere lamp is determined according to the traffic light signal, so that the driver is reminded to drive at different brightness, the diversity of the control of the atmosphere lamp is improved, the safety of vehicle driving is improved, and the user experience is improved.

[0031] Please refer to Figure 3 , Figure 3 Fig. 1 shows a flowchart of a control method of an in-vehicle atmosphere lamp according to an embodiment of the present application. The method is applied to the electronic device described above, and will be described in detail below with reference to the flowchart shown in Fig. 1. The control method of the in-vehicle atmosphere lamp can specifically include the following steps. Figure 3 Step S210: obtaining a remaining time length for a traffic light closest to the ego vehicle in a driving path to change from a first color to a second color, as a first time length, wherein the first color is red or green, the second color is red or green, and the first color is different from the second color.

[0032] ​The specific description of step S210 can refer to the foregoing description of step S110, and will not be described in detail here.

[0033] Step S220: If the first color is red, the duration that the traffic light remains red in the stop state of the vehicle is obtained as the second duration.

[0034] In some embodiments, the first color can be understood as the current color of the traffic light closest to the vehicle in the driving path of the vehicle. After obtaining the first duration, the vehicle can obtain the running state of the vehicle, and obtain the second duration according to the running state and the first color of the traffic light. Alternatively, if the first color is red, the vehicle can obtain the duration that the traffic light remains red in the stop state of the vehicle as the second duration. Thus, for the scenario of the vehicle waiting for the red light to turn green, the brightness of the ambient light of the vehicle is controlled, providing a more friendly human-computer interaction for the driver and passenger of the vehicle when waiting for the traffic light, and improving the user experience.

[0035] For example, the vehicle can obtain the duration that the traffic light remains red when the vehicle speed is zero as the second duration. Alternatively, the vehicle can also obtain the duration that the traffic light remains red when the vehicle speed is less than a first speed threshold as the second duration. The first speed threshold can be pre-set in the vehicle, can be determined by third-party experimental data, or can be set by the user, which is not limited here.

[0036] Step S230: If the first color is green, the duration that the traffic light remains green in the driving state of the vehicle is obtained as the second duration.

[0037] In some embodiments, the first color can be understood as the current color of the traffic light closest to the vehicle in the driving path of the vehicle. After obtaining the first duration, the vehicle can obtain the running state of the vehicle, and obtain the second duration according to the running state and the first color of the traffic light. Alternatively, if the first color is green, the vehicle can obtain the duration that the traffic light remains green in the driving state of the vehicle as the second duration. Thus, for the scenario of the vehicle driving when the green light turns red, the brightness of the ambient light of the vehicle is controlled, improving the concentration of the user when driving the vehicle under the green light, and improving the safety of vehicle driving.

[0038] For example, the vehicle can obtain the duration that the traffic light remains green when the vehicle speed is greater than a second speed threshold as the second duration. The second speed threshold can be pre-set in the vehicle, can be determined by third-party experimental data, or can be set by the user, which is not limited here. The second speed threshold is greater than the first speed threshold.

[0039] Step S240: determining the minimum brightness and the maximum comfortable brightness perceived by the human eye according to the brightness calculation function and the ambient light brightness.

[0040] In some embodiments, the ego vehicle can obtain the ambient light brightness of the ego vehicle in real time, and can determine the minimum brightness perceived by the human eye according to the brightness calculation function and the ambient light brightness obtained in real time. In the ego vehicle, a calculation formula of the minimum brightness under various ambient lights can be pre-set: I_min = k*I_env α wherein k can represent a minimum sensitivity constant (e.g., 0.01-0.05, etc.), wherein a can represent a minimum ambient light adaptation coefficient (e.g., 0.5-0.8, etc.), and wherein I_min can represent the minimum brightness under various ambient lights and I_env can represent the ambient light brightness. Further, the ego vehicle can obtain a calculation formula of the minimum brightness perceived by the human eye corresponding to the brightness calculation function according to the calculation formula of the minimum brightness under various ambient lights and the human eye perception ability: S_min = k0*k*I_env α*γ / (I_env + I0) β wherein S_min can represent the minimum brightness perceived by the human eye, k0 can represent a reference sensitivity constant (e.g., 1, etc.), k can represent a minimum sensitivity constant (e.g., 0.01-0.05, etc.), I_env can represent the ambient light brightness, a can represent a minimum ambient light adaptation coefficient (e.g., 0.5-0.8, etc.), g can represent a Stevens exponent (e.g., 0.33-0.5, etc.), I0 can represent a dark noise constant (e.g., 0.01 cd / m 2 2, etc.), and b can represent a maximum ambient light adaptation coefficient (e.g., 0.3-0.6, etc.). The ego vehicle can determine the minimum brightness perceived by the human eye according to the calculation formula of the minimum brightness perceived by the human eye corresponding to the brightness calculation function and the ambient light brightness.

[0041] In some embodiments, the ego vehicle can obtain the ambient light brightness of the ego vehicle in real time, and can determine the maximum comfortable brightness perceived by the human eye according to the brightness calculation function and the ambient light brightness obtained in real time. In the ego vehicle, a calculation formula of the maximum comfortable brightness under various ambient lights can be pre-set: I_max = c*I_env β wherein c can represent a maximum sensitivity constant (e.g., 10-100, etc.), wherein β can represent a maximum ambient light adaptation coefficient (e.g., 0.3-0.6, etc.), and wherein I_max can represent a maximum comfortable brightness under various ambient lights, and I_env can represent an ambient light brightness. Further, the ego vehicle can obtain a calculation formula of the maximum comfortable brightness perceived by the human eye corresponding to the brightness calculation function according to the calculation formula of the maximum comfortable brightness under various ambient lights and the human eye perception ability: S_max = k0 * c * I_env β*γ / (I_env + I0) β wherein S_max can represent the maximum comfortable brightness perceived by the human eye, k0 can represent a reference sensitivity constant (e.g., 1, etc.), c can represent a maximum sensitivity constant (e.g., 10-100, etc.), I_env can represent an ambient light brightness, β can represent a maximum ambient light adaptation coefficient (e.g., 0.3-0.6, etc.), γ can represent a Stevens exponent (e.g., 0.33-0.5, etc.), and I0 can represent a dark noise constant (e.g., 0.01 cd / m2, etc.). The ego vehicle can determine the maximum comfortable brightness perceived by the human eye according to the calculation formula of the maximum comfortable brightness perceived by the human eye corresponding to the brightness calculation function and the ambient light brightness. 2

[0042] Step S250: determining the target brightness according to the minimum brightness, the maximum comfortable brightness, the first time length, and the second time length.

[0043] In some embodiments, after the ego vehicle obtains the minimum brightness perceived by the human eye, the maximum comfortable brightness perceived by the human eye, the first time length, and the second time length in real time, the ego vehicle can determine the target brightness according to the minimum brightness, the maximum comfortable brightness, the first time length, and the second time length. In the ego vehicle, a mapping relationship between the brightness perceived by the human eye and various ambient lights can be pre-set, and the target brightness can be determined according to the mapping relationship, the minimum brightness perceived by the human eye, the maximum comfortable brightness perceived by the human eye, the first time length, and the second time length.

[0044] wherein the mapping relationship can include a mapping relationship formula: S(t) = S_min + (S_max – S_min)*t.

[0045] wherein S(t) can represent the brightness perceived by the human eye, S_min can represent the minimum brightness perceived by the human eye, S_max can represent the maximum comfortable brightness perceived by the human eye, and t can represent a ratio of the second time length to the first time length.

[0046] ​In determining the target brightness based on minimum brightness, maximum comfort brightness, a first duration, and a second duration, the vehicle can obtain the ratio of the second duration to the first duration as the target ratio. Furthermore, the target brightness is determined based on the minimum brightness, maximum comfort brightness, and the target ratio, with the target brightness being positively correlated with these parameters. This can be understood as follows: the longer the traffic light remains in its first color while the vehicle is in motion, the brighter the ambient lighting. Alternatively, the shorter the countdown before the traffic light changes from the first to the second color, the brighter the ambient lighting. This provides passengers with a sense of urgency as the traffic light nears its end, allowing the driver to better prepare mentally for driving and improving the user experience.

[0047] in: The brightness perceived by the human eye is S(t) = k0 * I_target γ / (I_env + I0) β The minimum brightness perceived by the human eye is S_min = k0 * k * I_env α*γ / (I_env + I0) β The maximum comfortable brightness perceived by the human eye is S_max = k0*c*I_env β*γ / (I_env + I0) β Target ratio t = second duration / first duration Combining the mapping relationship, we can obtain: S(t) = k0*k*I_env α*γ / (I_env + I0) β +[ k0*c*I_env β*γ / (I_env + I0) β - k0*k*I_env α*γ / (I_env + I0) β ]*t k0*I_target γ / (I_env + I0) β = k0*k*I_env α*γ / (I_env + I0) β +[k0*c* I_env β*γ / (I_env + I0) β - k0*k*I_env α*γ / (I_env + I0) β ]*t I_target γ = k*I_env α*γ + (c*I_env β*γ - k*I_env α*γ ) *t I_target = [k*I_env α*γ + (c*I_env β*γ - k*I_env α*γ ) *t] 1 / γ Thus, the target brightness I_target = [k*(1-t)*I_env α*γ + c*t*I_env β*γ ] 1 / γ wherein k can represent a minimum sensitivity constant, I_env can represent the ambient light brightness in the ego vehicle, a can represent a minimum ambient light adaptation coefficient, g can represent a Stevens exponent, c can represent a maximum sensitivity constant, and b can represent a maximum ambient light adaptation coefficient. Wherein the ego vehicle can be pre-configured with k, a, g, c, and b; wherein the ego vehicle can determine the target brightness I_target after obtaining the ratio t of the second time duration to the first time duration and the ambient light brightness I_env in the ego vehicle. Thus, the target brightness is determined according to the ambient light brightness, the remaining time duration for the distance closest traffic light on the driving path of the ego vehicle to change from the first color to the second color, and the time duration for the traffic light to remain the first color under the current motion state of the ego vehicle, and the ambient light of the ego vehicle is driven to display different target brightness to remind the driver of the traffic signal, thereby improving the safety of vehicle driving and the user experience.

[0048] Step S260: controlling the ambient light of the ego vehicle to work based on the target brightness.

[0049] Wherein, for specific description of step S260, please refer to the foregoing description of step S140, which will not be described in detail here.

[0050] Compared with the ambient light control method of the vehicle shown in the prior art, Figure 1 the embodiment provided by the present application can determine the minimum brightness and maximum comfortable brightness perceived by the human eye according to the brightness calculation function and the ambient light brightness; determine the target brightness according to the minimum brightness, the maximum comfortable brightness, the first time duration, and the second time duration, so as to control the brightness of the ambient light between the minimum brightness and the maximum comfortable brightness perceived by the human eye, avoid the influence of the brightness of the ambient light on the safety of driving, and control the brightness of the ambient light within the range of the brightness perceived by the user, thereby ensuring the effectiveness of the brightness adjustment of the ambient light and improving the user experience.

[0051] In addition, the embodiment can further acquire, if the first color is red, a time length for which the traffic light remains red in a stop state of the ego vehicle as the second time length, thereby adjusting the brightness of the ambient light for a scenario in which the vehicle waits for the traffic light to turn green, providing a sense of urgency to the driver on the vehicle when the traffic light is about to end, and improving the concentration and safety of the user during driving. Meanwhile, the embodiment can further acquire, if the first color is green, a time length for which the traffic light remains green in a driving state of the ego vehicle as the second time length, thereby adjusting the brightness of the ambient light for a scenario in which the traffic light changes from green to red during driving of the vehicle, improving the concentration and safety of the user during driving.

[0052] Referring to Figure 4 , Figure 4 A flowchart of a control method of an ambient light in a vehicle according to an embodiment of the present application is shown. The method is applied to the electronic device described above, and will be described in detail below with reference to the flowchart shown in Figure 4 The control method of the ambient light in the vehicle can specifically include the following steps: Step S310: Acquire a remaining time length for which a traffic light closest to the ego vehicle changes from a first color to a second color as a first time length, wherein the first color is red or green, the second color is red or green, and the first color is different from the second color.

[0053] Step S320: Acquire a time length for which the traffic light remains in the first color in a current motion state of the ego vehicle as a second time length.

[0054] Step S330: Determine a target brightness according to a brightness calculation function, an ambient light brightness in the ego vehicle, the first time length, and the second time length, wherein the brightness calculation function is determined based on the Stevens' law corresponding to the perceived brightness of the human eye.

[0055] Step S340: Control the ambient light of the ego vehicle to work based on the target brightness.

[0056] For specific descriptions of steps S310-S340, please refer to the foregoing descriptions of steps S110-S140, which will not be repeated here.

[0057] Step S350: Determine a target flicker frequency according to the first time length and the second time length.

[0058] In some embodiments, after acquiring the first time length and the second time length, the ego vehicle can determine a target flicker frequency according to the first time length and the second time length, to drive the ambient light to flicker at different frequencies based on the target flicker frequency, to remind the driver to drive safely.

[0059] In some embodiments, in the process of determining the target flickering frequency of the ambient light according to the first time length and the second time length, the current control stage can be determined according to the second time length and the first time length, and the time length for which the traffic light remains in the first color in the current control stage can be determined as the third time length according to the first time length and the second time length; and the ambient light control frequency corresponding to the current control stage can be determined as the target flickering frequency according to the control parameter corresponding to the current control stage and the third time length.

[0060] The current control stage can be any one of the first stage, the second stage, and the third stage; the first stage, the second stage, and the third stage can be three sub-stages divided in time order within the first time length. The ambient light control frequency can be positively correlated with the control parameter and the third time length. The control parameter corresponding to the first stage can be less than the control parameter corresponding to the second stage, and the control parameter corresponding to the second stage can be less than the control parameter corresponding to the third stage, so that the less the countdown for the traffic light to change from the first color to the second color, the faster the flickering frequency of the ambient light, providing the driver with a sense of urgency when the traffic light is about to end, so that the driver can better prepare for driving the vehicle in advance, and the user experience is improved.

[0061] For example, the vehicle obtains the distance closest to the red light on the driving path, and the first color of the red light is pre-set in the vehicle as red. At this time, the vehicle can obtain the time length from the time when the vehicle speed is 0 to the time when the red light turns green as the first time length T, and can obtain the time length for which the red light remains red when the vehicle speed is 0 as the second time length. The first time length can be divided into three segments (e.g., the first stage, the second stage, and the third stage). For example, the first stage can be that the ratio of the difference between the first time length and the second time length to the first time length is greater than or equal to a first stage threshold (e.g., 70% or the like); the second stage can be that the ratio of the difference between the first time length and the second time length to the first time length is less than the first stage threshold and greater than or equal to a second stage threshold (e.g., 30% or the like), and the first time length is greater than a first threshold (e.g., 10s); and the third stage can be that the ratio of the difference between the first time length and the second time length to the first time length is less than the second stage threshold, and the first time length is greater than a second threshold (e.g., 3s), so that the three sub-stages (the time period corresponding to the first stage accounts for 30% of the time period corresponding to the first time length, the time period corresponding to the second stage accounts for 40% of the time period corresponding to the first time length, and the time period corresponding to the third stage accounts for 30% of the time period corresponding to the first time length) are divided in time order within the first time length.

[0062] If T < 3s, the current control stage can be the third stage; if T < 10s, the current control stage can be the second stage or the third stage; otherwise, the current control stage can be any one of the first stage, the second stage, and the third stage. It should be noted that in the process of dividing the sub-stages in the first time period according to time, the third stage needs to have a certain time (for example, 3s), so as to ensure the effectiveness of the control of the atmosphere lamp frequency.

[0063] Optionally, the ego vehicle can also normalize the first time period and the second time period, so that the first time period and the second time period are both less than 1, so as to reduce the calculation amount of determining the current control stage based on the first time period and the second time period.

[0064] As an implementable manner, in the process of determining the current control stage according to the second time period and the first time period, if it is determined that the first time period is greater than the first threshold value, and the ratio of the second time period to the first time period is less than the first ratio, the current control stage can be determined as the first stage.

[0065] The first threshold value can be pre-set in the ego vehicle, and can be obtained by third-party experimental data or set by the user; for example, the first threshold value can be determined as 10s, 11s, 12s, etc. by third-party experimental data, which is not limited herein. The first ratio can also be pre-set in the ego vehicle, and can be determined by third-party experimental data or set by the user; for example, the first ratio can be determined as 70%, 60%, 80%, etc. by third-party experimental data, which is not limited herein.

[0066] As another implementable manner, in the process of determining the current control stage according to the second time period and the first time period, if it is determined that the first time period is greater than the first threshold value, and the ratio of the second time period to the first time period is greater than or equal to the first ratio and less than or equal to the second ratio, the current control stage can be determined as the second stage.

[0067] The second ratio can also be pre-set in the ego vehicle, and can be determined by third-party experimental data or set by the user; for example, the second ratio can be determined as 30%, 40%, 20%, etc. by third-party experimental data, which is not limited herein.

[0068] As another implementable manner, in the process of determining the current control stage according to the second time period and the first time period, if it is determined that the first time period is greater than the first threshold value, and the ratio of the second time period to the first time period is greater than the second ratio, the current control stage can be determined as the third stage.

[0069] As another implementable manner, in the process of determining the current control stage according to the second time length and the first time length, if it is determined that the first time length is less than or equal to the first threshold value, greater than the second threshold value, and the difference between the first time length and the second time length is greater than the third threshold value, it can be determined that the current control stage is the second stage.

[0070] The second threshold value can be pre-set in the ego vehicle, can be obtained through third-party experimental data, or can be set by the user. For example, the second threshold value can be determined as 3s, 4s, 5s, etc. through third-party experimental data, without limitation. The third threshold value can be pre-set in the ego vehicle, can be obtained through third-party experimental data, or can be set by the user. For example, the third threshold value can be determined as 3s, 4s, 5s, etc. through third-party experimental data, without limitation. The third threshold value can be equal to the second threshold value.

[0071] As another implementable manner, in the process of determining the current control stage according to the second time length and the first time length, if it is determined that the first time length is less than or equal to the first threshold value, greater than the second threshold value, and the difference between the first time length and the second time length is less than or equal to the third threshold value, it is determined that the current control stage is the third stage.

[0072] As another implementable manner, in the process of determining the current control stage according to the second time length and the first time length, if it is determined that the first time length is less than or equal to the first threshold value, and less than or equal to the second threshold value, it is determined that the current control stage is the third stage.

[0073] In some embodiments, after the ego vehicle determines the current control stage of the atmosphere lamp, the ego vehicle can determine the time length of the traffic light remaining the first color in the current control stage as the third time length according to the first time length and the second time length. For example, the ego vehicle can pre-set a calculation method of the time length of the traffic light remaining the first color in each of the three sub-stages divided in time sequence from the first time length; wherein the time length of the traffic light remaining the first color in each sub-stage t∈[0, 1].

[0074] For example, please refer to Figure 5Fig. 1 shows a flowchart of a control method of an in-vehicle atmosphere lamp according to an embodiment of the present application. In the method, a remaining time T of a traffic light closest to the vehicle from a front of a driving path of the vehicle changing from a first color to a second color is obtained, and a time T1 of the traffic light keeping the first color under a current motion state of the vehicle is obtained. If T is greater than a first threshold (e.g., 10s), it is determined whether a ratio of T1 to T is less than a first ratio (e.g., 0.3). If the ratio of T1 to T is less than the first ratio, it is determined that a current control stage is a first stage, and a time t of the traffic light keeping the first color under the current control stage is determined as a third time according to T and T1 (t=1- (0.3T-T1) / 0.3T). If T is greater than the first threshold, and the ratio of T1 to T is greater than or equal to the first ratio and less than or equal to a second ratio (e.g., 0.7), it is determined that the current control stage is a second stage, and the time t of the traffic light keeping the first color under the current control stage is determined as the third time according to T and T1 (t=1- (0.7T-T1) / 0.4T). If T is greater than the first threshold, and the ratio of T1 to T is greater than the second ratio, it is determined that the current control stage is a third stage, and the time t of the traffic light keeping the first color under the current control stage is determined as the third time according to T and T1 (t=1- (T-T1) / 0.3T).

[0075] If T is less than or equal to the first threshold and greater than a second threshold (e.g., 3s), and a difference between T and T1 is greater than a third threshold (e.g., 3s), it is determined that the current control stage is the second stage, and the time t of the traffic light keeping the first color under the current control stage is determined as the third time according to T and T1 (t=1- (T-3-T1) / (T-3)). If T is less than or equal to the first threshold and greater than the second threshold, and the difference between T and T1 is less than or equal to the third threshold (e.g., 3s), it is determined that the current control stage is the third stage, and the time t of the traffic light keeping the first color under the current control stage is determined as the third time according to T and T1 (t=3- (T-T1) / 3). If T is less than or equal to the second threshold, it is determined that the current control stage is the third stage, and the time t of the traffic light keeping the first color under the current control stage is determined as the third time according to T and T1 (t=1- (T-T1) / T).

[0076] In some embodiments, the first stage, the second stage and the third stage are three sub-stages divided in time sequence in the first time length, and each sub-stage corresponds to a control parameter, wherein the control parameter corresponding to the first stage is less than the control parameter corresponding to the second stage, and the control parameter corresponding to the second stage is less than the control parameter corresponding to the third stage according to the order of the time period corresponding to each sub-stage in the first time length.

[0077] The ego vehicle can determine the ambient light control frequency corresponding to the current control stage as the target flicker frequency according to the control parameter corresponding to the current control stage and the third time length. The ambient light control frequency is positively correlated with the control parameter and the third time length, so that the frequency of ambient light flickering is greater as the countdown of the traffic light keeping the first color is smaller.

[0078] For example, referring again to Figure 5 , the ego vehicle can be pre-configured with a target flicker frequency calculation formula: f(t) = a*t + b, where a and b can represent the control parameter corresponding to the current control stage, t can represent the third time length, and f(t) can represent the target flicker frequency, so that the ego vehicle can drive the ambient light to work based on the target flicker frequency. For example, the first stage, the second stage and the third stage are three sub-stages divided in time sequence in the first time length, and each sub-stage can correspond to a control parameter including a and b; wherein the control parameter corresponding to the first stage: a = 2.5, b = 0.5, the control parameter corresponding to the second stage: a = 5, b = 3, and the control parameter corresponding to the third stage: a = 7, b = 8. Thus, the ego vehicle can express the current traffic light countdown state through the flicker frequency of the ambient light, provide a more friendly human-machine interaction for the driver and passengers on the vehicle when waiting for the traffic light, and provide a sense of urgency for the driver and passengers on the vehicle when the traffic light is about to end, thereby improving the user experience.

[0079] For example, the target flicker frequency corresponding to each of the three sub-stages divided in time sequence in the first time length by the ego vehicle is shown in Table 2.

[0080] Table 2 Current control stage Target flicker frequency Visual perception effect First stage (remaining time for the vehicle to wait for the red light to change from the first color to the second color ≥ 70% of the first duration) 0.5hz ~ 3hz Slow prompt similar to heartbeat Second stage (remaining time for the vehicle to wait for the red light to change from the first color to the second color is 70% ~ 30% of the first duration) 3hz ~ 8hz Obvious rhythm acceleration (breath light effect) Third stage (remaining time for the vehicle to wait for the red light to change from the first color to the second color is below 30% of the first duration) 8hz ~ 15hz Rapid flicker (similar to alarm reminder) The maximum flicker frequency is less than 60 hz, which avoids the situation that people cannot distinguish the flicker of the ambient light, and also avoids the situation that the flicker frequency is too large, which makes the user restless, and the segmented control of the flicker frequency of the ambient light enhances the effect of the traffic light state countdown display.

[0081] Step S360: controlling the ambient light to work based on the target flicker frequency.

[0082] In some embodiments, after determining the target flickering frequency, the ego vehicle can control the ambient light to work based on the target flickering frequency. Thus, the ambient light is used to show the current countdown state of the traffic light with different flickering frequencies, which improves the user experience.

[0083] The control method of the ambient light in the vehicle provided by an embodiment of the present application can determine the target flickering frequency according to the first time length and the second time length, and control the ambient light to work based on the target flickering frequency, so as to provide the urgency of the end of the traffic light for the driver and passenger on the vehicle through the brightness and flickering frequency of the ambient light, provide a more friendly human-computer interaction for the driver and passenger on the vehicle when waiting for the traffic light, and improve the user experience. Figure 1 The control method of the ambient light in the vehicle provided by an embodiment of the present application can determine the target flickering frequency according to the first time length and the second time length, and control the ambient light to work based on the target flickering frequency, so as to provide the urgency of the end of the traffic light for the driver and passenger on the vehicle through the brightness and flickering frequency of the ambient light, provide a more friendly human-computer interaction for the driver and passenger on the vehicle when waiting for the traffic light, and improve the user experience.

[0084] Please refer to Figure 6 , Figure 6 A module block diagram of the control device of the ambient light in the vehicle provided by an embodiment of the present application is shown. The control device of the ambient light in the vehicle 200 is applied to the electronic device described above, and the following will be described in detail with respect to the flow shown in Figure 6 The control device of the ambient light in the vehicle 200 includes a traffic light color change remaining time length acquisition module 210, an ego vehicle waiting traffic light color change time length acquisition module 220, a target brightness determination module 230, and an ambient light brightness control module 240, wherein: The traffic light color change remaining time length acquisition module 210 is configured to acquire the remaining time length for the closest traffic light in front of the driving path of the ego vehicle to change from a first color to a second color as a first time length, wherein the first color is red or green, the second color is red or green, and the first color is different from the second color.

[0085] The ego vehicle waiting traffic light color change time length acquisition module 220 is configured to acquire the time length for the traffic light to remain in the first color under the current motion state of the ego vehicle as a second time length.

[0086] The target brightness determination module 230 is configured to determine a target brightness according to a brightness calculation function, the ambient light brightness in the ego vehicle, the first time length, and the second time length, wherein the brightness calculation function is determined based on the Stevens' Law corresponding to the human eye perceived brightness.

[0087] The ambient light brightness control module 240 is configured to control the ambient light of the ego vehicle to work based on the target brightness.

[0088] Further, the target brightness determination module 230 can include a minimum brightness determination unit and a target brightness determination first unit, wherein: A minimum brightness determination unit is configured to determine a minimum brightness and a maximum comfortable brightness perceived by a human eye according to the brightness calculation function and the ambient light brightness.

[0089] A target brightness determination first unit is configured to determine the target brightness according to the minimum brightness, the maximum comfortable brightness, the first time length, and the second time length.

[0090] Further, the target brightness determination first unit can include a target ratio acquisition unit and a target brightness determination second unit, wherein: The target ratio acquisition unit is configured to acquire a ratio of the second time length to the first time length as a target ratio.

[0091] The target brightness determination second unit is configured to determine the target brightness according to the minimum brightness, the maximum comfortable brightness, and the target ratio, wherein the target brightness is positively correlated with the minimum brightness, the maximum comfortable brightness, and the target ratio.

[0092] Further, the self-vehicle waiting time length acquisition module can include a second time length acquisition first unit and a second time length acquisition second unit, wherein: The second time length acquisition first unit is configured to acquire, if the first color is red, a time length for which the traffic light remains red in a stop state of the self-vehicle as the second time length.

[0093] The second time length acquisition second unit is configured to acquire, if the first color is green, a time length for which the traffic light remains green in a driving state of the self-vehicle as the second time length.

[0094] Further, the in-vehicle atmosphere lamp control device 200 can further include a current control stage determination unit, a third time length determination unit, a target flicker frequency determination unit, and an atmosphere lamp flicker frequency control unit, wherein: The current control stage determination unit is configured to determine a current control stage according to the second time length and the first time length, wherein the current control stage is any one of a first stage, a second stage, and a third stage, and the first stage, the second stage, and the third stage are three sub-stages divided in time sequence from the first time length.

[0095] The third time length determination unit is configured to determine, according to the first time length and the second time length, a time length for which the traffic light remains the first color in the current control stage as a third time length.

[0096] a target flicker frequency determination unit configured to determine, as the target flicker frequency, an ambient light control frequency corresponding to the current control stage according to the control parameter corresponding to the current control stage and the third time length, wherein the ambient light control frequency is positively correlated with the control parameter and the third time length, the control parameter corresponding to the first stage is less than the control parameter corresponding to the second stage, and the control parameter corresponding to the second stage is less than the control parameter corresponding to the third stage.

[0097] an ambient light flicker frequency control unit configured to control the ambient light to work based on the target flicker frequency.

[0098] Further, the current control stage determination unit can include a current control stage determination first unit, a current control stage determination second unit, a current control stage determination third unit, a current control stage determination fourth unit, a current control stage determination fifth unit, a current control stage determination sixth unit, and a current control stage determination seventh unit, wherein: the current control stage determination first unit is configured to determine the current control stage as the first stage if the first time length is greater than a first threshold value and a ratio of the second time length to the first time length is less than a first ratio.

[0099] the current control stage determination second unit is configured to determine the current control stage as the second stage if the first time length is greater than the first threshold value and the ratio of the second time length to the first time length is greater than or equal to the first ratio and less than or equal to a second ratio.

[0100] the current control stage determination third unit is configured to determine the current control stage as the third stage if the first time length is greater than the first threshold value and the ratio of the second time length to the first time length is greater than the second ratio.

[0101] the current control stage determination fourth unit is configured to determine the current control stage as the second stage if the first time length is less than or equal to the first threshold value and greater than a second threshold value and a difference between the first time length and the second time length is greater than a third threshold value.

[0102] the current control stage determination fifth unit is configured to determine the current control stage as the third stage if the first time length is less than or equal to the first threshold value and greater than the second threshold value and the difference between the first time length and the second time length is less than or equal to the third threshold value.

[0103] the current control stage determination sixth unit is configured to determine the current control stage as the third stage if the first time length is less than or equal to the first threshold value and less than or equal to the second threshold value.

[0104] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and module can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0105] In several embodiments provided in the present application, the coupling between the modules can be electrical, mechanical or other forms of coupling.

[0106] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically independently, or two or more modules can be integrated into one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.

[0107] Please refer to Figure 7 which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 can be a vehicle, a vehicle-mounted terminal, a server, a computer or the like having processing capability. The electronic device 100 in the present application can include one or more of the following components: a processor 110, a memory 120 and one or more application programs, wherein the one or more application programs can be stored in the memory 120 and configured to be executed by the one or more processors 110, and the one or more programs are configured to perform the method as described in the foregoing method embodiments.

[0108] The processor 110 can include one or more processing cores. The processor 110 connects various parts in the vehicle 100 by various interfaces and lines, performs various functions of the vehicle 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be realized in at least one of the hardware forms of a digital signal processing (DSP), a field-programmable gate array (FPGA) and a programmable logic array (PLA). The processor 110 can integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 110, but realized by a separate communication chip.

[0109] The memory 120 can include a Random Access Memory (RAM) and can also include a Read-Only Memory (ROM). The memory 120 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 can include a program storage area and a data storage area, where the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the method embodiments described below, and the like. The data storage area can also store data created by the electronic device 100 in use (such as a phonebook, audio / video data, chat record data), and the like.

[0110] In this embodiment, a program code is stored in a computer readable medium, and the program code can be invoked by a processor to execute the methods described in the above method embodiments.

[0111] The computer readable storage medium can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer readable storage medium includes a non-transitory computer readable medium. The computer readable storage medium has a storage space for program codes for executing any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program codes can be compressed in an appropriate form, for example.

[0112] In this application, multiple refers to two or more.

[0113] In this application, unless otherwise explicitly limited, the terms "mounting", "connected", "connecting" should be interpreted broadly, for example, can be fixedly connected, can also be detachably connected, or integrally connected; can be mechanically connected, can also be electrically connected; can be directly connected, can also be indirectly connected through an intermediate medium, can be internal communication of two elements. For those skilled in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances.

[0114] The terms "first", "second", "third", "fourth" and the like (if any) in this application are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence.

[0115] The term "and / or", within the context of the present application, is used to associate associated objects, and means that three relationships can exist, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. In addition, the character " / " within the present application generally means that the associated objects before and after are in an "or" relationship.

[0116] Unless otherwise specified, all steps in the present application can be performed in sequence or randomly. For example, the method comprises steps A and B, which means that the method can comprise steps A and B performed in sequence, or steps B and A performed in sequence. For example, the method can further comprise step C, which means that step C can be added to the method in any order, for example, the method can comprise steps A, B and C, or steps A, C and B, or steps C, A and B, etc.

[0117] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. Any modification, equivalent replacement and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for controlling ambient lighting inside a vehicle, characterized in that, The method includes: The remaining time before the nearest traffic light ahead of the vehicle changes from a first color to a second color is obtained, which is used as the first duration. The first color is either red or green, and the second color is either red or green. The first color and the second color are different. The duration for which the traffic light maintains the first color under the current motion state of the vehicle is obtained, which is used as the second duration; The target brightness is determined based on the brightness calculation function, the ambient light brightness inside the vehicle, the first duration, and the second duration, wherein the brightness calculation function is determined based on Stevens' law, which corresponds to the brightness perceived by the human eye. The ambient lighting of the vehicle is controlled to operate based on the target brightness.

2. The method according to claim 1, characterized in that, Determining the target brightness based on the brightness calculation function, the ambient light brightness, the first duration, and the second duration includes: Based on the brightness calculation function and the ambient light brightness, determine the minimum and maximum comfortable brightness perceived by the human eye; The target brightness is determined based on the minimum brightness, the maximum comfortable brightness, the first duration, and the second duration.

3. The method according to claim 2, characterized in that, Determining the target brightness based on the minimum brightness, the maximum comfortable brightness, the first duration, and the second duration includes: Obtain the ratio of the second duration to the first duration as the target ratio; The target brightness is determined based on the minimum brightness, the maximum comfortable brightness, and the target ratio, wherein the target brightness is positively correlated with the minimum brightness, the maximum comfortable brightness, and the target ratio.

4. The method according to claim 1, characterized in that, The step of obtaining the duration for which the traffic light maintains the first color under the current motion state of the vehicle, as the second duration, includes: If the first color is red, then the duration for which the traffic light remains red when the vehicle is stopped is obtained as the second duration; If the first color is green, then the duration for which the traffic light remains green while the vehicle is in motion is obtained as the second duration.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: Based on the second duration and the first duration, the current control stage is determined, wherein the current control stage is any one of the first stage, the second stage, and the third stage, and the first stage, the second stage, and the third stage are three sub-stages divided chronologically from the first duration. Based on the first duration and the second duration, the duration for which the traffic light maintains the first color during the current control phase is determined as the third duration; Based on the control parameters corresponding to the current control stage and the third duration, the ambient light control frequency corresponding to the current control stage is determined as the target flashing frequency. The ambient light control frequency is positively correlated with the control parameters and the third duration. The control parameters corresponding to the first stage are less than the control parameters corresponding to the second stage, and the control parameters of the second stage are less than the control parameters of the third stage. The ambient light is controlled to operate based on the target flashing frequency.

6. The method according to claim 5, characterized in that, Determining the current control phase based on the second duration and the first duration includes: If the first duration is greater than the first threshold, and the ratio of the second duration to the first duration is less than the first ratio, then the current control stage is determined to be the first stage; If the first duration is greater than the first threshold, and the ratio of the second duration to the first duration is greater than or equal to the first ratio and less than or equal to the second ratio, then the current control stage is determined to be the second stage. If the first duration is greater than the first threshold, and the ratio of the second duration to the first duration is greater than the second ratio, then the current control stage is determined to be the third stage. If the first duration is less than or equal to the first threshold and greater than the second threshold, and the difference between the first duration and the second duration is greater than the third threshold, then the current control stage is determined to be the second stage. If the first duration is less than or equal to the first threshold and greater than the second threshold, and the difference between the first duration and the second duration is less than or equal to the third threshold, then the current control stage is determined to be the third stage. If the first duration is less than or equal to the first threshold and less than or equal to the second threshold, then the current control stage is determined to be the third stage.

7. A control device for in-vehicle ambient lighting, characterized in that, The device includes: The traffic light color change remaining duration acquisition module is used to acquire the remaining duration when the nearest traffic light ahead of the vehicle changes from a first color to a second color, as the first duration. The first color is either red or green, and the second color is either red or green. The first color and the second color are different. The vehicle waiting time for the traffic light to change color module is used to determine the duration for which the traffic light maintains the first color while the vehicle is in its current motion state, and to use this duration as the second duration. The target brightness determination module is used to determine the target brightness based on the brightness calculation function, the ambient light brightness inside the vehicle, the first duration, and the second duration, wherein the brightness calculation function is determined based on Stevens' law, which corresponds to the brightness perceived by the human eye. An ambient light brightness control module is used to control the ambient lights of the vehicle to operate based on the target brightness.

8. An electronic device, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1-6.

9. A vehicle, characterized in that, It includes the electronic device as described in claim 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1-6.