Vehicle light automatic adjustment method and device and storage medium
By receiving feedback from the detection device, the vehicle light position is compared with the target light range, and automatically adjusting the vehicle light when it is not within the target range, the accuracy and inefficiency caused by manual adjustment in the prior art are solved, and efficient , accurate automatic dimming of vehicle lighting.
Patent Information
- Application Number
- CN202411539957.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-07
AI Technical Summary
Existing vehicle lighting adjustment methods require manual operation, resulting in low adjustment accuracy and efficiency.
By receiving the vehicle light-type position feedback from the detection device, it is compared with the target light range. When the vehicle light-type position is not within the target range, the vehicle light is automatically adjusted based on the target range.
The complete automatic dimming of vehicle lights is achieved, the accuracy and efficiency of adjustments are improved, and the defects of manual adjustments are avoided.
Smart Images

Figure CN119389104A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of lighting adjustment, and in particular to a method, device and storage medium for automatic adjustment of vehicle lighting. Background Art
[0002] The existing method of adjusting lights is to drive the vehicle onto the testing equipment to confirm the light pattern position, and then adjust the vehicle light pattern manually or by a robotic arm. However, the adjustment process requires manual operation by humans alone, and there are differences in the range of manual adjustment, resulting in large differences in the headlamp performance of vehicles off the production line. Manual adjustment also takes a certain amount of time, resulting in low adjustment efficiency. Summary of the invention
[0003] The main purpose of the present application is to provide a method, device and storage medium for automatic adjustment of vehicle lighting, aiming to solve the technical problem of low accuracy and efficiency in adjusting the lighting of a target vehicle.
[0004] To achieve the above-mentioned purpose, the present application proposes a method for automatically adjusting vehicle lighting, which is applied to a vehicle and includes:
[0005] When the vehicle is off the line, receiving the vehicle light type position fed back by the detection equipment, wherein the vehicle light type position is the cut-off line position after being calibrated by the optical center;
[0006] comparing the vehicle light pattern position with a target light range;
[0007] When the vehicle light pattern position is not within the target light range, the vehicle light is automatically adjusted based on the target light range.
[0008] In one embodiment, when the vehicle light pattern position is not within the target light range, the step of automatically adjusting the vehicle light based on the target light range includes:
[0009] When the vehicle light pattern position is not within the target light range, obtaining the distance and direction between the vehicle light pattern position and the target light range based on the target light range;
[0010] Generate a dimming motor adjustment instruction according to the distance and the direction, and control the dimming motor to adjust the vehicle light position according to the dimming motor adjustment instruction, and return to the step of comparing the vehicle light position with the target light range until the vehicle light position is within the target light range, thereby completing the automatic light adjustment.
[0011] In one embodiment, the method further comprises:
[0012] When the vehicle light pattern position is within the target light range, obtaining current dimming motor position information;
[0013] The current dimming motor position information is stored as the initial dimming position.
[0014] In one embodiment, the method further comprises:
[0015] In response to a light detection instruction, obtaining a low beam cutoff line inclination angle;
[0016] Comparing the low beam cut-off line inclination angle with a target low beam cut-off line inclination angle range to obtain a comparison result;
[0017] When the comparison result shows that the inclination angle of the low beam cut-off line is not within the inclination angle range of the target low beam cut-off line, adjusting the low beam cut-off line until the inclination angle of the low beam cut-off line is within the inclination angle range of the target low beam cut-off line;
[0018] After the adjustment is completed, the real-time dimming motor position information is obtained, and the stored initial dimming position is updated according to the real-time dimming motor position information.
[0019] In one embodiment, the step of obtaining the inclination angle of the low beam cut-off line in response to the light detection instruction includes:
[0020] In response to the light detection instruction, obtaining a low beam cutoff line height position, a low beam optical center height, and a first distance between the headlamp and the wall;
[0021] The inclination angle of the low beam cut-off line is calculated according to the height position of the low beam cut-off line, the height of the low beam optical center, and a first distance between the headlamp and the wall.
[0022] In one embodiment, the step of obtaining the low beam cut-off line height position, the low beam optical center height, and the first distance between the headlamp and the wall comprises:
[0023] Obtaining the low beam optical center height, the camera focal length, a first position of the wall projection to the camera, a second position of the low beam cutoff line projection to the camera, the camera installation height, and a second distance from the camera to the low beam optical center point;
[0024] Obtaining a second relationship between a low beam cutoff line height position and the second position, an installation height of the camera, and the first position according to a first relationship between the focal length of the camera, the first position, a third distance from the camera to the wall, and the second position;
[0025] Calculating a low beam cut-off line height position according to the second relationship, the second position, the installation height of the camera, and the first position;
[0026] Based on the first relationship, a first distance between the headlight and the wall is calculated according to the focal length of the camera, the installation height of the camera, the first position and the second distance.
[0027] In one embodiment, before the step of obtaining the inclination angle of the low beam cut-off line in response to the light detection instruction, the method further includes:
[0028] Detect the vehicle’s current environment information;
[0029] When the current environment information of the vehicle is a preset environment and the vehicle is facing a wall at a preset distance, detecting whether the vehicle turns on the low beam;
[0030] When the vehicle turns on low beam, responding to a light detection instruction.
[0031] In one embodiment, when the comparison result is that the inclination angle of the low beam cut-off line is not within the inclination angle range of the target low beam cut-off line, after the step of adjusting the low beam cut-off line until the inclination angle of the low beam cut-off line is within the inclination angle range of the target low beam cut-off line, the method further includes:
[0032] When the low beam cut-off line inclination angle is within the target low beam cut-off line inclination angle range, generating an adjustment completion instruction;
[0033] detecting whether an update instruction based on the adjustment completion instruction feedback is received;
[0034] When detecting and receiving the update instruction based on the adjustment completion instruction feedback, adjusting the low beam cut-off line according to the update instruction to generate an adjustment result;
[0035] When confirmation information based on the feedback of the adjustment result is received, it is determined that the adjustment is completed.
[0036] In addition, to achieve the above purpose, the present application also proposes a vehicle lighting automatic adjustment device, the vehicle lighting automatic adjustment device comprising:
[0037] A receiving module, used to receive the vehicle light type position fed back by the detection equipment when the vehicle is off the line, wherein the vehicle light type position is the cut-off line position after being calibrated by the optical center;
[0038] A comparison module, used to compare the vehicle light pattern position with the target light range;
[0039] The adjustment module is used for automatically adjusting the vehicle light based on the target light range when the vehicle light pattern position is not within the target light range.
[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle lighting automatic adjustment device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle lighting automatic adjustment method as described above.
[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle lighting automatic adjustment method as described above are implemented.
[0042] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the vehicle lighting automatic adjustment method as described above are implemented.
[0043] One or more technical solutions proposed in the present application include receiving the vehicle light pattern position fed back by the detection equipment when the vehicle is offline, the vehicle light pattern position being the cut-off line position after being calibrated by the optical center; comparing the vehicle light pattern position with the target light range; and automatically adjusting the vehicle light based on the target light range when the vehicle light pattern position is not within the target light range. The vehicle light is automatically adjusted through interaction with the detection equipment, and the CAN bus command communication between the detection equipment and the vehicle body is opened. The dimming position can be controlled by the detection equipment to achieve fully automatic dimming without manual adjustment, thereby avoiding the problems of low efficiency and accuracy caused by manual adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0046] Figure 1 A schematic diagram of a process flow provided for the first embodiment of the method for automatically adjusting vehicle lighting of the present application;
[0047] Figure 2 This is a schematic diagram of a process in which a detection device detects vehicle lighting in an embodiment of a method for automatically adjusting vehicle lighting of the present application;
[0048] Figure 3 This is a schematic diagram of the dimming motor structure of the current lighting adjustment solution with manual adjustment and electric adjustment;
[0049] Figure 4 A schematic diagram of a flow chart provided for the second embodiment of the method for automatically adjusting vehicle lighting of the present application;
[0050] Figure 5 This is a schematic diagram of the system architecture for automatic vehicle lighting adjustment in an embodiment of the method for automatic vehicle lighting adjustment of the present application;
[0051] Figure 6 This is a schematic diagram of the process of automatic adjustment of vehicle lights in an embodiment of the method for automatic adjustment of vehicle lights of the present application;
[0052] Figure 7 A flowchart diagram of the third embodiment of the vehicle lighting automatic adjustment method of the present application;
[0053] Figure 8 This is a schematic diagram of the parameter relationship between the vehicle low beam, the camera and the wall in an embodiment of the vehicle lighting automatic adjustment method of the present application;
[0054] Fig. 9 This is a schematic diagram of the process of light detection and adjustment in one embodiment of the vehicle light automatic adjustment method of the present application;
[0055] Fig.10 This is a schematic diagram of the module structure of the vehicle lighting automatic adjustment device according to an embodiment of the present application;
[0056] Fig.11 Schematic diagram of the device structure of the hardware operating environment involved in the vehicle lighting automatic adjustment method in the embodiment of the present application.
[0057] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0058] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0059] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0060] The main solution of the embodiment of the present application is: when the vehicle goes off the line, receiving the vehicle light pattern position fed back by the detection equipment, the vehicle light pattern position is the cut-off line position after optical center calibration; comparing the vehicle light pattern position with the target light range; when the vehicle light pattern position is not within the target light range, automatically adjusting the vehicle light based on the target light range.
[0061] The existing lighting adjustment method is to drive the vehicle onto the detection equipment to confirm the light pattern position, and adjust the vehicle light pattern manually or by a robotic arm. However, manual operation is required during the adjustment process, and there are differences in the range of manual adjustment, resulting in large differences in the headlamp performance of vehicles off the production line. Manual adjustment takes a certain amount of time, resulting in low adjustment efficiency.
[0062] The present application provides a solution and proposes a fully automatic dimming method for vehicles off the factory line, which opens up the communication feedback between the detection equipment and the whole vehicle and realizes the automation of dimming.
[0063] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a vehicle light automatic adjustment device, etc. The following takes the vehicle light automatic adjustment device as an example to illustrate this embodiment and the following embodiments.
[0064] Based on this, the embodiment of the present application provides a method for automatically adjusting vehicle lighting, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle lighting automatic adjustment method of the present application.
[0065] In this embodiment, the vehicle lighting automatic adjustment method is applied to a vehicle, and the vehicle lighting automatic adjustment method includes steps S10 to S30:
[0066] Step S10: When the vehicle is off the line, the vehicle light pattern position fed back by the detection equipment is received, and the vehicle light pattern position is the cut-off line position after being calibrated by the optical center.
[0067] It should be noted that the left and right headlights of the vehicles rolling off the factory production line need to be adjusted to adjust the vehicle's light pattern to the target position range. When the vehicle's light adjustment is required, the vehicle can be driven onto the testing equipment first, and the vehicle's light pattern position can be confirmed by the testing equipment. The vehicle's light pattern position is the position of the light emitted after the vehicle is turned on.
[0068] The detection device is connected to the vehicle light automatic adjustment device of the vehicle in this embodiment via a CAN bus, and the vehicle light type position fed back by the detection device can be received via the CAN bus.
[0069] Since the type or height of each vehicle is different, the height of the headlights will be different. The current dimming method is to dim according to the height of the design value, which will result in poor dimming accuracy. Therefore, this embodiment adds a detection device for identifying the optical center mark position of the headlight, that is, a camera is added to the light receiver of the detection device to detect the optical center mark position of the headlight. This position is used as the optical center of the dimming. Figure 2 As shown, Figure 2 The following is a schematic diagram of the process of vehicle lighting detection by the detection equipment. The light receiver of the detection equipment is equipped with multiple cameras. The feature search function findContours of OpenCV (Open Source Computer Vision Library, an open source computer vision and machine learning software library) is used to obtain the coordinates of the optical center mark of the lampshade, and the coordinates are used to perform corresponding conversion with the newly added camera coordinates to obtain the vehicle cutoff line light type position after the optical center is calibrated.
[0070] Step S20: Compare the vehicle light pattern position with the target light range.
[0071] It can be understood that the target light range is the standard light range of each vehicle's lights. When adjusting the vehicle's lights, the vehicle's light pattern position can be compared with the target light range to determine whether the vehicle's lights need to be adjusted.
[0072] It is understandable that if the vehicle light pattern position is within the target light range, the dimming motor position information corresponding to the vehicle light pattern position can be directly stored as a reference for subsequent electrical adjustment gear positions.
[0073] Step S30: When the vehicle light pattern position is not within the target light range, the vehicle light is automatically adjusted based on the target light range.
[0074] It should be noted that if the vehicle light pattern position is not within the target light range, it indicates that there is a deviation in the vehicle light. Therefore, the vehicle light can be automatically adjusted based on the target light range to adjust the vehicle light pattern position to within the target light range.
[0075] In a specific implementation, the light can be automatically adjusted through the dimming motor in the vehicle without the need for manual adjustment, thereby improving the accuracy and efficiency of the adjustment.
[0076] In a feasible implementation, when the vehicle light pattern position is within the target light range, the method further includes: when the vehicle light pattern position is within the target light range, obtaining current dimming motor position information; and storing the current dimming motor position information as the initial dimming position.
[0077] It can be understood that when the vehicle's light pattern position is within the target light range, there is no need to adjust the lights. At this time, the current dimming motor position information can be obtained and stored as the initial dimming position. The initial dimming position is used as a reference for subsequent electrical adjustment gears. For example, multiple gear information is calculated through the initial dimming position, and the specific adjustment gear is determined according to the user's adjustment instructions, so as to adjust the lights to the corresponding gears.
[0078] The current dimming motor position information can be detected by the sensor in the vehicle. Since the existing dimming method is to manually adjust the dimming motor, such as Figure 3 As shown, Figure 3 This is a schematic diagram of the manual + electric dimming motor structure. Due to the need to increase the production rhythm, the speed of the dimming screwdriver is relatively fast, which is easy to exceed the torque range and cause damage to the internal structure of the motor. Therefore, this embodiment replaces the manual and electric dimming motor with a pure electric stepping dimming motor, which can be completely controlled by the electronic control system. No manual screwdriver is required to operate it, which can simplify the dimming operation. The manual dimming part can be operated on the screen of the vehicle auxiliary system. The dimming is more precise and reflects intelligence.
[0079] The present embodiment provides a method for automatically adjusting vehicle lights. When a vehicle is offline, a vehicle light pattern position fed back by a detection device is received, the vehicle light pattern position being a cutoff line position after being calibrated by an optical center; the vehicle light pattern position is compared with a target light range; when the vehicle light pattern position is not within the target light range, the vehicle lights are automatically adjusted based on the target light range, and the vehicle lights are automatically adjusted through interaction with the detection device. The CAN bus command communication between the detection device and the vehicle body is opened, and the dimming position can be controlled by the detection device to achieve fully automatic dimming without manual adjustment, thereby avoiding the problems of low efficiency and accuracy caused by manual adjustment.
[0080] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , step S30 includes steps S301 to S302:
[0081] Step S301: when the vehicle light pattern position is not within the target light range, obtaining the distance and direction between the vehicle light pattern position and the target light range based on the target light range.
[0082] It can be understood that if the vehicle light pattern position is not within the target light range, the vehicle light needs to be adjusted so that the vehicle light pattern position is within the target light range. Therefore, the distance and direction between the current vehicle light pattern position and the critical value in the target light range can be obtained based on the target light range. For example, if the target light range is [a+40, a+80] and the vehicle light pattern position is a, the distance and direction of the target light range can be calculated based on this. The distance of the target light range is greater than 40 and the direction is to the right.
[0083] Step S302: Generate a dimming motor adjustment instruction according to the distance and the direction, and control the dimming motor to adjust the vehicle light position according to the dimming motor adjustment instruction, and return to the step of comparing the vehicle light position with the target light range until the vehicle light position is within the target light range, thereby completing the automatic light adjustment.
[0084] It should be noted that a dimming motor adjustment instruction can be generated according to the determined distance and direction, and the dimming motor adjustment instruction can be transmitted to the vehicle's headlight driver via CAN messages. The vehicle's headlight driver sends dimming control information of the stepper motor, thereby adjusting the dimming motor to adjust the vehicle's light pattern position. Specifically, the distance and direction of the vehicle's light pattern position can be adjusted, and after the adjustment, the step of comparing the vehicle's light pattern position with the target light range is returned again until the vehicle's light pattern position is within the target light range. If the vehicle's light pattern position is not within the target light range, the dimming motor continues to be controlled to adjust the vehicle's light pattern position again.
[0085] like Figure 5 As shown, Figure 5 This is a schematic diagram of the system architecture for automatic vehicle lighting adjustment. The detection device sends the current position of the vehicle lighting to the vehicle controller, the vehicle's DA (Display APP, intelligent interconnected vehicle machine) and BCM (Body Control Module) through the CAN bus, so that the current position of the vehicle lighting is compared with the target position range through the above controller. If the current position is not within the target position range, the corresponding distance and direction can be generated through the target position range, and a dimming motor adjustment instruction can be generated. The dimming motor adjustment instruction is sent to the vehicle's headlight driver through the CAN bus, and the headlight dimming motor is adjusted through the vehicle's headlight driver. Users can also fine-tune the lights according to the manual adjustment interface.
[0086] like Figure 6 As shown, Figure 6This is a flowchart of automatic vehicle lighting adjustment. First, the vehicle is driven to the detection equipment to confirm the light pattern position. The detection equipment feeds back the light pattern position through CAN messages. The DA screen receives the light pattern position through CAN and compares it with the target light position range to detect whether it is within the target range. If so, the current dimming motor position information is stored in the register as the initial dimming position, which serves as the basis for subsequent electric adjustment gears. If not, the dimming motor adjustment instruction is sent through the CAN message based on the distance and direction from the target range. After receiving the instruction, the controller notifies the headlight driver through the CAN message, and the headlight driver sends the dimming control information of the stepper motor to adjust the dimming position.
[0087] In this embodiment, when the vehicle light pattern position is not within the target light range, the distance and direction between the vehicle light pattern position and the target light range are obtained based on the target light range; a dimming motor adjustment instruction is generated according to the distance and the direction, and the dimming motor is controlled to adjust the vehicle light pattern position according to the dimming motor adjustment instruction, and the step of comparing the vehicle light pattern position with the target light range is returned until the vehicle light pattern position is within the target light range, and the automatic light adjustment is completed. The CAN command communication between the detection equipment and the vehicle body is opened, and the light is automatically adjusted through the pure electric dimming motor, thereby improving the efficiency and accuracy of the adjustment.
[0088] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 7 After step S30, the vehicle lighting automatic adjustment method further includes steps S31 to S34:
[0089] Step S31: In response to the light detection instruction, obtaining the inclination angle of the low beam cut-off line.
[0090] It should be noted that after users use or replace the vehicle's headlights in daily use, the dimming position of the light will deviate from the state just off the line, affecting the road lighting performance. Therefore, the vehicle's lights can be tested after the vehicle is used or the headlights are replaced. The light detection instruction can be generated by the user clicking the car screen. The inclination angle of the low beam cut-off line is the angle between the cut-off line of the low beam of the vehicle's headlight and the horizontal line.
[0091] During daily vehicle use or after replacing the headlights, the inclination angle of the low beam cut-off line will change and may not be within the standard range, which will affect the illumination range and height of the low beam, and further affect the driver's vision and driving safety.
[0092] In a specific implementation, the height of the vehicle can also be automatically detected. If the height is tilted, the tilt angle of the low beam cut-off line can be obtained.
[0093] In a feasible manner, if the vehicle needs to be in a darker environment for light detection, then before step S31, it also includes: detecting the current environment information of the vehicle; when the current environment information of the vehicle is a preset environment and the vehicle is facing a preset distance from the wall, detecting whether the vehicle turns on the low beam; when the vehicle turns on the low beam, responding to the light detection instruction.
[0094] In a specific implementation, a windshield camera is provided on the vehicle. When performing a vehicle lighting detection, the controller can remind the user to drive the vehicle to a relatively flat ground and obtain information about the vehicle's current environment. The preset environment is an environment with relatively dark ambient light, and the vehicle is facing a preset distance from the wall, which can be 5 to 10 meters.
[0095] In a specific implementation, it can be detected whether the user turns on the low beam of the vehicle. If so, it can respond to the light detection instruction after the user's motor vehicle screen dimming calibration procedure.
[0096] In a feasible implementation, step S31 may include steps A31 to A32:
[0097] Step A31: In response to the light detection instruction, obtain the low beam cut-off line height position, the low beam optical center height and the first distance between the headlamp and the wall.
[0098] It should be noted that the low beam cut-off line height position can be obtained in response to the light detection instruction. The low beam cut-off line height position is the low beam cut-off line height position of the headlamp, which can be obtained through parameter calculation. The low beam optical center height is the low beam optical center height of the headlamp, which can be detected by the camera set on the previous detection equipment. The first distance between the headlamp and the wall can be detected by the distance sensor.
[0099] In a feasible implementation manner, the step of obtaining the low beam cutoff line height position, the low beam optical center height, and the first distance between the headlamp and the wall includes: obtaining the low beam optical center height, the camera focal length, the first position of the wall projected to the camera, the second position of the low beam cutoff line projected to the camera, the camera installation height, and the second distance between the camera and the low beam optical center point;
[0100] Obtaining a second relationship between a low beam cutoff line height position and the second position, an installation height of the camera, and the first position according to a first relationship between the focal length of the camera, the first position, a third distance from the camera to the wall, and the second position;
[0101] Calculating a low beam cut-off line height position according to the second relationship, the second position, the installation height of the camera, and the first position;
[0102] Based on the first relationship, a first distance between the headlight and the wall is calculated according to the focal length of the camera, the installation height of the camera, the first position and the second distance.
[0103] It can be understood that the focal length of the camera can be directly obtained through the standard parameters of the camera. The first position is the position where the wall is projected onto the camera, which can be directly detected. The second position where the low beam cut-off line is projected onto the camera is the position where the low beam cut-off line of the vehicle's headlight is projected onto the camera, which can also be directly detected or calculated. The installation height of the camera can be detected by the sensor, and the second distance between the camera and the low beam optical center point can also be directly detected.
[0104] like Figure 8 As shown, Figure 8 It is a schematic diagram of the parameter relationship between the vehicle's low beam, camera and wall. The vehicle is equipped with a windshield camera. There is a certain distance between the low beam and the wall. f is the focal length of the camera, h is the position of the wall projected to the camera sensor, which can be obtained in real time, h1 is the position of the headlamp low beam cutoff line projected to the camera sensor, which can be obtained in real time, H is the installation height of the camera, H1 is the height of the headlamp low beam optical center, H2 is the height position of the headlamp low beam cutoff line, d is the distance from the camera to the wall, d2 is the distance from the camera to the low beam optical center point, and d3 is the distance between the headlamp and the wall. The known parameters can be stored in the body in the form of configuration parameters.
[0105] In a specific implementation, the first relationship between the focal length of the camera, the first position, the third distance from the camera to the wall, and the second position can be obtained according to the principle of similar triangles, as shown in the following formula 1:
[0106]
[0107] In the above formula 1, f is the focal length of the camera, h is the first position, d is the third distance from the camera to the wall, and H is the second position. According to the principle of similar triangles, a second relationship between the height position of the low beam cutoff line and the second position, the installation height of the camera, and the first position can be obtained, as shown in the following formula 2:
[0108]
[0109] In the above formula 2, the first relationship and the second relationship are equal, and the above formula 2 can be converted by the first relationship. Therefore, H2=(h1*H) / h, and thus the height position of the low beam cut-off line can be calculated.
[0110] In a specific implementation, the first distance d3 between the headlight and the wall = the third distance - the second distance = d - d2. Therefore, the first distance d3 between the headlight and the wall can be calculated using the first relationship in the above formula 1 and the camera focal length, the first position, the second position, and the second distance.
[0111] Step A32: Calculate the inclination angle of the low beam cut-off line according to the height position of the low beam cut-off line, the height of the low beam optical center, and the first distance between the headlamp and the wall.
[0112] In a specific implementation, the low beam cut-off line inclination angle can be calculated according to the low beam cut-off line height position H2, the low beam optical center height H1, and the first distance d3 between the headlamp and the wall, as shown in Formula 3:
[0113]
[0114] In the above formula 3, a is the inclination angle of the low beam cut-off line, and the inclination angle of the low beam cut-off line can be calculated by the above formula 3. Therefore, the inclination angle of the low beam cut-off line can be used to judge whether the vehicle's lights need to be adjusted.
[0115] Step S32: comparing the low beam cut-off line inclination angle with a target low beam cut-off line inclination angle range to obtain a comparison result.
[0116] The target low beam cut-off line inclination angle range is the low beam cut-off line inclination angle range corresponding to when the vehicle's lights are within a normal range.
[0117] Therefore, the low beam cut-off line inclination angle may be compared with the target low beam cut-off line inclination angle range to determine whether the low beam cut-off line inclination angle is within the target low beam cut-off line inclination angle range.
[0118] The comparison result may be that the low beam cut-off line inclination angle is within the target low beam cut-off line inclination angle range or the low beam cut-off line inclination angle is not within the target low beam cut-off line inclination angle range.
[0119] Step S33: When the comparison result is that the inclination angle of the low beam cut-off line is not within the target low beam cut-off line inclination angle range, the low beam cut-off line is adjusted until the inclination angle of the low beam cut-off line is within the target low beam cut-off line inclination angle range.
[0120] In a specific implementation, if the comparison result is that the inclination angle of the low beam cut-off line is not within the target low beam cut-off line inclination angle range, the low beam cut-off line needs to be adjusted until the inclination angle of the low beam cut-off line is within the target low beam cut-off line inclination angle range, and the vehicle lights can be adjusted by a dimming motor to achieve the adjustment of the low beam cut-off line. After the adjustment, the adjusted low beam cut-off line is compared with the target low beam cut-off line inclination angle range until the low beam cut-off line inclination angle is within the target low beam cut-off line inclination angle range.
[0121] In a feasible implementation manner, after step S33, it also includes: when the inclination angle of the low beam cut-off line is within the target low beam cut-off line inclination angle range, generating an adjustment completion instruction; detecting whether an update instruction based on the feedback of the adjustment completion instruction is received; when detecting that the update instruction based on the feedback of the adjustment completion instruction is received, adjusting the low beam cut-off line according to the update instruction to generate an adjustment result; when receiving confirmation information based on the feedback of the adjustment result, determining that the adjustment is completed.
[0122] It should be noted that when it is detected that the inclination angle of the low beam cut-off line is within the target low beam cut-off line inclination angle range, the system can generate an adjustment completion instruction and send the adjustment completion instruction to the user, and detect whether an update instruction based on the user's feedback on the adjustment completion instruction is received. If not, it can be detected again whether a confirmation message of the adjustment is received. If so, it is determined that the adjustment is completed.
[0123] In a specific implementation, if an update instruction based on the user's adjustment completion instruction feedback is detected, the low beam cutoff line can be adjusted according to the update instruction, that is, the user needs to manually fine-tune the light to generate an adjustment result, and the adjustment result is fed back to the user. After the user clicks to confirm, a confirmation message is generated to confirm that the adjustment is completed.
[0124] In a specific implementation, the user can also issue a light gear adjustment instruction. At this time, the gear information can be determined according to the light gear adjustment instruction, and the target gear can be determined according to the initial dimming position and the gear information, and the light can be adjusted to the target gear to achieve user customized adjustment.
[0125] Step S34: after the adjustment is completed, the real-time dimming motor position information is obtained, and the stored initial dimming position is updated according to the real-time dimming motor position information.
[0126] In a specific implementation, it can be determined whether the adjustment is completed, and after the adjustment is completed, the adjusted real-time adjustment motor position information is obtained, and the stored initial dimming position is updated according to the dimming motor position information, and the stored initial dimming position is replaced with the real-time dimming motor position information.
[0127] like Fig. 9 As shown, Fig. 9 The following is a flowchart of the lighting detection and adjustment process. First, drive the car to a relatively flat ground, facing the wall 5 to 10 meters away, and the ambient light is relatively dark. After the vehicle turns on the low beam, the user clicks the dimming calibration program on the DA to start the detection. The camera on the windshield detects the inclination angle of the low beam cutoff line based on the positional relationship between the camera, the vehicle and the wall, and sends the cutoff line inclination angle data to the DA through the CAN bus. The DA compares the cutoff line inclination angle data with the target low beam cutoff line inclination angle range, and issues a dimming command through the CAN to dim the low beam cutoff line; at the same time, the owner is also allowed to control the cutoff line position through the dimming interface button. The DA prompts the owner to confirm the correction result. After confirming the correction, the DA stores the position as the corrected initial dimming position.
[0128] This embodiment obtains the inclination angle of the low beam cutoff line in response to the light detection instruction; compares the inclination angle of the low beam cutoff line with the target inclination angle range of the low beam cutoff line to obtain a comparison result; when the comparison result is that the inclination angle of the low beam cutoff line is not within the target inclination angle range of the low beam cutoff line, adjusts the low beam cutoff line until the inclination angle of the low beam cutoff line is within the target inclination angle range of the low beam cutoff line; after the adjustment is completed, obtains real-time dimming motor position information, and updates the stored initial dimming position according to the real-time dimming motor position information.
[0129] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the method for automatic adjustment of vehicle lights of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0130] This application also provides a vehicle lighting automatic adjustment device, please refer to Fig.10 , the vehicle lighting automatic adjustment device comprises:
[0131] The receiving module 10 is used to receive the vehicle light type position fed back by the detection equipment when the vehicle is off the line, and the vehicle light type position is the cut-off line position after being calibrated by the optical center.
[0132] The comparison module 20 is used to compare the vehicle light pattern position with the target light range.
[0133] The adjustment module 30 is used to automatically adjust the vehicle light based on the target light range when the vehicle light pattern position is not within the target light range.
[0134] The vehicle light automatic adjustment device provided by the present application adopts the vehicle light automatic adjustment method in the above embodiment, which can solve the technical problem of low accuracy and efficiency of target vehicle light adjustment. Compared with the prior art, the beneficial effects of the vehicle light automatic adjustment device provided by the present application are the same as the beneficial effects of the vehicle light automatic adjustment method provided by the above embodiment, and other technical features in the vehicle light automatic adjustment device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0135] In one embodiment, the adjustment module 30 is also used to obtain the distance and direction between the vehicle light position and the target light range based on the target light range when the vehicle light position is not within the target light range; generate a dimming motor adjustment instruction according to the distance and the direction, and control the dimming motor to adjust the vehicle light position according to the dimming motor adjustment instruction, and return to the step of comparing the vehicle light position with the target light range until the vehicle light position is within the target light range, thereby completing the automatic light adjustment.
[0136] In one embodiment, the adjustment module 30 is further configured to obtain current dimming motor position information when the vehicle light pattern position is within the target light range; and store the current dimming motor position information as an initial dimming position.
[0137] In one embodiment, the vehicle lighting automatic adjustment device also includes: a detection module 40, the detection module is used to obtain the low beam cut-off line inclination angle in response to the lighting detection instruction; compare the low beam cut-off line inclination angle with the target low beam cut-off line inclination angle range to obtain a comparison result; when the comparison result is that the low beam cut-off line inclination angle is not within the target low beam cut-off line inclination angle range, adjust the low beam cut-off line until the low beam cut-off line inclination angle is within the target low beam cut-off line inclination angle range; after the adjustment is completed, obtain real-time dimming motor position information, and update the stored initial dimming position according to the real-time dimming motor position information.
[0138] In one embodiment, the detection module 40 is further used to obtain the low beam cut-off line height position, the low beam optical center height and the first distance between the headlamp and the wall in response to the light detection instruction; and calculate the low beam cut-off line inclination angle according to the low beam cut-off line height position, the low beam optical center height and the first distance between the headlamp and the wall.
[0139] In one embodiment, the detection module 40 is further used to obtain the low beam optical center height, the camera focal length, the first position of the wall projection to the camera, the second position of the low beam cutoff line projection to the camera, the camera installation height, and the second distance between the camera and the low beam optical center point; obtain the second relationship between the low beam cutoff line height position and the second position, the camera installation height and the first position according to the camera focal length, the first position, the third distance from the camera to the wall, and the first relationship between the second position; calculate the low beam cutoff line height position according to the second relationship, the second position, the camera installation height and the first position; and calculate the first distance between the headlight and the wall based on the first relationship according to the camera focal length, the camera installation height, the first position and the second distance.
[0140] In one embodiment, the detection module 40 is also used to detect the current environment information of the vehicle; when the current environment information of the vehicle is a preset environment and the vehicle is facing a preset distance from the wall, detect whether the vehicle has turned on the low beam; when the vehicle turns on the low beam, respond to the light detection instruction.
[0141] The present application provides a vehicle lighting automatic adjustment device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle lighting automatic adjustment method in the above-mentioned embodiment 1.
[0142] Reference below Fig.11 , which shows a schematic diagram of the structure of a vehicle light automatic adjustment device suitable for implementing the embodiment of the present application. The vehicle light automatic adjustment device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The vehicle light automatic adjustment device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0143] like Fig.11As shown, the vehicle light automatic adjustment device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle light automatic adjustment device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle light automatic adjustment device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle light automatic adjustment device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0144] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0145] The vehicle light automatic adjustment device provided by the present application adopts the vehicle light automatic adjustment method in the above embodiment, which can solve the technical problem of low accuracy and efficiency of target vehicle light adjustment. Compared with the prior art, the beneficial effects of the vehicle light automatic adjustment device provided by the present application are the same as the beneficial effects of the vehicle light automatic adjustment method provided by the above embodiment, and other technical features in the vehicle light automatic adjustment device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0146] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0147] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0148] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle lighting automatic adjustment method in the above-mentioned embodiment.
[0149] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0150] The computer-readable storage medium may be included in the vehicle light automatic adjustment device; or may exist independently without being assembled into the vehicle light automatic adjustment device.
[0151] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle light automatic adjustment device, the vehicle light automatic adjustment device: receives the vehicle light type position feedback from the detection device when the vehicle is offline, and the vehicle light type position is the cut-off line position after optical center calibration; compares the vehicle light type position with the target light range; when the vehicle light type position is not within the target light range, automatically adjusts the vehicle light based on the target light range.
[0152] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0153] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0154] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0155] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle light automatic adjustment method, and can solve the technical problem of low accuracy and efficiency of target vehicle light adjustment. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle light automatic adjustment method provided by the above-mentioned embodiment, and will not be repeated here.
[0156] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle lighting automatic adjustment method when executed by a processor.
[0157] The computer program product provided by the present application can solve the technical problem of low accuracy and efficiency in adjusting the lighting of the target vehicle. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle lighting automatic adjustment method provided by the above embodiment, which will not be described in detail here.
[0158] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for automatically adjusting vehicle lighting, characterized in that: The vehicle lighting automatic adjustment method is applied to a vehicle, and the vehicle lighting automatic adjustment method comprises: When the vehicle is off the line, receiving the vehicle light type position fed back by the detection equipment, the vehicle light type position is the cut-off line position after being calibrated by the optical center; comparing the vehicle light pattern position with a target light range; When the vehicle light pattern position is not within the target light range, the vehicle light is automatically adjusted based on the target light range.
2. The method according to claim 1, characterized in that When the vehicle light pattern position is not within the target light range, the step of automatically adjusting the vehicle light based on the target light range comprises: When the vehicle light pattern position is not within the target light range, obtaining the distance and direction between the vehicle light pattern position and the target light range based on the target light range; Generate a dimming motor adjustment instruction according to the distance and the direction, and control the dimming motor to adjust the vehicle light position according to the dimming motor adjustment instruction, and return to the step of comparing the vehicle light position with the target light range until the vehicle light position is within the target light range, thereby completing the automatic light adjustment.
3. The method according to claim 1 or 2, characterized in that The method further comprises: When the vehicle light pattern position is within the target light range, obtaining current dimming motor position information; The current dimming motor position information is stored as the initial dimming position.
4. The method according to claim 1, characterized in that The method further comprises: In response to a light detection instruction, obtaining a low beam cutoff line inclination angle; Comparing the low beam cut-off line inclination angle with a target low beam cut-off line inclination angle range to obtain a comparison result; When the comparison result shows that the inclination angle of the low beam cut-off line is not within the inclination angle range of the target low beam cut-off line, adjusting the low beam cut-off line until the inclination angle of the low beam cut-off line is within the inclination angle range of the target low beam cut-off line; After the adjustment is completed, the real-time dimming motor position information is obtained, and the stored initial dimming position is updated according to the real-time dimming motor position information.
5. The method according to claim 4, characterized in that The step of obtaining the inclination angle of the low beam cut-off line in response to the light detection instruction comprises: In response to the light detection instruction, obtaining a low beam cutoff line height position, a low beam optical center height, and a first distance between the headlamp and the wall; The inclination angle of the low beam cut-off line is calculated according to the height position of the low beam cut-off line, the height of the low beam optical center, and a first distance between the headlamp and the wall.
6. The method according to claim 5, characterized in that The step of obtaining the low beam cut-off line height position, the low beam optical center height, and the first distance between the headlamp and the wall comprises: Obtaining the low beam optical center height, the camera focal length, a first position of the wall projection to the camera, a second position of the low beam cutoff line projection to the camera, the camera installation height, and a second distance from the camera to the low beam optical center point; Obtaining a second relationship between a low beam cutoff line height position and the second position, an installation height of the camera, and the first position according to a first relationship between the focal length of the camera, the first position, a third distance from the camera to the wall, and the second position; Calculating a low beam cut-off line height position according to the second relationship, the second position, the installation height of the camera, and the first position; Based on the first relationship, a first distance between the headlight and the wall is calculated according to the focal length of the camera, the installation height of the camera, the first position and the second distance.
7. The method according to claim 4, characterized in that Before the step of obtaining the inclination angle of the low beam cut-off line in response to the light detection instruction, the method further includes: Detect the vehicle’s current environment information; When the current environment information of the vehicle is a preset environment and the vehicle is facing a wall at a preset distance, detecting whether the vehicle turns on the low beam; When the vehicle turns on low beam, responding to a light detection instruction.
8. The method according to claim 4, characterized in that After the step of adjusting the low beam cutoff line until the inclination angle of the low beam cutoff line is within the inclination angle range of the target low beam cutoff line when the comparison result shows that the inclination angle of the low beam cutoff line is not within the inclination angle range of the target low beam cutoff line, the method further includes: When the low beam cut-off line inclination angle is within the target low beam cut-off line inclination angle range, generating an adjustment completion instruction; detecting whether an update instruction based on the adjustment completion instruction feedback is received; When detecting and receiving the update instruction based on the adjustment completion instruction feedback, adjusting the low beam cut-off line according to the update instruction to generate an adjustment result; When confirmation information based on the feedback of the adjustment result is received, it is determined that the adjustment is completed.
9. A vehicle lighting automatic adjustment device, characterized in that: The device comprises: A receiving module, used for receiving the vehicle light type position fed back by the detection equipment when the vehicle is off the line, wherein the vehicle light type position is the cut-off line position after being calibrated by the optical center; A comparison module, used for comparing the vehicle light pattern position with the target light range; The adjustment module is used to automatically adjust the vehicle light based on the target light range when the vehicle light pattern position is not within the target light range.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle lighting automatic adjustment method according to any one of claims 1 to 8 are implemented.