Method, device, equipment and storage medium for obtaining headlamp installation position
By determining the highest and lowest luminous points of the luminous area of the headlight and adjusting the reference ground plane to calculate its height, the cumbersome problem of obtaining the height of the headlight installation in the prior art is solved and efficiency is improved.
Patent Information
- Application Number
- CN202211386792.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-11-07
AI Technical Summary
In the prior art, the steps to obtain the maximum and minimum heights of the vehicle light installation are too cumbersome, especially during the development of new models, CATIA measurement tools or surface commands need to be called multiple times.
By determining the highest and lowest luminous points in the geometric model of the light luminous region of the headlight, as reference points, adjust the position of the reference ground plane relative to these points, calculate its height, and determine the maximum and minimum heights.
The steps to obtain the maximum and minimum heights of the car light installation are simplified, work efficiency is improved, and technicians can calculate the time and effort when changing the vehicle posture.
Smart Images

Figure CN115688284B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automotive design, and particularly to a method, device, equipment, and storage medium for obtaining the installation position of vehicle lamps. Background Art
[0002] In the related art, designers and proofreaders calculate the maximum and minimum dimensions of the installation height of automotive lighting devices mainly by repeatedly calling the measurement tools or surface commands of CATIA (Computer-Aided Three-Dimensional Interactive Appli).
[0003] However, during the development of new vehicle models, due to continuous adjustment of the vehicle posture, relevant technicians need to repeatedly call the CATIA measurement tools or surface commands to obtain the maximum and minimum heights of the vehicle lamp installation, which makes the steps of obtaining the maximum and minimum heights of the automotive vehicle lamp installation too cumbersome. Summary of the Invention
[0004] The main purpose of the present application is to provide a method, device, equipment, and storage medium for obtaining the installation position of vehicle lamps, aiming to solve the technical problem that the steps of obtaining the maximum and minimum heights of the automotive vehicle lamp installation are too cumbersome.
[0005] To achieve the above object, the present application provides a method for obtaining the installation position of vehicle lamps, including:
[0006] Obtaining the geometric model of the light-emitting area of the vehicle lamp and at least one reference ground plane;
[0007] Determining the highest light-emitting point and the lowest light-emitting point in the geometric model of the light-emitting area of the vehicle lamp;
[0008] According to the coordinate information of the highest light-emitting point, obtaining at least one highest light-emitting point height of the highest light-emitting point relative to at least one of the reference ground planes, and according to the coordinate information of the lowest light-emitting point, obtaining at least one lowest light-emitting point height of the lowest light-emitting point relative to at least one of the reference ground planes;
[0009] Determining the maximum height among at least one of the highest light-emitting point heights, and determining the minimum height among at least one of the lowest light-emitting point heights;
[0010] According to the maximum height and the minimum height, determining the maximum reference ground plane corresponding to the maximum height and the minimum reference ground plane corresponding to the minimum height, and outputting the maximum height and the corresponding maximum reference ground plane, as well as the minimum height and the corresponding minimum reference ground plane.
[0011] Optionally, obtaining at least one highest luminous point height of the highest luminous point relative to at least one of the reference ground planes according to the coordinate information of the highest luminous point includes:
[0012] Obtaining first coordinate information of a first coordinate point and second coordinate information of a second coordinate point on the reference ground plane according to the reference ground plane; wherein, a horizontal distance between the first coordinate point and the highest luminous point is less than a horizontal distance between the second coordinate point and the highest luminous point;
[0013] Obtaining a first vertical distance in a vertical direction and a first horizontal distance in a horizontal direction between the first coordinate point and the second coordinate point according to the first coordinate information and the second coordinate information;
[0014] Obtaining a first included angle between the reference ground plane and a horizontal plane according to the first vertical distance and the first horizontal distance;
[0015] Obtaining a second vertical distance in a vertical direction between the highest luminous point and the reference ground plane according to the coordinate information of the highest luminous point and the reference ground plane;
[0016] Obtaining at least one highest luminous point height of the highest luminous point relative to at least one of the reference ground planes according to the second vertical distance and the first included angle.
[0017] Optionally, obtaining the second vertical distance in a vertical direction between the highest luminous point and the reference ground plane according to the coordinate information of the highest luminous point and the reference ground plane includes:
[0018] Obtaining a second horizontal distance in a horizontal direction between the highest luminous point and the first coordinate point, and a first horizontal distance in a horizontal direction between the first coordinate point and the second coordinate point according to the coordinate information of the highest luminous point, the first coordinate information, and the second coordinate information;
[0019] Obtaining a third vertical distance according to the first vertical distance, the second horizontal distance, and the first horizontal distance;
[0020] Obtaining a fourth vertical distance in a vertical direction between the highest luminous point and the first coordinate point according to the coordinate information of the highest luminous point and the first coordinate information;
[0021] Obtaining the second vertical distance in a vertical direction between the highest luminous point and the first coordinate point according to the third vertical distance and the fourth vertical distance.
[0022] Optionally, obtaining at least one lowest luminous point height of the lowest luminous point relative to at least one of the reference ground planes according to the coordinate information of the lowest luminous point includes:
[0023] Based on the coordinate information of the lowest light-emitting point and the reference ground plane, obtain a fifth vertical distance between the lowest light-emitting point and the reference ground plane in the vertical direction;
[0024] Based on the fifth vertical distance and the first included angle, obtain at least one lowest light-emitting point height of the lowest light-emitting point relative to at least one of the reference ground planes.
[0025] Optionally, the step of obtaining a fifth vertical distance between the lowest light-emitting point and the reference ground plane in the vertical direction based on the coordinate information of the lowest light-emitting point and the reference ground plane includes:
[0026] Based on the coordinate information of the lowest light-emitting point, the first coordinate information, and the second coordinate information, obtain a fourth horizontal distance between the lowest light-emitting point and the first coordinate point in the horizontal direction, and a first horizontal distance between the first coordinate point and the second coordinate point in the horizontal direction;
[0027] Based on the first vertical distance, the fourth horizontal distance, and the first horizontal distance, obtain a sixth vertical distance;
[0028] Based on the coordinate information of the lowest light-emitting point and the first coordinate information, obtain a seventh vertical distance between the lowest light-emitting point and the first coordinate point in the vertical direction;
[0029] Based on the sixth vertical distance and the seventh vertical distance, obtain a fifth vertical distance between the lowest light-emitting point and the first coordinate point in the vertical direction.
[0030] Optionally, the step of determining the highest light-emitting point and the lowest light-emitting point in the geometric model of the headlight light-emitting area includes:
[0031] Determine the maximum value point and the minimum value point of the geometric model of the headlight light-emitting area in the three-dimensional index coordinate system of the reference ground plane;
[0032] Based on the maximum value point and the minimum value point, determine the highest light-emitting point and the lowest light-emitting point in the geometric model of the headlight light-emitting area.
[0033] Optionally, the headlight includes at least one of a high beam, a daytime running light, a position light, or a turn signal.
[0034] In a second aspect, the present application further provides a device for obtaining the installation position of a headlight, including:
[0035] An acquisition module, configured to acquire a geometric model of a headlight light-emitting area and at least one reference ground plane;
[0036] A first determination module, configured to determine the highest light-emitting point and the lowest light-emitting point in the geometric model of the headlight light-emitting area;
[0037] An obtaining module, configured to obtain at least one maximum luminous point height of the maximum luminous point relative to at least one of the reference ground planes according to the coordinate information of the maximum luminous point, and obtain at least one minimum luminous point height of the minimum luminous point relative to at least one of the reference ground planes according to the coordinate information of the minimum luminous point;
[0038] A second determination module, configured to determine a maximum height among at least one of the maximum luminous point heights, and determine a minimum height among at least one of the minimum luminous point heights;
[0039] An output module, configured to determine a maximum reference ground plane corresponding to the maximum height and a minimum reference ground plane corresponding to the minimum height according to the maximum height and the minimum height, and output the maximum height and the corresponding maximum reference ground plane, and the minimum height and the corresponding minimum reference ground plane.
[0040] In a third aspect, the present application further provides a vehicle lamp installation position obtaining device, a memory, a processor, and a vehicle lamp installation position obtaining program stored on the memory and executable on the processor, and the audio and video processing program is configured to implement the steps of the vehicle lamp installation position obtaining method as described above.
[0041] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the vehicle lamp installation position obtaining method of any embodiment of the present application.
[0042] A vehicle lamp installation position obtaining method proposed in an embodiment of the present application. In the present application, after determining the maximum luminous point and the minimum luminous point in the geometric model of the vehicle lamp luminous area, using the maximum luminous point and the minimum luminous point as reference points, after adjusting the position of the reference ground plane relative to the maximum luminous point and the minimum luminous point, calculate the maximum luminous point height and the minimum luminous point height of the maximum luminous point and the minimum luminous point relative to each reference ground plane, and respectively determine the maximum height of the maximum luminous point height and the minimum height of the minimum luminous point height from the maximum luminous point height and the minimum luminous point height, thereby simplifying the steps of obtaining the maximum height and the minimum height of the vehicle lamp installation, and improving the work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a schematic hardware structure diagram of an embodiment of the vehicle lamp installation position obtaining method of the present application;
[0044] Figure 2 It is a schematic flowchart of the first embodiment of the vehicle lamp installation position obtaining method of the present application;
[0045] Figure 3 It is a schematic flowchart of the second embodiment of the vehicle lamp installation position obtaining method of the present application;
[0046] Figure 4 Schematic diagram for obtaining the height of the highest light-emitting point of this application;
[0047] Figure 5 Schematic flow chart of the third embodiment of the method for obtaining the headlight installation position of this application;
[0048] Figure 6 Schematic structural framework diagram of the device for obtaining the headlight installation position of this application.
[0049] The realization of the purpose, functional features and advantages of this application will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0050] It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.
[0051] In the prior art, during the development of new vehicle models, the vehicle posture needs to be continuously adjusted. Therefore, relevant technicians need to call the CATIA measurement tool or surface command multiple times to obtain the maximum height and minimum height of the headlight installation. However, the steps of obtaining the maximum height and minimum height of the vehicle headlight installation in the above method are too cumbersome.
[0052] This application provides a solution. After determining the highest light-emitting point and the lowest light-emitting point in the geometric model of the headlight light-emitting area, taking the highest light-emitting point and the lowest light-emitting point as reference points, after adjusting the position of the reference ground plane relative to the highest light-emitting point and the lowest light-emitting point, calculate the highest light-emitting point height and the lowest light-emitting point height of the highest light-emitting point and the lowest light-emitting point relative to each reference ground plane, and respectively determine the maximum height of the highest light-emitting point height and the minimum height of the lowest light-emitting point height from the highest light-emitting point height and the lowest light-emitting point height, thereby simplifying the steps of obtaining the maximum height and minimum height of the vehicle headlight installation and improving work efficiency.
[0053] Refer to Figure 1 , Figure 1 Schematic diagram of the structure of the headlight installation position acquisition terminal device in the hardware operating environment involved in the embodiment solution of this application.
[0054] As Figure 1As shown in the figure, the terminal device for obtaining the installation position of the vehicle lamp may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (WI-FI) interface). The memory 1005 may be a high-speed Random Access Memory (RAM) or a stable Non-Volatile Memory (NVM), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0055] Those skilled in the art can understand that Figure 1 the structure shown in
[0056] does not constitute a limitation on the terminal device for obtaining the installation position of the vehicle lamp, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. Figure 1 As shown in
[0057] the memory 1005, as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a program for obtaining the installation position of the vehicle lamp. Figure 1 In the terminal for obtaining the installation position of the vehicle lamp shown in
[0058] Figure 2 Figure 2 ,
[0059]
[0059] It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0060] In this embodiment, the method for obtaining the headlight mounting position includes:
[0061] Step S10: Obtain the geometric model of the headlight illumination area and at least one reference ground plane;
[0062] The execution subject of the method for obtaining the headlight mounting position is a terminal device with display and interaction functions, such as a smart phone, a tablet device, a laptop computer, etc. The present application does not limit this. For example, the user imports the file storing the graphic set of the headlight illumination area set and the reference ground plane into the CATIA (Computer-Aided Three-Dimensional Interactive Appli) software, and then obtains the geometric model of the headlight illumination area and at least one reference ground plane.
[0063] In this embodiment, the geometric model of the headlight illumination area can be a headlight illumination area model pre-constructed by the headlight manufacturer; or, the geometric figure of the headlight illumination area can also be a headlight illumination area model constructed by relevant technical personnel according to the headlight type. The reference ground plane can be a ground plane with different angles formed with the horizontal ground based on the horizontal ground. It can be understood that for different reference ground planes, the posture of the vehicle is different, and thus the highest illumination point and the lowest illumination point are different. Among them, the headlight includes at least one of a high beam, a daytime running light, a position light, or a turn signal.
[0064] Step S20: Determine the highest illumination point and the lowest illumination point in the geometric model of the headlight illumination area;
[0065] In this embodiment, after importing the geometric model of the headlight illumination area into CATIA, a reference horizontal plane is created in CATIA. Based on the reference horizontal plane, the highest illumination point can be the illumination point in the geometric model of the headlight illumination area with the largest distance from the reference horizontal plane; the lowest illumination point can be the illumination point in the geometric model of the headlight illumination area with the smallest distance from the reference horizontal plane.
[0066] Step S30: Obtain at least one highest illumination point height of the highest illumination point relative to at least one of the reference ground planes according to the coordinate information of the highest illumination point, and obtain at least one lowest illumination point height of the lowest illumination point relative to at least one of the reference ground planes according to the coordinate information of the lowest illumination point;
[0067] Specifically, after determining the highest light-emitting point, a right triangle is constructed with the position of the highest light-emitting point as the acute angle point of the right triangle and the reference ground plane as the first right side. The normal line passing through the highest light-emitting point and perpendicular to the reference ground plane is the second right side. After determining the right triangle, the vertical distance between the highest light-emitting point and the reference ground plane in the vertical direction is obtained. The vertical distance is the length of the third side corresponding to the right angle of the right triangle. Finally, based on the angle between the second right side and the third side and the vertical distance, the height of the highest light-emitting point from the reference ground plane is determined.
[0068] It can be understood that the above operation is also used to calculate the height of the lowest light-emitting point, and the details are not described herein again in this application.
[0069] Step S40: Determine the maximum height among at least one of the heights of the highest light-emitting points, and determine the minimum height among at least one of the heights of the lowest light-emitting points;
[0070] In this embodiment, after importing the document storing the position and number of the reference ground planes into CATIA, the height of the highest light-emitting point and the height of the lowest light-emitting point of each reference plane can be calculated sequentially according to the order of reading the reference ground plane. For example, after importing the document, according to the reading order, after calculating the first highest light-emitting point height of the highest light-emitting point and the first reference ground plane, then calculate the second highest light-emitting point height of the highest light-emitting point and the second reference ground plane, and determine whether the first highest light-emitting point height is greater than the second highest light-emitting point height. When the first highest light-emitting point height is greater than the second highest light-emitting point height, the first highest light-emitting point height is taken as the larger highest light-emitting point height, and it is determined whether the second reference ground plane is the last ground plane. If the second reference ground plane is the last reference ground plane, then output the first highest light-emitting point height and the first reference ground plane; if the second reference ground plane is not the last reference ground plane, then calculate the third highest light-emitting point height of the highest light-emitting point relative to the third reference ground plane, and determine whether the third highest light-emitting point height is greater than the first highest light-emitting point height. If the third highest light-emitting point height is greater than the first highest light-emitting point height, then take the third highest light-emitting point height as the larger highest light-emitting point height, and determine whether the third reference ground plane is the last reference ground plane. If the third reference ground plane is the last reference ground plane, then output the third reference ground plane and the third highest installation height; if the third reference ground plane is not the last reference ground plane, then continue the above operation steps until the reference ground plane corresponding to the current highest light-emitting point height value is the last reference ground plane.
[0071] It can be understood that the specific steps for determining the minimum height among at least one of the heights of the lowest light-emitting points also refer to the above operation steps, and are not described herein again in this embodiment of the application.
[0072] Step S50: Determine the maximum reference ground plane corresponding to the maximum height and the minimum reference ground plane corresponding to the minimum height according to the maximum height and the minimum height, and output the maximum height and the corresponding maximum reference ground plane, as well as the minimum height and the corresponding minimum reference ground plane.
[0073] In this embodiment, after determining the highest light-emitting point and the lowest light-emitting point in the geometric model of the headlight light-emitting area, using the highest light-emitting point and the lowest light-emitting point as reference points, after adjusting the position of the reference ground plane relative to the highest light-emitting point and the lowest light-emitting point, calculate the highest light-emitting point height and the lowest light-emitting point height of the highest light-emitting point and the lowest light-emitting point relative to each reference ground plane, and respectively determine the maximum height of the highest light-emitting point height and the minimum height of the lowest light-emitting point height from the highest light-emitting point height and the lowest light-emitting point height. Thus, in this application, it is not necessary for technicians to spend a lot of time and effort calculating the maximum installation height and the minimum installation height of the headlight under different vehicle postures after the vehicle posture changes, thereby simplifying the steps of calculating the maximum installation height and the minimum height of the automotive headlight and improving work efficiency.
[0074] Further, as an embodiment, refer to Figure 3 , the second embodiment of the method for obtaining the headlight installation position in this application, refer to Figure 3 , Figure 3 shows a schematic flowchart of the second embodiment of the method for obtaining the headlight installation position.
[0075] In this embodiment, the step S30 includes:
[0076] Step S301A: Obtain the first coordinate information of the first coordinate point and the second coordinate information of the second coordinate point on the reference ground plane according to the reference ground plane; wherein, the horizontal distance between the first coordinate point and the highest light-emitting point is less than the horizontal distance between the second coordinate point and the highest light-emitting point;
[0077] In the embodiment of this application, the first coordinate point and the second coordinate point are any two non-overlapping points on the reference ground plane and are not in the same vertical direction as the highest light-emitting point.
[0078] As Figure 4 shown, the first coordinate information of the first coordinate point is (X Frp , Z Frp ), the second coordinate information of the second coordinate point is (X Rrp , Z Rrp ), the horizontal distance between the first coordinate point and the highest light-emitting point is L2, and the horizontal distance between the second coordinate point and the highest light-emitting point is L2 + L1.
[0079] Specifically, after importing the geometric model of the headlight lighting area into CATIA, create a geometric figure set of "extreme points" for the geometric model of the headlight lighting area according to the reference ground plane. In the geometric figure set, calculate the coordinate values (Xmax, Ymax, Zmax) of the highest lighting point and the coordinate values (Xmin, Ymin, Zmin) of the lowest lighting point of the geometric model of the headlight lighting area, and fill the coordinate values of the highest lighting point and the lowest lighting point on the X-axis and Z-axis into the user form of VBA (Visual Basic for Applications, the application uses the VB language), so as to obtain the coordinate information (Xmax, Zmax) of the highest lighting point and the coordinate information (Xmin, Zmin) of the lowest lighting point, that is, determine the maximum value point and the minimum value point of the geometric model of the headlight lighting area in the three-dimensional index coordinate system of the reference ground plane; according to the maximum value point and the minimum value point, determine the highest lighting point and the lowest lighting point in the geometric model of the headlight lighting area.
[0080] Among them, the setting code for creating the "extreme point" set graphic set and setting the geometric figure set as the working platform can be: Set iHBs = iPart.HybridBodies; Set MyHB = iHBs.Add("Geometric set name"). Further, to obtain the coordinate values (Xmax, Ymax, Zmax) of the highest lighting point and the coordinate values (Xmin, Ymin, Zmin) of the lowest lighting point of the geometric model of the headlight lighting area, the following code can be set: Set iHSF = iPart.HybridShapeFactory; Set hDir = iHSF.AddNewDirectionByCoord(0#, 0#, 1#); Set Ptmax = iHSF.AddNewExtremum(RefLin, hDir, 1); Set Ptmin = iHSF.AddNewExtremum(RefLin, hDir, 0); Pt1.GetCoordinates Arr1: Xmax = Arr1(0): Zmax = Arr1(2); Pt2.GetCoordinates Arr2: Xmin = Arr2(0): Zmin = Arr2(2).
[0081] Step S302A: According to the first coordinate information and the second coordinate information, obtain the first vertical distance and the first horizontal distance between the first coordinate point and the second coordinate point in the vertical direction and the horizontal direction;
[0082] Step S303A. Obtain a first angle between the reference ground plane and the horizontal plane based on the first vertical distance and the first horizontal distance;
[0083] Step S304A. Obtain a second vertical distance in the vertical direction between the highest light-emitting point and the reference ground plane based on the coordinate information of the highest light-emitting point and the reference ground plane;
[0084] Step S305A. Obtain at least one height of the highest light-emitting point relative to at least one of the reference ground planes based on the second vertical distance and the first angle.
[0085] The following uses Figure 4 as an example to specifically elaborate on obtaining the height of the highest light-emitting point relative to at least one reference ground plane.
[0086] Step 1. Based on the first coordinate information (X Frp , Z Frp ) of the first coordinate point and the second coordinate information (X Rrp , Z Rrp ) of the second coordinate point, the first vertical distance between the first coordinate point and the second coordinate point in the vertical direction can be obtained as Z Frp - Z Rrp , and the first horizontal distance in the horizontal direction is X Rrp - X Frp . As shown in Figure 4 , the first vertical distance is D1 and the first horizontal distance is L1. Based on the first vertical distance D1 and the first horizontal distance L1, a first angle between the reference ground plane GL and the horizontal plane is obtained as α = arctan(D1 / L1).
[0087] Step 2. Based on the coordinate information (Xmax, Zmax) of the highest light-emitting point, obtain a fourth vertical distance D4 between the highest light-emitting point and the first coordinate point in the vertical direction, that is, D4 = Zmax - Z Frp; According to the first vertical distance D1, the second horizontal distance, and the first horizontal distance, the third vertical distance D2 is obtained, that is, D2 = D1 (L2 / L1). Finally, according to the third vertical distance and the fourth vertical distance, the second vertical distance D3 between the highest light-emitting point and the first coordinate point in the vertical direction is obtained, that is, D3 = D4 - D2. That is, according to the coordinate information of the highest light-emitting point, the first coordinate information, and the second coordinate information, the second horizontal distance between the highest light-emitting point and the first coordinate point in the horizontal direction, and the first horizontal distance between the first coordinate point and the second coordinate point in the horizontal direction are obtained; according to the first vertical distance, the second horizontal distance, and the first horizontal distance, the third vertical distance is obtained; according to the coordinate information of the highest light-emitting point and the first coordinate information, the fourth vertical distance between the highest light-emitting point and the first coordinate point in the vertical direction is obtained; according to the third vertical distance and the fourth vertical distance, the second vertical distance between the highest light-emitting point and the first coordinate point in the vertical direction is obtained.
[0088] Step 3, as Figure 4 shown, according to the properties of similar triangles, it can be clearly obtained that the magnitudes of the first angle α, the angle β, and the angle γ are equal. Therefore, the height of the highest light-emitting point is obtained as: H max = D3 * cos[arctan(D1 / L1)].
[0089] Specifically, the code for obtaining the height of the highest light-emitting point relative to at least one reference ground plane can be:
[0090] Hmax = ((Zmax - ZFrp) - (ZRrp - ZFrp) * (Xmax - XFrp) / (XRrp - XFrp)) * Cos(Atn((ZRrp - ZFrp) / (XRrp - XFrp))).
[0091] In this embodiment, taking the highest light-emitting point as the reference point, by adjusting the size of the first angle between the reference ground plane and the horizontal plane, the height position relationship between the highest light-emitting point and the reference ground plane is further adjusted. It should be noted that the coordinate values of the first coordinate point and the second coordinate point on the reference ground plane on the X-axis can be fixed, and only by adjusting the size of the coordinate values of the first coordinate point and the second coordinate point on the Z-axis, the size value of the first angle can be adjusted. Thus, in this application, after determining the highest light-emitting point from the geometric model of the headlight light-emitting area, taking the highest light-emitting point as the reference point, by adjusting the reference ground plane, the maximum height of the headlight installation position is calculated, thereby eliminating the need for technicians to spend a lot of time and effort on repeated measurement and verification, and improving the measurement efficiency and accuracy.
[0092] Further, as an embodiment, referring to Figure 5, the third embodiment of the method for obtaining the installation position of the vehicle lamp in this application, refer to Figure 5 , Figure 5 FIG. shows a schematic flowchart of the third embodiment of the method for obtaining the installation position of the vehicle lamp.
[0093] In this embodiment, the step S30 further includes:
[0094] Step S301B: Obtain a fifth vertical distance between the lowest light-emitting point and the reference ground plane in the vertical direction according to the coordinate information of the lowest light-emitting point and the reference ground plane;
[0095] Step S302B: Obtain at least one lowest light-emitting point height of the lowest light-emitting point relative to at least one of the reference ground planes according to the fifth vertical distance and the first included angle.
[0096] In the embodiment of this application, as Figure 4 shown, the reference ground planes of the lowest light-emitting point and the highest light-emitting point are the same reference ground plane. According to the coordinate information of the lowest light-emitting point, the first coordinate information, and the second coordinate information, obtain a fourth horizontal distance between the lowest light-emitting point and the first coordinate point in the horizontal direction, and a first horizontal distance between the first coordinate point and the second coordinate point in the horizontal direction; according to the first vertical distance, the fourth horizontal distance, and the first horizontal distance, obtain a sixth vertical distance; according to the coordinate information of the lowest light-emitting point and the first coordinate information, obtain a seventh vertical distance between the lowest light-emitting point and the first coordinate point in the vertical direction; according to the sixth vertical distance and the seventh vertical distance, obtain a fifth vertical distance between the lowest light-emitting point and the first coordinate point in the vertical direction. Furthermore, for the specific calculation steps of obtaining at least one lowest light-emitting point height of the lowest light-emitting point relative to at least one of the reference ground planes according to the fifth vertical distance and the first included angle, refer to the second embodiment, which will not be elaborated in this embodiment.
[0097] Specifically, the code for obtaining the lowest light-emitting point height of the lowest light-emitting point relative to at least one reference ground plane can be:
[0098] Hmin = ((Zmin - ZFrp) - (ZRrp - ZFrp) * (Xmin - XFrp) / (XRrp - XFrp)) * Cos(Atn((ZRrp - ZFrp) / (XRrp - XFrp))).
[0099] In this embodiment, taking the lowest light-emitting point as the reference point, by adjusting the size of the first included angle between the reference ground plane and the horizontal plane, the height position relationship between the lowest light-emitting point and the reference ground plane is further adjusted. It should be noted that the coordinate values of the first coordinate point and the second coordinate point on the X-axis of the reference ground plane can be fixed, and only by adjusting the size of the coordinate values of the first coordinate point and the second coordinate point on the Z-axis can the size value of the first included angle be adjusted. Thus, in this application, after determining the lowest light-emitting point from the geometric model of the headlight light-emitting area, taking the lowest light-emitting point as the reference point, by adjusting the reference ground plane, the minimum height of the headlight installation position is calculated, and thus it is not necessary for technicians to spend a lot of time and effort on repeated measurement and verification, thereby improving the measurement efficiency and accuracy.
[0100] Based on the same inventive concept, a device for obtaining the headlight installation position of this application is proposed. Refer to Figure 6 , Figure 6 which is a schematic diagram of the framework of the device for obtaining the headlight installation position of this application.
[0101] An acquisition module 10, configured to acquire the geometric model of the headlight light-emitting area and at least one reference ground plane;
[0102] A first determination module 20, configured to determine the highest light-emitting point and the lowest light-emitting point in the geometric model of the headlight light-emitting area;
[0103] An obtaining module 30, configured to obtain at least one highest light-emitting point height of the highest light-emitting point relative to at least one of the reference ground planes according to the coordinate information of the highest light-emitting point, and obtain at least one lowest light-emitting point height of the lowest light-emitting point relative to at least one of the reference ground planes according to the coordinate information of the lowest light-emitting point;
[0104] A second determination module 40, configured to determine the maximum height among at least one of the highest light-emitting point heights and determine the minimum height among at least one of the lowest light-emitting point heights;
[0105] An output module 50, configured to determine the maximum reference ground plane corresponding to the maximum height and the minimum reference ground plane corresponding to the minimum height according to the maximum height and the minimum height, and output the maximum height and the corresponding maximum reference ground plane as well as the minimum height and the corresponding minimum reference ground plane.
[0106] The technical solution of this embodiment, through the mutual cooperation among various functional modules, after obtaining the geometric model of the headlight illumination area and at least one reference ground plane; determines the highest illumination point and the lowest illumination point in the geometric model of the headlight illumination area; according to the coordinate information of the highest illumination point, obtains at least one highest illumination point height of the highest illumination point relative to at least one of the reference ground planes, and according to the coordinate information of the lowest illumination point, obtains at least one lowest illumination point height of the lowest illumination point relative to at least one of the reference ground planes; determines the maximum height among at least one of the highest illumination point heights, and determines the minimum height among at least one of the lowest illumination point heights; according to the maximum height and the minimum height, determines the maximum reference ground plane corresponding to the maximum height and the minimum reference ground plane corresponding to the minimum height, and outputs the maximum height and the corresponding maximum reference ground plane and the minimum height and the corresponding minimum reference ground plane. Thus, in this application, after determining the highest illumination point and the lowest illumination point from the geometric model of the headlight illumination area, using the highest illumination point and the lowest illumination point as reference points, by adjusting the reference ground plane, calculates the maximum height and the minimum height of the headlight installation position, and thus does not require technicians to spend a lot of time and effort on repeated measurement and verification, thereby simplifying the steps of obtaining the maximum height and the minimum height of the automotive headlight installation.
[0107] In addition, an embodiment of the present application also proposes a computer storage medium, on which a program for obtaining the headlight installation position is stored. When the program for obtaining the headlight installation position is executed by a processor, it implements the steps of the method for obtaining the headlight installation position as described above. Therefore, it will not be elaborated here. In addition, the description of the beneficial effects of using the same method will also not be elaborated. For the technical details not disclosed in the embodiment of the computer-readable storage medium involved in this application, please refer to the description of the method embodiment of this application. By way of example, the program instructions can be deployed to be executed on one computing device, or on multiple computing devices located at one location, or, on multiple computing devices distributed at multiple locations and interconnected by a communication network.
[0108] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The above program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above various methods. Among them, the above storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.
[0109] In addition, it should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the attached drawings of the device embodiments provided in this application, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0110] Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or dedicated circuits. However, for this application, in more cases, software program implementation is a better implementation method. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a floppy disk, USB flash drive, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disc of a computer, etc., and includes several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various embodiments of this application.
[0111] The above are only the preferred embodiments of this application, and do not limit the patent scope of this application accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of this application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of this application.
Claims
1. A method for obtaining the installation position of a vehicle lamp, characterized in that, The method includes: Obtaining a geometric model of the headlight illumination area and at least one reference ground plane; Determining the highest illumination point and the lowest illumination point in the geometric model of the headlight illumination area; According to the coordinate information of the highest illumination point, obtaining at least one highest illumination point height of the highest illumination point relative to at least one of the reference ground planes, and according to the coordinate information of the lowest illumination point, obtaining at least one lowest illumination point height of the lowest illumination point relative to at least one of the reference ground planes; Determining the maximum height among at least one of the highest illumination point heights and determining the minimum height among at least one of the lowest illumination point heights; According to the maximum height and the minimum height, determining the maximum reference ground plane corresponding to the maximum height and the minimum reference ground plane corresponding to the minimum height, and outputting the maximum height and the corresponding maximum reference ground plane, as well as the minimum height and the corresponding minimum reference ground plane; The step of obtaining at least one highest illumination point height of the highest illumination point relative to at least one of the reference ground planes according to the coordinate information of the highest illumination point includes: According to the reference ground plane, obtaining the first coordinate information of the first coordinate point and the second coordinate information of the second coordinate point on the reference ground plane; wherein, the horizontal distance between the first coordinate point and the highest illumination point is less than the horizontal distance between the second coordinate point and the highest illumination point; According to the first coordinate information and the second coordinate information, obtaining the first vertical distance and the first horizontal distance between the first coordinate point and the second coordinate point in the vertical direction; According to the first vertical distance and the first horizontal distance, obtaining the first included angle between the reference ground plane and the horizontal plane; According to the coordinate information of the highest illumination point and the reference ground plane, obtaining the second vertical distance between the highest illumination point and the reference ground plane in the vertical direction; According to the second vertical distance and the first included angle, obtaining at least one highest illumination point height of the highest illumination point relative to at least one of the reference ground planes; The step of obtaining the second vertical distance between the highest illumination point and the reference ground plane in the vertical direction according to the coordinate information of the highest illumination point and the reference ground plane includes: According to the coordinate information of the highest illumination point, the first coordinate information and the second coordinate information, obtaining the second horizontal distance between the highest illumination point and the first coordinate point in the horizontal direction, and the first horizontal distance between the first coordinate point and the second coordinate point in the horizontal direction; According to the first vertical distance, the second horizontal distance and the first horizontal distance, obtaining the third vertical distance; According to the coordinate information of the highest illumination point and the first coordinate information, obtaining the fourth vertical distance between the highest illumination point and the first coordinate point in the vertical direction; According to the third vertical distance and the fourth vertical distance, obtaining the second vertical distance between the highest illumination point and the first coordinate point in the vertical direction.
2. The method for obtaining the headlamp mounting position according to claim 1, wherein The step of obtaining at least one lowest illumination point height of the lowest illumination point relative to at least one of the reference ground planes according to the coordinate information of the lowest illumination point includes: Obtain a fifth vertical distance between the lowest light-emitting point and the reference ground plane in the vertical direction according to the coordinate information of the lowest light-emitting point and the reference ground plane; Obtain at least one lowest light-emitting point height of the lowest light-emitting point relative to at least one of the reference ground planes according to the fifth vertical distance and the first included angle.
3. The method for obtaining the headlight installation position according to claim 2, characterized in that The obtaining a fifth vertical distance between the lowest light-emitting point and the reference ground plane in the vertical direction according to the coordinate information of the lowest light-emitting point and the reference ground plane includes: Obtain a fourth horizontal distance between the lowest light-emitting point and the first coordinate point in the horizontal direction, and a first horizontal distance between the first coordinate point and the second coordinate point in the horizontal direction according to the coordinate information of the lowest light-emitting point, the first coordinate information, and the second coordinate information; Obtain a sixth vertical distance according to the first vertical distance, the fourth horizontal distance, and the first horizontal distance; Obtain a seventh vertical distance between the lowest light-emitting point and the first coordinate point in the vertical direction according to the coordinate information of the lowest light-emitting point and the first coordinate information; Obtain a fifth vertical distance between the lowest light-emitting point and the first coordinate point in the vertical direction according to the sixth vertical distance and the seventh vertical distance.
4. The method for obtaining the headlamp installation position according to claim 1, wherein The determining the highest light-emitting point and the lowest light-emitting point in the geometric model of the headlight light-emitting area includes: Determine the maximum value point and the minimum value point in the three-dimensional index coordinate system of the geometric model of the headlight light-emitting area on the reference ground plane; Determine the highest light-emitting point and the lowest light-emitting point in the geometric model of the headlight light-emitting area according to the maximum value point and the minimum value point.
5. The method for obtaining the headlamp installation position according to claim 1, wherein, The headlight includes at least one of a high beam, a daytime running light, a position light, or a turn signal.
6. A device for obtaining the installation position of a vehicle lamp, characterized in that, The device includes: An acquisition module for acquiring a geometric model of a headlight light-emitting area and at least one reference ground plane; A first determination module for determining the highest light-emitting point and the lowest light-emitting point in the geometric model of the headlight light-emitting area; An obtaining module for obtaining at least one highest light-emitting point height of the highest light-emitting point relative to at least one of the reference ground planes according to the coordinate information of the highest light-emitting point, and obtaining at least one lowest light-emitting point height of the lowest light-emitting point relative to at least one of the reference ground planes according to the coordinate information of the lowest light-emitting point; A second determination module for determining the maximum height among at least one of the highest light-emitting point heights and determining the minimum height among at least one of the lowest light-emitting point heights; An output module for determining the maximum reference ground plane corresponding to the maximum height and the minimum reference ground plane corresponding to the minimum height according to the maximum height and the minimum height, and outputting the maximum height and the corresponding maximum reference ground plane and the minimum height and the corresponding minimum reference ground plane; The obtaining module is further configured to obtain first coordinate information of a first coordinate point and second coordinate information of a second coordinate point on the reference ground plane according to the reference ground plane; wherein, a horizontal distance between the first coordinate point and the highest light-emitting point is less than a horizontal distance between the second coordinate point and the highest light-emitting point; obtain a first vertical distance and a first horizontal distance in the horizontal direction between the first coordinate point and the second coordinate point according to the first coordinate information and the second coordinate information; obtain a first included angle between the reference ground plane and the horizontal plane according to the first vertical distance and the first horizontal distance; obtain a second vertical distance in the vertical direction between the highest light-emitting point and the reference ground plane according to the coordinate information of the highest light-emitting point and the reference ground plane; and obtain at least one highest light-emitting point height of the highest light-emitting point relative to at least one of the reference ground planes according to the second vertical distance and the first included angle. The obtaining module is further configured to obtain a second horizontal distance in the horizontal direction between the highest light-emitting point and the first coordinate point, and the first horizontal distance in the horizontal direction between the first coordinate point and the second coordinate point according to the coordinate information of the highest light-emitting point, the first coordinate information, and the second coordinate information; obtain a third vertical distance according to the first vertical distance, the second horizontal distance, and the first horizontal distance; obtain a fourth vertical distance in the vertical direction between the highest light-emitting point and the first coordinate point according to the coordinate information of the highest light-emitting point and the first coordinate information; and obtain a second vertical distance in the vertical direction between the highest light-emitting point and the first coordinate point according to the third vertical distance and the fourth vertical distance.
7. A device for obtaining the installation position of a vehicle lamp, characterized in that, Comprising: A processor, a memory, and a headlight installation position obtaining program stored in the memory, wherein when the headlight installation position obtaining program is run by the processor, the steps of the headlight installation position obtaining method according to any one of claims 1-5 are implemented.
8. A computer-readable storage medium, characterized in that, A headlight installation position obtaining program is stored on the computer-readable storage medium, and when the headlight installation position obtaining program is executed by a processor, the headlight installation position obtaining method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Vehicle lamp control method and system and vehicle
CN112277783A
Automobile headlamp testing method and device
CN114441139A