Vehicle lamp control method and device, electronic equipment and computer readable storage medium
By detecting the environmental brightness and driver's position, and automatically controlling the lighting duration of vehicle external car lights, the problems of energy waste and insufficient lighting during the lighting of the existing Chinese and foreign car lights are solved, and driving safety and resource utilization efficiency are improved.
Patent Information
- Application Number
- CN202411150759.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-03
AI Technical Summary
The lighting control of external lights of existing vehicles needs to be manually operated by the driver, resulting in waste of energy and insufficient lighting, affecting driving safety and comfort.
By detecting the driver leaving the vehicle, determine the brightness and position information of the surrounding environment, divide the preset areas around the vehicle, automatically control the lighting time of the external car lights to avoid unnecessary resource energy consumption, and according to the brightness and position information of the environment, the lighting time of the external car lights is automatically controlled to avoid unnecessary resource and energy consumption. Adjust the lighting duration.
It effectively avoids energy waste, ensures that the driver has sufficient lighting in low-light environments, improves driving safety and the efficiency of vehicle resource utilization, and solves the problem of insufficient lighting.
Smart Images

Figure CN119058530A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a method, device, electronic device and computer-readable storage medium for controlling vehicle lights. Background Art
[0002] In the prior art, the exterior lights of a vehicle can provide sufficient lighting for the driver to ensure that the driver can safely walk to the destination at night or in insufficient light.
[0003] However, the existing lighting control of exterior lights needs to be manually controlled by the driver, resulting in energy waste or insufficient lighting of the vehicle, affecting driving safety and comfort. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for controlling vehicle lights to solve the problem of energy waste or insufficient lighting that easily occurs during the lighting process of exterior vehicle lights in the prior art.
[0005] According to a first aspect of an embodiment of the present application, a method for controlling a vehicle lamp is provided, comprising:
[0006] Determining the brightness of the vehicle's surroundings when detecting that the driver has left the vehicle;
[0007] If it is detected that the ambient brightness is lower than a preset ambient brightness, determining the position information of the driver relative to the vehicle;
[0008] In the case where it is detected based on the position information that the driver is located in a non-first preset area, determining a first target lighting duration of the exterior lights of the vehicle based on the position information; wherein a preset circle around the vehicle is divided into a first preset area and a non-first preset area except the first preset area, and the rear end of the vehicle is located in the first preset area;
[0009] Based on the first target lighting duration, the exterior lights are controlled to illuminate.
[0010] According to a second aspect of an embodiment of the present application, a control device for a vehicle lamp is provided, comprising:
[0011] A detection module is configured to determine the brightness of the surrounding environment of the vehicle when detecting that the driver leaves the vehicle being driven;
[0012] A first processing module is configured to determine the position information of the driver relative to the vehicle if it is detected that the ambient brightness is lower than a preset ambient brightness;
[0013] The second processing module is configured to determine a first target lighting duration of the exterior lights of the vehicle based on the position information when it is detected based on the position information that the driver is located in a non-first preset area; wherein the preset circumference around the vehicle is divided into a first preset area and a non-first preset area other than the first preset area, and the rear end of the vehicle is located in the first preset area;
[0014] The lighting module is configured to control the exterior lights to illuminate based on the first target lighting duration.
[0015] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0016] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0017] Compared with the prior art, the embodiments of the present application have the following beneficial effects: when it is detected that the driver has left the vehicle he is driving, the brightness of the vehicle's surrounding environment can be determined; when it is detected that the brightness of the surrounding environment is lower than the preset brightness of the surrounding environment, and the position information of the driver relative to the vehicle is not in the first preset area, the first target lighting duration of the vehicle's exterior lights is determined according to the position information; the non-first preset area is divided around a preset circle of the vehicle, the preset circle includes a first preset area and a non-first preset area, and the rear part of the vehicle is located in the first preset area; according to the first target lighting duration, the exterior lights are controlled to illuminate, avoiding turning on the lights when the surrounding brightness is sufficient and consuming unnecessary resources and energy, thereby reducing the energy consumption of the vehicle; at the same time, different first target lighting durations can be determined according to the different position information of the driver relative to the vehicle when the surrounding brightness is low, thereby adjusting the target lighting duration of the exterior lights according to the driver's lighting needs, ensuring that the driver has sufficient lighting after leaving the vehicle, especially in dark environments, reducing potential safety hazards, solving the problem of energy waste or insufficient lighting in the lighting process of exterior lights in the prior art, and improving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 is a flow chart of a method for controlling a vehicle light provided in an embodiment of the present application;
[0020] Figure 2 It is a schematic diagram of the area division of the first preset area, the second preset area and the third preset area provided in an embodiment of the present application;
[0021] Figure 3 is a flow chart of another vehicle light control method provided in an embodiment of the present application;
[0022] Figure 4 is a schematic diagram of a vehicle light control device provided in an embodiment of the present application;
[0023] Figure 5 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0025] A method and device for controlling a vehicle lamp according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0026] Figure 1 It is a flow chart of a method for controlling a vehicle light provided in an embodiment of the present application. Figure 1 The control method of the vehicle lights can be executed by the vehicle end. Figure 1 As shown, the control method of the vehicle lamp includes the following steps:
[0027] S101, determining the brightness of the surrounding environment of the vehicle when it is detected that the driver leaves the vehicle;
[0028] In an exemplary embodiment of the present application, detecting whether the driver has left the vehicle he is driving can be achieved through door handles, seats or various sensors inside the vehicle. For example, a seat sensor can be used to detect whether the driver has left the seat, and an infrared sensor or a camera can be used to detect whether there are other people in the vehicle.
[0029] When it is detected that the driver leaves the vehicle being driven, the brightness of the vehicle's surrounding environment is determined, wherein the surrounding brightness can be acquired through an environment perception module, and the environment perception module can be an environment brightness perception sensor on a camera or an independent environment brightness perception sensor.
[0030] It should be noted that the brightness of the vehicle's surrounding environment may also be determined when it is detected that the driver has left the vehicle and the vehicle is in an ignition-off state.
[0031] Furthermore, when it is not detected that the driver has left the vehicle, the step of determining the brightness of the vehicle's surrounding environment may not be performed to reduce the consumption of vehicle computing resources.
[0032] S102, if it is detected that the ambient brightness is lower than a preset ambient brightness, determining the position information of the driver relative to the vehicle;
[0033] Specifically, by comparing the ambient brightness with the preset ambient brightness, when it is detected that the ambient brightness is lower than the preset ambient brightness, it may indicate that the current vehicle is in a relatively dim or low-visibility environment, and additional lighting is needed to increase the ambient brightness of the vehicle, thereby improving visibility.
[0034] In addition, when determining the position information of the driver relative to the vehicle, the position information of the driver relative to the vehicle can be determined by a global satellite positioning system, a Bluetooth beacon, or a radar / ultrasonic sensor built into the vehicle, so as to obtain the position information of the driver relative to the vehicle. Furthermore, the data of the above-mentioned multiple positioning technologies can be fused to improve the accuracy and reliability of the position information.
[0035] In addition, this step determines the driver's position information relative to the vehicle when it detects that the ambient brightness is lower than the preset ambient brightness, thereby avoiding the invalid position information determination process when the ambient brightness is bright enough and no headlight control is required, and avoiding the operation of the exterior lights when the periodic ambient brightness is sufficient, effectively saving energy and reducing the vehicle's energy consumption.
[0036] S103, when it is detected based on the position information that the driver is located in a non-first preset area, determining a first target lighting duration of the exterior lights of the vehicle based on the position information;
[0037] The preset circumference around the vehicle is divided into a first preset area and a non-first preset area except the first preset area, and the rear of the vehicle is located in the first preset area.
[0038] Specifically, a preset circle may be set around the vehicle, and the preset circle may be divided into a first preset area and a non-first preset area, wherein the first preset area includes the area opposite to the rear of the vehicle and the surrounding areas that are closer, and the non-first preset area is the area outside the first preset area in the preset circle, and the non-first preset area includes the area opposite to the front of the vehicle. Since the driver is more likely to be away from the vehicle when at the rear of the vehicle, the demand for surrounding lighting may be smaller, thus by dividing the surrounding area of the vehicle into the first preset area and the non-first preset area according to the orientation of the front and rear of the vehicle, the surrounding area of the vehicle can be divided into a detailed position according to the lighting needs of the driver.
[0039] In addition, when it is detected based on the position information that the driver is located in a non-first preset area, it means that the driver has a greater demand for the surrounding lighting brightness. At this time, the first target lighting duration of the vehicle's exterior lights is determined based on the position information. Since the position information is related to the driver's lighting duration demand, the working state of the exterior lights is automatically adjusted according to the driver's needs, thereby ensuring sufficient lighting time and providing the driver with sufficient light source to reduce the danger in dim conditions. There is no need for the driver to manually operate frequently, thus avoiding the problem of energy waste or insufficient lighting that is prone to occur in exterior lighting.
[0040] S104: Based on the first target lighting duration, control the exterior lights to perform lighting.
[0041] Specifically, a control signal can be sent to the exterior lights according to the first target lighting duration. After receiving the control signal, the exterior light module activates the corresponding lights and illuminates according to the first target lighting duration. The exterior lights can include specific safety lights such as headlights, taillights, and turn signals.
[0042] Furthermore, when the first target lighting duration is reached, the exterior lights can be controlled to automatically turn off, completing the lighting process.
[0043] According to the technical solution provided in the embodiment of the present application, when the driver leaves the vehicle, the lighting duration of the vehicle's exterior lights can be intelligently and humanely controlled according to the brightness of the surrounding environment and the driver's position information relative to the vehicle, so that the driver has sufficient lighting, especially in dim conditions, reducing potential safety hazards, thereby improving the safety of the driver's use of the vehicle and the efficiency of vehicle resource utilization, and avoiding the problem of energy waste or insufficient lighting that is prone to occur in exterior lighting.
[0044] In some embodiments, determining the position information of the driver relative to the vehicle includes:
[0045] Obtain key location information of the vehicle's Bluetooth key, where the key location information includes the horizontal and vertical coordinates of the location of the Bluetooth key;
[0046] When the key location information satisfies the following formula, the driver's position information relative to the vehicle is determined as r i the corresponding first preset area or non-first preset area;
[0047]
[0048] Wherein, the front direction of the vehicle is the positive direction of the horizontal axis, x represents the horizontal coordinate in the key positioning information, x≥0 represents that the Bluetooth key is located in the positive direction of the horizontal axis, and x<0 represents that the Bluetooth key is located in the negative direction of the horizontal axis;
[0049] y represents the ordinate in the key positioning information, R represents the radius of the preset circle, i has values of 0 and 1, r0 represents the radian corresponding to the first preset area, and r1 represents the radian corresponding to the non-first preset area.
[0050] Specifically, since the Bluetooth key moves with the driver during the use of the vehicle, the Bluetooth key can be regarded as the driver, that is, the key positioning information of the Bluetooth key can be regarded as the driver's corresponding driver position information, thereby determining the driver's position information relative to the vehicle based on the key positioning information.
[0051] In addition, a rectangular coordinate system can be constructed with the vehicle's front direction as the positive direction of the horizontal axis and the center point of the vehicle as the origin of the coordinate system. Taking the key location information as P(x,y) and the preset circle radius as R as an example, the location information is described in detail:
[0052] Since the sensing distance of the Bluetooth key is limited, in order to ensure the accuracy of the location information, the sensing range of the Bluetooth key is set to be within the range of a preset circle with the center of the circle being the vehicle body and R being the radius, so as to ensure that the distance between the key positioning information and the center of the circle is kept within the radius, that is, the corresponding mathematical expression is: Wherein, x represents the horizontal coordinate in the key positioning information, and y represents the vertical coordinate in the key positioning information; for example, R may be 30 meters.
[0053] In addition, since the preset circle includes the first preset area and the non-first preset area, it can be known that the first preset area and the non-first preset area both correspond to corresponding central angles and arcs corresponding to the central angles. The central angle can be expressed as θ i , i has values of 0 and 1, θ0 represents the center angle of the first preset area, and θ1 represents the center angle of the non-first preset area, where θ0 and θ1 are both symmetrical based on the x-axis. The specific angle can be calculated by the arctan function in the trigonometric function, which can be expressed as:
[0054]
[0055] For example, θ0 may be set to 192° (degrees, angle unit), θ1 may be set to 168°, and the value range of θ1 may be set to [-84°, 84°].
[0056] However, the output of the arctan function is in radians, so the central angle needs to be converted to radians for representation, where radians can be represented as r i , i has values of 0 and 1, r0 represents the radian corresponding to the first preset area, and r1 represents the radian corresponding to the non-first preset area, then the above condition can be expressed as:
[0057]
[0058] Where k is an integer. When x ≥ 0, k is 0, and when x < 0, k is 1. To simplify the expression, kπ can be merged into one side of the inequality to obtain the expression:
[0059]
[0060] The value of k is then selected by the positive or negative sign of x. In practical applications, the cases of x ≥ 0 and x < 0 can be handled separately. In summary, the conditions that the key location information must meet can be expressed as:
[0061]
[0062] That is, when i is 0, the key positioning information satisfies the above formula and it can be determined that the driver's position relative to the vehicle is in the first preset area; when i is 1, the key positioning information satisfies the above formula and it can be determined that the driver's position relative to the vehicle is not in the first preset area.
[0063] As an example, R can be 30 meters, and when θ1 is set to 160°, r1 can be
[0064] According to the technical solution provided in the embodiment of the present application, the position information of the driver relative to the vehicle can be determined as the first preset area or non-first preset area according to the formula satisfied by the key positioning information, thereby ensuring the accuracy of the driver's relative position, thereby satisfying the driver's control of external headlights in different application scenarios and reasonably saving resources.
[0065] In some embodiments, the non-first preset area is divided into a second preset area and a third preset area, the second preset area is located between the first preset area and the third preset area, the front part of the vehicle is located in the third preset area, and the central angle corresponding to the second preset area is smaller than the central angle corresponding to the first preset area and the central angle corresponding to the third preset area;
[0066] Determining a first target lighting duration of an exterior lamp of the vehicle based on the position information includes:
[0067] If the position information indicates that the driver is located in a third preset area, determining a first target lighting duration of the exterior lights based on a correspondence between the third preset area and the lighting duration;
[0068] If the position information indicates that the driver is located in a second preset area and the duration is greater than the preset duration, determining a first target lighting duration of the exterior lights based on a correspondence between the second preset area and the lighting duration;
[0069] The lighting duration corresponding to the second preset area is greater than the lighting duration corresponding to the third preset area.
[0070] Specifically, the non-first preset area is divided into a second preset area and a third preset area. Figure 2 Schematic diagram of the division of the first preset area, the second preset area and the third preset area provided in the embodiment of the present application. Figure 2 As shown, the first preset area and the third preset area are symmetrical and continuous areas based on the x-axis, while the second preset area is between the first preset area and the third preset area, and is a symmetrical but incoherent area based on the x-axis.
[0071] In addition, when the position information indicates that the driver is located in a third preset area, a first target lighting duration of the exterior lights is determined according to a corresponding relationship between the third preset area and the lighting duration;
[0072] When the position information indicates that the driver is located in a second preset area and the duration in the second preset area is greater than the preset duration, the first target duration of the exterior lights is determined according to the correspondence between the second preset area and the lighting duration, wherein the lighting duration corresponding to the second preset area is greater than the lighting duration corresponding to the third preset area. This ensures that the driver has sufficient perception of the brightness of the surrounding environment when the exterior lights are away from the driver's line of sight, thereby compensating for the decline in the driver's visual perception ability.
[0073] In addition, the vehicle control system provides a default exterior light control strategy, and the driver can set the lighting duration of the default exterior light control strategy by himself, for example, it can be set to 10 seconds, 20 seconds or 30 seconds. At the same time, the lighting duration corresponding to the third preset area and the lighting duration corresponding to the second preset area are both set to be greater than the lighting duration corresponding to the first preset area, that is, greater than the default lighting duration, and the lighting duration corresponding to the second preset area is greater than the lighting duration corresponding to the third preset area.
[0074] For example, assuming that the driver customizes the lighting duration to be 20 seconds, the lighting duration corresponding to the second preset area may be 30 seconds, and the lighting duration corresponding to the third preset area may be 25 seconds.
[0075] Furthermore, after exceeding the first target lighting duration, the exterior lights are turned off and are no longer controlled.
[0076] According to the technical solution provided in the embodiment of the present application, by intelligently adjusting the lighting duration of the first target according to the position information, the lighting effect can be automatically optimized to ensure that the driver can obtain clear and accurate visual information in a variety of situations, thereby improving the adaptability of exterior lights in different application scenarios and enhancing the driver's driving safety and comfort.
[0077] In some embodiments, it also includes:
[0078] If the position information indicates that the driver switches between the second preset area and the non-second preset area within the preset time period, determining the number of switches by the driver within the preset time period;
[0079] If the switching times exceed the preset switching times, the exterior lights will be turned off when the timing reaches the preset time.
[0080] Specifically, when the location information indicates that the driver switches between the second preset area and the third preset area, or switches between the second preset area and the first preset area within the preset time period, the number of switches within the preset time period is counted. When the driver's location information is from the second preset area to a non-second preset area, it is recorded as a switch, and from a non-second preset area to the second preset area, it is also recorded as a switch.
[0081] When the switching times exceed the preset switching times, the timer is started, and when the time reaches the preset time, the exterior lights are turned off, thereby avoiding the exterior lights from being turned on unnecessarily for a long time and saving vehicle energy consumption. The preset time can be 10 seconds, and of course the preset time can be set according to specific needs.
[0082] According to the technical solution provided in the embodiment of the present application, the number of switching times can be counted according to the position information, and whether to turn off the exterior lights can be determined according to the number of switching times within a preset time period. While taking into account the energy conservation and emission reduction of the vehicle, the exterior lights can be adjusted according to the needs of the driver in a more humane and intelligent manner.
[0083] In some embodiments, before controlling the exterior lights to illuminate based on the first target illumination duration, the method further includes:
[0084] Detect whether the parking location of the vehicle is a safe location pre-set by the driver;
[0085] If yes, then entering the step of controlling the exterior lights to illuminate based on the first target illumination duration;
[0086] If it is not a safe location pre-set by the driver, the vehicle's endurance time is obtained;
[0087] When it is detected that the cruising time is less than the preset cruising time, the first target lighting time is updated based on the cruising time, and the exterior lights are controlled to illuminate based on the updated first target lighting time.
[0088] Specifically, before the vehicle is turned off and is ready to illuminate with exterior lights, it is detected whether the place where the vehicle is parked is a safe place pre-set by the driver, where the safe place can be a place that does not require long-term lighting or can provide charging or refueling, such as a home garage, company parking lot, etc. The vehicle's position can be obtained through the global satellite positioning system, and the vehicle position can be compared with the coordinates of the preset safe place to detect whether the place where the vehicle is parked is a safe place.
[0089] When the parking location of the vehicle is a safe location, the exterior lights may be controlled to illuminate according to the first target lighting duration.
[0090] When the parking location of the vehicle is not a safe place, the vehicle's endurance duration can be obtained to determine whether the original first target lighting duration needs to be adjusted, wherein the endurance duration can be determined by reading data from the vehicle's battery management system or the vehicle's remaining flow.
[0091] When it is detected that the battery life is less than the preset battery life, the first target lighting time is updated according to the battery life. At the same time, the ambient light conditions can be considered to automatically adjust the lighting intensity to achieve the effect of both energy saving and ensuring safe lighting.
[0092] Among them, the preset endurance time can be the minimum safe endurance time, and the preset endurance time can be set according to data such as vehicle model, battery performance and user charging habits, so as to ensure that the normal start-up or emergency use of the vehicle will not be affected by the depletion of power and fuel during the lighting process.
[0093] According to the technical solution provided in the embodiment of the present application, the control of the exterior lights is made more intelligent and closer to life, and the personalized needs of the driver and the rationality of the vehicle's energy use are also taken into consideration, ensuring the safety and efficiency of the exterior lights during lighting.
[0094] In some embodiments, updating the first target lighting duration based on the battery life duration includes:
[0095] When the endurance duration is greater than the first endurance duration warning value, reducing the first target lighting duration according to a first preset percentage;
[0096] When the battery life is less than the first battery life warning value and greater than the second battery life warning value, the first target lighting duration is reduced according to a second preset percentage; wherein the second preset percentage is greater than the first preset percentage;
[0097] When the cruising time is less than the second cruising time warning value, a prompt message is issued and the exterior lights are turned off. The prompt message is used to indicate that the cruising time is too low.
[0098] Specifically, when the cruising time is less than the preset cruising time, the first target lighting time is dynamically adjusted according to the actual cruising time, so as to balance the lighting demand and energy consumption and improve the driver's experience and safety.
[0099] In addition, when it is detected that the battery life is greater than the first battery life alarm value, it indicates that the vehicle or equipment does not need to worry about energy depletion in a short period of time. In order to ensure basic lighting needs while extending the overall battery life as much as possible, the first target lighting time is reduced according to the first preset percentage. For example, if the first preset percentage is 10%, the current first target lighting time is updated to 90% of the original first target lighting time, thereby achieving the purpose of energy saving.
[0100] In addition, when the cruising range is less than the first cruising range warning value and greater than the second cruising range warning value, it indicates that the energy situation of the vehicle is already relatively tight and energy-saving efforts need to be increased. The first target lighting time can be further reduced according to the second preset percentage, wherein the second preset percentage is greater than the first preset percentage. For example, if the second preset percentage is 20%, the current first target lighting time is updated to 80% of the original first target lighting time, thereby ensuring that lighting can still be provided by exterior lights when energy is limited, while avoiding unnecessary energy waste.
[0101] In addition, when the cruising range is less than the second cruising range warning value, indicating that the vehicle energy is about to run out, a prompt message is issued and the exterior lights are turned off. The prompt message can be issued through a sound alarm or a mobile terminal application push. The prompt message is used to inform the driver that the cruising range is too low and that charging or other countermeasures need to be taken as soon as possible, and the lights should be turned off.
[0102] According to the technical solution provided in the embodiment of the present application, the first target lighting duration is dynamically adjusted according to the battery life, so that the first target lighting duration can be managed intelligently, which not only ensures the lighting demand when energy is sufficient, but also extends the overall battery life of the vehicle through effective energy-saving measures when energy is tight, thereby improving user experience.
[0103] In some embodiments, after determining the position information of the driver relative to the vehicle, the method further includes:
[0104] Based on the ambient brightness and position information, the target illumination brightness and the second target illumination duration of the vehicle's exterior lights are determined; the ambient brightness is negatively correlated with the target illumination brightness;
[0105] Based on the target lighting brightness and the second target lighting duration, the exterior lights are controlled to illuminate.
[0106] Specifically, the target lighting brightness and the second target lighting duration of the vehicle's exterior lights are determined based on the ambient brightness and position information, wherein the ambient brightness and the target lighting brightness are negatively correlated, that is, the darker the ambient brightness, the higher the brightness of the exterior lights, thereby enhancing the visibility of the surrounding environment; conversely, in a bright environment, the lighting brightness can be appropriately reduced to avoid glare to the driver or other people on the road.
[0107] Among them, when the position information indicates that it is not in the first preset area, the target lighting brightness and the second target lighting duration can be determined according to the ambient brightness and the position information. When the position information indicates that it is in the first preset area, the exterior lights are controlled for lighting in a default manner.
[0108] Furthermore, it is possible to set the system to automatically adjust the power of a bulb (such as a fog lamp), switch between different lighting modes, or link with other vehicle components such as wipers, thereby providing a more intelligent method for controlling vehicle lights.
[0109] According to the technical solution provided in the embodiment of the present application, the brightness of the exterior lights can be further determined based on the brightness of the surrounding environment. Through comprehensive perception of the vehicle's surrounding environment, the adjustment method of the exterior lights can be made more intelligent, thereby increasing safety and comfort during vehicle use.
[0110] Figure 3 FIG. 1 is a flow chart of another method for controlling a vehicle light provided in an embodiment of the present application. Figure 3As shown, during the control process of the headlights, the driver's behavior can be obtained to determine whether there is a power-off behavior in the driver's behavior; if not, the automatic control of the exterior lights is canceled, if so, the brightness of the vehicle's surrounding environment is detected to determine whether the surrounding brightness is greater than the preset ambient brightness; if so, the automatic control of the exterior lights is still canceled, if not, the driver's position information relative to the vehicle is determined through the key positioning information corresponding to the Bluetooth key, and the first target lighting duration of the vehicle's exterior lights is determined according to the position information. Among them, the preset circle around the vehicle is divided into a first preset area, a second preset area and a third preset area, the rear part of the vehicle is located in the first preset area, the front part of the vehicle is located in the third preset area, and the second preset area is located between the first preset area and the third preset area. When it is detected that the driver switches between the second preset area and the non-second preset area more than the preset number of switching times within the preset time period, the automatic control of the exterior lights is canceled. Among them, Figure 3 N means no and Y means yes.
[0111] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0112] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0113] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0114] Figure 4 Schematic diagram of a vehicle light control device provided in an embodiment of the present application. Figure 4 As shown, the control device of the vehicle lamp includes: a detection module 401, a first processing module 402, a second processing module 403, and a lighting module 404, wherein:
[0115] The detection module 401 is configured to determine the brightness of the surrounding environment of the vehicle when detecting that the driver leaves the vehicle being driven;
[0116] The first processing module 402 is configured to determine the position information of the driver relative to the vehicle if it is detected that the ambient brightness is lower than the preset ambient brightness;
[0117] The second processing module 403 is configured to determine, based on the position information, a first target lighting duration of the exterior lights of the vehicle when it is detected that the driver is located in a non-first preset area based on the position information; wherein the preset circumference around the vehicle is divided into the first preset area and the non-first preset area except the first preset area, and the rear end of the vehicle is located in the first preset area;
[0118] The lighting module 404 is configured to control the exterior lights to perform lighting based on the first target lighting duration.
[0119] In some embodiments, the first processing module 402 is configured to:
[0120] Obtain the key positioning information of the vehicle's Bluetooth key, the key positioning information includes the horizontal coordinate and the vertical coordinate of the location of the Bluetooth key; when the key positioning information satisfies the following formula, determine the position information of the driver relative to the vehicle as r i the corresponding first preset area or non-first preset area;
[0121]
[0122] Wherein, the front direction of the vehicle is the positive direction of the horizontal axis, x represents the horizontal coordinate in the key positioning information, x≥0 represents that the Bluetooth key is located in the positive direction of the horizontal axis, and x<0 represents that the Bluetooth key is located in the negative direction of the horizontal axis;
[0123] y represents the ordinate in the key positioning information, R represents the radius of the preset circle, i has values of 0 and 1, r0 represents the radian corresponding to the first preset area, and r1 represents the radian corresponding to the non-first preset area.
[0124] In some embodiments, the non-first preset area is divided into a second preset area and a third preset area, the second preset area is located between the first preset area and the third preset area, the front part of the vehicle is located in the third preset area, and the central angle corresponding to the second preset area is smaller than the central angle corresponding to the first preset area and the central angle corresponding to the third preset area;
[0125] The second processing module 403 is configured to:
[0126] If the position information indicates that the driver is located in the third preset area, the first target lighting duration of the exterior lights is determined based on the correspondence between the third preset area and the lighting duration; if the position information indicates that the driver is located in the second preset area and the duration is greater than the preset duration, the first target lighting duration of the exterior lights is determined based on the correspondence between the second preset area and the lighting duration; the lighting duration corresponding to the second preset area is greater than the lighting duration corresponding to the third preset area.
[0127] In some embodiments, the second processing module 403 is further configured to:
[0128] If the position information indicates that the driver switches between the second preset area and the non-second preset area within the preset time period, the number of switches made by the driver within the preset time period is determined; if the number of switches exceeds the preset number of switches, the exterior lights are controlled to be turned off when the timing reaches the preset time.
[0129] In some embodiments, before controlling the exterior lights to illuminate based on the first target lighting duration, the lighting module 404 is further configured to: detect whether the parking location of the vehicle belongs to a safe location pre-set by the driver; if so, enter the step of controlling the exterior lights to illuminate based on the first target lighting duration; if it does not belong to the safe location pre-set by the driver, obtain the vehicle's endurance duration; when it is detected that the endurance duration is less than the preset endurance duration, update the first target lighting duration based on the endurance duration, and control the exterior lights to illuminate based on the updated first target lighting duration.
[0130] In some embodiments, the lighting module 404 is configured as follows: when the battery life is greater than the first battery life warning value, reducing the first target lighting time according to a first preset percentage; when the battery life is less than the first battery life warning value and greater than the second battery life warning value, reducing the first target lighting time according to a second preset percentage; wherein the second preset percentage is greater than the first preset percentage; when the battery life is less than the second battery life warning value, sending a prompt message and controlling the exterior lights to turn off, the prompt message is used to indicate that the battery life is too low.
[0131] In some embodiments, after determining the position information of the driver relative to the vehicle, the first processing module 402 is further configured to: determine the target lighting brightness and the second target lighting duration of the vehicle's exterior lights based on the ambient brightness and the position information; the ambient brightness is negatively correlated with the target lighting brightness; and control the exterior lights to illuminate based on the target lighting brightness and the second target lighting duration.
[0132] Figure 5 Schematic diagram of an electronic device 5 provided in an embodiment of the present application. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program 503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0133] The electronic device 5 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 The electronic device 5 is merely an example and does not limit the electronic device 5 , and may include more or less components than those shown in the figure, or different components.
[0134] The processor 501 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.
[0135] The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. The memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the electronic device.
[0136] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0137] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (e.g., 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. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable storage media 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), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0138] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for controlling a vehicle light, It is characterized in that include: In the case where it is detected that the driver leaves the vehicle being driven, determining the brightness of the surrounding environment of the vehicle; If it is detected that the ambient environment brightness is lower than a preset ambient brightness, determining the position information of the driver relative to the vehicle; In a case where it is detected based on the position information that the driver is located outside the first preset area, determining a first target lighting duration of the exterior lights of the vehicle based on the position information; wherein a preset circle around the vehicle is divided into a first preset area and a non-first preset area except the first preset area, and the rear of the vehicle is located in the first preset area; Based on the first target lighting duration, the exterior lights are controlled to illuminate.
2. The method according to claim 1, It is characterized in that Determining the position information of the driver relative to the vehicle includes: Acquire key positioning information of the Bluetooth key of the vehicle, wherein the key positioning information includes a horizontal coordinate and a vertical coordinate of a location of the Bluetooth key; When the key location information satisfies the following formula, the position information of the driver relative to the vehicle is determined to be r i the corresponding first preset area or non-first preset area; Wherein, the front direction of the vehicle is the positive direction of the horizontal axis, x represents the horizontal coordinate in the key positioning information, x≥0 represents that the Bluetooth key is located in the positive direction of the horizontal axis, and x<0 represents that the Bluetooth key is located in the negative direction of the horizontal axis; y represents the ordinate in the key location information, R represents the radius of the preset circle, i has a value of 0 and 1, r 0 represents the radian corresponding to the first preset area, r 1 Indicates the arc corresponding to the non-first preset area.
3. The method according to claim 1, It is characterized in that The non-first preset area is divided into a second preset area and a third preset area, the second preset area is located between the first preset area and the third preset area, the front part of the vehicle is located in the third preset area, and the central angle corresponding to the second preset area is smaller than the central angle corresponding to the first preset area and the central angle corresponding to the third preset area; The determining, based on the position information, a first target lighting duration of the exterior lights of the vehicle includes: If the position information indicates that the driver is located in the third preset area, determining a first target lighting duration of the exterior lights based on a correspondence between the third preset area and the lighting duration; If the location information indicates that the driver is located in the second preset area and the duration is greater than the preset duration, determining a first target lighting duration of the exterior lights based on a correspondence between the second preset area and the lighting duration; The lighting duration corresponding to the second preset area is greater than the lighting duration corresponding to the third preset area.
4. The method according to claim 3, It is characterized in that Also includes: If the position information indicates that the driver switches between the second preset area and the non-second preset area within a preset period of time, determining the number of switches of the driver within the preset period of time; If the switching times exceed the preset switching times, the exterior lights are controlled to be turned off when the timing reaches the preset time.
5. The method according to claim 1, It is characterized in that Before controlling the exterior lights to illuminate based on the first target illumination duration, the method further includes: Detecting whether the parking location of the vehicle is a safe location pre-set by the driver; If yes, then entering the step of controlling the exterior lights to illuminate based on the first target illumination duration; If it is not a safe location pre-set by the driver, obtaining the cruising time of the vehicle; When it is detected that the cruising time is less than the preset cruising time, the first target lighting time is updated based on the cruising time, and the exterior lights are controlled to illuminate based on the updated first target lighting time.
6. The method according to claim 5, It is characterized in that The updating of the first target lighting duration based on the endurance duration includes: When the endurance duration is greater than the first endurance duration warning value, reducing the first target lighting duration according to a first preset percentage; When the battery life is less than the first battery life warning value and greater than the second battery life warning value, reducing the first target lighting duration according to a second preset percentage; wherein the second preset percentage is greater than the first preset percentage; When the cruising time is less than the second cruising time warning value, a prompt message is sent and the exterior lights are controlled to be turned off, wherein the prompt message is used to prompt that the cruising time is too low.
7. The method according to claim 1, It is characterized in that After determining the position information of the driver relative to the vehicle, the method further includes: Based on the ambient brightness and the position information, determining a target illumination brightness and a second target illumination duration of the exterior lights of the vehicle; the ambient brightness is negatively correlated with the target illumination brightness; Based on the target lighting brightness and the second target lighting duration, the exterior lights are controlled to illuminate.
8. A control device for a vehicle light, It is characterized in that include: A detection module, configured to determine the brightness of the surrounding environment of the vehicle when detecting that the driver leaves the vehicle; A first processing module is configured to determine the position information of the driver relative to the vehicle if it is detected that the ambient environment brightness is lower than a preset ambient brightness; A second processing module is configured to determine a first target lighting duration of the exterior lights of the vehicle based on the position information when it is detected that the driver is located in a non-first preset area based on the position information; wherein a preset circle around the vehicle is divided into a first preset area and a non-first preset area except the first preset area, and the rear of the vehicle is located in the first preset area; The lighting module is configured to control the exterior lights to illuminate based on the first target lighting duration.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
