A focusing method, device, electronic device and storage medium for pixel headlight
By determining the focus image of the pixel headlight and the pixel distance of the collected projection image, and performing focus processing, the problem of poor projection effect caused by changes in the focus position of the pixel headlight is solved and a better projection effect is achieved.
Patent Information
- Application Number
- CN202410644375.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-23
AI Technical Summary
The change in the focus position of the pixel headlight results in poor projection effect, and it is difficult to effectively solve this problem with existing technology.
By determining the focus image corresponding to the pixel headlight, and collecting the pixel distance between the projected image and the preset projection image, focus processing is performed, so that the focus of the pixel headlight approaches the preset position, improving the projection effect.
It effectively avoids the problem of poor projection effect caused by changes in the focus position of the pixel headlights, improves the projection quality of the pixel headlights, and makes the focus position approach the preset position.
Smart Images

Figure CN118233610B
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a focusing method, device, electronic device and storage medium for a pixel headlight. Background Art
[0002] The development of vehicle intelligent lighting systems is an important aspect of the rapid progress of the automotive industry in recent years. With the advancement of technology and the improvement of consumer demand for automotive functions, intelligent lighting systems have evolved from simple lighting tools to important components with multiple advanced functions.
[0003] Pixel headlights are an advanced automotive headlight technology that divides the headlights into multiple independent light-emitting units, each of which can be independently controlled, so as to achieve highly precise lighting effects. In addition, pixel headlights integrate digital light processing technology, and project various patterns and video information in front of the vehicle through program control, thereby providing users with a variety of projection services. Due to the adjustment of the illumination angle of the vehicle headlights and the height of the chassis, the focus position of the left and right pixel headlights of the vehicle changes, resulting in poor projection effects of the left and right pixel headlights. Therefore, a pixel headlight focusing method is urgently needed to solve the problem of poor projection effects caused by changes in the focus position of pixel headlights in the prior art. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a focusing method, device, electronic device and storage medium for a pixel headlight to solve the problem in the prior art that the focus position of the pixel headlight changes, resulting in poor projection effect.
[0005] According to a first aspect of an embodiment of the present application, a focusing method for a pixel headlight is provided, the method comprising: determining a focus image corresponding to at least one pixel headlight, and controlling at least one pixel headlight to perform projection according to the focus image; collecting a projection image generated by at least one pixel headlight projecting the corresponding focus image, and determining a pixel distance between the projection image and a preset projection image; and performing focusing processing on at least one pixel headlight according to the pixel distance between the projection image and the preset projection image.
[0006] According to a second aspect of an embodiment of the present application, a focusing device for a pixel headlight is provided, the device comprising: a projection module, used to determine a focus image corresponding to at least one pixel headlight, and control at least one pixel headlight to perform projection according to the focus image; a determination module, used to capture a projection image generated by at least one pixel headlight projecting a corresponding focus image, and determine a pixel distance between the projection image and a preset projection image; a focusing module, used to perform focusing processing on at least one pixel headlight according to the pixel distance between the projection image and the preset projection image.
[0007] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0008] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0009] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the method in the embodiments of the present application determines a focus image corresponding to at least one pixel headlight, and controls at least one pixel headlight to project according to the focus image; collects a projection image generated by at least one pixel headlight projecting the corresponding focus image, and determines the pixel distance between the projection image and the preset projection image; focuses at least one pixel headlight according to the pixel distance between the projection image and the preset projection image, so that the projection image projected by at least one pixel headlight approaches the preset projection image, and then the focus of at least one pixel headlight can approach the focal position corresponding to the preset projection image, thereby improving the projection effect of at least one pixel headlight and avoiding the problem of poor projection effect caused by the change of the focal position of the pixel headlight in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 It is a flowchart of a focusing method for a pixel headlight provided in an embodiment of the present application;
[0012] Figure 2 is a flow chart of another focusing method for a pixel headlight provided in an embodiment of the present application;
[0013] Figure 3 is a flow chart of another focusing method for a pixel headlight provided in an embodiment of the present application;
[0014] Figure 4 is a flow chart of another focusing method for a pixel headlight provided in an embodiment of the present application;
[0015] Figure 5 is a flow chart of another focusing method for a pixel headlight provided in an embodiment of the present application;
[0016] Figure 6 is a flow chart of another optional focusing method for pixel headlights provided in an embodiment of the present application;
[0017] Figure 7 is a flowchart of another optional focusing method for pixel headlights provided in an embodiment of the present application;
[0018] Figure 8 This is a basic schematic diagram of a vehicle pixel headlight provided by an embodiment of the present application;
[0019] Fig. 9 is a structural schematic diagram of a focusing device for a pixel headlight provided in an embodiment of the present application;
[0020] Fig.10 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0022] A focusing method and device for a pixel headlight according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0023] Figure 1 A focusing method of a pixel headlight provided in an embodiment of the present application is as follows: Figure 1 As shown, the method includes:
[0024] S101, determining a focus image corresponding to at least one pixel headlight, and controlling at least one pixel headlight to perform projection according to the focus image;
[0025] S102, collecting a projection image generated by projecting a focus image corresponding to at least one pixel headlight, and determining a pixel distance between the projection image and a preset projection image;
[0026] S103: performing focusing processing on at least one pixel headlight according to a pixel distance between the projected image and a preset projected image.
[0027] It can be understood that the focusing method of the above-mentioned pixel headlights provided in this example is applied to vehicles, and the above-mentioned vehicles include vehicles with automatic driving or intelligent driving (including vehicles with manned functions (such as cars, buses, large buses, minibuses, etc.), vehicles with cargo functions (such as ordinary trucks, vans, trailers, closed trucks, tank trucks, flatbed trucks, container trucks, dump trucks, trucks with special structures), special vehicles (such as logistics distribution vehicles, automatic guided transport vehicles AGV, patrol cars, cranes, cranes, excavators, bulldozers, forklifts, rollers, loaders, off-road engineering vehicles, armored engineering vehicles, sewage treatment vehicles, sanitation vehicles, vacuum trucks, floor washing vehicles, sprinkler trucks, sweeping robots, food delivery robots, shopping guide robots, lawn mowers, golf carts, etc.), vehicles with entertainment functions (such as entertainment vehicles, amusement park automatic driving devices, balance cars, etc.), rescue vehicles (such as fire trucks, ambulances, power repair vehicles, engineering rescue vehicles, etc.)).
[0028] Specifically, the vehicle is provided with two pixel headlights, and the pixel headlights provided on the vehicle include a first pixel headlight provided on one side of the vehicle and a second pixel headlight provided on the other side of the vehicle; exemplarily, the above-mentioned one side of the vehicle is the left front side of the vehicle, and the above-mentioned other side is the right front side of the vehicle, then the first pixel headlight is the pixel headlight provided on the left front side of the vehicle, and the second pixel headlight is the pixel headlight provided on the right front side of the vehicle; conversely, the above-mentioned one side of the vehicle is the right front side of the vehicle, and the above-mentioned other side is the left front side of the vehicle, then the first pixel headlight is the pixel headlight provided on the right front side of the vehicle, and the second pixel headlight is the pixel headlight provided on the left front side of the vehicle.
[0029] It can be understood that when the focal position of the first pixel headlight and / or the second pixel headlight of the vehicle changes, making the focal positions of the first pixel headlight and the second pixel headlight different, resulting in poor projection effect of the vehicle, it is necessary to focus the first pixel headlight and / or the second pixel headlight, so as to make the focal positions of the first pixel headlight and the second pixel headlight of the vehicle tend to be the same.
[0030] Specifically, the above-mentioned focusing processing of the first pixel headlight and / or the second pixel headlight is divided into the following three cases: the first case "perform focusing processing on the first pixel headlight and the second pixel headlight respectively, so that the focal positions of the first pixel headlight and the second pixel headlight are the same or tend to be the same, thereby improving the projection effect of the vehicle"; the second case "perform focusing processing on the first pixel headlight so that the focal position of the first pixel headlight tends to the focal position of the second pixel headlight, thereby making the focal positions of the first pixel headlight and the second pixel headlight the same or tend to be the same, thereby improving the projection effect of the vehicle"; the third case "perform focusing processing on the second pixel headlight so that the focal position of the second pixel headlight tends to the focal position of the first pixel headlight, thereby making the focal positions of the first pixel headlight and the second pixel headlight the same or tend to be the same, thereby improving the projection effect of the vehicle".
[0031] Continuing with the above example, in different focus processing situations, it is necessary to obtain focus images corresponding to different pixel headlights. Taking the first situation mentioned above as an example, the focus image corresponding to the first pixel headlight and the focus image corresponding to the second pixel headlight are obtained respectively; accordingly, in the second situation, only the focus image corresponding to the first pixel headlight is obtained, and in the third situation, only the focus image corresponding to the second pixel headlight is obtained.
[0032] In some examples, after obtaining a focus image corresponding to at least one pixel headlight, this example controls at least one pixel headlight to project according to the focus image. Specifically, if a focus image corresponding to a first pixel headlight is obtained, the first pixel headlight is controlled to project according to the focus image; and, if a focus image corresponding to a second pixel headlight is obtained, the second pixel headlight is controlled to project according to the focus image. Specifically, how to control at least one pixel headlight to project according to the focus image will be described in detail later and will not be repeated here.
[0033] In some examples, this example will also capture the projection image generated by at least the focus image projected by the pixel headlight, that is, if the first pixel headlight projects according to the focus image, the projection image generated by the projection of the first pixel headlight is obtained; and, if the second pixel headlight projects according to the focus image, the projection image generated by the projection of the second pixel headlight is obtained.
[0034] In some examples, after obtaining the projection image, this example will further compare the projection image with the preset projection image, thereby obtaining the pixel distance between the projection image and the preset projection image; it can be understood that the preset projection image is a pre-set image, and it can be understood that when only the focus image corresponding to the first pixel headlight is obtained and only the first pixel headlight is focused, the preset projection image is a projection image generated based on the second pixel headlight; when only the focus image corresponding to the second pixel headlight is obtained and only the second pixel headlight is focused, the preset projection image is a projection image generated based on the first pixel headlight; when the focus image corresponding to the first pixel headlight and the focus image corresponding to the second pixel headlight are obtained and the first pixel headlight and the second pixel headlight are focused, the preset projection image is a projection image generated based on the first pixel headlight and the second pixel headlight. Among them, how to set the preset projection image will be described in detail later, and will not be repeated here.
[0035] Continuing with the above example, after determining the pixel distance between the projection image and the preset projection image, this example further performs focusing processing on at least one pixel headlight according to the pixel distance between the projection image and the preset projection image, so that the projection image projected by the at least one pixel headlight can approach the preset projection image, thereby achieving the effect of improving the projection effect of the at least one pixel headlight; exemplarily, in the case of "focusing the first pixel headlight so that the focal position of the first pixel headlight approaches the focal position of the second pixel headlight, so that the focal positions of the first pixel headlight and the second pixel headlight are the same or approach the same, thereby achieving the effect of improving the projection effect of the vehicle", the pixel distance between the projection image corresponding to the first pixel headlight and the preset projection image is obtained, and then the first pixel headlight is focused according to the pixel distance between the projection image corresponding to the first pixel headlight and the preset projection image, so that the projection image projected by the first pixel headlight can approach the preset projection image corresponding to the second pixel headlight. Image, so as to enhance the projection effect of the vehicle pixel headlights; for another example, under "focusing the first pixel headlight and the second pixel headlight respectively, so that the focal positions of the first pixel headlight and the second pixel headlight are the same or approach to the same, so as to enhance the projection effect of the vehicle", the pixel distance between the projection image corresponding to the first pixel headlight and the preset projection image is obtained, and then the first pixel headlight is focused according to the pixel distance between the projection image corresponding to the first pixel headlight and the preset projection image, so that the projection image projected by the first pixel headlight can approach the preset projection image, the pixel distance between the projection image corresponding to the second pixel headlight and the preset projection image is obtained, and then the second pixel headlight is focused according to the pixel distance between the projection image corresponding to the second pixel headlight and the preset projection image, so that the projection image projected by the second pixel headlight can approach the preset projection image, so as to enhance the projection effect of the first pixel headlight and the second pixel headlight.
[0036] According to the technical solution provided in the embodiment of the present application, the focusing method of the pixel headlight provided in this example determines the focus image corresponding to at least one pixel headlight, and controls at least one pixel headlight to project according to the focus image; collects the projection image generated by the focus image corresponding to the projection of at least one pixel headlight, and determines the pixel distance between the projection image and the preset projection image; according to the pixel distance between the projection image and the preset projection image, focuses at least one pixel headlight, so that the projection image projected by at least one pixel headlight approaches the preset projection image, and then the focus of at least one pixel headlight can approach the focus position corresponding to the preset projection image, so as to improve the projection effect of at least one pixel headlight and avoid the problem of poor projection effect caused by the change of the focus position of the pixel headlight in the prior art.
[0037] In some embodiments, the focus image includes a first focus image and a second focus image, and the first pixel headlight corresponds to the first focus image, and the second pixel headlight corresponds to the second focus image. Figure 2 As shown, before controlling at least one pixel headlight to project according to the focused image, the method further includes:
[0038] S201, controlling the first pixel headlight to project a corresponding first focused image at a preset focus position, and controlling the second pixel headlight to project a corresponding second focused image at a preset focus position, wherein the first focused image and the second focused image are identical at least at the focus position;
[0039] S202, collecting an overlapping image generated at a focus position by a first pixel headlight projecting a first focused image and a second pixel headlight projecting a second focused image as a preset projection image.
[0040] Specifically, when the first pixel headlight and the second pixel headlight are accurately focused and there is no abnormality, the first pixel headlight and the second pixel headlight will perform high-quality projection image fusion of the dual-light machine at the preset focus position, and the fused projection image will not have double images; it can be understood that the above focus position is jointly determined by relevant personnel based on the vehicle's built-in camera resolution, camera installation position, camera front view range, ground projection image fusion area, etc. Among them, the shape of the focus position is not limited and can be flexibly set by relevant personnel according to actual needs. Preferably, the above focus position is a rectangular area composed of four points.
[0041] Continuing with the above example, if there is an abnormality in the focus of the first pixel headlight or the second pixel headlight, the first pixel headlight and the second pixel headlight will not be able to perform projected image fusion at the preset focal position, or the fused projected image will have ghosting, affecting the image quality; therefore, this example obtains the preset projection avatar in advance, so that when the handover position of the first pixel headlight and the second pixel headlight is changed later, they can both perform focusing processing according to the preset projection image, which satisfies the first situation of "focusing the first pixel headlight and the second pixel headlight respectively, so that the focal positions of the first pixel headlight and the second pixel headlight are the same or tend to be the same, thereby improving the projection effect of the vehicle".
[0042] In some examples, when the focus of the first pixel headlight and the second pixel headlight is accurate and no abnormality occurs (for example, when the vehicle is factory-set with a fixed illumination angle and a fixed chassis height), the first pixel headlight is controlled to project the corresponding first focus image at a preset focus position, and the second pixel headlight is controlled to project the corresponding second focus image at a preset focus position, and the first focus image and the second focus image are at least the same image at the focus position, so that the projection image generated by the first pixel headlight and the second pixel headlight projecting the corresponding focus image can be fused at the preset focus position without generating ghost images. It can be understood that the first focus image and the second focus image are different, and at the same time, since the first pixel headlight projects the first focus image and the second pixel headlight projects the second focus image, the first pixel headlight and the second pixel headlight will perform high-quality projection image fusion of the dual-light machine at the preset focus position, and the fused projection image will not generate ghost images, so the first focus image and the second focus image are at least partially the same, so that the projection image corresponding to the first focus image and the projection image corresponding to the second focus image can be fused at the focus position.
[0043] This example further collects an overlapping image generated at a focus position by a first projection image projected by a first pixel headlight and a second object image projected by a second pixel headlight as a preset projection image.
[0044] Exemplarily, when a vehicle leaves the factory, the illumination angle of the vehicle headlights and the chassis height are of standard design. At this time, the focal positions of the first pixel headlight and the second pixel headlight of the vehicle are preset, and relevant personnel pre-store focus images (including but not limited to checkerboard images) for automatic focus in the headlight controller, and record the focus image corresponding to the first pixel headlight as ppl, and record the focus image corresponding to the second pixel headlight as ppr, and the images of ppl and ppr are the same at least at the focal position; the first pixel headlight of the vehicle projects according to ppl at the preset focal position, and the second pixel headlight of the vehicle projects according to ppr at the preset focal position to generate a complete projection image, and the partial image at the focal position in the complete projection image is used as the preset projection image ptarget.
[0045] According to the technical solution provided in the embodiment of the present application, the first pixel headlight is controlled to project a corresponding first focus image at a preset focus position, and the second pixel headlight is controlled to project a corresponding second focus image at a preset focus position, and the first focus image and the second focus image are the same at least at the focus position; the overlapping image generated by the first pixel headlight projecting the first projection image and the second pixel headlight projecting the second object image at the focus position is collected as the preset projection image, thereby realizing the acquisition of the preset projection image generated by the first pixel headlight and the second pixel headlight at the focus position.
[0046] In some embodiments, Figure 3 As shown, controlling at least one pixel headlight to project according to the focused image includes:
[0047] S301, controlling the first pixel headlight to project a first focused image, and controlling the second pixel headlight to project a non-interference image;
[0048] S302: After collecting a projection image generated by the first pixel headlight projecting the first focused image, control the second pixel headlight to project the second focused image, and control the first pixel headlight to project a non-interference image.
[0049] Specifically, in the first case of "focusing the first pixel headlight and the second pixel headlight respectively, so that the focal positions of the first pixel headlight and the second pixel headlight are the same or tend to be the same, thereby improving the projection effect of the vehicle", this example first controls the first pixel headlight to project a first focused image, and controls the second pixel headlight to project a non-interference image, so as to avoid the projection image projected by the second pixel headlight interfering with the projection image when the first pixel headlight projects the first focused image; wherein the above-mentioned non-interference image includes but is not limited to a completely black image.
[0050] Among them, after controlling the first pixel headlight to project the first focused image and controlling the second pixel headlight to project the interference-free image, the projection image corresponding to the first focused image on the ground is immediately collected through the vehicle's camera.
[0051] In some examples, after capturing the projection image generated by the first pixel headlight projecting the first focused image, the second pixel headlight is controlled to project the second focused image, and the first pixel headlight is controlled to project the interference-free image, and the projection image corresponding to the first focused image on the ground is immediately captured through the vehicle's camera, thereby achieving accurate capture of the projection image generated by the first pixel headlight projecting the first focused image and the projection image generated by the second pixel headlight projecting the second focused image.
[0052] According to the technical solution provided in the embodiment of the present application, the first pixel headlight is controlled to project a first focused image, and the second pixel headlight is controlled to project a non-interference image; after collecting the projection image generated by the first pixel headlight projecting the first focused image, the second pixel headlight is controlled to project a second focused image, and the first pixel headlight is controlled to project a non-interference image, thereby achieving accurate collection of the projection image generated by the first pixel headlight projecting the first focused image and the projection image generated by the second pixel headlight projecting the second focused image, thereby avoiding the problem that when the first pixel headlight projects the first focused image, the second pixel headlight projects other images that interfere with the projection image corresponding to the first pixel headlight, resulting in the inability to accurately collect the projection image generated by the first pixel headlight projecting the first focused image, and at the same time, avoiding the problem that when the second pixel headlight projects the second focused image, the first pixel headlight projects other images that interfere with the projection image corresponding to the second pixel headlight, resulting in the inability to accurately collect the projection image generated by the first pixel headlight projecting the first focused image.
[0053] In some embodiments, the projected image includes: a first projected image generated by a first pixel headlight projecting a first focused image, and a second projected image generated by a second pixel headlight projecting a second focused image. Figure 4 As shown, determining the pixel distance between the projected image and the preset projected image includes:
[0054] S401, determining a first projection positioning feature point in a first projection image, determining a second projection positioning feature point in a second projection image, and determining a target positioning feature point in a preset projection image;
[0055] S402, comparing the first projection positioning feature point with the target positioning feature point to determine the pixel distance between the first projection image and the preset projection image;
[0056] S403: Compare the second projection positioning feature points with the target positioning feature points to determine the pixel distance between the second projection image and the preset projection image.
[0057] Specifically, a projection image generated by the first pixel headlight projecting the first focused image is used as the first projection image, and a projection image generated by the second pixel headlight projecting the second focused image is used as the second projection image.
[0058] Among them, this example determines the first projection positioning feature point in the first projection image, determines the second projection positioning feature point in the second projection image, and determines the target positioning feature point in the preset projection image, thereby achieving a comparison between the subsequent first projection image and the preset projection image, and then achieving a comparison between the second projection image and the preset projection image.
[0059] It can be understood that the projection images generated by different types of focus images correspond to different positioning feature points. For example, taking the type of focus image as a checkerboard image, when the pixel headlight projects a checkerboard type focus image, the corresponding projection image is also of the checkerboard type, then the corner points and / or edge points corresponding to the projection image are obtained, and the corner points and / or edge points are used as the positioning feature points corresponding to the projection image; for another example, taking the focus image as a grid image, when the pixel headlight projects a grid type focus image, the corresponding projection image is also of the grid type, then the line points corresponding to the projection image are obtained, and the line points are used as the positioning feature points corresponding to the projection image.
[0060] In some examples, after obtaining the first projection positioning feature points and the target positioning feature points based on the above method, this example compares the first projection positioning feature points with the target positioning feature points to determine the pixel distance between the first projection image and the preset projection image; specifically, this example does not limit the specific algorithm for matching the first projection positioning feature points with the target positioning feature points, and relevant personnel can flexibly set it according to actual needs. Exemplarily, it is implemented by using feature descriptors and matching algorithms; wherein, the matching algorithm can determine the correspondence between each first projection positioning feature point and each target positioning feature point, and after determining the correspondence between the first projection positioning feature point and the target positioning feature point, the pixel distance between the first projection image and the preset projection image can be determined by calculating the Euclidean distance or other distance measurement between the feature points, and the pixel distance can characterize the offset or alignment between the first projection image and the preset projection image.
[0061] Similarly, based on the same principle as above, this example can compare the second projection positioning feature points with the target positioning feature points to determine the pixel distance between the second projection image and the preset projection image.
[0062] According to the technical solution provided in the embodiment of the present application, the first projection positioning feature point in the first projection image is determined, the second projection positioning feature point in the second projection image is determined, and the target positioning feature point in the preset projection image is determined; the first projection positioning feature point is compared with the target positioning feature point to determine the pixel distance between the first projection image and the preset projection image; the second projection positioning feature point is compared with the target positioning feature point to determine the pixel distance between the second projection image and the preset projection image, thereby achieving accurate acquisition of the pixel distance between the first projection image and the preset projection image, and achieving accurate acquisition of the pixel distance between the second projection image and the preset projection image.
[0063] In some embodiments, Figure 5 As shown, before controlling at least one pixel headlight to project according to the focused image, the method further includes:
[0064] S501, determining a calibration pixel headlight and a pixel headlight to be focused from the first pixel headlight and the second pixel headlight;
[0065] S502, controlling the calibrated pixel headlight to project a corresponding focused image, and using the image generated by the calibrated pixel headlight projecting the corresponding focused image as a preset projection image, so that the pixel headlight to be focused performs focusing processing according to the preset projection image.
[0066] Specifically, when the focusing accuracy of the first pixel headlight or the second pixel headlight is abnormal, in order to enable the first pixel headlight and the second pixel headlight to perform high-quality projection image fusion of the dual-light machine, and the fused projection image will not have ghosting, this example performs focusing processing on the first pixel headlight so that the focal position of the first pixel headlight tends to the focal position of the second pixel headlight, and then the focal positions of the first pixel headlight and the second pixel headlight are the same or tend to be the same, thereby improving the projection effect of the vehicle; or performs focusing processing on the second pixel headlight so that the focal position of the second pixel headlight tends to the focal position of the first pixel headlight, and then the focal positions of the first pixel headlight and the second pixel headlight are the same or tend to be the same, thereby improving the projection effect of the vehicle.
[0067] Continuing from the above example, in order to achieve the above effect, the solution provided in this example will determine the calibration pixel headlight and the pixel headlight to be focused from the first pixel headlight and the second pixel headlight, that is, if the first pixel headlight is the calibration headlight, the second pixel headlight is the pixel headlight to be focused; conversely, if the second pixel headlight is the calibration headlight, the first pixel headlight is the pixel headlight to be focused. Among them, relevant personnel can flexibly determine the calibration pixel headlight and the pixel headlight to be focused from the first pixel headlight and the second pixel headlight according to actual conditions.
[0068] In some examples, after determining the calibrated pixel headlight and the pixel headlight to be focused, this example further controls the calibrated pixel headlight to project the corresponding focus image, and uses the image generated by the calibrated pixel headlight projecting the corresponding focus image as the preset projection image, so that the pixel headlight to be focused performs focusing processing according to the preset projection image; illustratively, if the first pixel headlight is the calibrated pixel headlight, the first pixel headlight is controlled to project the first focus image, and the projection image obtained by projecting the first focus image is used as the above-mentioned preset projection image, and then the corresponding second focus image is projected by the second pixel headlight to generate a projection image, and the pixel distance between the projection image generated by the second pixel headlight projecting the corresponding second focus image and the preset projection image is determined; Finally, the second pixel headlight is focused according to the pixel distance between the projection image generated by the second focus image corresponding to the projection of the second pixel headlight and the preset projection image; conversely, if the second pixel headlight is a calibrated pixel headlight, the second pixel headlight is controlled to project the second focus image, and the projection image obtained by projecting the second focus image is used as the above-mentioned preset projection image, and then the projection image is generated by the first pixel headlight projecting the corresponding first focus image, and the pixel distance between the projection image generated by the first pixel headlight projecting the corresponding first focus image and the preset projection image is determined; finally, the first pixel headlight is focused according to the pixel distance between the projection image generated by the first focus image corresponding to the projection of the first pixel headlight and the preset projection image.
[0069] According to the technical solution provided in the embodiment of the present application, the calibrated pixel headlight and the pixel headlight to be focused are determined from the first pixel headlight and the second pixel headlight; the calibrated pixel headlight is controlled to project the corresponding focus image, and the image generated by the calibrated pixel headlight projecting the corresponding focus image is used as the preset projection image, so that the pixel headlight to be focused is focused according to the preset projection image, thereby realizing the determination of the calibrated pixel headlight from the first pixel headlight and the second pixel headlight, so that the pixel headlight to be focused can be focused according to the preset projection image corresponding to the calibrated pixel headlight.
[0070] In some embodiments, Figure 6 As shown, focusing processing is performed on at least one pixel headlight according to the pixel distance between the projected image and the preset projected image, including:
[0071] S601, comparing the pixel distance between the projected image and the preset projected image with a preset focus pixel distance threshold, and if the pixel distance between the projected image and the preset projected image is higher than the focus pixel distance threshold, performing deformation processing on the focus image;
[0072] S602, reacquiring a projection image according to the focused image after deformation processing, until the pixel distance between the reacquired projection image and the preset projection image is less than or equal to the focused pixel distance threshold;
[0073] S603: Using deformation parameters corresponding to the focused image after deformation processing as focus parameters of the pixel headlight, and performing focus processing on the pixel headlight based on the focus parameters.
[0074] Specifically, after obtaining the pixel distance between the projection image and the preset projection image through the positioning feature points corresponding to the projection image and the target positioning feature points corresponding to the preset projection image, this example will further compare the pixel distance between the projection image and the preset projection image with the preset focus pixel distance threshold. If the pixel distance between the projection image and the preset projection image is higher than the focus pixel distance threshold, it means that the error between the projection image projected by the pixel headlight and the preset projection image is too large, and the focus image needs to be deformed. The focusing of the pixel headlight is achieved by deforming the focus image.
[0075] It can be understood that the above-mentioned preset focus pixel distance threshold is a value set by relevant personnel according to actual conditions, and this example does not limit this. Preferably, the value range of the above-mentioned focus pixel distance threshold is 5 pixels to 99 pixels. The above-mentioned deformation processing includes but is not limited to rotation, horizontal trapezoidal deformation, vertical trapezoidal deformation, displacement and scaling.
[0076] Among them, after the deformation process is completed, the projection image is re-acquired according to the focused image after the deformation process, until the pixel distance between the re-acquired projection image and the preset projection image is lower than or equal to the focus pixel distance threshold; specifically, after the deformation process is completed, the pixel headlights are controlled to re-project the focused image after the deformation process, and the corresponding projection image is collected, and then it is determined whether the pixel distance between the projection image and the preset projection image is greater than the preset focus pixel distance threshold. If the pixel distance between the re-acquired projection image and the preset projection image is lower than or equal to the focus pixel distance threshold, it is determined that the deformation process is completed. If the pixel distance between the re-acquired projection image and the preset projection image is higher than the focus pixel distance threshold, the focused image is deformed according to the re-acquired projection image.
[0077] Finally, the deformation parameters corresponding to the focused image after deformation processing are used as the focusing parameters of the pixel headlights, and the pixel headlights are focused based on the focusing parameters, so that the projection images generated by the subsequent pixel headlights projecting any image are all in the focus position of the preset projection image.
[0078] It can be understood that in the process of processing the focused image, the method provided in this example also needs to further determine whether the projected image generated by the focused image is deformed, and the focused image is also required to be rotated, horizontally trapezoidally deformed and vertically trapezoidally deformed, displaced and scaled until the projected image generated by the above-mentioned focused image is not deformed, and the pixel distance between the projected image and the preset projection image is less than or equal to the focus pixel distance threshold.
[0079] Exemplarily, take the case where the focused image corresponding to the pixel headlight is a checkerboard image, where the projected image corresponding to the focused image is also a checkerboard image, and the four corner points of the checkerboard of the projected image form a quadrilateral. If the quadrilateral of the checkerboard in the projected image is deformed, the focused image is rotated, horizontally trapezoidally deformed, vertically trapezoidally deformed, displaced and scaled according to the deformation of the quadrilateral until the projected image is not deformed and the pixel distance between the projected image and the preset projected image is less than or equal to the focused pixel distance threshold.
[0080] According to the technical solution provided in the embodiment of the present application, the pixel distance between the projected image and the preset projected image is compared with the preset focus pixel distance threshold. If the pixel distance between the projected image and the preset projected image is higher than the focus pixel distance threshold, the focus image is deformed; the projected image is reacquired according to the focus image after the deformation processing until the pixel distance between the reacquired projection image and the preset projection image is lower than or equal to the focus pixel distance threshold; the deformation parameters corresponding to the focus image after the deformation processing are used as the focus parameters of the pixel headlights, and the pixel headlights are focused based on the focus parameters, thereby realizing accurate acquisition of the above-mentioned focus parameters and improving the projection effect of the pixel headlights after the focusing is completed.
[0081] In some embodiments, Figure 7 As shown, determining a focused image corresponding to at least one pixel headlight includes:
[0082] S701, collecting a road environment image projected on the road surface in front of the vehicle, and processing the road environment image to obtain corresponding image feature information;
[0083] S702: If the image feature information satisfies a preset focusing condition, determine a focused image corresponding to at least one pixel headlight.
[0084] Specifically, in order to improve the focusing effect of the vehicle's pixel headlights and avoid road obstacles and uneven roads that affect the focusing effect of the pixel headlights, this example collects a road environment image of the projected road surface in front of the vehicle through a camera set in front of the vehicle. The projected road surface is the road surface facing the pixel headlights to project the focusing image, and then processes the collected road environment image to obtain image feature information. The above-mentioned processing of the collected road environment image includes but is not limited to grayscale processing, histogram equalization, histogram median filtering, and histogram variance calculation.
[0085] Continuing with the above example, the above image feature information can reflect whether the projected road surface is flat, and the above image feature information can also reflect whether there are obstacles on the projected road surface.
[0086] Among them, the preset focusing conditions are: the projected road surface is flat and free of obstacles; if the image feature information is the same as the preset focusing conditions, it is determined that the image feature information meets the preset focusing conditions, and the vehicle further determines the focused image corresponding to at least one pixel headlight; conversely, if the image feature information is different from the preset focusing conditions, it is determined that the image feature information does not meet the preset focusing conditions, and the vehicle will not determine the focused image corresponding to at least one pixel headlight.
[0087] In order to better illustrate this solution, this embodiment provides a more specific example for illustration. This example defines that the vehicle includes a first pixel headlight and a second pixel headlight (hereinafter, the first pixel headlight is the left pixel headlight, and the second pixel headlight is the right pixel headlight). The pixel optical machine of each pixel headlight is composed of an LED or laser light source, a DMD digital micromirror, an optical lens and related supporting structures, and a heat dissipation structure. The DMD is illuminated by an LED or laser, and combined with an optical lens, the image or video presented by the DMD is projected to the front of the vehicle.
[0088] like Figure 8 As shown, the vehicle is provided with a front-view camera 1, a headlight controller 2, and drivers corresponding to pixel headlights. The above-mentioned drivers are divided into a left driver 31 and a right driver 41. The left driver 31 corresponds to the left pixel headlight 3, and the right driver 41 corresponds to the right pixel headlight 4. The driver drives the LED or laser light source of the pixel headlight on one hand, and receives video information and control information from the headlight controller 2 on the other hand, and is used to drive the DMD to realize that the DMD follows the input video or image. The left driver 31 and the left pixel optical machine 32 form the left pixel headlight 3, and the right driver 41 and the right pixel optical machine 42 form the right pixel headlight 4.
[0089] The headlight controller receives the video information from the front-view camera installed on the vehicle, and determines whether the autofocus condition is met and whether the focus has been completed through the algorithm. If the focus condition is not met, the projection relationship of the pixel headlight maintains the last parameter. If the focus condition is met and it is not focused, the autofocus process is started. Among them, the front-view camera is installed near the rearview mirror, located at the center axis of the vehicle, and can capture the position directly in front of the vehicle.
[0090] The focusing method of the pixel headlight includes the following steps:
[0091] 1. In the picture taken by the front-view camera, set a long direction area composed of 4 points. This area is a preset area. The preset area is the preset focus position. In this area, high-quality image fusion of the dual-light machine will be performed, and the fused image cannot have ghosting. The coordinate positions of the 4 points are determined according to the camera resolution, camera installation position, camera forward range, ground target image fusion area, etc., and are solidified in the headlight controller in advance. This area is used to identify whether there are obstacles. The subsequent autofocus target graphic display area is also located in this area. This area is recorded as A1.
[0092] 2. In the headlight controller, pre-store chessboard projection images for autofocus, recorded as the first focus image ppl and the second focus image ppr. Pre-store the preset projection image ptarget for camera comparison. The target image is the projection image captured by the camera when the left pixel headlight projects ppl and the right pixel headlight projects ppr under known focus conditions (at the preset focus position). The vehicle pre-processes ppl, ppr, and ptarget, identifies and stores the corner points through the chessboard recognition algorithm, and the identified corner point sets are recorded as points_ppl, points_ppr, and points_ptarget. The chessboard corner point information is used for subsequent calculation of the transformation matrix, and only one calculation is performed to reduce the workload.
[0093] 3. When the system is turned on, the headlight controller controls the left pixel headlight and the right pixel headlight to output a pure white picture with a certain brightness, and the front camera captures the state in front to obtain a road environment image, which is recorded as p1;
[0094] 4. The headlight controller identifies p1 and detects whether the preset focusing conditions are met within the range of A1. That is, it determines whether there are obstacles within the range of A1 and whether the road surface is flat. If there are obstacles within the range of A1 or the road surface is uneven, it is determined that the preset focusing conditions are not met; if there are no obstacles within the range of A1 and the road surface is flat, it is determined that the preset focusing conditions are met. It can be understood that by performing grayscale processing, histogram equalization, histogram median filtering, histogram variance calculation and judgment on the above-mentioned p1 (relevant technical personnel can set it to intercept the A1 range in the p1 image as a new p1 image to obtain a more accurate picture), it is possible to quickly determine whether the projected road surface in front of the vehicle meets the autofocus conditions. If the focusing conditions are met, the subsequent autofocus process is carried out. If the focusing conditions are not met, the autofocus process ends.
[0095] 5. Left pixel headlight focusing process: a. The headlight controller projects the output ppl of the left pixel headlight and projects the output black picture (no interference image) of the right pixel headlight. After the left pixel headlight and the right pixel headlight are projected, the front view camera is immediately controlled to shoot the projected image in front of the vehicle and recorded as l1. b. The corner point information of the projected image l1 is identified by the chessboard recognition algorithm and recorded as points_l1. c. The pixel distance between points_l1 and points_ptarget is calculated. If the total distance value is less than a predetermined focus pixel distance threshold, it is determined that the left pixel headlight is focused. If the pixel distance is greater than the predetermined focus pixel distance threshold, it is determined that further focusing is required. d. The corner points around the chessboard are used to form a quadrilateral. According to the shape of the quadrilateral, it is determined whether ppl needs to be rotated, horizontally trapezoidally deformed, and vertically trapezoidally deformed. After each deformation, it is projected again and the calculated corner points are photographed. This process is repeated until the quadrilateral is a rectangular shape. e. Based on step d, the image is displaced and scaled so that the pixel distance between the captured corner point and points_ptarget is less than the focus threshold. f. Save the rotation, horizontal trapezoidal deformation, vertical trapezoidal deformation, displacement and scaling parameters, which are the final focus parameters of the left pixel headlight.
[0096] 6. Right pixel headlight focusing process: The right pixel headlight focusing process is similar to the left pixel headlight focusing process. The difference is that during projection, the left pixel headlight is controlled to output a completely black picture, and the right driver is controlled to output ppr. I will not go into details here.
[0097] 7. After the above-mentioned focusing process of the left pixel headlight and the right pixel headlight respectively with the preset projection image, the overall focusing process of the left and right pixel headlights is completed. When the subsequent image is projected, the video signal (or image signal) sent to the left pixel headlight and the right pixel headlight needs to be focused using the focusing parameters obtained in steps 5 and 6.
[0098] According to the technical solution provided in the embodiment of the present application, the road environment image of the road projected in front of the vehicle is collected and the road environment image is processed to obtain corresponding image feature information; if the image feature information meets the preset focusing conditions, the focus image corresponding to at least one pixel headlight is determined, thereby ensuring the focusing effect of the pixel headlights and avoiding the problem of road obstacles and uneven road surface affecting the focusing effect of the pixel headlights.
[0099] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0100] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0101] This embodiment also provides a focusing device for a pixel headlight, such as Fig. 9 As shown, the device comprises:
[0102] The projection module 901 is used to determine a focus image corresponding to at least one pixel headlight, and control at least one pixel headlight to project according to the focus image;
[0103] A determination module 902 is used to collect a projection image generated by projecting a focus image corresponding to at least one pixel headlight, and determine a pixel distance between the projection image and a preset projection image;
[0104] The focusing module 903 is used to perform focusing processing on at least one pixel headlight according to the pixel distance between the projected image and the preset projected image.
[0105] In some examples, at least one pixel headlight includes a first pixel headlight arranged on one side of the vehicle and a second pixel headlight arranged on the other side of the vehicle; the focus image includes a first focus image and a second focus image, and the first pixel headlight corresponds to the first focus image, and the second pixel headlight corresponds to the second focus image; the projection module 901 is also used to control the first pixel headlight to project the corresponding first focus image at a preset focus position, and control the second pixel headlight to project the corresponding second focus image at a preset focus position; collect the overlapping image generated by the first pixel headlight projecting the first focus image and the second pixel headlight projecting the second focus image at the focus position as a preset projection image.
[0106] In some examples, the projection module 901 is also used to control the first pixel headlight to project a first focused image, and control the second pixel headlight to project a non-interference image; after collecting the projection image generated by the first pixel headlight projecting the first focused image, control the second pixel headlight to project a second focused image, and control the first pixel headlight to project a non-interference image.
[0107] In some examples, the projected image includes: a first projected image generated by a first pixel headlight projecting a first focus image, and a second projected image generated by a second pixel headlight projecting a second focus image; the focus module 903 is also used to determine the first projection positioning feature point in the first projection image, determine the second projection positioning feature point in the second projection image, and determine the target positioning feature point in the preset projection image; compare the first projection positioning feature point with the target positioning feature point to determine the pixel distance between the first projection image and the preset projection image; compare the second projection positioning feature point with the target positioning feature point to determine the pixel distance between the second projection image and the preset projection image.
[0108] In some examples, the pixel headlights include a first pixel headlight arranged on one side of the vehicle and a second pixel headlight arranged on the other side of the vehicle; the projection module 901 is also used to determine the calibrated pixel headlights and the pixel headlights to be focused from the first pixel headlights and the second pixel headlights; control the calibrated pixel headlights to project the corresponding focus images, and use the image generated by the calibrated pixel headlights projecting the corresponding focus images as the preset projection image, so that the pixel headlights to be focused are focused according to the preset projection image.
[0109] In some examples, the focus module 903 is also used to compare the pixel distance between the projected image and the preset projected image with a preset focus pixel distance threshold. If the pixel distance between the projected image and the preset projected image is higher than the focus pixel distance threshold, the focus image is deformed; the projected image is reacquired based on the focus image after the deformation processing until the pixel distance between the reacquired projection image and the preset projection image is lower than or equal to the focus pixel distance threshold; the deformation parameters corresponding to the focus image after the deformation processing are used as the focus parameters of the pixel headlights, and the pixel headlights are focused based on the focus parameters.
[0110] In some examples, the projection module 901 is also used to collect a road environment image of the projected road surface in front of the vehicle, process the road environment image to obtain corresponding image feature information, and the projected road surface is the road surface facing the pixel headlight projecting the focused image; if the image feature information meets the preset focusing conditions, then the focused image corresponding to at least one pixel headlight is determined.
[0111] According to the technical solution provided in the embodiment of the present application, the device provided in the embodiment determines a focus image corresponding to at least one pixel headlight, and controls at least one pixel headlight to project according to the focus image; collects a projection image generated by at least one pixel headlight projecting the corresponding focus image, and determines the pixel distance between the projection image and the preset projection image; focuses at least one pixel headlight according to the pixel distance between the projection image and the preset projection image, so that the projection image projected by at least one pixel headlight approaches the preset projection image, and then the focus of at least one pixel headlight can approach the focal position corresponding to the preset projection image, thereby improving the projection effect of at least one pixel headlight and avoiding the problem of poor projection effect caused by the change of the focal position of the pixel headlight in the prior art.
[0112] Fig.10 Schematic diagram of an electronic device 10 provided in an embodiment of the present application. Fig.10As shown, the electronic device 10 of this embodiment includes: a processor 1001, a memory 1002, and a computer program 1003 stored in the memory 1002 and executable on the processor 1001. When the processor 1001 executes the computer program 1003, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 1001 executes the computer program 1003, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0113] The electronic device 10 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 10 may include, but is not limited to, a processor 1001 and a memory 1002. Those skilled in the art will appreciate that Fig.10 The electronic device 10 is merely an example and does not limit the electronic device 10 . The electronic device 10 may include more or fewer components than shown in the figure, or different components.
[0114] The processor 1001 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0115] The memory 1002 may be an internal storage unit of the electronic device 10, for example, a hard disk or memory of the electronic device 10. The memory 1002 may also be an external storage device of the electronic device 10, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the electronic device 10. The memory 1002 may also include both an internal storage unit of the electronic device 10 and an external storage device. The memory 1002 is used to store computer programs and other programs and data required by the electronic device.
[0116] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0117] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of regional requirements and patent practice. For example, in some regions, according to regional requirements and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0118] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A focusing method for a pixel headlight, characterized in that: The method comprises: Determine a focus image corresponding to at least one pixel headlight, wherein the at least one pixel headlight includes a first pixel headlight disposed on one side of the vehicle and a second pixel headlight disposed on the other side of the vehicle; the focus image includes a first focus image and a second focus image, and the first pixel headlight corresponds to the first focus image, and the second pixel headlight corresponds to the second focus image; Controlling the first pixel headlight to project a corresponding first focused image at a preset focal position, and controlling the second pixel headlight to project a corresponding second focused image at the preset focal position; collecting an overlapping image generated by the first pixel headlight projecting the first focused image and the second pixel headlight projecting the second focused image at the focus position as a preset projection image; controlling at least one of the pixel headlights to project according to the focused image; Collecting a projection image generated by at least one of the pixel headlights projecting the focus image corresponding to the focus image, and determining a pixel distance between the projection image and the preset projection image; Focusing processing is performed on at least one of the pixel headlights according to the pixel distance between the projection image and the preset projection image.
2. The method according to claim 1, characterized in that Controlling at least one of the pixel headlights to project according to the focused image, comprising: Controlling the first pixel headlight to project the first focused image, and controlling the second pixel headlight to project a non-interference image; After acquiring the projection image generated by the first pixel headlight projecting the first focused image, the second pixel headlight is controlled to project the second focused image, and the first pixel headlight is controlled to project the interference-free image.
3. The method according to claim 2, characterized in that The projected image includes: a first projected image generated by the first pixel headlight projecting the first focused image, and a second projected image generated by the second pixel headlight projecting the second focused image; determining a pixel distance between the projected image and a preset projected image includes: Determine a first projection positioning feature point in the first projection image, determine a second projection positioning feature point in the second projection image, and determine a target positioning feature point in the preset projection image; Comparing the first projection positioning feature point with the target positioning feature point to determine the pixel distance between the first projection image and the preset projection image; The second projection positioning feature point is compared with the target positioning feature point to determine the pixel distance between the second projection image and the preset projection image.
4. The method according to claim 1, characterized in that: The method further comprises: performing focusing processing on at least one of the pixel headlights according to the pixel distance between the projection image and the preset projection image, comprising: Comparing the pixel distance between the projected image and the preset projected image with a preset focus pixel distance threshold, and if the pixel distance between the projected image and the preset projected image is greater than the focus pixel distance threshold, deforming the focus image; Reacquiring a projection image according to the focused image after deformation processing until the pixel distance between the reacquired projection image and the preset projection image is less than or equal to the focused pixel distance threshold; The deformation parameters corresponding to the focused image after deformation processing are used as the focusing parameters of the pixel headlight, and the focusing processing is performed on the pixel headlight based on the focusing parameters.
5. The method according to any one of claims 1 to 4, characterized in that: Determining a focus image corresponding to at least one pixel headlight, including: Collecting a road environment image of a projected road surface in front of the vehicle, and processing the road environment image to obtain corresponding image feature information, wherein the projected road surface is a road surface on which the pixel headlight projects the focused image; If the image feature information satisfies a preset focusing condition, the focused image corresponding to at least one of the pixel headlights is determined.
6. A focusing device for a pixel headlight, characterized in that: The device comprises: A projection module, used to determine a focus image corresponding to at least one pixel headlight, the at least one pixel headlight comprising a first pixel headlight arranged on one side of the vehicle and a second pixel headlight arranged on the other side of the vehicle; the focus image comprises a first focus image and a second focus image, and the first pixel headlight corresponds to the first focus image, and the second pixel headlight corresponds to the second focus image; The projection module is further used to control the first pixel headlight to project a corresponding first focused image at a preset focus position, and control the second pixel headlight to project a corresponding second focused image at a preset focus position; collect an overlapping image generated at the focus position by the first pixel headlight projecting the first focused image and the second pixel headlight projecting the second focused image as a preset projection image; and control at least one of the pixel headlights to perform projection according to the focused image; A determination module, used for collecting a projection image generated by projecting the focus image corresponding to at least one of the pixel headlights, and determining a pixel distance between the projection image and a preset projection image; A focusing module is used to focus at least one of the pixel headlights according to the pixel distance between the projection image and the preset projection image.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Projection picture correction method and device, electronic equipment and readable storage medium
CN110996081A
Headlamp calibration method and device, vehicle and computer readable storage medium
CN117740340A
Vehicle headlamp device
US20170129389A1
Method for calibrating an automotive lighting device and automotive lighting assembly
WO2020126400A1
Projection method, projection device and storage medium
WO2022012651A1
