Vehicle lamp control method and device, equipment, storage medium, program product and vehicle
By determining the target area of the car light based on the position information of the opposite target and automatically adjusting the brightness of the car light based on the target projection image, the problem of human intervention in the adjustment of the car light in the prior art is solved, and driving safety is improved.
Patent Information
- Application Number
- CN202411658385.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-04-08
AI Technical Summary
When existing vehicle lights are driving opposite, the driver needs to adjust them manually to avoid glare and inattention, resulting in reduced driving safety.
By determining the target area in the car light based on the position information of the opposite target, and controlling the car light to adjust the brightness based on the target projection image, automatic adjustment is achieved.
It avoids drivers from distracting from adjusting the lights, improves driving safety, and ensures that the driver of the opposite vehicle is not affected by glare.
Smart Images

Figure CN119773626A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle lights, and in particular to a vehicle light control method, device, equipment, storage medium, program product and vehicle. Background Art
[0002] With the rapid development of automobiles, automobiles have become an indispensable part of people's lives; cars all have headlights to illuminate the road ahead when driving at night.
[0003] However, existing headlights can only be manually adjusted to low beam and high beam. When there are oncoming vehicles, the driver is required to adjust the headlights to low beam to avoid dangerous hidden dangers such as glare and distraction for the drivers of oncoming vehicles. However, this will cause the car driver to be distracted to adjust the headlights, which greatly reduces driving safety. Summary of the invention
[0004] The embodiment of the present application provides a control method that can automatically control the headlights to avoid dangerous hazards such as glare and inattention for drivers of oncoming vehicles, avoid the need for car drivers to be distracted to adjust the headlights, improve driving safety, and at least partially solve the above-mentioned technical problems.
[0005] In order to achieve the above objective, according to a first aspect of the present application, a vehicle light control method is provided, the method comprising:
[0006] Determine a target area in the headlight according to the first position information of the opposite target; the target area is the area of the opposite target in the headlight;
[0007] Determine a target projection image according to the target area;
[0008] Based on the target projection image, the vehicle lights are controlled to adjust brightness.
[0009] Optionally, determining the target area in the vehicle light according to the first position information of the facing target includes:
[0010] A target area in the vehicle light is determined according to the first position information of the opposite target and the position relationship of the vehicle light.
[0011] Optionally, determining the target area in the headlight according to the first position information of the opposite target and the position relationship of the headlight includes:
[0012] A target area in the headlight is determined according to the first position information of the facing target and a preset headlight coordinate system of the headlight.
[0013] Optionally, determining the target area according to the first position information of the facing target and a preset headlight coordinate system of the headlight includes:
[0014] Determining second position information of the opposite target in the preset vehicle body coordinate system according to the first position information of the opposite target and the preset vehicle body coordinate system;
[0015] According to a first preset conversion relationship, the second position information is converted into a target area in the preset vehicle headlight coordinate system; the first preset conversion relationship is a conversion relationship between the preset vehicle body coordinate system and the preset vehicle headlight coordinate system.
[0016] Optionally, determining a target projection image according to the target area includes:
[0017] A target projection image is determined according to the target area and the target illumination area of the vehicle lamp.
[0018] Optionally, determining a target projection image according to the target area and a target illumination area of the vehicle lamp includes:
[0019] If the target area is located within the target illumination area of the vehicle lamp, the preset projection image corresponding to the vehicle lamp is processed to obtain a target projection image.
[0020] Optionally, the processing of the preset projection image corresponding to the vehicle light to obtain the target projection image includes:
[0021] The preset projection image corresponding to the vehicle light is processed based on the target area to obtain a target projection image.
[0022] Optionally, the processing the preset projection image corresponding to the vehicle light based on the target area to obtain the target projection image includes:
[0023] According to a second preset conversion relationship, the target area is converted into a reference area in a preset vehicle light pixel coordinate system; the second preset conversion relationship is a conversion relationship between the preset vehicle light coordinate system and the preset vehicle light pixel coordinate system;
[0024] Based on the reference area, a preset projection image corresponding to the vehicle light is rendered to obtain a target projection image.
[0025] Optionally, the method further comprises:
[0026] If the target area is not located within the target lighting area of the headlight, the headlight is controlled according to a preset projection image corresponding to the headlight.
[0027] Optionally, the method further comprises:
[0028] Determining the distance between the vehicle headlight and the opposite target based on the first position information;
[0029] Based on the distance and the corresponding preset field of view angle of the vehicle lamp, a target lighting area of the vehicle lamp is determined.
[0030] Optionally, the controlling the vehicle light based on the target projection image includes:
[0031] The target projection image is sent to a projection chip corresponding to the vehicle light, so that the projection chip controls the vehicle light based on the target projection image.
[0032] According to a second aspect of the present application, an embodiment of the present application further provides a vehicle light control device, the vehicle light control device comprising:
[0033] A first determining unit is used to determine a target area in the headlight according to first position information of the opposite target; the target area is an area of the opposite target in the headlight;
[0034] A second determining unit, configured to determine a target projection image according to the target area;
[0035] A control unit is used to control the headlights to adjust the brightness based on the target projection image. According to a third aspect of the present application, an embodiment of the present application further provides an electronic device, the electronic device comprising: one or more processors and a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to execute, by the processor, any of the steps of the headlight control method provided in the embodiment of the present application.
[0036] According to the fourth aspect of the present application, an embodiment of the present application also provides a computer-readable storage medium, which stores multiple computer programs. The computer programs are suitable for loading by a processor to execute the steps of any vehicle light control method provided in the embodiment of the present application.
[0037] According to the fifth aspect of the present application, an embodiment of the present application also provides a computer program product, including a computer program or a computer program, which, when executed by a processor, implements the steps of any one of the vehicle light control methods provided in the embodiments of the present application.
[0038] According to the sixth aspect of the present application, an embodiment of the present application also provides a vehicle, which includes the electronic device provided by the embodiment of the present application, or the vehicle light control device provided by the embodiment of the present application, or executes the steps of any vehicle light control method provided by the embodiment of the present application.
[0039] The headlight control method of the embodiment of the present application determines the target area in the headlight according to the first position information of the opposite target; the target area is the area of the opposite target in the headlight; the target projection image is determined according to the target area; and the headlight is controlled based on the target projection image to adjust the brightness. According to the position information of the opposite target, the area of the headlight irradiating the opposite target is determined, and then the target projection image is generated. Through the target projection image, the headlight is controlled to adjust the brightness, so as to avoid the driver's need to be distracted to adjust the headlight, thereby improving driving safety.
[0040] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0042] Figure 1 A schematic diagram of a first embodiment of a control method provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the pixel headlight control effect provided in an embodiment of the present application;
[0044] Figure 3 A schematic flow chart of a second embodiment of the control method provided in the embodiment of the present application;
[0045] Figure 4 A schematic diagram of the relationship between coordinate systems provided in the embodiments of the present application;
[0046] Figure 5 A schematic diagram of a third embodiment of the control method provided in the embodiment of the present application;
[0047] Figure 6 A schematic side view of a vehicle and an oncoming target provided in an embodiment of the present application;
[0048] Figure 7 A schematic top view of a vehicle and an oncoming target provided in an embodiment of the present application;
[0049] Figure 8 A schematic flow chart of a fourth embodiment of the control method provided in the embodiment of the present application;
[0050] Fig. 9 A schematic diagram of a target projection image provided by an embodiment of the present application;
[0051] Fig.10 A schematic flow chart of a fifth embodiment of the control method provided in the embodiment of the present application;
[0052] Fig.11 A schematic diagram of the structure of a control device provided in an embodiment of the present application;
[0053] Fig.12 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0055] Embodiments of the present application provide a vehicle light control method, device, storage medium, program product, and vehicle.
[0056] The control method provided in the embodiment of the present application can be applied to a vehicle, which may be a fuel vehicle, a plug-in hybrid vehicle, a new energy vehicle, etc., and the present disclosure does not make any specific limitations on this.
[0057] The following is a detailed description of the embodiments in conjunction with the accompanying drawings. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.
[0058] Please refer to Figure 1 , Figure 1 A flow chart of a first embodiment of a control method provided in an embodiment of the present application. The method comprises:
[0059] Step 101, determining a target area in the headlight according to first position information of an oncoming target; the target area is an area of the oncoming target in the headlight;
[0060] In this step, the vehicle turns on the headlights for illumination while driving, and when an oncoming target is detected, the first position information of the oncoming target is obtained, and the target area in the headlights is determined based on the first position information, wherein the target area is the area of the oncoming target in the headlights, that is, the target area can be determined by converting the first position information of the oncoming target into the headlight coordinate system.
[0061] It should be noted that the oncoming target can be a vehicle traveling in the opposite direction, a motorcycle or bicycle riding in the opposite direction, a pedestrian walking in the opposite direction, etc., and is not limited here. The illumination range of a headlight is usually large. When targeting a certain oncoming target, only the light emitted in a certain luminous area of the headlight will directly illuminate the oncoming target.
[0062] It is understandable that, optionally, a mapping relationship between the position information of the oncoming target and the target area in the headlight is pre-set in the vehicle, and the vehicle can directly determine the target area in the headlight after determining the position information of the oncoming target. Preferably, the vehicle converts the first position information of the oncoming target according to a preset conversion relationship between the vehicle body coordinate system and the headlight coordinate system, and then determines the target area in the headlight, which can improve the accuracy of determining the target area in the headlight.
[0063] Step 102, determining a target projection image according to the target area;
[0064] In this step, after determining the target area in the headlight, the vehicle determines the target projection image according to the target area; it can be understood that the headlight is a pixel headlight, which is a new type of smart headlight technology, in which the DMD (Digital Micromirror Devices) chip achieves the projection of the headlight at the million-pixel level by accurately controlling millions of micro-reflectors; during the projection process, a projection image can be added, and the pixel headlight can project a variety of patterns. Among them, the target projection image is an image determined according to the target area for controlling the brightness adjustment of the headlight; grayscale processing is performed for the position corresponding to the target area in the target projection image, and the grayscale processing can set the position corresponding to the target area in the target projection image to white, gray, black and other colors. The DMD chip can determine the brightness value of the target area in the headlight according to the correspondence between white, gray, black and other colors and brightness values, and then control the light of the target area to irradiate with the brightness value to achieve the brightness adjustment of the headlight. In particular, the brightness value corresponding to black is 0, that is, when the position corresponding to the target area in the target projection image is set to black, the DMD chip controls the light of the target area in the headlight to turn off.
[0065] Please note that, please refer to Figure 2 When controlling the reduction of light radiation brightness, pixel headlights can more accurately determine the range of reducing light radiation brightness compared to ordinary matrix headlights, thereby avoiding the impact of reduced light radiation brightness in a larger range of headlight positions causing the headlight lighting effect to deteriorate. It can control the headlight to adjust the brightness of some positions while ensuring the headlight lighting effect as much as possible.
[0066] Step 103: Based on the target projection image, control the vehicle lights to adjust the brightness.
[0067] In this step, the vehicle controls the headlights to adjust the brightness based on the target projection image. Specifically, the vehicle inputs the target projection image into the DMD chip in the headlights, and the DMD chip can control the headlights to reduce the brightness of the light radiation to the target area or shield the light radiation according to the target projection image, so as to control the headlights to adjust the brightness, so that the target area will not emit light to the target or reduce the impact of the light emitted from the target area on the target.
[0068] The vehicle of this embodiment determines the target area in the headlight according to the first position information of the opposite target; determines the target projection image according to the target area; and controls the headlight based on the target projection image to adjust the brightness. According to the position information of the opposite target, the area where the light in the headlight directly shines on the opposite target is determined, and then the target projection image is generated. Through the target projection image, the headlight is controlled to adjust the brightness, thereby avoiding the need for the driver to be distracted to adjust the headlight, thereby improving driving safety.
[0069] Please refer to Figure 3 , Figure 3 The second embodiment of the control method provided in the present application is a flow chart of the second embodiment. The step of determining the target area in the headlight according to the first position information of the facing target includes:
[0070] Step 1011, determining a target area in the headlight according to the first position information of the opposite target and the position relationship between the headlight.
[0071] In this step, the vehicle determines the target area in the headlight according to the first position information of the opposite target and the position relationship of the headlight.
[0072] Optionally, a mapping relationship is pre-set in the vehicle, which is a mapping relationship between the position information of the opposite target and the position relationship of the headlights and the target area in the headlights. The vehicle can directly determine the target area in the headlights after determining the position information of the opposite target.
[0073] Preferably, step 1011 includes:
[0074] Step 10111: determine a target area in the headlight according to the first position information of the opposite target and a preset headlight coordinate system of the headlight.
[0075] In this step, the vehicle converts the first position information of the target according to the conversion relationship between the first position information of the target and the preset headlight coordinate system, and then determines the target area in the headlight, which can improve the accuracy of determining the target area in the headlight.
[0076] Specifically, step 10111 includes:
[0077] Step a, determining the second position information of the facing target in the preset vehicle body coordinate system according to the first position information of the facing target and the preset vehicle body coordinate system;
[0078] In this step, the vehicle determines the second position information of the opposite target in the preset vehicle body coordinate system according to the first position information of the opposite target and the preset vehicle body coordinate system.
[0079] Specifically, refer to Figure 4 , Figure 4 The coordinate system x0y0z0 in is the preset body coordinate system. When the vehicle obtains the first position information of the opposite target, it obtains the spatial coordinate points A, B, C, and D of the opposite target, where the ABCD area composed of the spatial coordinate points is the bounding box of the opposite target in space that can be seen from the perspective of the vehicle's driving position; the vehicle converts the spatial coordinate points A, B, C, and D of the opposite target to the preset body coordinate system x0y0z0, and obtains the second position information A0, B0, C0, and D0 of the opposite target in the preset body coordinate system.
[0080] Step b: converting the second position information into a target area in the preset headlight coordinate system according to a first preset conversion relationship; the first preset conversion relationship is a conversion relationship between the preset vehicle body coordinate system and the preset headlight coordinate system.
[0081] In this step, the vehicle converts the second position information into third position information in a preset vehicle light coordinate system according to a first preset conversion relationship, wherein the first preset conversion relationship is a conversion relationship between a preset vehicle body coordinate system and a preset vehicle light coordinate system. Specifically, the first preset conversion relationship includes: a conversion relationship between a preset body coordinate system and a preset left headlight coordinate system, and a conversion relationship between a preset body coordinate system and a preset right headlight coordinate system. After the vehicle obtains the second position information A0, B0, C0, D0 of the oncoming target in the preset body coordinate system, the vehicle converts the second position information A0, B0, C0, D0 of the oncoming target in the preset body coordinate system into the third position information A0', B0', C0', D0' in the preset left headlight coordinate system according to the conversion relationship between the preset body coordinate system and the preset left headlight coordinate system. According to the conversion relationship between the preset body coordinate system and the preset right headlight coordinate system, the vehicle converts the second position information A0, B0, C0, D0 of the oncoming target in the preset body coordinate system into the third position information A0", B0", C0", D0" in the preset right headlight coordinate system. In this way, the area formed by the third position information A0", B0", C0", D0" is the target area.
[0082] The vehicle in this embodiment converts the first position information of the target according to the preset conversion relationship between the vehicle body coordinate system and the headlight coordinate system, and then determines the target area in the headlight. This can improve the accuracy of determining the target area in the headlight, and further improve the accuracy of controlling the headlights to illuminate and shield the target area.
[0083] Please refer to Figure 5 , Figure 5 A schematic flow chart of a third embodiment of the control method provided in the embodiment of the present application. Determining a target projection image according to the target area includes:
[0084] Step 1021: determine a target projection image according to the target area and the target illumination area of the vehicle lamp.
[0085] In this step, the vehicle compares the target area of the oncoming target in the preset left headlight coordinate system with the target illumination area of the left headlight, and compares the target area of the oncoming target in the preset right headlight coordinate system with the target illumination area of the right headlight. Based on the comparison results, the preset projection image corresponding to the left headlight is processed to obtain the target projection image corresponding to the left headlight, and / or the preset projection image corresponding to the right headlight is processed to obtain the target projection image corresponding to the right headlight.
[0086] Specifically, step 1021 includes:
[0087] Step c: if the target area is located within the target lighting area of the headlight, processing the preset projection image corresponding to the headlight to obtain a target projection image.
[0088] In this step, the vehicle obtains the third position information of the oncoming target in the preset headlight coordinate system and the position information of the target lighting area of the headlight. The vehicle compares the third position information with the position information of the target lighting area of the headlight. If the position information of the target lighting area of the headlight contains the third position information, it is determined that the target area is located within the target lighting area of the headlight, and the preset projection image corresponding to the headlight is processed to obtain the target projection image.
[0089] Specifically, the vehicle compares the target area of the oncoming target in the preset left headlight coordinate system with the target illumination area of the left headlight, and compares the target area of the oncoming target in the preset right headlight coordinate system with the target illumination area of the right headlight; if the target area of the oncoming target in the preset left headlight coordinate system is located within the target illumination area of the left headlight, and the target area of the oncoming target in the preset right headlight coordinate system is located within the target illumination area of the right headlight, then the preset projection image corresponding to the left headlight is processed to obtain the target projection image corresponding to the left headlight, and the preset projection image corresponding to the right headlight is processed to obtain the target projection image corresponding to the right headlight; if only the target area of the oncoming target in the preset left headlight coordinate system is located within the target illumination area of the left headlight, then only the preset projection image corresponding to the left headlight needs to be processed to obtain the target projection image corresponding to the left headlight; if only the target area of the oncoming target in the preset right headlight coordinate system is located within the target illumination area of the right headlight, then only the preset projection image corresponding to the right headlight needs to be processed to obtain the target projection image corresponding to the right headlight.
[0090] Specifically, step 1021 includes:
[0091] Step d: if the target area is not within the target lighting area of the headlight, controlling the headlight according to a preset projection image corresponding to the headlight.
[0092] In this step, the vehicle obtains the third position information of the oncoming target in the preset headlight coordinate system and the position information of the target lighting area of the headlight. The vehicle compares the third position information with the position information of the target lighting area of the headlight. If it is determined that the target area is not within the target lighting area, it means that at this time, there is no area of the headlight irradiating the oncoming target, and the headlights do not need to be controlled for brightness adjustment. The headlights can be controlled according to the preset projection image corresponding to the headlights. It can be understood that the preset projection image is an image that has not been processed in any way. Using the preset projection image to control the headlights will not reduce the brightness of the main light-emitting area of the headlights, nor will it cause a certain position of the main light-emitting area of the headlights to be set to black.
[0093] Specifically, the vehicle compares the target area of the oncoming target in the preset left headlight coordinate system with the target illumination area of the left headlight, and compares the target area of the oncoming target in the preset right headlight coordinate system with the target illumination area of the right headlight; if the target area of the oncoming target in the preset left headlight coordinate system is not within the target illumination area of the left headlight, and the target area of the oncoming target in the preset right headlight coordinate system is not within the target illumination area of the right headlight, it means that at this time, no area of the left and right headlights illuminates the oncoming target, and the headlights do not need to be controlled for brightness adjustment, and the oncoming target is illuminated according to the preset left headlight corresponding to the left headlight. Assume that the projection image controls the normal lighting of the left headlight, and the right headlight is controlled to light up normally according to the preset projection image corresponding to the right headlight; if only the target area of the oncoming target in the preset left headlight coordinate system is not located within the target illumination area of the left headlight, then it is only necessary to determine the target projection image of the right headlight, and control the left headlight to light up normally according to the preset projection image corresponding to the left headlight; if only the target area of the oncoming target in the preset right headlight coordinate system is not located within the target illumination area of the right headlight, then it is only necessary to determine the target projection image of the left headlight, and control the right headlight to light up normally according to the preset projection image corresponding to the right headlight.
[0094] Specifically, the target lighting area of the vehicle lamp is determined by:
[0095] Step e, determining the distance between the vehicle headlight and the opposite target based on the first position information;
[0096] In this step, the vehicle calculates the distance between the headlight and the oncoming target based on the first position information of the oncoming target and the position information of the vehicle itself. Figure 6 , Figure 6 Where d is the distance between the headlight and the oncoming target, which is specifically the distance from the origin in the preset headlight coordinate system to the front end of the oncoming target.
[0097] Step f: determining a target lighting area of the headlight based on the distance and a corresponding preset field of view angle of the headlight.
[0098] In this step, the vehicle determines the corresponding preset field of view angle of the left headlight according to the installation parameters of the left headlight, and determines the target lighting area of the left headlight based on the distance between the headlight and the opposite target and the preset field of view angle corresponding to the left headlight. According to the installation parameters of the right headlight, the corresponding preset field of view angle of the right headlight is determined, and the target lighting area of the right headlight is determined based on the distance between the headlight and the opposite target and the preset field of view angle corresponding to the right headlight. It should be noted that the target lighting area is the light spot formed by the headlight of the vehicle at the location of the opposite target.
[0099] Specifically, refer to Figure 6 and Figure 7, where v is the preset vertical field of view angle corresponding to the headlight, h is the preset horizontal field of view angle corresponding to the headlight, and d is the distance between the headlight and the oncoming target, based on the formula:
[0100]
[0101] The target illumination area p1p2p3p4 of the left headlight and the target illumination area Q1Q2Q3Q4 of the right headlight are calculated.
[0102] The vehicle in this embodiment determines the distance between the headlights and the oncoming target based on the first position information of the oncoming target; determines the target lighting area of the headlights based on the distance and the corresponding preset field of view angle of the headlights, and then determines the target projection image based on the target area and the target lighting area of the headlights; the accuracy of determining the target lighting area of the headlights can be improved, and then the accuracy of determining the target projection image can be improved based on the comparison between the target area and the target lighting area of the headlights, which helps to improve the accuracy of controlling the headlights to adjust the brightness of the target area.
[0103] Please refer to Figure 8 , Figure 8 A schematic flow chart of a third embodiment of the control method provided in the present application. Processing the preset projection image corresponding to the vehicle light to obtain a target projection image includes:
[0104] Step c1, processing a preset projection image corresponding to the vehicle light based on the target area to obtain a target projection image;
[0105] In this step, the vehicle processes the preset projection image corresponding to the headlight based on the target area to obtain a target projection image.
[0106] Specifically, step c1 includes:
[0107] Step c11, converting the target area into a reference area in a preset vehicle light pixel coordinate system according to a second preset conversion relationship; the second preset conversion relationship is a conversion relationship between the preset vehicle light coordinate system and the preset vehicle light pixel coordinate system;
[0108] In this step, optionally, the vehicle converts the target area into a reference area in a preset headlight pixel coordinate system according to a second preset conversion relationship; the second preset conversion relationship is a conversion relationship between the preset headlight coordinate system and the preset headlight pixel coordinate system;
[0109] Optionally, the vehicle determines the corresponding preset field of view angle of the left headlight according to the installation parameters of the left headlight, and determines the target lighting area of the left headlight based on the distance between the headlight and the opposite target and the preset field of view angle corresponding to the left headlight. The vehicle determines the corresponding preset field of view angle of the right headlight according to the installation parameters of the right headlight, and determines the target lighting area of the right headlight based on the distance between the headlight and the opposite target and the preset field of view angle corresponding to the right headlight. It should be noted that the target lighting area is the light spot formed by the headlight of the vehicle at the location of the opposite target. The vehicle calculates the fourth position information of the opposite target in the preset headlight pixel coordinate system based on the second position information of the opposite target in the preset vehicle body coordinate system, the third position information of the target area of the opposite target in the preset left headlight coordinate system, and the position information of the target lighting area of the headlight. The area formed by the fourth position information is the reference area of the target area in the preset headlight pixel coordinate system.
[0110] Among them, the second position information of the oncoming target in the preset vehicle body coordinate system is A0, B0, C0, D0, the third position information of the oncoming target in the preset left headlight coordinate system is A0', B0', C0', D0', the third position information of the target area of the oncoming target in the preset right headlight coordinate system is A0", B0", C0", D0", the position information of the target lighting area of the left headlight is p1, p2, p3, p4, and the target lighting area of the right headlight is Q1, Q2, Q3, Q4. The vehicle is based on the formula:
[0111]
[0112] Calculate the fourth position information A of the opposite target in the preset left headlight pixel coordinate system respectively pic1 , B pic1 , C pic1 , D pic1 , and the fourth position information A of the opposite target in the preset right headlight pixel coordinate system pic2 , B pic2 , C pic2 , D pic2 . A pic1 , B pic1 , C pic1 , D pic1 The formed area is the reference area of the target area in the preset left headlight pixel coordinate system, and the fourth position information A of the corresponding target in the preset right headlight pixel coordinate system pic2 , B pic2 , C pic2 , D pic2 The formed area is the reference area of the target area in the preset right headlight pixel coordinate system.
[0113] Step c12: Rendering the preset projection image corresponding to the vehicle light based on the reference area to obtain a target projection image.
[0114] In this step, after determining the reference areas on the left and right lights, the vehicle extracts the fourth position information corresponding to the reference area on the left light and the fourth position information corresponding to the reference area on the right light. For the left light, the vehicle renders the preset projection image corresponding to the left light according to the fourth position information corresponding to the reference area on the left light to obtain the target projection image corresponding to the left light; for the right light, the vehicle renders the preset projection image corresponding to the right light according to the fourth position information corresponding to the reference area on the right light to obtain the target projection image corresponding to the right light.
[0115] Specifically, the vehicle divides the position coordinates in the fourth position information by the frame size of the preset projection image corresponding to the headlights to achieve coordinate normalization, obtains the texture coordinates of the position coordinates in the fourth position information on the preset projection image, and then renders the preset projection image according to the texture coordinates to obtain the target projection image.
[0116] For example, please refer to Fig. 9 , Fig. 9 is a schematic diagram of the target projection image, where A tex1 , B tex1 , C tex1 , D tex1 It is the texture coordinate of the fourth position information corresponding to the reference area on the preset projection image. The black area is the rendering area, and the brightness value corresponding to black is 0. That is, when the position corresponding to the target area in the target projection image is set to black, the DMD chip controls the light of the target area in the car light to turn off, so that no light in the target area will be emitted to illuminate the opposite target, and finally the illumination shielding of the opposite target is achieved.
[0117] In the vehicle of this embodiment, according to the second preset conversion relationship, the target area is converted into a reference area in the preset light pixel coordinate system; according to the reference area, the preset projection image corresponding to the light is rendered to obtain the target projection image. This improves the accuracy of determining the target projection image, thereby helping to improve the accuracy of controlling the light to adjust the brightness of the target area.
[0118] Please refer to Fig.10 , Fig.10 A fifth embodiment of the control method provided in the present application is shown in the flowchart. The step of controlling the vehicle light based on the target projection image includes:
[0119] Step 1031 : sending the target projection image to a projection chip corresponding to the headlight, so that the projection chip controls the headlight based on the target projection image.
[0120] In this step, the vehicle inputs the target projection image corresponding to the left headlight into the projection chip corresponding to the left headlight, and inputs the target projection image corresponding to the right headlight into the projection chip corresponding to the right headlight, so that the projection chip corresponding to the left headlight controls the left headlight to adjust the brightness or shield the lighting of the target area based on the target projection image corresponding to the left headlight, and the projection chip corresponding to the right headlight controls the right headlight to adjust the brightness or shield the lighting of the target area based on the target projection image corresponding to the right headlight, so that no light will be emitted directly to the target in the target areas of the left and right headlights.
[0121] The vehicle of this embodiment sends the target projection image to the projection chip corresponding to the headlight, so that the projection chip controls the headlight based on the target projection image to adjust the brightness or shield the lighting of the target area; so that the target area of the automatically controlled headlights will not emit light directly to the target, avoiding the need for the driver to be distracted to adjust the headlights, thereby improving driving safety.
[0122] Accordingly, reference Fig.11 The embodiment of the present application further provides a vehicle light control device, the vehicle light control device comprising:
[0123] The first determining unit 1001 is used to determine a target area in the headlight according to first position information of the oncoming target; the target area is a region of the oncoming target in the headlight;
[0124] A second determining unit 1002 is used to determine a target projection image according to the target area;
[0125] The control unit 1003 is used to control the vehicle light based on the target projection image to adjust the brightness. Optionally, the first determination unit is further used to:
[0126] A target area in the vehicle light is determined according to the first position information of the opposite target and the position relationship of the vehicle light.
[0127] Optionally, the first determining unit is further configured to:
[0128] A target area in the headlight is determined according to the first position information of the facing target and a preset headlight coordinate system of the headlight.
[0129] Optionally, the first determining unit is further configured to:
[0130] Determining second position information of the opposite target in the preset vehicle body coordinate system according to the first position information of the opposite target and the preset vehicle body coordinate system;
[0131] According to a first preset conversion relationship, the second position information is converted into a target area in the preset vehicle headlight coordinate system; the first preset conversion relationship is a conversion relationship between the preset vehicle body coordinate system and the preset vehicle headlight coordinate system.
[0132] Optionally, the second determining unit is further configured to:
[0133] A target projection image is determined according to the target area and the target illumination area of the vehicle lamp.
[0134] Optionally, the second determining unit is further configured to:
[0135] If the target area is located within the target illumination area of the vehicle lamp, the preset projection image corresponding to the vehicle lamp is processed to obtain a target projection image.
[0136] Optionally, the second determining unit is further configured to:
[0137] The preset projection image corresponding to the vehicle light is processed based on the target area to obtain a target projection image.
[0138] Optionally, the second determining unit is further configured to:
[0139] According to a second preset conversion relationship, the target area is converted into a reference area in a preset vehicle light pixel coordinate system; the second preset conversion relationship is a conversion relationship between the preset vehicle light coordinate system and the preset vehicle light pixel coordinate system;
[0140] Based on the reference area, a preset projection image corresponding to the vehicle light is rendered to obtain a target projection image.
[0141] Optionally, the second determining unit is further configured to:
[0142] If the target area is not located within the target lighting area of the headlight, the headlight is controlled according to a preset projection image corresponding to the headlight.
[0143] Optionally, the second determining unit is further configured to:
[0144] Determining the distance between the vehicle headlight and the opposite target based on the first position information;
[0145] Based on the distance and the corresponding preset field of view angle of the vehicle lamp, a target lighting area of the vehicle lamp is determined.
[0146] Optionally, the control unit is further configured to:
[0147] The target projection image is sent to a projection chip corresponding to the vehicle light, so that the projection chip controls the vehicle light based on the target projection image.
[0148] The headlight control device of this embodiment determines the target area in the headlight according to the first position information of the opposite target; the target area is the area of the headlight where the opposite target is located; a target projection image is determined according to the target area; and the headlight is controlled based on the target projection image to adjust the brightness. According to the position information of the opposite target, the area of the headlight where the opposite target is located is determined, and then a target projection image is generated. The headlight is controlled to adjust the brightness through the target projection image, so as to avoid the driver having to be distracted to adjust the headlight, thereby improving driving safety.
[0149] Accordingly, the embodiment of the present application also provides a vehicle, such as Fig.12 As shown, Fig.12 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle 1100 includes a processor 1101 having one or more processing cores, a memory 1102 having one or more computer-readable storage media, and a computer program stored in the memory 1102 and executable on the processor. The processor 1101 is electrically connected to the memory 1102. It will be understood by those skilled in the art that the vehicle structure shown in the figure does not constitute a limitation on the vehicle, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0150] The processor 1101 is the control center of the vehicle 1100, and uses various interfaces and lines to connect various parts of the entire vehicle 1100. By running or loading software programs and / or units stored in the memory 1102, and calling data stored in the memory 1102, it executes various functions of the vehicle 1100 and processes data, thereby monitoring the vehicle 1100 as a whole. The processor 1101 can be a processor CPU, a graphics processor GPU, a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.
[0151] In an embodiment of the present application, the processor 1101 in the vehicle 1100 will load the computer program corresponding to the process of one or more applications into the memory 1102 according to the following steps, and the processor 1101 will run the application stored in the memory 1102 to execute the control method.
[0152] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0153] Optional, such as Fig.12As shown, the vehicle 1100 further includes: a touch screen 1103, a radio frequency circuit 1104, an audio circuit 1105, an input unit 1106, and a power supply 1107. The processor 1101 is electrically connected to the touch screen 1103, the radio frequency circuit 1104, the audio circuit 1105, the input unit 1106, and the power supply 1107, respectively. Those skilled in the art will appreciate that Fig.12 The vehicle structure shown in the figure does not constitute a limitation on the vehicle, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0154] The touch display screen 1103 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 1103 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the vehicle, which can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel can be used to collect the user's touch operation on or near it (such as the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute the corresponding program. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1101, and can receive the command sent by the processor 1101 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1101 to determine the type of touch event, and then the processor 1101 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1103 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1103 can also be used as a part of the input unit 1106 to realize the input function.
[0155] The RF circuit 1104 may be used to send and receive RF signals to establish wireless communication with network devices or other vehicles through wireless communication, and to send and receive signals with network devices or other vehicles.
[0156] The audio circuit 1105 can be used to provide an audio interface between the user and the vehicle through a speaker and a microphone. The audio circuit 1105 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1105 and converted into audio data, and then the audio data is output to the processor 1101 for processing, and then sent to another vehicle through the radio frequency circuit 1104, or the audio data is output to the memory 1102 for further processing. The audio circuit 1105 may also include an earphone jack to provide communication between an external headset and the vehicle.
[0157] The input unit 1106 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0158] The power supply 1107 is used to supply power to various components of the vehicle 1100. Optionally, the power supply 1107 can be logically connected to the processor 1101 through a power management device, so that the power management device can manage charging, discharging, and power consumption. The power supply 1107 can also include one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0159] although Fig.12 Not shown, the vehicle 1100 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0160] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0161] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0162] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0163] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0164] The embodiments, implementation methods and related technical features of the present application can be combined and replaced with each other without conflict.
[0165] The above are only preferred embodiments of the present application and do not constitute any form of limitation to the present application. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A vehicle light control method, characterized in that: The method comprises: Determine a target area in the headlight according to the first position information of the opposite target; the target area is the area of the opposite target in the headlight; Determine a target projection image according to the target area; Based on the target projection image, the vehicle lights are controlled to adjust brightness.
2. The method according to claim 1, characterized in that The step of determining the target area in the vehicle light according to the first position information of the facing target includes: A target area in the vehicle light is determined according to the first position information of the opposite target and the position relationship of the vehicle light.
3. The method according to claim 2, characterized in that The step of determining the target area in the vehicle light according to the first position information of the opposite target and the position relationship of the vehicle light comprises: A target area in the headlight is determined according to the first position information of the facing target and a preset headlight coordinate system of the headlight.
4. The method according to claim 3, characterized in that The determining of the target area according to the first position information of the facing target and the preset vehicle light coordinate system of the vehicle light comprises: Determining second position information of the opposite target in the preset vehicle body coordinate system according to the first position information of the opposite target and the preset vehicle body coordinate system; According to a first preset conversion relationship, the second position information is converted into a target area in the preset vehicle headlight coordinate system; the first preset conversion relationship is a conversion relationship between the preset vehicle body coordinate system and the preset vehicle headlight coordinate system.
5. The method according to any one of claims 1 to 4, characterized in that: The step of determining a target projection image according to the target area comprises: A target projection image is determined according to the target area and the target illumination area of the vehicle lamp.
6. The method according to claim 5, characterized in that The step of determining a target projection image according to the target area and the target illumination area of the vehicle lamp comprises: If the target area is located within the target illumination area of the vehicle lamp, the preset projection image corresponding to the vehicle lamp is processed to obtain a target projection image.
7. The control method according to claim 6, characterized in that: The processing of the preset projection image corresponding to the vehicle light to obtain the target projection image includes: The preset projection image corresponding to the vehicle light is processed based on the target area to obtain a target projection image.
8. The method according to claim 7, characterized in that The processing of the preset projection image corresponding to the vehicle light based on the target area to obtain the target projection image includes: According to a second preset conversion relationship, the target area is converted into a reference area in a preset vehicle light pixel coordinate system; the second preset conversion relationship is a conversion relationship between the preset vehicle light coordinate system and the preset vehicle light pixel coordinate system; Based on the reference area, a preset projection image corresponding to the vehicle light is rendered to obtain a target projection image.
9. The method according to claim 5, characterized in that The method further comprises: If the target area is not located within the target lighting area of the headlight, the headlight is controlled according to a preset projection image corresponding to the headlight.
10. The method according to any one of claims 5 to 9, characterized in that: The method further comprises: Determining the distance between the vehicle headlight and the opposite target based on the first position information; Based on the distance and the corresponding preset field of view angle of the vehicle lamp, a target lighting area of the vehicle lamp is determined.
11. The control method according to claim 1, characterized in that: The controlling the vehicle light based on the target projection image comprises: The target projection image is sent to a projection chip corresponding to the vehicle light, so that the projection chip controls the vehicle light based on the target projection image.
12. A vehicle light control device, characterized in that: The vehicle light control device comprises: A first determining unit is used to determine a target area in the headlight according to first position information of the opposite target; the target area is an area of the opposite target in the headlight; A second determining unit, configured to determine a target projection image according to the target area; A control unit is used to control the vehicle light based on the target projection image to adjust the brightness.
13. An electronic device, characterized in that: It comprises a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the steps of the vehicle light control method as described in any one of claims 1 to 11 above.
14. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the vehicle light control method according to any one of claims 1-11.
15. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program product executes the steps in the vehicle light control method according to any one of claims 1 to 11.
16. A vehicle, characterized in that: It comprises the vehicle light control device as claimed in claim 12, or the electronic device as claimed in claim 13.