Projection control method, device and equipment based on vehicle lamp and medium
By acquiring and adjusting vehicle lamp parameters, attitude and road status parameters, automatic calibration of DLP headlights is achieved, solving the problems of low calibration efficiency and low accuracy in the existing technology, and improving calibration efficiency and accuracy.
Patent Information
- Application Number
- CN202410762274.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-24
AI Technical Summary
The existing calibration method of DLP headlights is inefficient and inaccurate, and cannot meet the lighting performance requirements of modern automobiles.
By obtaining the vehicle lamp parameters, vehicle attitude parameters and road state parameters, the attitude of the vehicle and the image projection platform is automatically adjusted to achieve automatic calibration of the vehicle lamps, calculate the difference between the projected image and the original image, and make adjustments based on the difference. , stores the corresponding relationship between the target image and vehicle lamp parameters.
It realizes automatic calibration of vehicle lamps in different postures and road conditions, saves manual calibration costs, improves calibration efficiency, and reduces projection errors in actual use.
Smart Images

Figure CN118691683A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a projection control method, device, electronic equipment and storage medium based on vehicle lamps. Background Art
[0002] With the continuous development of automobile technology, automobile headlights have evolved from traditional halogen lamps and xenon lamps to LED (Light Emitting Diode) lamps, and then to the current DLP (Digital Light Processing) headlights. DLP headlights are widely used in automobile lighting systems due to their high resolution, programmability and dynamic display capabilities.
[0003] However, the calibration of DLP headlights has always been a key factor restricting their performance. Most existing calibration methods use manual debugging, which is inefficient and low-precision, and cannot meet the lighting performance requirements of modern cars. Therefore, developing an efficient and accurate DLP headlight calibration system and its calibration method has important practical significance and application value. Summary of the invention
[0004] The object of the present invention is to provide a projection control method, device, equipment and medium based on vehicle lamps to solve the problems of low efficiency and precision of manual debugging in the prior art.
[0005] In order to achieve the above object, the present invention discloses a projection control method based on vehicle lamps, the method comprising:
[0006] Obtain vehicle lighting parameters, vehicle posture parameters, road state parameters and original images;
[0007] Controlling the vehicle placement platform to rotate according to the vehicle posture parameter to place the vehicle at a target vehicle posture;
[0008] Controlling the image projection platform to rotate according to the road state parameter to place the vehicle in a target road state;
[0009] When the vehicle is set in the target vehicle posture and the target road state, the vehicle is controlled to project the original image from the vehicle placement platform to the image projection platform according to the vehicle lamp parameters to obtain a projection image;
[0010] Calculating the difference between the projected image and the original image;
[0011] When the difference is greater than a preset difference threshold, adjusting the original image to obtain a target image corresponding to the original image;
[0012] The correspondence between the vehicle lamp parameters, vehicle posture parameters, road state parameters and the target image is stored in the vehicle, so that when the vehicle is in the target vehicle posture and the target road state, the vehicle lamp parameters and the target image are used to control the vehicle lamp for projection.
[0013] Optionally, the vehicle posture parameter includes a vehicle direction parameter and a vehicle angle parameter, and controlling the vehicle placement platform to rotate according to the vehicle posture parameter includes:
[0014] If the vehicle direction parameter is a left turn, the vehicle control console is controlled to turn left according to the vehicle angle parameter;
[0015] If the vehicle direction parameter is right turn, the vehicle control console is controlled to turn right according to the vehicle angle parameter.
[0016] Optionally, the road state parameter includes a road direction parameter and a road angle parameter, and controlling the image projection platform to rotate according to the road state parameter includes:
[0017] If the road direction parameter is a left-hand intersection, the image projection platform is controlled to rotate leftward according to the road angle parameter;
[0018] If the road direction parameter is a right-hand intersection, the image projection platform is controlled to rotate rightward according to the road angle parameter.
[0019] Optionally, before calculating the difference between the projected image and the original image, the method further includes:
[0020] photographing the vehicle through a first camera to obtain a vehicle identification number;
[0021] The projection platform is photographed by a second camera to obtain the projection image.
[0022] Optionally, the calculating the difference between the projected image and the original image includes:
[0023] Dividing the projection image to obtain a plurality of projection image pixel points;
[0024] Dividing the original image to obtain a plurality of original image pixel points, wherein the plurality of projection image pixel points are in a one-to-one correspondence with the plurality of original image pixel points;
[0025] Calculating coordinate differences between corresponding points of the projected image and the original image;
[0026] The difference between the projected image and the original image is determined according to the coordinate difference between the corresponding points.
[0027] Optionally, when the difference is greater than a preset difference threshold, adjusting the original image to obtain a target image corresponding to the original image includes:
[0028] When the difference is greater than a preset difference threshold; establishing a mapping relationship between the coordinates of the pixel points in the projected image and the coordinates of the pixel points in the original image;
[0029] Calculating based on the mapping relationship to obtain inverse distortion parameters;
[0030] The coordinates of the pixels in the original image are adjusted according to the inverse distortion parameters to obtain the target image corresponding to the original image.
[0031] Optionally, the vehicle includes a storage device, and stores the corresponding relationship between the vehicle lamp parameters, the vehicle posture parameters, the road state parameters and the target image in the vehicle, so that when the vehicle is in the target vehicle posture and the target road state, the vehicle lamp parameters and the target image are used to control the vehicle lamp for projection, including:
[0032] Storing the corresponding relationship between the vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image in a vehicle storage device that matches the vehicle identification number;
[0033] Obtaining actual parameters of the vehicle's lamps, actual vehicle posture parameters, actual road state parameters, and images to be projected during vehicle use;
[0034] Determining a target image from the corresponding relationship according to the actual parameters of the lamp, the actual posture parameters of the vehicle, the actual state parameters of the road and the image to be projected;
[0035] The vehicle lamp is controlled to perform projection according to the target image.
[0036] The present invention discloses a projection control device based on a vehicle lamp, the device comprising:
[0037] A data acquisition module, used to acquire vehicle lighting parameters, vehicle posture parameters, road state parameters and original images;
[0038] A vehicle posture control module, used for controlling the vehicle placement platform to rotate according to the vehicle posture parameter, so as to place the vehicle at a target vehicle posture;
[0039] A road state control module, used for controlling the image projection platform to rotate according to the road state parameter to place the vehicle in a target road state;
[0040] A projection control module, used for controlling the vehicle to project the original image from the vehicle placement platform to the image projection platform to obtain a projection image according to the vehicle lamp parameters when the vehicle is set in the target vehicle posture and the target road state;
[0041] An image calculation module, used for calculating the difference between the projected image and the original image;
[0042] An image adjustment module, configured to adjust the original image to obtain a target image corresponding to the original image when the difference is greater than a preset difference threshold;
[0043] A data storage module is used to store the corresponding relationship between the vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image in the vehicle, so that the vehicle adopts the vehicle lighting parameters and the target image to control the vehicle lighting for projection when the vehicle is in the target vehicle posture and the target road state.
[0044] An embodiment of the present invention further discloses an electronic device, comprising at least one processor and a memory communicatively connected to the at least one processor;
[0045] The memory is used to store computer programs;
[0046] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0047] The embodiment of the present invention further discloses a computer-readable storage medium on which a computer program is stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.
[0048] Beneficial effects of the present invention:
[0049] The embodiment of the present invention obtains vehicle lighting parameters, vehicle posture parameters, road state parameters and an original image, controls the vehicle placement platform to rotate according to the vehicle posture parameters to set the vehicle in a target vehicle posture, controls the image projection platform to rotate according to the road state parameters to set the vehicle in a target road state, and when the vehicle is set in the target vehicle posture and the target road state, controls the vehicle to project the original image from the vehicle placement platform to the image projection platform according to the vehicle lighting parameters to obtain a projected image, calculates the difference between the projected image and the original image, and adjusts the original image when the difference is greater than a preset difference threshold to obtain a projection image that is consistent with the original image. The target image corresponding to the original image is obtained, and the corresponding relationship between the vehicle lamp parameters, vehicle posture parameters, road state parameters and the target image is stored in the vehicle, so that when the vehicle is in the target vehicle posture and the target road state, the vehicle lamp parameters and the target image are used to control the vehicle lamps for projection. The present invention realizes automatic calibration of vehicle lamps according to the original image in different postures and under different road conditions, saves manual calibration costs, and improves calibration efficiency; by storing the corresponding relationship between the obtained target image and the vehicle lamp parameters, vehicle posture parameters, and road state parameters in the vehicle, the vehicle adopts the corresponding relationship for projection during actual use, thereby reducing projection errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flowchart of a projection control method based on a vehicle lamp provided in an embodiment of the present invention;
[0051] Figure 2 It is a schematic diagram of the structure of a vehicle lamp calibration system provided in an embodiment of the present invention.
[0052] Figure 3 The following is a flow chart of vehicle lamp calibration provided in an embodiment of the present invention.
[0053] Figure 4 A schematic structural diagram of a projection control device based on a vehicle lamp provided in an embodiment of the present invention;
[0054] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0056] Reference Figure 1 , shows a flowchart of a projection control method based on a vehicle lamp provided in an embodiment of the present invention, which specifically includes the following steps:
[0057] Step 101, obtaining vehicle lighting parameters, vehicle posture parameters, road state parameters and original images.
[0058] Among them, vehicle lighting parameters refer to parameters such as the brightness and angle of vehicle lighting; vehicle posture parameters usually refer to the position and direction of the vehicle during driving; road state parameters refer to various parameters that describe the road surface conditions and geometric characteristics.
[0059] In some embodiments of the present invention, the vehicle posture parameters include: roll angle, which is the angle of rotation of the vehicle around the vertical axis (the axis from the ground to the top of the vehicle), which is used to describe the change in direction of the vehicle. For example, when the vehicle turns, the body rotates around the vertical axis; heading angle, which is the angle of the vehicle relative to a reference direction (usually the north direction or the center line of the road on which the vehicle is traveling), which describes the direction of the vehicle's travel; it may also include: tilt angle, which is the angle of rotation of the vehicle around the longitudinal axis (the axis from the front to the rear of the vehicle), which is usually used to describe the degree of lateral tilt of the vehicle, for example, when the vehicle is traveling on a curve, the body will tilt toward the inside of the curve; pitch angle, which is the angle of rotation of the vehicle around the horizontal axis (the axis from the left side to the right side of the vehicle), which is used to describe the degree of tilt of the vehicle in the front and rear directions. For example, when the vehicle accelerates or decelerates, the front of the vehicle will rise or sink.
[0060] In some embodiments of the present invention, the road state parameters include: road slope, which describes the inclination of the road and affects the energy consumption, braking requirements and climbing ability of the vehicle; road curvature, which describes the curvature of the road and affects the steering requirements and driving stability of the vehicle. In other embodiments of the present invention, the road state parameters may also include: lane width, which describes the distance between the edges of the lane on both sides and affects the lateral movement space and overtaking safety of the vehicle; lane line clarity, which describes the visibility of the lane line and is particularly important for the visual recognition system of the autonomous driving vehicle.
[0061] In some embodiments of the present invention, the vehicle posture parameters may also be preset so that the vehicle is adjusted to the vehicle posture parameters to simulate the posture of the vehicle in the actual scene. The road state parameters may also be preset to simulate different road surfaces. Figure 2As shown, it is a schematic diagram of the structure of the vehicle lamp calibration system provided by some embodiments of the present invention. The vehicle placement platform 1 is used to place the vehicle 2 to be tested. The vehicle placement platform 1 is connected to the controller 7 via Ethernet, and the controller 7 can control the vehicle placement platform 1 to rotate forward, backward, left, and right. The vehicle 2 to be tested is connected to the controller 7 via a CAN (Controller Area Network) line. Camera 1 3, camera 2 5, and display screen 6 are fixed on the iron rod 4 and connected to the controller 7 via Ethernet. Camera 1 3 is used to shoot the vehicle to be tested, and camera 2 5 is used to shoot the image on the image projection platform 8 and transmit it to the controller via Ethernet. The display screen 6 is used for the calibration personnel to set the calibration parameters and display the calibration results. The image projection platform 8 is used to project the image of the vehicle to be tested, and is connected to the controller 7 via Ethernet. The controller 7 can control the image projection platform 8 to rotate forward, backward, left, and right via Ethernet.
[0062] Step 102, controlling the vehicle placement platform to rotate according to the vehicle posture parameter to place the vehicle at a target vehicle posture.
[0063] When testing and calibrating vehicle lamps, the vehicle needs to be placed in a specific posture for related work or display. The vehicle placement table is a device that can accurately control the vehicle's posture. It can adjust the vehicle's tilt angle, pitch angle and roll angle through mechanical, hydraulic or electric means.
[0064] In some embodiments of the present invention, a vehicle is placed at a target vehicle posture by using a vehicle placement platform (also called a vehicle positioning platform or a vehicle adjustment platform).
[0065] The following are the general steps to control the vehicle placement station to set the vehicle to the target vehicle posture:
[0066] Determine the target posture: It is necessary to clarify the target posture parameters that the vehicle needs to achieve, including tilt angle, pitch angle, and roll angle, etc. Install the vehicle: Securely fix the vehicle on the vehicle stand and ensure that the connection between the vehicle and the stand is firm to prevent movement or sliding during the adjustment process; Initialize the stand: Start the vehicle stand and set it to the initial position, usually horizontal; Adjust the angle: According to the target posture parameters, set the vehicle to the target vehicle posture by controlling the vehicle stand to rotate. During the adjustment process, use sensors or visual systems to monitor the actual posture of the vehicle and compare it with the target posture. If necessary, make fine adjustments to ensure accurate alignment with the target posture; Once the vehicle reaches the target posture, lock the mechanism of the stand to ensure that the vehicle is stable in the desired position; Finally, check whether the vehicle's posture meets the requirements and perform necessary verification.
[0067] In other embodiments of the present invention, the vehicle posture parameters also include a tilt angle, and the tilt angle is adjusted: according to the target posture parameters, the tilt angle of the vehicle is adjusted by controlling the corresponding mechanism of the placement platform, which may involve adjusting the lateral tilt of the placement platform; adjusting the pitch angle: adjusting the front and rear tilt of the placement platform to change the pitch angle of the vehicle; monitoring and fine-tuning: during the adjustment process, using sensors or visual systems to monitor the actual posture of the vehicle and compare it with the target posture. If necessary, fine-tuning is performed to ensure precise alignment with the target posture; once the vehicle reaches the target posture, the mechanism of the placement platform is locked to ensure that the vehicle is stable in the desired position; finally, checking whether the posture of the vehicle meets the requirements and performing necessary verification
[0068] In some embodiments of the present invention, the vehicle posture parameter includes a vehicle direction parameter and a vehicle angle parameter, and step 102 includes the following sub-steps:
[0069] Sub-step 11: If the vehicle direction parameter is a left turn, control the vehicle control console to turn left according to the vehicle angle parameter.
[0070] When the vehicle direction parameter is left turn, the vehicle console needs to be controlled to turn left. In addition to the turning direction, the turning angle also needs to be set. Therefore, according to the vehicle angle parameter, the vehicle console is controlled to turn left. For example, according to the angle parameter, the vehicle console is controlled to turn 15 degrees to the left.
[0071] Sub-step 12: If the vehicle direction parameter is right turn, control the vehicle control console to turn right according to the vehicle angle parameter.
[0072] When the vehicle direction parameter is right turn, the vehicle console needs to be controlled to turn right. In addition to the turning direction, the turning angle also needs to be set. The vehicle angle parameter can be the rolling angle. Therefore, according to the vehicle angle parameter, the vehicle console is controlled to turn right. For example, according to the angle parameter, the vehicle console is controlled to turn 20 degrees to the right.
[0073] In other embodiments of the present invention, the vehicle posture parameters also include a tilt direction and a tilt angle. Therefore, the vehicle console can be controlled to tilt toward a target direction according to the tilt direction, and the vehicle console also needs to be controlled to tilt toward the target direction at a target angle according to the tilt angle, such as tilting 15 degrees to the left, to simulate the vehicle "leaning left" 15 degrees during actual driving or parking.
[0074] Step 103, controlling the image projection platform to rotate according to the road state parameter to place the vehicle in a target road state.
[0075] In the testing and calibration of vehicle lamps, the vehicle needs to be placed in a simulated target road state to verify whether the vehicle can be projected correctly. In some embodiments of the present invention, this is achieved by using an image projection table to simulate the road state according to the road state parameters.
[0076] Specifically, controlling the image projection station to set the vehicle to the target road state includes the following steps:
[0077] Determine the target road state: First, it is necessary to clarify the target road state parameters to be simulated, including road direction, road slope, road curvature, etc.; second, set up the image projection table and install it in an appropriate position to ensure that the vehicle can project the image onto the image projection table; third, adjust the projection angle and position: according to the road state parameters, adjust the angle and position of the image projection table to simulate different road conditions to maintain the authenticity of the simulation environment.
[0078] In some embodiments of the present invention, the road state parameter includes a road direction parameter and a road angle parameter, and step 103 includes the following sub-steps:
[0079] Sub-step 21: If the road direction parameter is a left-hand intersection, control the image projection platform to rotate leftward according to the road angle parameter;
[0080] When the road direction parameter is a left turn, the image projection platform needs to be controlled to turn left. In addition to the turning direction, the turning angle also needs to be set. Therefore, in some embodiments of the present invention, the image projection platform is controlled to turn left according to the road direction parameter. For example, the image projection platform is controlled to turn left 15 degrees according to the road angle parameter.
[0081] Sub-step 22: If the road direction parameter is a right-hand intersection, control the image projection platform to rotate rightward according to the road angle parameter.
[0082] When the road direction parameter is right turn, the image projection platform needs to be controlled to turn right. In addition to the turning direction, the turning angle also needs to be set. Therefore, in some embodiments of the present invention, the image projection platform is controlled to turn right according to the road direction parameter. For example, the image projection platform is controlled to turn right 15 degrees according to the road angle parameter.
[0083] In other embodiments of the present invention, the road state parameters also include road slope and road inclination angle. Therefore, the image projection platform can be controlled to tilt toward the target direction at a target angle according to the road slope or the road inclination angle, such as tilting 15 degrees to the left to simulate the actual uneven mountain road conditions, such as tilting 15 degrees upward to simulate a 15-degree climbing road.
[0084] Step 104 , when the vehicle is set in the target vehicle posture and the target road state, the vehicle is controlled to project the original image from the vehicle placement platform to the image projection platform according to the vehicle lighting parameters to obtain a projected image.
[0085] After the vehicle placement platform is controlled by the vehicle posture parameters and the image projection platform is controlled by the road state parameters, the vehicle is set to the target vehicle posture and target road state. At this time, according to the vehicle lighting parameters, the controller controls the vehicle to project, that is, to project the original image onto the image projection platform to obtain the projected image.
[0086] Step 105: Calculate the difference between the projected image and the original image.
[0087] The difference is used to measure the visual similarity or difference between two images. Calculating the difference between the projected image and the original image usually involves image processing and computer vision techniques.
[0088] After the vehicle projects the image onto the image projection platform, a projection image is obtained, but the projection image is not always necessarily completely consistent with the original image, so the difference between the projection image and the original image needs to be calculated.
[0089] In some embodiments of the present invention, step 105 includes the following sub-steps:
[0090] Sub-step 31: Divide the projection image into multiple projection image pixel points.
[0091] Dividing the projection image refers to dividing the projection image into a number of small areas or units, each unit consisting of a group of pixel points.
[0092] In some embodiments of the present invention, the projection image is divided by a uniform division method, and the image is evenly divided into small rectangular or square areas, each area containing the same number of pixels. The method is simple and intuitive, and is convenient for image analysis. A plurality of projection image pixels are obtained by dividing the projection image.
[0093] In some other embodiments of the present invention, the projection image may be divided by a non-uniform division method, and the image may be divided into regions of different sizes or shapes according to the non-uniformity of the image content or features. The division may also be performed based on a grid, and the grid may be used to divide the image into regular units, each of which may be a rectangle, a square, or other shapes. The division may also be performed based on superpixels, and a superpixel algorithm may be used. Specifically, the image may be divided into a set of pixels with similar colors or brightness using QuickShift.
[0094] Sub-step 32: Divide the original image into a plurality of original image pixel points, wherein the plurality of projection image pixel points are in a one-to-one correspondence with the plurality of original image pixel points.
[0095] The original image is divided in the same manner as step 31 to obtain a plurality of original image pixel points.
[0096] When comparing the difference between a projected image and an original image, it is usually necessary to ensure that there is a one-to-one correspondence between the pixels of the two images. This means that for every projected image pixel there is a corresponding original image pixel, and vice versa.
[0097] This correspondence can be established through the following steps: image alignment, which ensures that the projected image and the original image are spatially aligned. Image alignment usually involves geometric transformations of the images, such as translation, rotation, and scaling, to ensure that the corresponding points in the two images are consistent in spatial position; once the images are aligned, the correspondence can be established directly at the pixel level. Each projected image pixel point (x, y) will have a corresponding original image pixel point (x1, y1), where x and x1 represent the horizontal position of the corresponding pixel point in the image, and y and y1 represent the vertical position of the corresponding pixel point in the image; the projected image and the original image are divided to obtain multiple pixel point sets. The division can be uniform or non-uniform based on the image content. Ensure that the division method is consistent in the two images to facilitate the establishment of a one-to-one correspondence; for each projected image pixel point set obtained by division, find the corresponding original image pixel point set, which can be achieved by directly comparing the coordinates of the pixel points.
[0098] Sub-step 33: Calculate the coordinate difference between the corresponding points of the projection image and the original image.
[0099] Using the one-to-one correspondence, the coordinate difference between each corresponding pixel point can be calculated.
[0100] Select corresponding points in the two images, the projected image and the original image. The corresponding points represent the same location or object in the two images. Extract coordinates: Extract the coordinates of the corresponding points from the projected image and the original image. The coordinates are usually expressed as pixel positions, i.e. (x, y), where x is the horizontal position and y is the vertical position; Calculate the coordinate difference: For each pair of corresponding points, calculate their coordinate differences in the x and y directions. The specific calculation method is as follows: For a point P (x_p, y_p) in the projected image and a corresponding point O (x_o, y_o) in the original image, the coordinate difference is: Δx = x_p-x_o, Δy = y_p-y_o; Analyze the calculated coordinate difference to determine the offset between the images.
[0101] Sub-step 34: Determine the difference between the projected image and the original image according to the coordinate difference between the corresponding points.
[0102] After the coordinate values of the corresponding points and the coordinate differences between the corresponding points are determined, the offset between the original image and the projected image can be determined, that is, the difference between the projected image and the original image can be determined.
[0103] As in the previous example, Δx represents the difference in the horizontal coordinates of the two points, and Δy represents the difference in the vertical coordinates of the two points. If Δx and Δy are close to zero, it means that the original image and the projected image are very close in spatial position. If the difference is large, it may be necessary to further adjust the image alignment or analyze the image deformation.
[0104] In some embodiments of the present invention, the following sub-steps may be included before step 105:
[0105] Sub-step 41: photographing the vehicle with a first camera to obtain a vehicle identification number.
[0106] Among them, the Vehicle Identification Number (VIN) is a unique 17-digit code used to uniquely identify each car, truck, motorcycle, etc.
[0107] like Figure 2 As shown, in some embodiments of the present invention, a first camera is used to photograph a vehicle to obtain a vehicle identification number. The VIN is usually located on the dashboard of the vehicle, near the bottom of the windshield, or in other locations such as the door frame and engine compartment of the vehicle. In other embodiments of the present invention, the image captured by the first camera can be pre-processed to improve the clarity and contrast of the VIN area, and the position of the VIN in the image can be located using image processing technology, and the image at the position is segmented to obtain single characters, and the segmented characters are recognized using optical character recognition technology to finally obtain the vehicle identification number.
[0108] Sub-step 42: photographing the image projection platform through a second camera to obtain the projection image.
[0109] like Figure 2 As shown, the present invention uses a second camera to shoot the image projection platform to obtain a projection image of the vehicle projected on the image projection platform.
[0110] Step 106: When the difference is greater than a preset difference threshold, the original image is adjusted to obtain a target image corresponding to the original image.
[0111] The preset difference threshold refers to a reference value set in image processing to determine whether the difference between two images is significant. When the actual calculated difference exceeds this threshold, it is considered that there is a significant difference between the two images; conversely, if the difference is lower than this threshold, the two images are considered similar or identical.
[0112] Further image analysis and processing may be performed based on the difference calculated in the aforementioned step 105. For example, if the difference exceeds a preset difference threshold, the original image is adjusted.
[0113] In some embodiments of the present invention, when the difference is greater than a preset difference threshold, it means that the difference between the projected image and the original image exceeds the normal range. At this time, the original image needs to be adjusted to obtain a target image corresponding to the original image, so that in the next calibration process, the target image is used for projection to determine whether the target image meets the projection effect.
[0114] In other embodiments of the present invention, when the difference is not greater than a preset difference threshold, it indicates that the difference between the projected image and the original image is within a normal range. At this time, there is no need to adjust the original image, and the target image is the original image itself.
[0115] In some embodiments of the present invention, step 106 includes the following sub-steps:
[0116] Sub-step 51: when the difference is greater than a preset difference threshold, establishing a mapping relationship between the coordinates of the pixel points in the projected image and the coordinates of the pixel points in the original image;
[0117] When the calculated difference between the projection image and the original image is greater than a preset difference threshold, it may mean that there is an offset or deformation in the spatial position of the two images.
[0118] In some embodiments of the present invention, in order to correct such offset or deformation, it is necessary to establish a mapping relationship between the coordinates of the pixel points in the projected image and the coordinates of the pixel points in the original image. Since the above steps select the corresponding points of the original image and the projected image, and calculate the coordinate difference of the corresponding points; therefore, a mapping relationship (also called a mapping function) is established through the coordinate difference, and the mapping relationship can convert the pixel point coordinates in the projected image into the corresponding pixel point coordinates in the original image. The mapping relationship may be a simple translation, rotation or scaling transformation, or it may be a more complex affine transformation or nonlinear transformation.
[0119] Sub-step 52: performing calculation based on the mapping relationship to obtain inverse distortion parameters.
[0120] The inverse distortion parameters refer to parameters used to correct image distortion, which correspond to the distortion parameters of the original image but are used in the opposite process, i.e., restoring from a distorted image to an undistorted image.
[0121] In some embodiments of the present invention, inverse distortion parameters are calculated based on the mapping relationship established in the above steps, and these parameters are used to correct the distortion of the image. Specifically, the inverse distortion parameters can be calculated using an image distortion model.
[0122] Sub-step 53: adjusting the coordinates of the pixels in the original image according to the inverse distortion parameters to obtain the target image corresponding to the original image.
[0123] In some embodiments of the present invention, the calculated inverse distortion parameters are used to adjust the coordinates of each pixel in the original image to eliminate the distortion. The adjusted pixel coordinates will be used to generate a target image, which has a corresponding relationship with the original image, and the image should be more visually consistent with the original image, and the distortion is corrected. In addition, in some embodiments of the present invention, the generated target image is verified to ensure that the difference is reduced to an acceptable level. If the verification fails, it is necessary to further adjust the inverse distortion parameters or reselect the corresponding points; if the verification passes, the adjusted image can be used as the target image corresponding to the original image.
[0124] Step 107, storing the correspondence between the vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image in the vehicle, so that the vehicle uses the vehicle lighting parameters and the target image to control the vehicle lighting for projection when the vehicle is in the target vehicle posture and the target road state.
[0125] After obtaining the target image corresponding to the original image, a corresponding relationship data can be formed by establishing the corresponding relationship between the vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image, and then in the calibration process, multiple corresponding relationships of the target image corresponding to the original image under each vehicle posture and each road state are established, and the multiple corresponding relationship data are stored in the vehicle, so that in the subsequent actual use of the vehicle, under the same lighting parameters, the same vehicle posture and the same road state, the corresponding relationship can be directly found to obtain the target image, and the target image can be used for projection.
[0126] like Figure 3As shown, it is a vehicle lamp calibration flow chart provided by some embodiments of the present invention. First, fix the calibrated vehicle on the vehicle placement table, adjust the power gear of the calibrated vehicle to the on gear, and connect the controller to the OBD (On-Board Diagnostics Port) of the vehicle under test through the CAN line. The calibrator clicks on the display screen to start calibration, and the controller controls the camera to identify the VIN of the calibrated vehicle and store it in the controller. The controller sends the DLP headlight angle, image parameters and other information set by the software to the calibrated vehicle through CAN. The calibrated vehicle adjusts the DLP headlight angle and projection image parameters and then projects the image onto the image projection table. The controller then controls the vehicle placement table and the image projection table through Ethernet, and adjusts the vehicle placement table and the image projection table to the angle set by the software. After the adjustment is completed, the controller controls the second camera to shoot the projected image and transmit it to the controller. The controller compares the projected image captured by the second camera with the standard image through the image algorithm and confirms whether the calibration is qualified. If the calibration is qualified, the controller sends the calibration success information, image parameter information, vehicle placement platform angle information, and image projection platform angle information to the calibrated vehicle. The calibrated vehicle stores these parameters in the memory, and the controller displays the calibration through the display screen to prompt the calibration personnel. If the calibration fails, the controller adjusts the image parameters and sends them to the calibrated vehicle. After the calibrated vehicle adjusts the image parameters, it projects the image onto the projection table. The controller controls the camera to shoot the projected image again, and the controller compares again until the calibration passes. The controller follows the above steps to complete the calibration of all headlight angles, all placement platform angles, and all image projection platform angles set by the software. After all the calibrations set by the software pass, the display screen displays that the whole vehicle calibration is qualified to prompt the calibration personnel.
[0127] In some embodiments of the present invention, the vehicle includes a storage device, and step 107 includes the following sub-steps:
[0128] Sub-step 61: storing the correspondence between the vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image in a vehicle storage device that matches the vehicle identification number.
[0129] After adjusting the original image to obtain the corresponding target image, it can be ensured that the difference in projection has been reduced to an acceptable level, that is, the vehicle lighting parameters and the target image meet the standards and can be used normally during actual vehicle operation.
[0130] In some embodiments of the present invention, the correspondence between vehicle lighting parameters, vehicle posture parameters, road state parameters and target images is stored in a vehicle storage device that matches the vehicle identification number, so as to facilitate corresponding search and use when the vehicle is actually running.
[0131] Sub-step 62: Acquire actual parameters of the lamps, actual vehicle posture parameters, actual road state parameters, and the image to be projected during use of the vehicle.
[0132] In some embodiments of the present invention, if projection is to be performed during the actual operation of the vehicle, it is necessary to obtain the actual parameters of the vehicle's lamps, the actual vehicle posture parameters, the actual road state parameters, and the image to be projected during use.
[0133] In some other embodiments of the present invention, optical sensors can be used to measure actual parameters of vehicle lamps such as brightness, color temperature and beam distribution, and vehicle-mounted sensors (such as gyroscopes, accelerometers, etc.) can be used to measure actual vehicle posture parameters. These sensors can be integrated into the vehicle's electronic stability program or other control systems; vehicle-mounted sensors, laser scanners, and radars can be used to measure actual road state parameters such as road slope and curvature.
[0134] Sub-step 63: determining a target image from the corresponding relationship according to the actual parameters of the lamp, the actual posture parameters of the vehicle, the actual state parameters of the road and the image to be projected.
[0135] In the aforementioned steps, the correspondence between the calibrated vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image has been stored in the vehicle's storage device. Therefore, during actual operation, by searching all the correspondences, a certain correspondence corresponding to the actual lighting parameters, the actual vehicle state parameters, the actual road state parameters and the image to be projected can be obtained, thereby determining the target image.
[0136] Sub-step 64: Controlling the vehicle lamp to perform projection according to the target image.
[0137] After determining the target image, the vehicle can control the vehicle lamps to project according to the target image.
[0138] The embodiment of the present invention obtains vehicle lighting parameters, vehicle posture parameters, road state parameters and an original image, controls the vehicle placement platform to rotate according to the vehicle posture parameters to set the vehicle in a target vehicle posture, controls the image projection platform to rotate according to the road state parameters to set the vehicle in a target road state, and when the vehicle is set in the target vehicle posture and the target road state, controls the vehicle to project the original image from the vehicle placement platform to the image projection platform according to the vehicle lighting parameters to obtain a projected image, calculates the difference between the projected image and the original image, and adjusts the original image when the difference is greater than a preset difference threshold to obtain a projection image that is consistent with the original image. The target image corresponding to the original image is obtained, and the corresponding relationship between the vehicle lamp parameters, vehicle posture parameters, road state parameters and the target image is stored in the vehicle, so that when the vehicle is in the target vehicle posture and the target road state, the vehicle lamp parameters and the target image are used to control the vehicle lamps for projection. The present invention realizes automatic calibration of vehicle lamps according to the original image in different postures and under different road conditions, saves manual calibration costs, and improves calibration efficiency; by storing the corresponding relationship between the obtained target image and the vehicle lamp parameters, vehicle posture parameters, and road state parameters in the vehicle, the vehicle adopts the corresponding relationship for projection during actual use, thereby reducing projection errors.
[0139] Reference Figure 4 , shows a projection control device based on a vehicle lamp provided by an embodiment of the present invention, the device comprising:
[0140] The data acquisition module 401 is used to acquire vehicle lighting parameters, vehicle posture parameters, road state parameters and original images;
[0141] A vehicle posture control module 402, used to control the vehicle placement platform to rotate according to the vehicle posture parameter, so as to place the vehicle at a target vehicle posture;
[0142] A road state control module 403, used to control the image projection platform to rotate according to the road state parameter to place the vehicle in a target road state;
[0143] A projection control module 404 is used to control the vehicle to project the original image from the vehicle placement platform to the image projection platform according to the vehicle lamp parameters when the vehicle is set in the target vehicle posture and the target road state, so as to obtain a projection image;
[0144] An image calculation module 405 is used to calculate the difference between the projected image and the original image;
[0145] An image adjustment module 406 is used to adjust the original image to obtain a target image corresponding to the original image when the difference is greater than a preset difference threshold;
[0146] The data storage module 407 is used to store the correspondence between the vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image in the vehicle, so that the vehicle uses the vehicle lighting parameters and the target image to control the vehicle lighting for projection when the vehicle is in the target vehicle posture and the target road state.
[0147] In one embodiment, the vehicle posture control module 402 is specifically used to:
[0148] If the vehicle direction parameter is a left turn, the vehicle control console is controlled to turn left according to the vehicle angle parameter;
[0149] If the vehicle direction parameter is right turn, the vehicle control console is controlled to turn right according to the vehicle angle parameter.
[0150] In one embodiment, the road state control module 403 is specifically used to:
[0151] If the road direction parameter is a left-hand intersection, the image projection platform is controlled to rotate leftward according to the road angle parameter;
[0152] If the road direction parameter is a right-hand intersection, the image projection platform is controlled to rotate rightward according to the road angle parameter.
[0153] In one embodiment, the projection control module 404 is specifically used to:
[0154] photographing the vehicle through a first camera to obtain a vehicle identification number;
[0155] The image projection platform is photographed by a second camera to obtain the projection image.
[0156] In one embodiment, the image calculation module 405 is specifically used for:
[0157] Dividing the projection image to obtain a plurality of projection image pixel points;
[0158] Dividing the original image to obtain a plurality of original image pixel points, wherein the plurality of projection image pixel points are in a one-to-one correspondence with the plurality of original image pixel points;
[0159] Calculating coordinate differences between corresponding points of the projected image and the original image;
[0160] The difference between the projected image and the original image is determined according to the coordinate difference between the corresponding points.
[0161] In one embodiment, the image adjustment module 406 is specifically used to:
[0162] When the difference is greater than a preset difference threshold; establishing a mapping relationship between the coordinates of the pixel points in the projected image and the coordinates of the pixel points in the original image;
[0163] Calculating based on the mapping relationship to obtain inverse distortion parameters;
[0164] The coordinates of the pixels in the original image are adjusted according to the inverse distortion parameters to obtain the target image corresponding to the original image.
[0165] In one embodiment, the data storage module 407 is specifically used for:
[0166] Storing the corresponding relationship between the vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image in a vehicle storage device that matches the vehicle identification number;
[0167] Obtaining actual parameters of the vehicle's lamps, actual vehicle posture parameters, actual road state parameters, and images to be projected during vehicle use;
[0168] Determining a target image from the corresponding relationship according to the actual parameters of the lamp, the actual posture parameters of the vehicle, the actual state parameters of the road and the image to be projected;
[0169] The vehicle lamp is controlled to perform projection according to the target image.
[0170] The embodiment of the present invention obtains vehicle lighting parameters, vehicle posture parameters, road state parameters and an original image, controls the vehicle placement platform to rotate according to the vehicle posture parameters to set the vehicle in a target vehicle posture, controls the image projection platform to rotate according to the road state parameters to set the vehicle in a target road state, and when the vehicle is set in the target vehicle posture and the target road state, controls the vehicle to project the original image from the vehicle placement platform to the image projection platform according to the vehicle lighting parameters to obtain a projected image, calculates the difference between the projected image and the original image, and adjusts the original image when the difference is greater than a preset difference threshold to obtain a projection image that is consistent with the original image. The target image corresponding to the original image is obtained, and the corresponding relationship between the vehicle lamp parameters, vehicle posture parameters, road state parameters and the target image is stored in the vehicle, so that when the vehicle is in the target vehicle posture and the target road state, the vehicle lamp parameters and the target image are used to control the vehicle lamps for projection. The present invention realizes automatic calibration of vehicle lamps according to the original image in different postures and under different road conditions, saves manual calibration costs, and improves calibration efficiency; by storing the corresponding relationship between the obtained target image and the vehicle lamp parameters, vehicle posture parameters, and road state parameters in the vehicle, the vehicle adopts the corresponding relationship for projection during actual use, thereby reducing projection errors.
[0171] The embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, it includes a processor 501, a device interface 502, a memory 503 and a bus 504;
[0172] Memory 503, used for storing computer programs;
[0173] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:
[0174] Obtain vehicle lighting parameters, vehicle posture parameters, road state parameters and original images;
[0175] Controlling the vehicle placement platform to rotate according to the vehicle posture parameter to place the vehicle at a target vehicle posture;
[0176] Controlling the image projection platform to rotate according to the road state parameter to place the vehicle in a target road state;
[0177] When the vehicle is set in the target vehicle posture and the target road state, the vehicle is controlled to project the original image from the vehicle placement platform to the image projection platform according to the vehicle lamp parameters to obtain a projection image;
[0178] Calculating the difference between the projected image and the original image;
[0179] When the difference is greater than a preset difference threshold, adjusting the original image to obtain a target image corresponding to the original image;
[0180] The corresponding relationship between the vehicle lamp parameters, vehicle posture parameters, road state parameters and the target image is stored in the vehicle, so that the vehicle lamp parameters and the target image are used to control the vehicle lamp for projection when the vehicle is in the target vehicle posture and the target road state;
[0181] The original image of the vehicle lamp is automatically calibrated in different postures and under different road conditions, and the corresponding relationship between the obtained target image and the vehicle lamp parameters, vehicle posture parameters, and road state parameters is stored in the vehicle so that the vehicle can be projected using the corresponding relationship when it is actually used.
[0182] The bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0183] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0184] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0185] The present invention also provides a storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the projection control method based on vehicle lamps of the aforementioned embodiment.
[0186] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the projection control method based on vehicle lamps of the aforementioned embodiment when executed by a processor.
[0187] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0188] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. According to the above description, it is obvious that the structure required for constructing this type of device is. In addition, the present invention is not directed to any specific programming language. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific language is to disclose the best mode of the present invention.
[0189] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0190] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all of the features of the individual embodiments disclosed above. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.
[0191] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0192] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the sorting device according to the present invention. The present invention may also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0193] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
[0194] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, apparatuses and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0195] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0196] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0197] It should be noted that the various data-related processes in the embodiments of the present application are all carried out in compliance with the corresponding data protection laws and policies of the country where the device is located, and with the authorization given by the owner of the corresponding device.
Claims
1. A projection control method based on vehicle lamps, It is characterized in that The method comprises: Obtain vehicle lighting parameters, vehicle posture parameters, road state parameters and original images; Controlling the vehicle placement platform to rotate according to the vehicle posture parameter to place the vehicle at a target vehicle posture; Controlling the image projection platform to rotate according to the road state parameter to place the vehicle in a target road state; When the vehicle is set in the target vehicle posture and the target road state, the vehicle is controlled to project the original image from the vehicle placement platform to the image projection platform according to the vehicle lamp parameters to obtain a projection image; Calculating the difference between the projected image and the original image; When the difference is greater than a preset difference threshold, adjusting the original image to obtain a target image corresponding to the original image; The correspondence between the vehicle lamp parameters, vehicle posture parameters, road state parameters and the target image is stored in the vehicle, so that when the vehicle is in the target vehicle posture and the target road state, the vehicle lamp parameters and the target image are used to control the vehicle lamp for projection.
2. The method according to claim 1, It is characterized in that The vehicle posture parameters include vehicle direction parameters and vehicle angle parameters, and the step of controlling the vehicle placement platform to rotate according to the vehicle posture parameters includes: If the vehicle direction parameter is a left turn, the vehicle control console is controlled to turn left according to the vehicle angle parameter; If the vehicle direction parameter is right turn, the vehicle control console is controlled to turn right according to the vehicle angle parameter.
3. The method according to claim 1, It is characterized in that The road state parameters include road direction parameters and road angle parameters, and the step of controlling the image projection platform to rotate according to the road state parameters includes: If the road direction parameter is a left-bound intersection, the image projection platform is controlled to rotate leftward according to the road angle parameter; if the road direction parameter is a right-bound intersection, the image projection platform is controlled to rotate rightward according to the road angle parameter.
4. The method according to claim 1, It is characterized in that Before calculating the difference between the projection image and the original image, the method further includes: photographing the vehicle through a first camera to obtain a vehicle identification number; The image projection platform is photographed by a second camera to obtain the projection image.
5. The method according to any one of claims 1 to 4, It is characterized in that The calculating the difference between the projection image and the original image comprises: Dividing the projection image to obtain a plurality of projection image pixel points; Dividing the original image to obtain a plurality of original image pixel points, wherein the plurality of projection image pixel points are in a one-to-one correspondence with the plurality of original image pixel points; Calculating coordinate differences between corresponding points of the projected image and the original image; The difference between the projected image and the original image is determined according to the coordinate difference between the corresponding points.
6. The method according to claim 5, It is characterized in that When the difference is greater than a preset difference threshold, adjusting the original image to obtain a target image corresponding to the original image includes: When the difference is greater than a preset difference threshold, a mapping relationship between the coordinates of the pixel points in the projected image and the coordinates of the pixel points in the original image is established; Calculating based on the mapping relationship to obtain inverse distortion parameters; The coordinates of the pixels in the original image are adjusted according to the inverse distortion parameters to obtain the target image corresponding to the original image.
7. The method according to claim 6, It is characterized in that The vehicle includes a storage device, which stores the corresponding relationship between the vehicle lamp parameters, vehicle posture parameters, road state parameters and the target image in the vehicle, so that the vehicle uses the vehicle lamp parameters and the target image to control the vehicle lamp for projection when the vehicle is in the target vehicle posture and the target road state, including: Storing the corresponding relationship between the vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image in a vehicle storage device that matches the vehicle identification number; Obtaining actual parameters of the vehicle's lamps, actual vehicle posture parameters, actual road state parameters, and images to be projected during vehicle use; Determining a target image from the corresponding relationship according to the actual parameters of the lamp, the actual posture parameters of the vehicle, the actual state parameters of the road and the image to be projected; The vehicle lamp is controlled to perform projection according to the target image.
8. A projection control device based on vehicle lamps, It is characterized in that The device comprises: A data acquisition module, used to acquire vehicle lighting parameters, vehicle posture parameters, road state parameters and original images; A vehicle posture control module, used for controlling the vehicle placement platform to rotate according to the vehicle posture parameter, so as to place the vehicle at a target vehicle posture; A road state control module, used for controlling the image projection platform to rotate according to the road state parameter to place the vehicle in a target road state; A projection control module, used for controlling the vehicle to project the original image from the vehicle placement platform to the image projection platform to obtain a projection image according to the vehicle lamp parameters when the vehicle is set in the target vehicle posture and the target road state; An image calculation module, used for calculating the difference between the projected image and the original image; An image adjustment module, configured to adjust the original image to obtain a target image corresponding to the original image when the difference is greater than a preset difference threshold; A data storage module is used to store the corresponding relationship between the vehicle lighting parameters, vehicle posture parameters, road state parameters and the target image in the vehicle, so that the vehicle adopts the vehicle lighting parameters and the target image to control the vehicle lighting for projection when the vehicle is in the target vehicle posture and the target road state.
9. An electronic device, It is characterized in that include: at least one processor; a memory communicatively coupled to the at least one processor; The memory has a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the projection control method based on vehicle lamps according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the projection control method based on a vehicle lamp according to any one of claims 1 to 7 is implemented.
