Method for intelligent adjustment of headlamps and related products
By monitoring parameters of vehicles ahead and using camera calculations, the headlight height is automatically adjusted, solving the glare problem caused by drivers failing to switch to high beams in time, ensuring driving safety and improving user experience.
Patent Information
- Application Number
- CN202111677737.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Current car headlights can only be manually adjusted to high beam or low beam. If the driver fails to switch in time, it may cause glare, affecting drivers of vehicles ahead and increasing the risk of traffic accidents.
By monitoring the height of the rearview mirror and rear windshield of the vehicle in front, and using camera parameters to calculate the vehicle distance and lighting height, the headlights are automatically adjusted to the target height to avoid glare.
It effectively avoids the impact of high beams on vehicles ahead, ensuring driving safety, while not affecting the current vehicle's lighting brightness, thus improving the user experience.
Smart Images

Figure CN116409234B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electronic equipment, in particular to a headlamp intelligent adjustment method and related products. BACKGROUND
[0002] Most of the headlamps of the current market are only divided into two heights of high beam and low beam, and are manually adjusted by the driver. In most cases, the driver can change to low beam when driving normally. However, there are some cases where the user does not realize that he is using high beam. In this case, following the car will cause the front driver to be dazzled, which may easily lead to traffic accidents. SUMMARY
[0003] The embodiments of the present application provide a headlamp intelligent adjustment method and related products, which are beneficial to improve the driving safety of users.
[0004] The first aspect of the embodiments of the present application provides a headlamp intelligent adjustment method applied to an electronic device, the electronic device comprising a helmet, and the method comprises the following steps:
[0005] In response to an instruction of adjusting a headlamp of a current vehicle to a high beam mode, whether there is a vehicle in front of the current vehicle is monitored;
[0006] If it is monitored that there is a vehicle in front of the current vehicle, a vehicle parameter of the front vehicle is acquired, the vehicle parameter comprising a first height and a second height, wherein the first height is the height of a reflector from the ground, and the second height is the height of a rear windshield from the ground;
[0007] According to the distance between the current vehicle and the front vehicle and the vehicle parameter, a target height of the headlamp in the high beam mode is determined;
[0008] The illumination height of the headlamp of the current vehicle is adjusted to the target height.
[0009] The second aspect of the embodiments of the present application provides a headlamp intelligent adjustment system, comprising a processor, a memory and a communication unit; the processor is in communication connection with the memory and the communication unit;
[0010] The processor communicates with the communication unit and executes the instructions stored in the memory;
[0011] The communication unit monitors whether there is a vehicle in front of the current vehicle in response to an instruction of adjusting a headlamp of a current vehicle to a high beam mode;
[0012] The memory is configured to store instructions that, when executed by the processor, cause the processor to perform some or all of the steps described in the first aspect.
[0013] A third aspect of the present application provides an electronic device, comprising: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the program comprising instructions for some or all of the steps described in the first aspect.
[0014] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is configured to store a computer program, wherein the computer program causes a computer to execute instructions for some or all of the steps described in the first aspect of the present application.
[0015] A fifth aspect of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to execute some or all of the steps described in the first aspect of the present application. The computer program product can be a software installation package.
[0016] The embodiments of the present application have the following beneficial effects:
[0017] It can be seen that, through the headlamp intelligent adjustment method and related products described in the embodiments of the present application, the electronic device can monitor whether there is a vehicle in front of the current vehicle in response to an instruction of adjusting the headlamp of the current vehicle to a high beam mode; if it is monitored that there is a vehicle in front of the current vehicle, obtain vehicle parameters of the front vehicle, the vehicle parameters including a first height and a second height, wherein the first height is the height of a reflector from the ground, and the second height is the height of a rear windshield from the ground; determine a target height of the headlamp in the high beam mode according to the distance between the current vehicle and the front vehicle and the vehicle parameters; and adjust the illumination height of the headlamp of the current vehicle to the target height. In this way, the illumination height of the headlamp of the current vehicle is adaptively adjusted according to the height of the rear windshield of the front vehicle and other vehicle parameters such as the reflector, which is beneficial to avoid the influence of the high beam on the front vehicle, thereby ensuring the driving safety of the front vehicle and the current vehicle to avoid traffic accidents; at the same time, it does not affect the illumination brightness of the current vehicle, which is beneficial to improve the user experience. BRIEF DESCRIPTION OF DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, the drawings described in the following embodiments are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0019] Figure 1 is a scene schematic diagram of a headlamp intelligent adjustment method provided by an embodiment of the present application;
[0020] Figure 2A is an embodiment flow schematic diagram of a headlamp intelligent adjustment method provided by an embodiment of the present application;
[0021] Figure 2B is a position schematic diagram of a front vehicle and a current vehicle in a single frame image provided by an embodiment of the present application;
[0022] Figure 2C is a position schematic diagram of a front vehicle and a current vehicle in a single frame image provided by an embodiment of the present application;
[0023] Figure 2D is a position schematic diagram of a front vehicle and a current vehicle in a single frame image provided by an embodiment of the present application;
[0024] Figure 3 is an embodiment flow schematic diagram of a headlamp intelligent adjustment method provided by an embodiment of the present application;
[0025] Figure 4 is an embodiment structure schematic diagram of a headlamp intelligent adjustment device provided by an embodiment of the present application;
[0026] Figure 5 is an embodiment structure schematic diagram of a headlamp intelligent adjustment system provided by an embodiment of the present application;
[0027] Figure 6 is an embodiment structure schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0029] The terms "first", "second", "third", and "fourth" and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Moreover, the terms "include", "have", and the like when used in this description are used inclusively and not exclusivity. For example, a process, method, system, product, or apparatus that includes a list of steps or elements is not limited to only those steps or elements but can include other steps or elements not expressly listed or inherent to such process, method, system, product, or apparatus.
[0030] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. As will be apparent to those of ordinary skill in the art, embodiments described herein can be combined with other embodiments.
[0031] For better understanding of the headlamp intelligent adjustment method and related products provided by the embodiments of the present application, the following first describes the scenarios applicable to the headlamp intelligent adjustment method applicable to the embodiments of the present application.
[0032] Please refer to Figure 1 , Figure 1 is a scenario diagram of the headlamp intelligent adjustment method provided by the embodiments of the present application. As Figure 1 shown, the driver drives the current vehicle 101 on the road, at this time, the environment where the current vehicle 101 is located is no street lamp or no one, the driver may adjust the headlamp of the current vehicle 101 to the high beam mode, at this time, if a car suddenly comes in front of the current vehicle 101, it can be determined that the vehicle in front of the current vehicle 101 is the front vehicle 102. Since the current vehicle 101 is close to the front vehicle 102, if the driver of the current vehicle 101 fails to adjust the mode of the headlamp to the low beam mode in time, it may cause glare effect on the rearview mirror and rear windshield of the front vehicle 102, which may cause the driver of the front vehicle 102 to slow down or not see the road clearly and deviate from the driving route, and then the driver of the current vehicle 101 may not react in time and cause accidents such as collision, thereby seriously affecting the driving safety of the driver.
[0033] Based on the above, the application provides a headlamp intelligent adjustment method, which can monitor whether there is a vehicle in front of the current vehicle 101 in response to an instruction for adjusting the headlamp of the current vehicle 101 to the high beam mode; if it is monitored that there is a vehicle 102 in front of the current vehicle 101, the vehicle parameters of the front vehicle 102 are acquired, the vehicle parameters including a first height and a second height, wherein the first height is the height of a reflector from the ground, and the second height is the height of a rear windshield from the ground; the target height of the headlamp in the high beam mode is determined according to the distance between the current vehicle and the front vehicle and the vehicle parameters; and the illumination height of the headlamp of the current vehicle 101 is adjusted to the target height. In this way, the illumination height of the headlamp of the current vehicle 101 is adaptively adjusted according to the height of the rear windshield of the front vehicle 102 and the vehicle parameters such as the reflector, which is beneficial to avoid the influence of the high beam on the front vehicle, thereby ensuring the driving safety of the front vehicle 102 and the current vehicle 101, so as to avoid traffic accidents; meanwhile, the illumination brightness of the current vehicle is not affected, which is beneficial to improve the user experience.
[0034] In the embodiments of the present application, the electronic device can be a portable terminal device containing other functions such as personal digital assistant and / or music player functions, such as a mobile phone, a tablet computer, a wearable terminal device (such as a smart watch) with wireless communication function, etc. Exemplary embodiments of the portable terminal device include but are not limited to portable terminal devices with IOS system, Android system, Microsoft system or other operating system. The above-mentioned portable terminal device can also be other portable terminal devices, such as a laptop computer, etc. In the embodiments of the present application, the electronic device can also include a vehicle-mounted device.
[0035] Please refer to Figure 2A , a flowchart of an embodiment of a headlamp intelligent adjustment method provided in the embodiments of the present application. The headlamp intelligent adjustment method described in the embodiment includes the following steps:
[0036] 201, in response to an instruction for adjusting the headlamp of the current vehicle to the high beam mode, monitoring whether there is a vehicle in front of the current vehicle.
[0037] In the scene diagram as shown in Figure 1 , the electronic device can respond to the user (driver) initiated headlamp adjustment to the high beam mode, and the driving condition of the current vehicle can be monitored by the monitoring device in the electronic device, which specifically can include monitoring whether there is a vehicle in front of the current vehicle, and the front vehicle can refer to the vehicle in the same driving direction or the same driving lane as the current vehicle.
[0038] If there is no vehicle in front of the current vehicle, the current vehicle can keep driving in the high beam mode, and the monitoring of whether there is a vehicle in front of the current vehicle can be stopped in response to the instruction of adjusting the headlamp of the current vehicle to the low beam mode.
[0039] 202. If it is monitored that there is a vehicle in front of the current vehicle, vehicle parameters of the front vehicle are acquired, the vehicle parameters including a first height and a second height, wherein the first height is the height of the reflector from the ground, and the second height is the height of the rear windshield from the ground.
[0040] If the driver of the current vehicle drives in the dark without a street lamp and adjusts the headlamp of the current vehicle to the high beam mode, if a vehicle driving in the same direction suddenly appears in front of the current vehicle, the driver of the current vehicle does not realize that the high beam mode is turned on and does not take corresponding actions, glare will be caused to the reflectors on both sides of the front vehicle and the rear windshield, the driver of the front vehicle will be affected by the glare, and the driver of the current vehicle will also be affected by the mirror reflection. In order to reduce such troubles, vehicle parameters of the front vehicle can be acquired, the vehicle parameters including a first height and a second height, wherein the first height is the height of the reflector from the ground, and the second height is the height of the lowermost end of the rear windshield from the ground.
[0041] It should be noted that the first height is the height of one reflector from the ground, and in the specific implementation, the present application only describes one reflector. If there are multiple reflectors (two or more), the corresponding first height calculation method is the same.
[0042] In one possible example, after the vehicle parameters of the front vehicle are acquired, the method further includes the following steps: acquiring image information, wherein the image information includes camera-related parameters of a camera; monitoring whether there is a vehicle in front of the current vehicle according to the image information; if it is indicated in the image information that there is a vehicle in front of the current vehicle, extracting a single-frame image including the front vehicle from the image information; determining the distance between the current vehicle and the front vehicle according to the single-frame image and the camera-related parameters; and determining the first height and the second height according to the single-frame image and the camera-related parameters.
[0043] The image parameters can be acquired by a monocular vision system of the current vehicle or from a server, which is not limited herein. The current vehicle can include a camera, and the camera-related parameters can be obtained by using camera calibration principles, intrinsic matrix and extrinsic matrix (i.e., a matrix including pixel distortion parameters of the camera).
[0044] The image parameters include multiple frames of images captured by the camera. After a front vehicle is determined, a single frame of image with the most obvious feature and closest shooting time is selected from the multiple frames of images according to feature information of the front vehicle. The single frame of image can include the front vehicle and the current vehicle.
[0045] In a specific implementation, the single frame of image captured by the camera includes not only the front vehicle but also street view, pedestrians, and vehicles in other lanes. Therefore, a target region can be divided in the single frame of image, and the target region includes only the front vehicle and the current vehicle.
[0046] Further, as shown in FIG. 1, it is a schematic diagram of positions of the front vehicle and the current vehicle in a single frame of image. In the diagram, only a box represents the front vehicle and the current vehicle. The positions of the rearview mirror and the rear windshield of the front vehicle can be identified in the single frame of image, and marking can be completed in the single frame of image. Finally, the distance between the current vehicle and the front vehicle, the first height, the second height, and other related parameters can be determined according to the single frame of image and the camera-related parameters. Figure 2B Figure 2B It can be seen that in the example, the distance between the vehicles and the vehicle parameters corresponding to the front vehicle can be determined by using the camera-related parameters. Since the distance between the vehicles directly affects the influence of the headlamp on the rear windshield of the front vehicle, it is necessary to calculate the distance between the two vehicles.
[0047] It should be noted that the first height, the second height, and the distance between the two vehicles are all vehicle parameters and distances in a real environment (real driving).
[0048] In a possible example, the camera-related parameters include at least one of the following: a focal length and a height of a front lamp of the current vehicle in the single frame of image. The distance between the current vehicle and the front vehicle is determined according to the single frame of image and the camera-related parameters, and includes the following steps: extracting a target region in the single frame of image; determining, in the target region, a third height of a rearview mirror of the front vehicle from the ground in the single frame of image, and a fourth height of a rear windshield of the front vehicle from the ground; obtaining a real height of the front lamp of the current vehicle; establishing a similar triangle about the current vehicle and the front vehicle according to the first height, the second height, the third height, and the fourth height; determining a first mapping relationship between a focal length between the current vehicle and the front vehicle in the single frame of image and the distance according to the similar triangle, the real height of the front lamp, the focal length, and the height of the front lamp; and determining the distance according to the first mapping relationship.
[0049] In the method, the image parameters include multiple frames of images captured by the camera. After a front vehicle is determined, a single frame of image with the most obvious feature and closest shooting time is selected from the multiple frames of images according to feature information of the front vehicle. The single frame of image can include the front vehicle and the current vehicle.
[0050] In the method, the image parameters include multiple frames of images captured by the camera. After a front vehicle is determined, a single frame of image with the most obvious feature and closest shooting time is selected from the multiple frames of images according to feature information of the front vehicle. The single frame of image can include the front vehicle and the current vehicle.Figure 2C As shown in the figure, it is a schematic diagram of the positions of the front vehicle and the current vehicle in a single frame image, in which camera-related parameters, real parameters (distance, first height and second height, etc.) and the relationship between parameters are calibrated, wherein h, h1 and F in the figure respectively represent camera-related parameters, specifically, F is the focal length of the camera, h1 is the fourth height of the lowermost end of the rear windshield of the front vehicle from the ground in the camera, that is, the distance of the rear windshield from the ground in the single frame image; H2 is the first height in the application, which is the height of the reflector from the ground in the real environment; H1 is the distance of the rear windshield from the ground in the real environment, that is, the second height in the real environment; H is the height of the headlamp from the ground in the real environment, which is the real height of the headlamp, h can refer to the height of the headlamp from the ground in the single frame image; L is the distance between the two vehicles in the real environment.
[0051] In a specific implementation, similar triangles can be constructed according to the relative positions between the two vehicles and the related parameters between the two vehicles, such as Figure 2C As shown in the figure, two similar triangles are constructed, and the distance between the two vehicles in the real environment can be calculated according to the similar triangles.
[0052] In a specific implementation, according to the two similar triangles, since the single frame image is captured by the monocular vision system of the current vehicle, the focal length of the camera can be determined as the image distance between the two vehicles in the single frame image, and then a first mapping relationship can be constructed as: L = H * F / h; and the real distance between the two vehicles can be calculated.
[0053] As can be seen, in the example, the first mapping relationship, that is, the proportional relationship, between the distance between the two vehicles in the real environment and the focal length in the single frame image can be constructed by the real distance between the two vehicles in the single frame image, the related parameters, the camera-related parameters, etc., and the real distance between the two vehicles can be determined according to the first mapping relationship, which is conducive to improving the parameter determination accuracy.
[0054] In a possible example, the determining the first height and the second height according to the single frame image and the camera-related parameters further includes the following steps: determining a second mapping relationship between the third height and the first height in the single frame image according to the similar triangles, the real height of the headlamp, the height of the headlamp, the first height and the third height; determining the first height according to the second mapping relationship; determining a third mapping relationship between the fourth height and the second height in the single frame image according to the similar triangles, the real height of the headlamp, the height of the headlamp, the second height and the fourth height; and determining the second height according to the third mapping relationship.
[0055] Among them, for example Figure 2C As shown, based on the aforementioned similar triangles, the actual height H of the headlights, the headlight height h in a single frame image, the fourth height H1 of the rear windshield relative to the ground in the real environment, and the second height h1 of the rear windshield relative to the ground in a single frame image, a third mapping relationship can be constructed: H1 = H * h1 / h. Therefore, by substituting the actual height of the headlights, the headlight height, and the fourth height, the second height of the rearview mirror glass relative to the ground in the real environment can be calculated.
[0056] Among them, such as Figure 2D The image shown is a schematic diagram illustrating the positions of the vehicle in front and the current vehicle in a single-frame image; it can be determined according to... Figure 2C Based on the principle of similar triangles constructed in the image, a new similar triangle can be obtained by mapping the reflector to the position shown by the dotted line in the figure. Here, h2 is the height of the reflector relative to the ground in a single frame image, which is the third height in this application. Then, a second mapping relationship can be constructed, namely: first height: H2 = H*h2 / h. Finally, the first height (H2) of the reflector in the real environment can be calculated based on the third height (h2) of the reflector in the image, the actual height H of the headlight, and the height h of the headlight in the single frame image.
[0057] As can be seen in this example, different mapping relationships between relevant parameters in the real environment and relevant parameters in the image frame can be determined by constructing different similar triangles. Then, based on their respective mapping relationships, the relevant parameters in the real environment can be further determined.
[0058] 203. Based on the distance between the current vehicle and the vehicle in front and the vehicle parameters, determine the target height at which the headlights are in the high beam mode.
[0059] In one possible example, determining the target height of the headlights in high beam mode based on the distance between the current vehicle and the vehicle ahead, and the vehicle parameters, includes the following steps: obtaining the illumination range corresponding to the headlights of the current vehicle; determining whether the vehicle ahead is within the illumination range of the current vehicle based on the distance between the current vehicle and the vehicle ahead, the first height, and the second height; if the vehicle ahead is within the illumination range of the current vehicle, then selecting the minimum value between the first height and the second height as the target height.
[0060] In a specific implementation, the illumination range of the headlamp can be calculated according to the height of the headlamp of the current vehicle and the corresponding brightness, the illumination range being a space vector, a three-dimensional coordinate system can be constructed according to the space vector and the relative positions of the two vehicles, and the range of the space vector can be marked in the three-dimensional coordinate system. The first height, the second height and the distance are mapped into the three-dimensional space based on the three-dimensional coordinate system. If any one of the first height and the second height falls within the range of the space vector, it is determined that the front vehicle is within the illumination range of the current vehicle.
[0061] Further, if both the first height and the second height fall within the range of the space vector, the minimum value is selected from the first height and the second height as the target height; if the first height falls within the range of the space vector, it also indicates that the first height is smaller than the second height, and the first height is selected as the target height; if the second height falls within the range of the space vector, it also indicates that the second height is smaller than the first height, and the second height is selected as the target height.
[0062] As can be seen, in the example, if the front vehicle is within the illumination range of the current vehicle, regardless of the size relationship between the first height of the reflector from the ground and the second height of the reflector from the ground in the real environment, as long as the height (the first height or the second height) falls within the illumination range of the headlamp, the minimum value between the first height and the second height is taken as the target height.
[0063] In a possible example, the step of determining whether the front vehicle is within the illumination range of the current vehicle according to the distance between the current vehicle and the front vehicle, the first height and the second height includes the following steps: if the lowest end of the reflector is determined to be within the illumination range according to the distance between the current vehicle and the front vehicle and the first height, it is determined that the front vehicle is within the illumination range of the current vehicle; or if the lowest end of the rear windshield is determined to be within the illumination range according to the distance between the current vehicle and the front vehicle and the second height, it is determined that the front vehicle is within the illumination range of the current vehicle.
[0064] In this way, the influence relationship between the front vehicle and the current vehicle can be quickly located, that is, by one of the vehicle parameters, once it is determined to be within the illumination range, it is directly determined that the front vehicle is within the illumination range of the current vehicle, without the need to verify the other vehicle parameter again, which is beneficial to improve the determination efficiency and thus quickly obtain the target height.
[0065] 204、adjusting the lighting height of the headlamp of the current vehicle to the target height.
[0066] In one possible example, the adjusting the lighting height of the headlamp of the current vehicle to the target height comprises the following step: if during the adjusting the lighting height of the headlamp of the current vehicle to the target height, it is detected that the driver of the current vehicle manually adjusts the light mode of the headlamp to the low beam mode, the low beam mode is maintained.
[0067] If during the adjusting, it is detected that the driver of the current vehicle manually adjusts the headlamp to the low beam mode (i.e. adjusts the headlamp height to the initially set lowest headlamp height), the current vehicle is maintained to travel in the low beam mode, so that the whole process does not affect the manual adjustment of the driver, and is only performed when the driver does not make an operation request, which is beneficial to improve the user experience.
[0068] It can be seen that, by the headlamp intelligent adjusting method provided in the embodiment of the present application, applied to an electronic device, in response to an instruction of adjusting a headlamp of a current vehicle to a high beam mode, it is monitored whether there is a vehicle in front of the current vehicle; if it is monitored that there is a vehicle in front of the current vehicle, vehicle parameters of the vehicle in front are acquired, the vehicle parameters comprising a first height and a second height, wherein the first height is a height of a reflector from the ground, and the second height is a height of a rear windshield from the ground; according to a distance between the current vehicle and the vehicle in front and the vehicle parameters, a target height of the headlamp in the high beam mode is determined; and the lighting height of the headlamp of the current vehicle is adjusted to the target height. In this way, according to the height of the rear windshield of the vehicle in front and other vehicle parameters such as the reflector, the lighting height of the headlamp of the current vehicle is adaptively adjusted, which is beneficial to avoid the influence of the high beam on the vehicle in front, thereby ensuring the driving safety of the vehicle in front and the current vehicle; meanwhile, the lighting brightness of the current vehicle is not affected, which is beneficial to improve the user experience.
[0069] Consistent with the above, please refer to Figure 3 An embodiment flowchart of a headlamp intelligent adjusting method provided in the embodiment of the present application. The headlamp intelligent adjusting method described in the embodiment comprises the following steps:
[0070] 301、in response to an instruction of adjusting a headlamp of a current vehicle to a high beam mode, it is monitored whether there is a vehicle in front of the current vehicle.
[0071] 302、if it is monitored that there is a vehicle in front of the current vehicle, image information is acquired, wherein the image information comprises camera related parameters of a camera.
[0072] 303、According to the image information, monitoring whether there is a vehicle in front of the current vehicle.
[0073] 304、If the image information indicates that there is a vehicle in front of the current vehicle, extracting a single frame image including the front vehicle from the image information.
[0074] 305、According to the single frame image and the camera-related parameters, determining the distance between the current vehicle and the front vehicle.
[0075] 306、According to the single frame image and the camera-related parameters, determining the vehicle parameters of the front vehicle, the vehicle parameters including a first height and a second height, wherein the first height is the height of the reflector from the ground, and the second height is the height of the rear windshield from the ground.
[0076] 307、According to the distance between the current vehicle and the front vehicle and the vehicle parameters, determining the target height of the high beam in the high beam mode.
[0077] 308、Adjusting the lighting height of the high beam of the current vehicle to the target height.
[0078] The specific description of the above steps 301-308 can be referred to in Figure 2A The corresponding steps of the described high beam intelligent adjustment method steps 201-204 will not be described here.
[0079] It can be seen that, by the headlamp intelligent adjustment method provided in the embodiment of the application, in response to an instruction of adjusting a headlamp of a current vehicle to a high beam mode, it is monitored whether there is a vehicle in front of the current vehicle; if it is monitored that there is a vehicle in front of the current vehicle, image information is acquired, wherein the image information comprises camera related parameters of a camera; according to the image information, it is monitored whether there is a vehicle in front of the current vehicle; if it is indicated in the image information that there is a vehicle in front of the current vehicle, a single frame image comprising the vehicle in front is extracted from the image information; according to the single frame image and the camera related parameters, a distance between the current vehicle and the vehicle in front is determined; according to the single frame image and the camera related parameters, vehicle parameters of the vehicle in front are determined, the vehicle parameters comprising a first height and a second height, wherein the first height is a height of a reflector from the ground, and the second height is a height of a rear windshield from the ground; according to the distance between the current vehicle and the vehicle in front and the vehicle parameters, a target height of the headlamp in the high beam mode is determined; and the illumination height of the headlamp of the current vehicle is adjusted to the target height. In this way, the vehicle parameters of the vehicle in front can be determined according to the camera related parameters of the camera of the camera, without the need to add other devices or equipment, which is beneficial to save resources; furthermore, the illumination height of the headlamp of the current vehicle is adaptively adjusted according to the height of the rear windshield of the vehicle in front and the vehicle parameters such as the reflector, which is beneficial to avoid the influence of the high beam on the vehicle in front, thereby ensuring the driving safety of the vehicle in front and the current vehicle; meanwhile, the illumination brightness of the current vehicle is not affected, which is beneficial to improve the user experience.
[0080] Consistent with the above, the following is a device for implementing the above headlamp intelligent adjustment method, which is as follows:
[0081] Please refer to Figure 4 , an embodiment structure schematic diagram of a headlamp intelligent adjustment device provided in the embodiment of the application. The headlamp intelligent adjustment device described in the embodiment is applied to an electronic device, and comprises a monitoring unit 401, an acquisition unit 402, a determination unit 403 and an adjustment unit 404, wherein,
[0082] The monitoring unit 401 is configured to monitor whether there is a vehicle in front of the current vehicle in response to an instruction of adjusting a headlamp of a current vehicle to a high beam mode;
[0083] The acquisition unit 402 is configured to acquire vehicle parameters of the vehicle in front if it is monitored that there is a vehicle in front of the current vehicle, the vehicle parameters comprising a first height and a second height, wherein the first height is a height of a reflector from the ground, and the second height is a height of a rear windshield from the ground;
[0084] The determining unit 403 is configured to determine a target height of the high beam in the high beam mode according to the distance between the current vehicle and the front vehicle and the vehicle parameter.
[0085] The adjusting unit 404 is configured to adjust the lighting height of the high beam of the current vehicle to the target height.
[0086] It can be seen that, by means of the high beam intelligent adjustment device described in the embodiments of the present application, in response to the instruction of adjusting the high beam of the current vehicle to the high beam mode, it is monitored whether there is a vehicle in front of the current vehicle; if it is monitored that there is a vehicle in front of the current vehicle, the vehicle parameter of the front vehicle is acquired, the vehicle parameter including a first height and a second height, wherein the first height is the height of the reflector from the ground, and the second height is the height of the rear windshield from the ground; according to the distance between the current vehicle and the front vehicle and the vehicle parameter, a target height of the high beam in the high beam mode is determined; and the lighting height of the high beam of the current vehicle is adjusted to the target height. In this way, according to the height of the rear windshield of the front vehicle and the vehicle parameters such as the reflector, the lighting height of the high beam of the current vehicle is adaptively adjusted, which is conducive to avoiding the influence of the high beam on the front vehicle, thereby ensuring the driving safety of the front vehicle and the current vehicle; at the same time, it does not affect the lighting brightness of the current vehicle, which is conducive to improving the user experience.
[0087] It can be understood that the functions of the program modules of the high beam intelligent adjustment device of the present embodiment can be implemented according to the methods in the above method embodiments, and the specific implementation process can be referred to the related description of the above method embodiments, which will not be described here.
[0088] Consistent with the above, please refer to Figure 5 An embodiment structure schematic diagram of a high beam intelligent adjustment system provided by the present application is shown in the figure. As shown in the figure, the high beam intelligent adjustment system includes a processor, a memory, and a communication unit; the processor is in communication connection with the memory and the communication unit;
[0089] The processor is in communication with the communication unit and executes the instructions stored in the memory;
[0090] The communication unit monitors whether there is a vehicle in front of the current vehicle in response to the instruction of adjusting the high beam of the current vehicle to the high beam mode;
[0091] The memory is configured to store instructions, when the instructions are executed by the processor, the processor executes the steps, the steps include:
[0092] If it is monitored that there is a vehicle in front of the current vehicle, vehicle parameters of the front vehicle are acquired, the vehicle parameters including a first height and a second height, wherein the first height is a height of a reflector from the ground, and the second height is a height of a rear windshield from the ground; according to the distance between the current vehicle and the front vehicle and the vehicle parameters, a target height of the headlamp in the high beam mode is determined; and the lighting height of the headlamp of the current vehicle is adjusted to the target height.
[0093] It can be seen that the headlamp intelligent adjustment system described in the embodiments of the present application can monitor whether there is a vehicle in front of the current vehicle in response to the instruction of adjusting the headlamp of the current vehicle to the high beam mode; if it is monitored that there is a vehicle in front of the current vehicle, vehicle parameters of the front vehicle are acquired, the vehicle parameters including a first height and a second height, wherein the first height is a height of a reflector from the ground, and the second height is a height of a rear windshield from the ground; according to the distance between the current vehicle and the front vehicle and the vehicle parameters, a target height of the headlamp in the high beam mode is determined; and the lighting height of the headlamp of the current vehicle is adjusted to the target height. In this way, the lighting height of the headlamp of the current vehicle is adaptively adjusted according to the height of the rear windshield of the front vehicle and other vehicle parameters such as the reflector, which is beneficial to avoid the influence of the high beam on the front vehicle, thereby ensuring the driving safety of the front vehicle and the current vehicle; meanwhile, the lighting brightness of the current vehicle is not affected, which is beneficial to improve the user experience.
[0094] In a possible example, after the vehicle parameters of the front vehicle are acquired, the processor is caused to perform the following steps:
[0095] Acquiring image information, wherein the image information includes camera-related parameters of a camera;
[0096] Monitoring whether there is a vehicle in front of the current vehicle according to the image information;
[0097] If it is indicated in the image information that there is a vehicle in front of the vehicle, a single-frame image including the front vehicle is extracted from the image information;
[0098] According to the single-frame image and the camera-related parameters, the distance between the current vehicle and the front vehicle is determined;
[0099] According to the single-frame image and the camera-related parameters, the first height and the second height are determined.
[0100] In a possible example, the camera-related parameters include at least one of a focal length and a height of a headlamp of the current vehicle in the single-frame image; and in the determining the distance between the current vehicle and the front vehicle according to the single-frame image and the camera-related parameters, the processor is caused to perform the following steps:
[0101] extracting a target region in the single-frame image;
[0102] determining, in the target region, a third height of a mirror of the front vehicle from the ground in the single-frame image and a fourth height of a rear windshield of the front vehicle from the ground;
[0103] obtaining an actual height of the headlamp of the current vehicle;
[0104] establishing a similar triangle between the current vehicle and the front vehicle according to the first height, the second height, the third height and the fourth height;
[0105] determining a first mapping relationship between the distance and a focal length between the current vehicle and the front vehicle in the single-frame image according to the similar triangle, the actual height of the headlamp, the focal length and the height of the headlamp;
[0106] determining the distance according to the first mapping relationship.
[0107] In a possible example, in the determining the first height and the second height according to the single-frame image and the camera-related parameters, the processor is caused to perform the following steps:
[0108] determining a second mapping relationship between the third height and the first height in the single-frame image according to the similar triangle, the actual height of the headlamp, the height of the headlamp, the first height and the third height;
[0109] determining the first height according to the second mapping relationship.
[0110] determining a third mapping relationship between the fourth height and the second height in the single-frame image according to the similar triangle, the actual height of the headlamp, the height of the headlamp, the second height and the fourth height;
[0111] determining the second height according to the third mapping relationship.
[0112] In a possible example, in the determining the target height of the headlamp in the high beam mode according to the distance between the current vehicle and the front vehicle and the vehicle parameters, the processor is caused to perform the following steps:
[0113] acquire an illumination range corresponding to the headlamp of the current vehicle;
[0114] determine whether the front vehicle is in the illumination range of the current vehicle according to the distance between the current vehicle and the front vehicle, the first height and the second height;
[0115] if the front vehicle is in the illumination range of the current vehicle, select the minimum value between the first height and the second height as the target height.
[0116] In a possible example, in the step of determining whether the front vehicle is in the illumination range of the current vehicle according to the distance between the current vehicle and the front vehicle, the first height and the second height, the processor is caused to perform the following steps:
[0117] if the lowest end of the reflector is determined to be in the illumination range according to the distance between the current vehicle and the front vehicle, the first height, it is determined that the front vehicle is in the illumination range of the current vehicle; or,
[0118] if the lowest end of the rear windshield is determined to be in the illumination range according to the distance between the current vehicle and the front vehicle, the second height, it is determined that the front vehicle is in the illumination range of the current vehicle.
[0119] In a possible example, in the step of adjusting the illumination height of the headlamp of the current vehicle to the target height, the processor is caused to perform the following steps:
[0120] if the driver of the current vehicle manually adjusts the light mode of the headlamp to the low beam mode during the step of adjusting the illumination height of the headlamp of the current vehicle to the target height, the low beam mode is maintained.
[0121] Consistent with the above, please refer to Figure 6 , an embodiment structure schematic diagram of an electronic device provided by the embodiment of the present application. As shown in the figure, it includes a processor, a memory, a communication interface and one or more programs, wherein the above-mentioned one or more programs are stored in the above-mentioned memory, and are configured to be executed by the above-mentioned processor, the program includes instructions for performing the following steps:
[0122] in response to the instruction of adjusting the headlamp of the current vehicle to the high beam mode, monitoring whether there is a vehicle in front of the current vehicle;
[0123] If it is monitored that there is a vehicle in front of the current vehicle, vehicle parameters of the front vehicle are acquired, the vehicle parameters including a first height and a second height, wherein the first height is a height of a reflector from the ground, and the second height is a height of a rear windshield from the ground;
[0124] According to the distance between the current vehicle and the front vehicle and the vehicle parameters, a target height of the high beam in the high beam mode is determined;
[0125] The illumination height of the high beam of the current vehicle is adjusted to the target height.
[0126] It can be seen that, in response to an instruction of adjusting the high beam of the current vehicle to the high beam mode, it is monitored whether there is a vehicle in front of the current vehicle. If it is monitored that there is a vehicle in front of the current vehicle, vehicle parameters of the front vehicle are acquired, the vehicle parameters including a first height and a second height, wherein the first height is a height of a reflector from the ground, and the second height is a height of a rear windshield from the ground. According to the distance between the current vehicle and the front vehicle and the vehicle parameters, a target height of the high beam in the high beam mode is determined. The illumination height of the high beam of the current vehicle is adjusted to the target height. In this way, according to the height of the rear windshield of the front vehicle and vehicle parameters such as the reflector, the illumination height of the high beam of the current vehicle is adaptively adjusted, which is beneficial to avoid the influence of the high beam on the front vehicle, thereby ensuring the driving safety of the front vehicle and the current vehicle. Meanwhile, the illumination brightness of the current vehicle is not affected, which is beneficial to improve the user experience.
[0127] In a possible example, after the vehicle parameters of the front vehicle are acquired, the above procedure includes instructions for performing the following steps:
[0128] Acquiring image information, wherein the image information includes camera-related parameters of a camera;
[0129] According to the image information, it is monitored whether there is a vehicle in front of the current vehicle;
[0130] If it is indicated in the image information that there is a vehicle in front of the vehicle, a single-frame image including the front vehicle is extracted from the image information;
[0131] According to the single-frame image and the camera-related parameters, the distance between the current vehicle and the front vehicle is determined;
[0132] According to the single-frame image and the camera-related parameters, the first height and the second height are determined.
[0133] In a possible example, the camera-related parameters include at least one of a focal length and a height of a headlamp of the current vehicle in the single-frame image; and in the determining the distance between the current vehicle and the front vehicle according to the single-frame image and the camera-related parameters, the program includes instructions for performing the following steps:
[0134] extracting a target region in the single-frame image;
[0135] determining, in the target region, a third height of a mirror of the front vehicle from the ground in the single-frame image and a fourth height of a rear windshield of the front vehicle from the ground;
[0136] obtaining an actual height of a headlamp of the current vehicle;
[0137] establishing a similar triangle between the current vehicle and the front vehicle according to the first height, the second height, the third height and the fourth height;
[0138] determining, according to the similar triangle, the actual height of the headlamp, the focal length and the height of the headlamp, a first mapping relationship between the distance and the focal length between the current vehicle and the front vehicle in the single-frame image;
[0139] determining the distance according to the first mapping relationship.
[0140] In a possible example, in the determining the first height and the second height according to the single-frame image and the camera-related parameters, the program includes instructions for performing the following steps:
[0141] determining, according to the similar triangle, the actual height of the headlamp, the height of the headlamp, the first height and the third height, a second mapping relationship between the third height and the first height in the single-frame image;
[0142] determining the first height according to the second mapping relationship.
[0143] determining, according to the similar triangle, the actual height of the headlamp, the height of the headlamp, the second height and the fourth height, a third mapping relationship between the fourth height and the second height in the single-frame image;
[0144] determining the second height according to the third mapping relationship.
[0145] In a possible example, in the step of determining the target height of the high beam of the current vehicle according to the distance between the current vehicle and the front vehicle and the vehicle parameters, the program comprises instructions for performing the following steps:
[0146] obtaining an illumination range corresponding to the high beam of the current vehicle;
[0147] determining whether the front vehicle is in the illumination range of the current vehicle according to the distance between the current vehicle and the front vehicle, the first height and the second height;
[0148] if the front vehicle is in the illumination range of the current vehicle, selecting the minimum value between the first height and the second height as the target height.
[0149] In a possible example, in the step of determining whether the front vehicle is in the illumination range of the current vehicle according to the distance between the current vehicle and the front vehicle, the first height and the second height, the program comprises instructions for performing the following steps:
[0150] if it is determined according to the distance between the current vehicle and the front vehicle and the first height that the lowermost end of the reflector is in the illumination range, it is determined that the front vehicle is in the illumination range of the current vehicle; or
[0151] if it is determined according to the distance between the current vehicle and the front vehicle and the second height that the lowermost end of the rear windshield is in the illumination range, it is determined that the front vehicle is in the illumination range of the current vehicle.
[0152] In a possible example, in the step of adjusting the illumination height of the high beam of the current vehicle to the target height, the program comprises instructions for performing the following steps:
[0153] if it is detected that the driver of the current vehicle manually adjusts the light mode of the high beam to the low beam mode in the process of adjusting the illumination height of the high beam of the current vehicle to the target height, the low beam mode is maintained.
[0154] The embodiments of the present application also provide a computer storage medium, wherein the computer storage medium can store a program, and the program comprises some or all steps of any one of the high beam intelligent adjustment methods described in the above method embodiments when the program is executed.
[0155] Although the present application is described in conjunction with the preferred embodiments, it will be understood that many modifications and variations of the described embodiments are possible, which will be understood by those skilled in the art having the benefit of the present disclosure. For example, although the application is described with reference to specific hardware, software, and firmware components, alternative embodiments can use different hardware, software, and firmware components. It is therefore to be understood that there is no intention, with the description of the preferred embodiments, to limit the scope of the present application to the described precise series of processing steps or to particular hardware implementations. It is therefore intended that the application be construed as including all such modifications and variations as fall within the scope of the claimed application. The terms "comprising", "including", "containing", etc. shall be construed as non-exhaustive and as open ended, i.e. in a manner source-specific processor or other unit can implement several of the functions recited in the claims. Measures described in mutually different dependent claims can be combined and yield good results.
[0156] Those skilled in the art will appreciate that embodiments of the present application can be devised for a method, an apparatus (device) or a computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer readable program code thereon for use by or in connection with an instruction execution system. The computer-usable or computer-readable medium can be a computer-usable solid state memory device, a computer-usable optical skeptical device, a computer-usable analog communication link (e.g. a telephone line) or a computer-usable digital communication link (e.g. a fiber optic line, a wireless communication link, etc.) embodying computer readable program code thereon for use by or in connection with an instruction execution system. The computer-usable or computer-readable medium can also be paper or other physical medium that stores computer- readable program code thereon.
[0157] The present application is described in the context of the methods, apparatus (devices) and computer program products of embodiments of the present application. It is to be understood that each flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processing device or other programmable front light intelligent adjustment device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable front light intelligent adjustment device, create means for implementing the functions specified in the flowcharts and / or block diagrams block or blocks. Figure 1 The flowcharts and / or block diagrams represent code modules, segments, or portions of code which include one or more Figure 1 The flowcharts and / or block diagrams represent code modules, segments, or portions of code which include one or more
[0158] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable front light intelligent adjustment device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flowcharts and / or block diagrams block or blocks. Figure 1 The flowcharts and / or block diagrams represent code modules, segments, or portions of code which include one or more Figure 1 The flowcharts and / or block diagrams represent code modules, segments, or portions of code which include one or more
[0159] These computer program instructions can also be loaded onto a computer or other programmable light intelligent adjustment device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 The computer program instructions can also be loaded onto a computer or other programmable light intelligent adjustment device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 The computer program instructions can also be loaded onto a computer or other programmable light intelligent adjustment device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart block or blocks.
[0160] Although the present application has been described in connection with certain specific features and embodiments thereof, it is evident that many alternatives, modifications, and variations will be apparent to those skilled in the art in light of the foregoing description. Accordingly, it is intended to embrace all such alternatives, modifications, and variations that fall within the scope of the application. Obviously, many modifications and variations of the present application are possible in light of the above teachings. It is, therefore, to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.
Claims
1. A method for intelligent adjustment of a headlamp, characterized in that, The method comprises the following steps: monitoring whether there is a vehicle in front of the current vehicle in response to an instruction to adjust the headlamp of the current vehicle to a high beam mode; if it is monitored that there is a vehicle in front of the current vehicle, obtaining vehicle parameters of the front vehicle, the vehicle parameters comprising a first height and a second height, wherein the first height is the height of a reflector from the ground, and the second height is the height of a rear windshield from the ground, and the first height and the second height are real environment parameters; determining a target height of the headlamp in the high beam mode according to the distance between the current vehicle and the front vehicle and the vehicle parameters, wherein the target height is the minimum value of the first height and the second height when the vehicle parameters are within the illumination range of the headlamp; adjusting the illumination height of the headlamp of the current vehicle to the target height; wherein the determination of the target height of the headlamp in the high beam mode according to the distance between the current vehicle and the front vehicle and the vehicle parameters comprises the following steps: obtaining the illumination range corresponding to the headlamp of the current vehicle; determining whether the front vehicle is within the illumination range of the current vehicle according to the distance between the current vehicle and the front vehicle, the first height and the second height; and if the front vehicle is within the illumination range of the current vehicle, selecting the minimum value of the first height and the second height as the target height; wherein the illumination range is calculated by the height of the headlamp and the brightness of the headlamp, and the illumination range is a spatial vector, and the determination of whether the front vehicle is within the illumination range of the current vehicle according to the distance between the current vehicle and the front vehicle, the first height and the second height comprises the following steps: constructing a three-dimensional coordinate system according to the spatial vector, the relative positions of the current vehicle and the front vehicle, and marking the range of the spatial vector in the three-dimensional coordinate system; and mapping the first height, the second height and the distance into the three-dimensional coordinate system based on the three-dimensional coordinate system, and if any one of the first height and the second height falls within the range of the spatial vector, it is determined that the front vehicle is within the illumination range.
2. The method of claim 1, after the step of obtaining the vehicle parameters of the front vehicle, further comprising the following steps: acquiring image information, wherein, the image information comprises camera-related parameters of a camera; monitoring whether there is a vehicle in front of the current vehicle according to the image information; if the image information indicates that there is a vehicle in front of the current vehicle, extracting a single-frame image comprising the front vehicle from the image information; determining the distance between the current vehicle and the front vehicle according to the single-frame image and the camera-related parameters; determining the first height and the second height according to the single-frame image and the camera-related parameters. 3.The method of claim 2, wherein the camera-related parameters comprise at least one of a focal length and a height of a headlamp of the current vehicle in the single frame image. The determining the distance between the current vehicle and the front vehicle based on the single frame image and the camera-related parameters comprises: extracting a target region in the single frame image; determining a third height of a mirror of the front vehicle above a ground in the single frame image and a fourth height of a rear windshield of the front vehicle above the ground in the single frame image within the target region; obtaining a real height of a headlamp of the current vehicle; establishing a similar triangle between the current vehicle and the front vehicle based on the first height, the second height, the third height, and the fourth height; determining a first mapping relationship between a focal length between the current vehicle and the front vehicle in the single frame image and the distance based on the similar triangle, the real height of the headlamp, the focal length, and the height of the headlamp; determining the distance based on the first mapping relationship. 4.The method of claim 3, wherein the determining the first height and the second height based on the single frame image and the camera-related parameters further comprises: determining a second mapping relationship between the third height and the first height in the single frame image based on the similar triangle, the real height of the headlamp, the height of the headlamp, the first height, and the third height; determining the first height based on the second mapping relationship; determining a third mapping relationship between the fourth height and the second height in the single frame image based on the similar triangle, the real height of the headlamp, the height of the headlamp, the second height, and the fourth height; determining the second height based on the third mapping relationship. 5.The method of claim 1, wherein the adjusting the height of the headlamp of the current vehicle to the target height comprises: if a light mode of the headlamp of the current vehicle is detected to be adjusted to a low beam mode by a driver of the current vehicle during the adjusting the height of the headlamp of the current vehicle to the target height, maintaining the low beam mode.
6. A headlamp intelligent adjustment system, characterized in that, The headlamp intelligent adjustment system comprises a processor, a memory, and a communication unit, wherein the processor is communicatively coupled to the memory and the communication unit. The processor communicates with the communication unit and executes instructions stored in the memory. The communication unit monitors whether there is a vehicle in front of the current vehicle in response to an instruction to adjust the headlamp of the current vehicle to a high beam mode. The memory is configured to store instructions that, when executed by the processor, cause the processor to perform the following steps: If a vehicle in front of the current vehicle is monitored, a vehicle parameter of the vehicle in front is acquired, the vehicle parameter including a first height and a second height, wherein the first height is a height of a reflector from the ground, and the second height is a height of a rear windshield from the ground, and the first height and the second height are real environment parameters; according to a distance between the current vehicle and the vehicle in front and the vehicle parameter, a target height of the headlamp in the high beam mode is determined, wherein the target height is a minimum value of the first height and the second height when the vehicle parameter is in a range of illumination of the headlamp; and an illumination height of the headlamp of the current vehicle is adjusted to the target height. The target height of the headlamp in the high beam mode according to the distance between the current vehicle and the vehicle in front and the vehicle parameter includes the following steps: a range of illumination corresponding to the headlamp of the current vehicle is acquired; according to the distance between the current vehicle and the vehicle in front, the first height and the second height, it is determined whether the vehicle in front is in the range of illumination of the current vehicle; if the vehicle in front is in the range of illumination of the current vehicle, a minimum value of the first height and the second height is selected as the target height. The range of illumination is calculated by a height of the headlamp and a brightness of the headlamp, and the range of illumination is a space vector; according to the distance between the current vehicle and the vehicle in front, the first height and the second height, it is determined whether the vehicle in front is in the range of illumination of the current vehicle, including: a three-dimensional space coordinate system is constructed according to the space vector, a relative position of the current vehicle and the vehicle in front, and a range of the space vector is marked in the three-dimensional space coordinate system; the first height, the second height and the distance are mapped into the three-dimensional space coordinate system based on the three-dimensional space coordinate system; if any one of the first height and the second height falls within the range of the space vector, it is determined that the vehicle in front is in the range of illumination.
7. An electronic device, comprising: A computer program product for electronic data exchange, wherein the computer program product causes a computer to perform the method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, A computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
Citation Information
Patent Citations
Passing light illumination control system and method capable of adapting to severe weather
CN111731182A
Vehicle distance reminding system and method, vehicle and computer storage medium
CN112298023A
Optical axis control device, optical axis control method, and vehicular lighting fixture system
JP2019166958A