Vehicle headlight control method and device, computer device and storage medium
By sensing the user's position and adjusting the headlight rotation angle through the vehicle control system, the problem of the vehicle's headlights failing to provide effective illumination after the owner leaves is solved, achieving accurate lighting area and lighting coverage in multi-user scenarios.
Patent Information
- Application Number
- CN202311128130.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-01
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2043-09-01
AI Technical Summary
The existing vehicle headlights cannot continue to provide effective lighting to the driver after the driver leaves the illumination area, and the accuracy of the illumination area position is not good, especially in the left or right front area where the light is dim.
The vehicle control system senses the location information of users around the vehicle, determines the target user corresponding to each headlight, and adjusts the rotation angle of the headlights according to the user's location information to cover the user's lighting area, thus realizing the dynamic adjustment of the headlights.
It improves the location accuracy of the lighting area, ensuring that the lighting area is always concentrated in the user's location, and supports lighting needs in multi-user scenarios.
Smart Images

Figure CN117124975B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle lighting technology, and in particular to a method, device, computer equipment, and storage medium for controlling vehicle headlights. Background Technology
[0002] As automotive technology advances towards electrification and intelligence, modern cars not only enhance driving safety and comfort but also offer more humanized and personalized services to car owners. One such feature is "Follow Me Home," which involves the vehicle's headlights turning off for a short delay after the driver exits the car at night to illuminate the way home.
[0003] In the existing technology, when the vehicle's headlights are turned on, the illumination area is concentrated in front of the vehicle, while the light is dimmer in the left or right front areas of the vehicle. This results in a limited illumination area, which means that the system cannot continue to provide illumination to the driver after the driver leaves the illumination area, and the accuracy of the illumination area position is poor. Summary of the Invention
[0004] Therefore, it is necessary to provide a vehicle headlight control method, device, computer equipment, and storage medium to address the aforementioned technical problems.
[0005] Firstly, this application provides a method for controlling vehicle headlights. The method includes:
[0006] Determine the location information of each user within the vehicle's sensing range;
[0007] Based on the user location information and vehicle location information, target users corresponding to each headlight of the vehicle are determined from among the users.
[0008] For any of the headlights, the target rotation angle corresponding to the headlight is determined based on the user position information of the target user corresponding to the headlight.
[0009] The rotation of each headlight is controlled according to the target rotation angle corresponding to each headlight.
[0010] In one embodiment, determining the target user corresponding to each headlight of the vehicle from among the users based on the user location information and vehicle location information includes:
[0011] Based on the vehicle location information, determine the headlight position information corresponding to each headlight;
[0012] For any of the aforementioned users, the relative positions of the user and each of the headlights are determined based on the user location information corresponding to the user and the headlight location information corresponding to each headlight.
[0013] The target user corresponding to each headlight is determined based on the relative position of each user and each headlight.
[0014] In one embodiment, determining the target user corresponding to each headlight based on the relative position of each user and each headlight includes:
[0015] Each of the headlights is selected as a candidate headlight, each of the users is selected as a candidate user, and the target headlight is determined from each of the candidate headlights.
[0016] Based on the rotation range of the target headlight, a baseline target user is determined from each of the candidate users, and the illumination area of the target headlight is determined based on the user position information of the baseline target user. The user whose user position information matches the illumination area among the candidate users is taken as the target user corresponding to the target headlight.
[0017] The target user corresponding to the target headlight is removed from each of the candidate users, and the target headlight is removed from each of the candidate headlights. The process then proceeds to the step of determining the target headlight from each of the candidate headlights, until no candidate headlights remain.
[0018] In one embodiment, determining a baseline target user from among the candidate users based on the rotation range of the target headlight includes:
[0019] If no candidate user is found, a baseline target user is determined from among the users based on the rotation range of the target headlights; or,
[0020] In the presence of the candidate users, a baseline target user is determined from each of the candidate users based on the rotation range of the target headlight.
[0021] In one embodiment, determining the target rotation angle corresponding to the headlight based on the user location information of the target user corresponding to the headlight includes:
[0022] Based on the user location information of the target user corresponding to the headlight, the lighting area corresponding to the headlight is adjusted to obtain the adjusted lighting area;
[0023] Based on the adjusted lighting area, the target rotation angle corresponding to the headlight is determined.
[0024] In one embodiment, after determining the target rotation angle corresponding to the headlight, the method further includes:
[0025] If the target rotation angle is greater than the limit rotation angle of the headlight, the target rotation angle corresponding to the headlight is re-determined based on the limit rotation angle.
[0026] In one embodiment, determining the user location information of each user within the vehicle's sensing range includes:
[0027] Obtain ambient lighting information;
[0028] If the ambient lighting information indicates that the lighting conditions around the vehicle meet preset conditions, determine the user location information of each user within the vehicle's sensing range; or...
[0029] If the ambient lighting information indicates that the lighting conditions around the vehicle do not meet the preset conditions, the vehicle headlight control process ends.
[0030] Secondly, this application also provides a vehicle headlight control device. The device includes:
[0031] The first determining module is used to determine the user location information of each user within the vehicle's sensing range;
[0032] The second determining module is used to determine the target user corresponding to each headlight of the vehicle from among the users based on the user location information and the vehicle location information.
[0033] The third determining module is used to determine the target rotation angle corresponding to any headlight based on the user position information of the target user corresponding to the headlight.
[0034] The control module is used to control the rotation of each headlight according to the target rotation angle corresponding to each headlight.
[0035] In one embodiment, the second determining module is further configured to:
[0036] Based on the vehicle location information, determine the headlight position information corresponding to each headlight;
[0037] For any of the aforementioned users, the relative positions of the user and each of the headlights are determined based on the user location information corresponding to the user and the headlight location information corresponding to each headlight.
[0038] The target user corresponding to each headlight is determined based on the relative position of each user and each headlight.
[0039] In one embodiment, the second determining module is further configured to:
[0040] Each of the headlights is selected as a candidate headlight, each of the users is selected as a candidate user, and the target headlight is determined from each of the candidate headlights.
[0041] Based on the rotation range of the target headlight, a baseline target user is determined from each of the candidate users, and the illumination area of the target headlight is determined based on the user position information of the baseline target user. The user whose user position information matches the illumination area among the candidate users is taken as the target user corresponding to the target headlight.
[0042] The target user corresponding to the target headlight is removed from each of the candidate users, and the target headlight is removed from each of the candidate headlights. The process then proceeds to the step of determining the target headlight from each of the candidate headlights, until no candidate headlights remain.
[0043] In one embodiment, the second determining module is further configured to:
[0044] If no candidate user is found, a baseline target user is determined from among the users based on the rotation range of the target headlights; or,
[0045] In the presence of the candidate users, a baseline target user is determined from each of the candidate users based on the rotation range of the target headlight.
[0046] In one embodiment, the third determining module is further configured to:
[0047] Based on the user location information of the target user corresponding to the headlight, the lighting area corresponding to the headlight is adjusted to obtain the adjusted lighting area;
[0048] Based on the adjusted lighting area, the target rotation angle corresponding to the headlight is determined.
[0049] In one embodiment, the device further includes:
[0050] The fourth determining module is used to redetermine the target rotation angle corresponding to the headlight based on the limit rotation angle when the target rotation angle is greater than the limit rotation angle of the headlight.
[0051] In one embodiment, the first determining module is further configured to:
[0052] Obtain ambient lighting information;
[0053] If the ambient lighting information indicates that the lighting conditions around the vehicle meet preset conditions, determine the user location information of each user within the vehicle's sensing range; or...
[0054] If the ambient lighting information indicates that the lighting conditions around the vehicle do not meet the preset conditions, the vehicle headlight control process ends.
[0055] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement any of the methods described above.
[0056] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements any of the above methods.
[0057] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements any of the methods described above.
[0058] The aforementioned vehicle headlight control method, device, computer equipment, and storage medium determine the user location information of each user within the vehicle's sensing range, and based on the user location information, determine the target user corresponding to each headlight, thereby determining the angle to which each headlight needs to rotate when illuminating its corresponding target user, and controlling the rotation of each headlight accordingly. This application's embodiments adaptively adjust the headlight illumination area according to the user's location and support multi-user scenarios, ensuring that the illumination area is always concentrated at the user's location, thus improving the positional accuracy of the illumination area. Attached Figure Description
[0059] Figure 1 This is a flowchart illustrating a vehicle headlight control method in one embodiment;
[0060] Figure 2 This is a schematic diagram illustrating the rotation of the headlights based on user location information in one embodiment;
[0061] Figure 3 This is a flowchart illustrating step 104 in one embodiment;
[0062] Figure 4 This is a schematic diagram illustrating the determination of the target user corresponding to each headlight in one embodiment;
[0063] Figure 5 This is a flowchart illustrating step 306 in one embodiment;
[0064] Figure 6 This is a schematic diagram illustrating the determination of the target user corresponding to each headlight in one embodiment;
[0065] Figure 7 This is a schematic diagram of multiple headlights corresponding to the same target user in one embodiment;
[0066] Figure 8 This is a flowchart illustrating step 106 in one embodiment;
[0067] Figure 9 This is a flowchart illustrating step 102 in one embodiment;
[0068] Figure 10 This is a flowchart illustrating a vehicle headlight control method in one embodiment;
[0069] Figure 11 This is a schematic diagram of the modules executing the vehicle headlight control method in one embodiment;
[0070] Figure 12 This is a structural block diagram of a vehicle headlight control device in one embodiment;
[0071] Figure 13 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0072] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0073] In one embodiment, such as Figure 1 As shown, a vehicle headlight control method is provided. This embodiment illustrates the application of this method to an in-vehicle control system. It is understood that this method can also be applied to a terminal, or to a system including both a terminal and an in-vehicle control system, and is implemented through interaction between the terminal and the in-vehicle control system. In this embodiment, the method includes the following steps:
[0074] Step 102: Determine the user location information of each user within the vehicle's sensing range.
[0075] In this embodiment, the vehicle sensing range refers to the range within which the vehicle control system can sense the user's location. The specific size of the range depends on the type of sensor used by the vehicle control system to sense the user. For example, if the vehicle control system uses UWB (Ultra-Wide Band) technology to sense the user (the vehicle is equipped with UWB anchor points, and the user carries a UWB sensing terminal), then the vehicle sensing range is the range within which the UWB anchor points can sense the UWB sensing terminal. If the vehicle control system uses radar to sense the user, then the vehicle sensing range is the range within which the vehicle control system can identify the user and determine the user's location using point cloud data collected by the radar.
[0076] User location information is used to characterize the user's location, which can be represented by a three-dimensional coordinate (x1, y1, z1). This coordinate can be the user's coordinate in real three-dimensional space (if the location information is obtained through a means that can directly determine the user's coordinate in real space (such as GPS (Global Positioning System) positioning)), or it can be the user's coordinate relative to a sensor (if the sensor collects the user's position information relative to the sensor). This application embodiment does not specifically limit this.
[0077] Step 104: Based on the location information of each user and the location information of the vehicle, determine the target users corresponding to each headlight of the vehicle from among the users.
[0078] In this embodiment, vehicle position information is used to characterize the vehicle's location, which can also be represented by a three-dimensional coordinate (x2, y2, z2). When the vehicle control system obtains user position information by means that can directly determine the user's coordinates in real space, the vehicle position information can be the coordinates of the vehicle in real three-dimensional space, determined by the same means. However, when the user position information obtained by the vehicle control system is the user's coordinates relative to the sensor, the vehicle position information can be the sensor's coordinates, i.e., (0, 0, 0).
[0079] Generally speaking, when the headlights illuminate the user's location, the more visible the surrounding area, the better the user experience. However, if... Figure 2 As shown, in situations with multiple users, the headlights may not be able to adequately illuminate other users while illuminating one user. This can result in other users being outside the headlight's illumination area or at the edge of the illumination area, leading to a poor user experience. Since current vehicle control systems can generally control the headlights to rotate at small angles through systems such as AFS (Adaptive Front-Lighting System), the vehicle control system can adjust the illumination range of the headlights by controlling the rotation of each headlight individually. This ensures that each user is at least in the center of the illumination area of one headlight, or at least within the illumination area of the headlight even if the headlight's rotation range is limited and it cannot illuminate the user directly.
[0080] The vehicle control system can determine the location of each headlight (which may include any lighting fixture located in front of the vehicle, such as low beam headlights, high beam headlights, or even fog lights) based on the vehicle's location information. Then, based on the user's location information, it can determine the target user corresponding to each headlight, that is, the user for whom each headlight needs to provide illumination.
[0081] For example, users can be assigned to headlights based on their position relative to the vehicle. For instance, a user located on the left front of the vehicle should be preferentially assigned to the left headlight, and a user located on the right front of the vehicle should be preferentially assigned to the right headlight. In the case of multiple left and right headlights, the headlights can be arranged from left to right according to their left or right boundary of the maximum possible illumination range (i.e., the maximum illumination area that each headlight can cover when rotating). Furthermore, based on the user's position from left to right, the user furthest to the leftmost headlight is preferentially assigned to the leftmost headlight, the next furthest to the leftmost headlight, and so on, thereby determining the target user corresponding to each headlight. Other methods can also be used to determine the target user corresponding to each headlight; this embodiment does not specifically limit this approach.
[0082] Step 106: For any headlight, determine the target rotation angle corresponding to the headlight based on the user location information of the target user corresponding to the headlight.
[0083] In this embodiment, the target rotation angle represents the angle of the headlight relative to its original position after rotation, and it may include a horizontal rotation angle and a vertical rotation angle. After determining the target user corresponding to each headlight, the optimal target rotation angle of the headlight can be determined based on the user location information of each target user.
[0084] Based on the location of each target user, the target rotation angle can be determined by rotating the headlight to an angle that ensures its illumination area covers all target users. If multiple angles exist that allow the headlight's illumination area to cover all target users, the target rotation angle can also be selected based on the distance between the headlight's illumination position and each target user at each angle. For example, if it is desired that the headlight's illumination position is close to the target user to maximize the visible area around the target user, the angle at which the headlight illuminates the target user's location can be selected as the target rotation angle. Alternatively, if it is desired that the headlight's illumination position is at a certain distance from the target user to avoid direct light shining on the user, a position at a certain distance from the target user's location can be selected as the headlight's illumination position, and the target rotation angle of the headlight can be determined accordingly. This application does not specifically limit this approach.
[0085] Step 108: Control the rotation of each headlight according to the target rotation angle corresponding to each headlight.
[0086] In this embodiment, after determining the target rotation angle corresponding to the headlight, the vehicle control system can control the headlight to rotate to the target rotation angle for illumination via an AFS system or a similar system. The vehicle control system can also set a preset time interval and re-collect the user's current location information at each interval, then recalculate the target rotation angle based on the user's location information, so that the headlight's illumination range always follows the user's movement.
[0087] The vehicle headlight control method provided in this application determines the user location information of each user within the vehicle's sensing range, and determines the target user corresponding to each headlight based on the user location information. It then determines the angle to which each headlight needs to rotate to illuminate its corresponding target user, and controls the rotation of each headlight accordingly. This application embodiment adaptively adjusts the headlight illumination area according to the user's position and supports multi-user scenarios, ensuring that the illumination area is always concentrated at the user's location, thus improving the positional accuracy of the illumination area.
[0088] In one embodiment, such as Figure 3 As shown, in step 104, based on the location information of each user and the vehicle location information, the target users corresponding to each headlight of the vehicle are determined from among the users, including:
[0089] Step 302: Determine the headlight position information corresponding to each headlight based on the vehicle position information.
[0090] Step 304: For any user, determine the relative position between the user and each headlight based on the user's location information and the headlight position information of each headlight.
[0091] Step 306: Determine the target user corresponding to each headlight based on the relative position of each user and each headlight.
[0092] In this embodiment, the headlight position information can also be represented by a three-dimensional coordinate system. Since the orientation of each headlight relative to the position represented by the vehicle position information is generally fixed, the headlight position information of each headlight can be directly obtained based on the vehicle position information. By combining the user position information with the headlight position information, the position of each user relative to each headlight can be obtained, and the target user corresponding to each headlight can be determined accordingly.
[0093] Based on the user's location information and the headlight's position information, the user's position relative to each headlight can be determined. For example, each user can be assigned a priority based on their position relative to each headlight, and then each user can be assigned to a headlight based on their priority, thereby determining the target user corresponding to each headlight.
[0094] See Figure 4As shown, based on the rotation range of each headlight, the maximum possible illumination range of each headlight of the vehicle can be obtained (that is, the entire area that the illumination area of the headlight may cover when it rotates, which is a region composed of the left edge of the illumination area when the headlight rotates to the leftmost side and the right edge of the illumination area when the headlight rotates to the rightmost side). Figure 4 In the diagram, the black dashed line represents the aforementioned boundary, and the gray dashed lines represent the other boundary when the headlights are rotated to the far left and far right, respectively. Based on this, we can calculate how many headlights' maximum possible illumination range a user is within (hereinafter referred to as the headlight range quantity). Then, based on the user's corresponding headlight range quantity, we assign priorities to users, making the user's priority negatively correlated with the headlight range quantity. That is, users with fewer corresponding headlight range quantities have higher priority. Headlights can be assigned to users according to their priority from highest to lowest. When assigning headlights to users, based on which headlights' maximum possible illumination ranges the user is within, one headlight is selected and assigned to the user. The user is marked as the target user for the selected headlight, and the maximum possible illumination range of that headlight is updated based on the target user's location information, so that the maximum possible illumination range is updated to include all areas that the headlight's illumination area can cover while the headlight rotates, provided it can cover the user's position. Repeating the above process yields the headlights corresponding to each user, and thus the target users for each headlight. Additionally, a counter can be set for each headlight to record the number of target users currently associated with each headlight. When assigning headlights to users, priority will be given to headlights with fewer target users, making it easier to adjust the headlight rotation angle to the optimal position later.
[0095] by Figure 4 A simple example illustrates the process described above. Figure 4User 2 is only within the maximum possible illumination range of the right headlight, while User 1 is within the maximum possible illumination range of both headlights. Therefore, User 2 has a higher priority than User 1 and should be assigned a headlight first. User 2 can only choose the right headlight as their corresponding headlight. User 2 is marked as the target user for the right headlight, and the maximum possible illumination range of the right headlight is adjusted according to User 2's position. This adjustment makes the maximum possible illumination range of the right headlight the area where the left edge of the right headlight's illumination area exactly covers User 2, and the right edge of the right headlight's illumination area exactly covers User 2 (here, because the maximum rotation angle of the right headlight to the right cannot reach the point where the left edge exactly covers User 2, the left edge of the maximum possible illumination range is still the position of the left edge when the right headlight is rotated to the far right). After the update, User 1 is processed. Since User 1 can only choose the left headlight as their corresponding headlight, User 1 is marked as the target user for the left headlight. At this point, there are no other users, and the above process ends.
[0096] In addition to the above process, other methods can also be used to determine the target user corresponding to each headlight, and this application embodiment does not specifically limit this.
[0097] The vehicle headlight control method provided in this application obtains the headlight position information of each headlight and determines the target user corresponding to each headlight based on the position of each user relative to the headlight. This application embodiment can ensure that each user is covered by the lighting area when multiple users are present, improving the positional accuracy of the lighting area.
[0098] In one embodiment, such as Figure 5 As shown, in step 306, the target user corresponding to each headlight is determined based on the relative position of each user and each headlight, including:
[0099] Step 502: Select each headlight as a candidate headlight, select each user as a candidate user, and determine the target headlight from the candidate headlights.
[0100] Step 504: Based on the rotation range of the target headlight, determine the baseline target user from among the candidate users, and determine the illumination area of the target headlight based on the user position information of the baseline target user. Then, select the user whose user position information matches the illumination area from among the candidate users as the target user corresponding to the target headlight.
[0101] Step 506: Remove the target user corresponding to the target headlight from each candidate user, and remove the target headlight from each candidate headlight. Proceed to the step of determining the target headlight from each candidate headlight, until there are no candidate headlights left.
[0102] In this embodiment, the target user corresponding to each headlight can be determined by identifying which specific users can be covered by that headlight. Each headlight can be considered a candidate headlight, and each user can be considered a candidate user. The steps of determining a target headlight from the candidate headlights and selecting users from the candidate users to assign to that target headlight are repeated to obtain the target user corresponding to each headlight.
[0103] The target headlight can be randomly selected from the candidate headlights, or the leftmost or rightmost headlight can be prioritized as the target headlight. The rotation range of the target headlight refers to the range of horizontal rotation it can achieve. For example, if the target headlight can rotate 15° left or right, and its original position is recorded as 0°, then its rotation range is -15° to 15°. The illumination area of the target headlight is the area in space that its emitted light can actually illuminate.
[0104] Based on the rotation range of the target headlight, the maximum possible illumination range of the target headlight can be determined, thereby identifying all users that the target headlight may illuminate. One user can be selected from these users as a baseline target user, and the actual area to be illuminated by the target headlight is determined based on the location of the baseline target user. For example, the candidate user closest to the outer boundary of the maximum possible illumination range of the target headlight can be selected as the baseline target user (the outer boundary is the boundary away from the vehicle; for example, the outer boundary of the maximum illumination range of the right headlight is its right boundary), ensuring that each user is within the illumination area of at least one headlight; alternatively, the candidate user that the target headlight can illuminate centered on is selected as the baseline target user (i.e., a candidate user within the rotation range of the target headlight, only within the maximum possible illumination range of the target headlight, but a candidate user outside the rotation range is a user that the target headlight cannot illuminate centered on), ensuring that each headlight can maximize the visible area around at least one user. This application does not specifically limit this aspect.
[0105] Based on the location of the baseline target user, the target headlight can be used to determine which location it needs to illuminate, thus defining its illumination area. For example, if the baseline target user is a candidate user closest to the outer boundary of the target headlight's maximum possible illumination range, the target headlight's illumination area should cover that user. Therefore, the boundary of the illumination area can be determined based on the baseline target user's location (e.g., by drawing a straight line based on the target headlight's location and the baseline target user's location, and using this line as the boundary of the illumination area). Alternatively, if the baseline target user is a candidate user for whom the target headlight can provide illumination, the illumination area can be determined based on the baseline target user's location and the area on the ground that the light emitted by the target headlight can illuminate when it rotates to illuminate that location.
[0106] After determining the lighting area, all candidate users (including the baseline target user) located within the lighting area can be designated as the target users corresponding to the target headlights. These users are then removed from the candidate users, and the target headlights are removed from each candidate headlight. The above steps are repeated until each headlight is assigned to its corresponding target user.
[0107] Reference Figure 6 The image shows a specific example of the above process. Figure 6 There are four users: User 1, User 2, User 3, and User 4. The headlights are left and right. Users 1 through 4 are considered candidate users, and the left and right headlights are also considered candidate headlights. Let's assume the left headlight is initially selected as the target headlight. Taking the candidate closest to the outer boundary of the target headlight's maximum possible illumination range as an example, based on the user location information of each candidate user, the straight-line distance from the outer boundary can be calculated. Based on this, User 1 is determined to be the closest candidate to the outer boundary, and User 1 is selected as the baseline target user. The line connecting the left headlight and User 1's location is taken as the left boundary of the left headlight's illumination area, thus determining the illumination area of the left headlight. Since this illumination area simultaneously covers Users 1, 2, and 3, Users 1, 2, and 3 are selected as the target users corresponding to the left headlight. Users 1, 2, and 3 are removed from the candidate users, and the left headlight is also removed from the candidate headlights. After removal, User 4 remains as a candidate user, and the right headlight remains as a candidate headlight.
[0108] Using the right front light as the target light, we continue to identify the target user corresponding to the right front light from the candidate users. Since only user 4 remains in the candidate users at this point, user 4 is selected as the target user corresponding to the right front light. After removing user 4 from the candidate users and the right front light from the candidate lights, there are no other candidate lights, and the above process ends.
[0109] The vehicle headlight control method provided in this application repeatedly executes the steps of selecting a target headlight, determining a reference target user based on the rotation range of the target headlight, thereby determining the illumination area corresponding to the target headlight, and then identifying users located within the illumination area as target users corresponding to the target headlight, until all headlights have corresponding target users. This application embodiment can ensure that each user is covered by the illumination area when multiple users are present, improving the positional accuracy of the illumination area.
[0110] In one embodiment, step 504, determining the target rotation angle corresponding to the headlight based on the user location information of the target user corresponding to the headlight, includes:
[0111] In the absence of candidate users, a baseline target user is determined from among all users based on the rotation range of the target headlights; or,
[0112] In the presence of candidate users, a baseline target user is determined from among the candidate users based on the rotation range of the target headlights.
[0113] In this embodiment, since all users can be covered by a single headlight, there may still be candidate headlights, but at this point there are no candidate users. See [link to relevant documentation]. Figure 7 As shown. In this case, the remaining candidate headlights can be used to determine the baseline target user from all users (the method for determining the baseline target user can still refer to the method for determining the baseline target user from candidate users in the previous embodiment, which will not be repeated here), and the illumination area corresponding to the candidate headlights can be determined according to the location of the baseline target user. That is, in this case, a user may be within the illumination range of multiple headlights, which can make the visible area around the user larger.
[0114] The vehicle headlight control method provided in this application selects a target user corresponding to a target headlight from all users when no candidate user exists. This application embodiment allows the target user to be illuminated by multiple headlights, increasing the visibility range around the user.
[0115] In one embodiment, such as Figure 8 As shown, in step 106, the target rotation angle corresponding to the headlight is determined based on the user location information of the target user corresponding to the headlight, including:
[0116] Step 802: Based on the user location information of the target user corresponding to the headlight, adjust the lighting area corresponding to the headlight to obtain the adjusted lighting area.
[0117] Step 804: Determine the target rotation angle corresponding to the headlight based on the adjusted lighting area.
[0118] In this embodiment of the application, after determining the target user corresponding to each headlight, the headlights can also be adjusted to the optimal angle according to the location of each target user.
[0119] Regarding the horizontal rotation angle, since the visible area around the user is largest when the headlight illuminates with the user's position as the center, the center of the headlight's illumination area should be as close to the user as possible. For example, the center point of each target user (e.g., the point closest to the sum of distances to all target users) can be determined based on the user's location information, and this point can be used as the position the headlight should be aimed at, and the horizontal rotation angle of the headlight can be calculated accordingly. Alternatively, a target user can be selected as the user the headlight should illuminate (e.g., the user furthest from the vehicle and therefore most likely to need illumination), and the position of this user can be used as the position the headlight should be aimed at, and the horizontal rotation angle of the headlight can be calculated accordingly. This application embodiment does not specifically limit this approach. The method for calculating the horizontal rotation angle based on the determined position can refer to formula (I):
[0120]
[0121] Where, θ H Let x be the horizontal rotation angle of the headlight, x be the user's coordinates in one horizontal direction in three-dimensional space, y be the user's coordinates in another horizontal direction in three-dimensional space, x1 be the headlight's coordinates in the same direction as x in three-dimensional space, and y1 be the headlight's coordinates in the same direction as y in three-dimensional space.
[0122] To avoid direct light shining on the user, the headlights can also be positioned so that they always illuminate the user's feet in the vertical direction. Since the height of each headlight above the ground is known, the vertical rotation angle of the headlights can be calculated based on the user's position and the headlight height above the ground (see Formula (II)).
[0123]
[0124] Where, θ V y is the vertical rotation angle of the headlight, y is the user's coordinate in a horizontal direction in three-dimensional space, y1 is the coordinate of the headlight in the same direction as y in three-dimensional space, and Δh is the distance of the headlight from the ground.
[0125] The vehicle headlight control method provided in this application selects a target user corresponding to a target headlight from all users when no candidate user exists. This application embodiment allows the target user to be illuminated by multiple headlights, increasing the visibility range around the user.
[0126] In one embodiment, after determining the target rotation angle corresponding to the headlight in step 106, the method further includes:
[0127] If the target rotation angle is greater than the headlight's limit rotation angle, the target rotation angle corresponding to the headlight is redefined based on the limit rotation angle.
[0128] In this embodiment, the limit rotation angle is the maximum angle the headlight can rotate to in the left-right and up-down directions. If the determined target rotation angle exceeds the headlight's limit rotation angle, the target rotation angle can be redefined based on the limit rotation angle. For example, the limit rotation angle can be used as the target rotation angle for the headlight, ensuring that the headlight remains at the limit rotation angle and is as close to the target rotation angle as possible, even when the target rotation angle exceeds the limit rotation angle. Alternatively, a target rotation angle smaller than the limit rotation angle can be redefined. For example, if the target rotation angle is determined by using the center point of each target user as the position the headlight should illuminate, and the determined target rotation angle exceeds the headlight's limit rotation angle on the left side, then when redefined, the position the headlight should illuminate can be shifted to the right accordingly, so that the redefined target rotation angle is smaller than the limit rotation angle. This embodiment does not specifically limit this approach.
[0129] The vehicle headlight control method provided in this application can redetermine the target rotation angle based on the limit rotation angle when the target rotation angle is greater than the limit rotation angle. This can solve the problem that the headlight cannot rotate to the target rotation angle because the target rotation angle exceeds the range that the headlight can rotate.
[0130] In one embodiment, such as Figure 9 As shown, in step 102, the user location information of each user within the vehicle's sensing range is determined, including:
[0131] Step 902: Obtain ambient lighting information.
[0132] Step 904: If the ambient lighting information indicates that the lighting conditions around the vehicle meet preset conditions, determine the user location information of each user within the vehicle's sensing range; or,
[0133] Step 906: If the ambient light information indicates that the lighting conditions around the vehicle do not meet the preset conditions, the vehicle headlight control process ends.
[0134] In this embodiment, to conserve vehicle battery power, the aforementioned headlight control procedure is only executed when the user requires headlight illumination, i.e., when the surrounding environment is dark. The vehicle control system can acquire ambient light information around the vehicle using the vehicle's existing light sensors and determine whether the current lighting conditions around the vehicle meet preset conditions (the preset conditions are related to light intensity and can be set by those skilled in the art according to their needs). When the lighting conditions meet the preset conditions, the vehicle control system turns on the headlights, collects the user's location information within the vehicle's sensing range, and executes the aforementioned headlight control procedure. When the lighting conditions do not meet the preset conditions, the vehicle control system does not perform the headlight control procedure and repeatedly performs periodic lighting condition checks until the lighting conditions meet the preset conditions.
[0135] The vehicle headlight control method provided in this application collects ambient light information and controls the headlights only when the ambient light information meets preset conditions. This allows the headlights to remain off when the surrounding environment is bright and the user does not require lighting, thus saving vehicle power.
[0136] To enable those skilled in the art to better understand the embodiments of this application, the embodiments of this application are described below through specific examples.
[0137] Reference Figure 10 The diagram shows a flowchart of a vehicle headlight control method.
[0138] In this embodiment of the application, user location information can be sensed using UWB technology. Figure 11 The diagram illustrates the modules involved in the aforementioned vehicle headlight control process, which may include a light sensor for acquiring ambient light information, an AFS (Adaptive Front-lighting) system for controlling the headlights, an onboard control system for controlling the AFS system, a smart terminal for controlling UWB anchor points and parsing user location information, UWB anchor points installed on the vehicle, a UWB mobile terminal for locating the user (which can be the user's smartphone or car key), and the vehicle's headlights. Through these modules, indirect communication between the UWB positioning terminal and the headlights can be achieved. Figure 11 The effect of a dashed line.
[0139] After the user parks and leaves the vehicle, the vehicle control system first uses a light sensor to determine if the vehicle is in a dark environment. If the vehicle is in a dark environment, the headlights are turned on, and the vehicle control system sends a message to the smart terminal, informing it that the headlight control process has begun. The smart terminal then activates the UWB anchor point on the vehicle. The UWB anchor point determines the distance between the UWB mobile terminal (which can be the user's smartphone or car key) and the UWB anchor point within its sensing range and sends this distance to the smart terminal. The smart terminal calculates the coordinates of the UWB mobile terminal relative to the vehicle based on the distance and sends the coordinates to the vehicle control system. The vehicle control system calculates the target user corresponding to each headlight and determines the target rotation angle for each headlight accordingly (see the aforementioned embodiments for details, which will not be repeated here), and sends the target rotation angle to the AFS system. The AFS system controls the vehicle headlights to rotate according to the target rotation angle, enabling the headlight illumination area to track the user.
[0140] The above process can be repeated while the UWB mobile terminal remains within the sensing range of the UWB anchor point. When the UWB anchor point can no longer sense the UWB mobile terminal, the vehicle control system turns off the vehicle's headlights and sends a message to the smart terminal informing it that the headlight control process has ended. The smart terminal then controls the UWB anchor point to enter sleep mode.
[0141] The vehicle headlight control method provided in this application enables the vehicle to sense the external lighting environment, locate the user's position in real time, and automatically determine whether the headlights need to be turned on for the user. Furthermore, it can automatically adjust the direction of the vehicle's headlights to illuminate the user based on changes in the user's position, providing a wider illumination range and more precise lighting compared to traditional headlights.
[0142] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0143] Based on the same inventive concept, this application also provides a vehicle headlight control device for implementing the vehicle headlight control method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more vehicle headlight control device embodiments provided below can be found in the limitations of the vehicle headlight control method described above, and will not be repeated here.
[0144] In one embodiment, such as Figure 12 As shown, a vehicle headlight control device 1200 is provided, including: a first determining module 1202, a second determining module 1204, a third determining module 1206, and a control module 1208, wherein:
[0145] The first determining module 1202 is used to determine the user location information of each user within the vehicle's sensing range;
[0146] The second determining module 1204 is used to determine, based on the user location information and vehicle location information, the target user corresponding to each headlight of the vehicle from among the users.
[0147] The third determining module 1206 is used to determine the target rotation angle corresponding to any headlight based on the user position information of the target user corresponding to the headlight.
[0148] The control module 1208 is used to control the rotation of each headlight according to the target rotation angle corresponding to each headlight.
[0149] The vehicle headlight control device provided in this application embodiment determines the user location information of each user within the vehicle's sensing range, and determines the target user corresponding to each headlight based on the user location information. It then determines the angle to which each headlight needs to rotate to illuminate its corresponding target user, and controls the rotation of each headlight accordingly. This application embodiment adaptively adjusts the headlight illumination area according to the user's position and supports multi-user scenarios, ensuring that the illumination area is always concentrated at the user's location, thus improving the positional accuracy of the illumination area.
[0150] In one embodiment, the second determining module 1204 is further configured to:
[0151] Based on the vehicle location information, determine the headlight position information corresponding to each headlight;
[0152] For any of the aforementioned users, the relative positions of the user and each of the headlights are determined based on the user location information corresponding to the user and the headlight location information corresponding to each headlight.
[0153] The target user corresponding to each headlight is determined based on the relative position of each user and each headlight.
[0154] In one embodiment, the second determining module 1204 is further configured to:
[0155] Each of the headlights is selected as a candidate headlight, each of the users is selected as a candidate user, and the target headlight is determined from each of the candidate headlights.
[0156] Based on the rotation range of the target headlight, a baseline target user is determined from each of the candidate users, and the illumination area of the target headlight is determined based on the user position information of the baseline target user. The user whose user position information matches the illumination area among the candidate users is taken as the target user corresponding to the target headlight.
[0157] The target user corresponding to the target headlight is removed from each of the candidate users, and the target headlight is removed from each of the candidate headlights. The process then proceeds to the step of determining the target headlight from each of the candidate headlights, until no candidate headlights remain.
[0158] In one embodiment, the second determining module 1204 is further configured to:
[0159] If no candidate user is found, a baseline target user is determined from among the users based on the rotation range of the target headlights; or,
[0160] In the presence of the candidate users, a baseline target user is determined from each of the candidate users based on the rotation range of the target headlight.
[0161] In one embodiment, the third determining module 1206 is further configured to:
[0162] Based on the user location information of the target user corresponding to the headlight, the lighting area corresponding to the headlight is adjusted to obtain the adjusted lighting area;
[0163] Based on the adjusted lighting area, the target rotation angle corresponding to the headlight is determined.
[0164] In one embodiment, the device further includes:
[0165] The fourth determining module is used to redetermine the target rotation angle corresponding to the headlight based on the limit rotation angle when the target rotation angle is greater than the limit rotation angle of the headlight.
[0166] In one embodiment, the first determining module 1202 is further configured to:
[0167] Obtain ambient lighting information;
[0168] If the ambient lighting information indicates that the lighting conditions around the vehicle meet preset conditions, determine the user location information of each user within the vehicle's sensing range; or...
[0169] If the ambient lighting information indicates that the lighting conditions around the vehicle do not meet the preset conditions, the vehicle headlight control process ends.
[0170] The modules in the aforementioned vehicle headlight control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0171] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 13 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a vehicle headlight control method.
[0172] Those skilled in the art will understand that Figure 13 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0173] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0174] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0175] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0176] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0177] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0178] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0179] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for controlling vehicle headlights, characterized in that, The method includes: Determine the location information of each user within the vehicle's sensing range; Each headlight of the vehicle is selected as a candidate headlight, each user is selected as a candidate user, and the target headlight is determined from the candidate headlights. Based on the rotation range of the target headlight, a baseline target user is determined from each of the candidate users. The illumination area of the target headlight is determined based on the user position information of the baseline target user. Users whose user position information matches the illumination area of the target headlight are identified as target users corresponding to the target headlight. The target users corresponding to the target headlight are removed from each of the candidate users, and the target headlight is removed from each of the candidate headlights. The process then proceeds to the step of determining the target headlight from each of the candidate headlights until no candidate headlights remain. The baseline target user is the user closest to the outer boundary of the maximum possible illumination range of the headlight, or a user within the rotation range of the headlight. For any of the headlights, the position that the headlight needs to be aligned with is determined based on the user position information of the multiple target users corresponding to the headlight. The target rotation angle corresponding to the headlight is determined based on the position that the headlight needs to be aligned with. The position that the headlight needs to be aligned with is the position of the center point of each target user corresponding to the headlight, or the position of a target user selected from the multiple target users corresponding to the headlight based on the distance to the vehicle. The rotation of each headlight is controlled according to the target rotation angle corresponding to each headlight.
2. The method according to claim 1, characterized in that, The step of determining a baseline target user from among the candidate users based on the rotation range of the target headlights includes: If no candidate user is found, a baseline target user is determined from among the users based on the rotation range of the target headlights; or, In the presence of the candidate users, a baseline target user is determined from each of the candidate users based on the rotation range of the target headlight.
3. The method according to claim 1, characterized in that, After determining the target rotation angle corresponding to the headlight, the method further includes: If the target rotation angle is greater than the limit rotation angle of the headlight, the target rotation angle corresponding to the headlight is re-determined based on the limit rotation angle.
4. The method according to claim 1, characterized in that, The determination of user location information for each user within the vehicle's sensing range includes: Obtain ambient lighting information; If the ambient lighting information indicates that the lighting conditions around the vehicle meet preset conditions, determine the user location information of each user within the vehicle's sensing range; or... If the ambient light information indicates that the lighting conditions around the vehicle do not meet the preset conditions, the vehicle headlight control process ends.
5. A vehicle headlight control device, characterized in that, The device includes: The first determining module is used to determine the user location information of each user within the vehicle's sensing range; The second determining module is used to select each headlight of the vehicle as a candidate headlight, each user as a candidate user, and determine a target headlight from the candidate headlights. Based on the rotation range of the target headlight, a baseline target user is determined from the candidate users. Based on the user position information of the baseline target user, the illumination area of the target headlight is determined. Users whose user position information matches the illumination area of the target headlight are determined as target users corresponding to the target headlight. The target user corresponding to the target headlight is deleted from the candidate users, and the target headlight is deleted from the candidate headlights. The process then jumps to the step of determining the target headlight from the candidate headlights until there are no candidate headlights left. The baseline target user is the user closest to the outer boundary of the maximum possible illumination range of the headlight, or a user within the rotation range of the headlight. The third determining module is used to determine, for any headlight, the position that the headlight needs to be aligned with based on the user position information of the multiple target users corresponding to the headlight, and to determine the target rotation angle corresponding to the headlight based on the position that the headlight needs to be aligned with. The position that the headlight needs to be aligned with is the position of the center point of each target user corresponding to the headlight, or the position of a target user selected from the multiple target users corresponding to the headlight based on the distance to the vehicle. The control module is used to control the rotation of each headlight according to the target rotation angle corresponding to each headlight.
6. The apparatus according to claim 5, characterized in that, The first determining module is further configured to: Obtain ambient lighting information; When the ambient lighting information indicates that the lighting conditions around the vehicle meet preset conditions, the user location information of each user within the vehicle's sensing range is determined. or, If the ambient light information indicates that the lighting conditions around the vehicle do not meet the preset conditions, the vehicle headlight control process ends.
7. The apparatus according to claim 5, characterized in that, The second determining module is further configured to: If no candidate user is found, a baseline target user is determined from among the users based on the rotation range of the target headlights; or, In the presence of the candidate users, a baseline target user is determined from each of the candidate users based on the rotation range of the target headlight.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Vehicle lamp control method, device and equipment, storage medium and vehicle
CN115352354A
Forward irradiation device
JP2020040513A