Vehicle lighting control method, system, storage medium and computer
By dynamically adjusting the vehicle lighting status, the problem of inaccurate vehicle lighting control during night driving in the prior art has been solved, the safety of night driving and the lighting effect of curved driving is improved, the blind spots in the field of view are reduced, and driving safety is significantly improved.
Patent Information
- Application Number
- CN202411147127.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-08-21
AI Technical Summary
It is difficult for existing vehicle lighting systems to accurately judge the speed and distance of the oncoming vehicle when driving at night, causing the driver to have an illusion, and there is a blind spot in the field of vision when driving on curves, increasing the risk of safety accidents.
By collecting the current status data of the vehicle, analyzing the road conditions information and obtaining image information, generating the light control data corresponding to straight lines and curves, dynamically adjusting the vehicle light status, including the opening and turning angles of high beams and low beams, and reducing the reversal direction. The vehicle influences and provides lighting on the inside of the curve.
It improves the lighting conditions and safety of the vehicle when driving at night, reduces the blind spots on the inside of the curve, reduces the risk of accidents, and is suitable for large-scale promotion.
Smart Images

Figure CN118651160B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile control technology, and in particular to a vehicle lighting control method, system, storage medium and computer. Background Art
[0002] With the development of the automobile industry, the application of self-driving vehicles in people's lives is becoming more and more extensive. For example, self-driving trucks have great prospects in future cargo transportation and rail transportation, and will play an important role in future high-speed logistics trunk transportation. Self-driving cars greatly reduce the difficulty and intensity of operation for drivers, and can even drive without the driver.
[0003] Currently, when vehicles are driving at night, improper use of headlights can cause the driver to be instantly blinded when meeting other vehicles, causing the driver to have a false impression of the speed and distance of the oncoming vehicle, which can easily lead to abnormal operation. In addition, when vehicles are driving on curves at night, the existing fixed-light headlights emit lighting light to the front of the vehicle. When the headlights are illuminated, there is a blind spot on the inside of the curve, and obstacles ahead cannot be discovered in time, which can easily cause safety accidents. Summary of the invention
[0004] Based on this, the purpose of the present invention is to provide a vehicle lighting control method, system, storage medium and computer to solve the technical problems existing in the prior art.
[0005] The present invention provides a vehicle lighting control method, comprising:
[0006] Collecting current state data of the vehicle, analyzing the state data, and determining road condition information on which the vehicle is currently traveling, wherein the road condition information includes at least straight road conditions and curved road conditions;
[0007] Acquire image information of the vehicle's traveling direction in real time, and acquire the light intensity of the vehicle's environment based on the image information;
[0008] Generating straight line headlight control data corresponding to the straight line road condition and curved road headlight control data corresponding to the curved road condition according to the road condition information of the vehicle currently traveling and the light intensity of the environment;
[0009] The vehicle's headlight status is controlled according to the straight headlight control data, and the vehicle's headlight angle and headlight status are controlled according to the curved headlight control data. The headlight status at least includes the vehicle's high beams on both sides being turned on at the same time, the high beam on one side being turned on, the low beam on one side being turned on, and the low beams on both sides being turned on at the same time.
[0010] Optionally, when the road condition on which the vehicle is currently traveling is a straight road condition, the step of generating the straight line headlight control data includes:
[0011] Acquire a first image in the direction of vehicle travel, and determine whether there is a strong light spot generated by a vehicle traveling in the opposite lane in the first image;
[0012] If there is no strong light spot, generating first linear headlight control data, wherein the first linear headlight control data is used to control the high beams on both sides of the vehicle to be turned on at the same time;
[0013] If there is a strong light spot, a correction algorithm is used to suppress the strong light spot in the first image, reduce the overall brightness of the first image, and measure the distance between the vehicle traveling in the opposite lane and the current vehicle in the first image after the strong light is suppressed;
[0014] If the interval distance is not greater than the first distance threshold, second straight line headlight control data is generated; if the interval distance is greater than the first distance threshold and less than the second distance threshold, third straight line headlight control data is generated; if the interval distance is not less than the second distance threshold, fourth straight line headlight control data is generated;
[0015] Among them, the second linear headlight control data is used to control the low beam lights on both sides of the vehicle to be turned on at the same time, the third linear headlight control data is used to control the low beam lights on the side of the vehicle close to the oncoming vehicle and the high beam lights on the side away from the oncoming vehicle, and the fourth linear headlight control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time.
[0016] Optionally, the step of suppressing the strong light spots in the first image by using a correction algorithm includes:
[0017] Performing a first color conversion on the first image having the strong light spot, wherein the first color conversion is used to convert the RGB mode in the first image into the HSV mode;
[0018] Using a median filtering algorithm to smooth the first image after the first color conversion, so as to remove the image reflection component in the first image and retain the incident light component in the first image;
[0019] Performing pixel nonlinear transformation on the first image retaining the incident light component, correcting the proportion of the strong light part and the weak light part in the first image, so as to improve the contrast effect in the image;
[0020] A second color conversion is performed on the corrected first image, where the second color conversion is used to convert the HSV in the first image into RGB, thereby completing the strong light suppression of the first image.
[0021] Optionally, the expression of the corrected illumination component of the first image is:
[0022]
[0023] In the formula, is the illumination component in the corrected first image, is the incident light component in the first image after smoothing, is a pixel in the first image, is the adaptive index for correction;
[0024] (0:C)
[0025] In the formula, (0:C) is the pixels in the weak light part of the histogram of the first image, is the overall pixel histogram of the first image, To fine tune the parameters.
[0026] Optionally, when the road condition on which the vehicle is currently traveling is a curved road condition, the step of generating the curved road light control data includes:
[0027] Obtaining a front wheel turning angle and a wheelbase of the vehicle under a current curved road condition, and calculating a curve radius of the current curved road condition according to the front wheel turning angle and the wheelbase of the vehicle;
[0028] Obtaining a current speed of the vehicle, and calculating a safe braking distance of the vehicle based on the current speed;
[0029] The first cornering headlight control data is calculated according to the safe braking distance and the curve radius, and the first cornering headlight control data is used to control the headlight turning angle.
[0030] Optionally, the expression of the headlight angle is:
[0031]
[0032] In the formula, For the car lights corner, is the safe braking distance, is the curve radius;
[0033]
[0034] In the formula, is the current speed of the vehicle, , , They are the braking parameters of the braking distance and vehicle speed fitting during the vehicle braking and deceleration process;
[0035]
[0036] In the formula, is the wheelbase of the vehicle, is the front wheel turning angle of the vehicle.
[0037] Optionally, when the road condition on which the vehicle is currently traveling is a curved road condition, the step of generating the curved road light control data further includes:
[0038] Intermittently acquiring a plurality of second images in the direction of travel of the vehicle, and determining whether the light intensity in the two preceding and following second images changes;
[0039] If the light intensity does not change, second cornering light control data is generated, where the second cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time;
[0040] If the light intensity changes, it means that there is a vehicle driving in the opposite lane, and the changes in the light intensity in the front and rear second images are calculated respectively;
[0041] If the change in the light intensity is not greater than the first change threshold, third cornering light control data is generated; if the change in the light intensity is greater than the first change threshold and less than the second change threshold, fourth cornering light control data is generated; if the change in the light intensity is not less than the second change threshold, fifth cornering light control data is generated;
[0042] Among them, the third cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time, the fourth cornering light control data is used to control the low beam lights on the side of the vehicle close to the oncoming vehicle and the high beam lights on the side away from the oncoming vehicle, and the fifth cornering light control data is used to control the low beam lights on both sides of the vehicle to be turned on at the same time.
[0043] The present invention also provides a vehicle lighting control system, comprising:
[0044] A collection module, used to collect current state data of the vehicle, analyze the state data, and determine the road condition information of the vehicle currently traveling, wherein the road condition information at least includes straight road conditions and curved road conditions;
[0045] An acquisition module is used to acquire image information of the vehicle's traveling direction in real time, and acquire the light intensity of the vehicle's environment based on the image information;
[0046] A generating module, for generating straight line headlight control data corresponding to the straight line road condition and curved road headlight control data corresponding to the curved road condition according to the road condition information of the vehicle currently traveling and the light intensity of the environment;
[0047] A control module is used to control the vehicle's headlight status according to the straight headlight control data, and to control the vehicle's headlight angle and headlight status according to the curved headlight control data, wherein the headlight status at least includes the vehicle's high beams on both sides being turned on at the same time, the high beam on one side being turned on, the low beam on one side being turned on, and the low beams on both sides being turned on at the same time.
[0048] The present invention also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned vehicle light control method is implemented.
[0049] The present invention also provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned vehicle light control method when executing the computer program.
[0050] Compared with the prior art, the present invention has the following beneficial effects: the vehicle light control method provided by the present application first obtains the road condition information of the vehicle, and the road condition information includes at least the straight road condition and the curved road condition; then obtains the image information of the vehicle's traveling direction, and obtains the light intensity of the vehicle's environment according to the image information; according to the image information of the vehicle's traveling direction, the light intensity of the vehicle's environment is obtained according to the image information, and generates straight-line headlight control data and curved headlight control data corresponding to the road condition, and controls the high-beam and low-beam switching of the lights on both sides of the vehicle through the straight-line headlight control data, which not only meets the lighting conditions in front of the current vehicle traveling in a straight line, but also reduces the impact of the lights on the opposite vehicles; controls the high-beam and low-beam switching of the lights on both sides of the vehicle and the turning angle of the lights through the curved headlight control data, and provides lighting for the inner side of the curve on the basis of meeting the lighting conditions in front of the current vehicle traveling in a curve and reducing the impact of the lights on the opposite vehicles, thereby reducing the blind spot of the inner side of the curve, greatly improving driving safety, and being suitable for large-scale promotion.
[0051] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 is a flow chart of a vehicle lighting control method in a first embodiment of the present invention;
[0053] Figure 2 FIG. 4 is a structural block diagram of a computer in a fourth embodiment of the present invention.
[0054] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0055] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0057] Embodiment 1
[0058] See also Figure 1 , which shows a vehicle light control method in a first embodiment of the present invention, and the vehicle light control method specifically includes steps S10 to S40:
[0059] S10, collecting current state data of the vehicle, analyzing the state data, and determining road condition information on which the vehicle is currently traveling, wherein the road condition information includes at least straight road conditions and curved road conditions;
[0060] Optionally, the vehicle's current status data is collected. The vehicle's current status data can be obtained through sensors arranged on the vehicle. For example, based on the vehicle's driving trajectory, the vehicle's current road condition information can be determined, such as whether the vehicle is driving in a straight line or on a curve, and whether the curve is turning left or right. The vehicle's current road condition can also be determined by obtaining changes in the rotation of the vehicle's steering wheel.
[0061] S20, acquiring image information of the vehicle's traveling direction in real time, and acquiring the light intensity of the vehicle's environment according to the image information;
[0062] Optionally, an image acquisition device arranged on the vehicle can be used to obtain image information of the vehicle's traveling direction in real time, and the light intensity of the vehicle's environment and whether the light intensity will change can be determined based on the acquired image information, thereby determining whether there is a vehicle traveling in the opposite lane of the current vehicle.
[0063] S30, generating straight road light control data corresponding to the straight road condition and curved road light control data corresponding to the curved road condition according to the road condition information of the vehicle currently traveling and the light intensity of the environment;
[0064] Optionally, corresponding headlight control data needs to be generated according to straight road conditions or curved road conditions. It can be understood that under straight road conditions, attention should be paid mainly to the road conditions ahead. When driving at night, it is necessary to meet the lighting conditions in front of the current vehicle and reduce the impact of the light on vehicles coming in the opposite direction. In curved road conditions, in addition to meeting the lighting conditions in front of the current vehicle and reducing the impact of the light on vehicles coming in the opposite direction, it is also necessary to further meet the lighting conditions on the inside of the curve and reduce the blind spot on the inside of the curve.
[0065] S40, controlling the vehicle's headlight status according to the straight headlight control data, and controlling the vehicle's headlight angle and headlight status according to the curved headlight control data, wherein the headlight status at least includes both sides of the vehicle's high beams being turned on simultaneously, one side of the high beam being turned on and one side of the low beam being turned on, and both sides of the low beam being turned on simultaneously.
[0066] Optionally, straight line headlight control data is generated according to straight road conditions, and curved headlight control data is generated according to curved road conditions; the straight line headlight control data is used to control the switching of high beam and low beam of the front headlights, including at least turning on high beams on both sides of the vehicle at the same time, turning on high beams on one side and turning on low beams on one side, and turning on low beams on both sides at the same time, which not only meets the lighting conditions in front of the current vehicle, but also reduces the impact of the light on vehicles in the opposite direction; the curved headlight control data is used to control the vehicle's headlight angle and the switching of high beam and low beam of the headlights; similarly, the switching of high beam and low beam includes at least turning on high beams on both sides of the vehicle at the same time, turning on high beams on one side and turning on low beams on one side, and turning on low beams on both sides at the same time; the headlight angle is to control the adaptive left and right rotation of the front headlights according to the turning radius of the curve to meet the requirements of lighting on the inside of the curve.
[0067] In a specific implementation, when the road condition on which the vehicle is currently traveling is a straight road condition, the step of generating the straight line headlight control data includes:
[0068] Acquire a first image in the direction of vehicle travel, and determine whether there is a strong light spot generated by a vehicle traveling in the opposite lane in the first image;
[0069] If there is no strong light spot, generating first linear headlight control data, wherein the first linear headlight control data is used to control the high beams on both sides of the vehicle to be turned on at the same time;
[0070] If there is a strong light spot, a correction algorithm is used to suppress the strong light spot in the first image, reduce the overall brightness of the first image, and measure the distance between the vehicle traveling in the opposite lane and the current vehicle in the first image after the strong light is suppressed;
[0071] If the interval distance is not greater than the first distance threshold, second straight line headlight control data is generated; if the interval distance is greater than the first distance threshold and less than the second distance threshold, third straight line headlight control data is generated; if the interval distance is not less than the second distance threshold, fourth straight line headlight control data is generated;
[0072] Among them, the second linear headlight control data is used to control the low beam lights on both sides of the vehicle to be turned on at the same time, the third linear headlight control data is used to control the low beam lights on the side of the vehicle close to the oncoming vehicle and the high beam lights on the side away from the oncoming vehicle, and the fourth linear headlight control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time.
[0073] Optionally, when the vehicle is traveling on a straight road, an image in front of the vehicle is acquired in real time. If there is no strong light spot in the image, it means that there is no vehicle traveling in the opposite lane. At this time, the vehicle turns on the high beams on both sides to meet the lighting requirements of the current vehicle. If there is a strong light spot in the image, it means that there is a vehicle traveling in the opposite lane, and it is necessary to further calculate the distance between the opposite vehicle and the current vehicle. If the distance is not less than the second threshold, the two vehicles are far apart, and the vehicle turns on the high beams on both sides to meet the lighting requirements of the current vehicle. If the distance is greater than the first distance threshold and less than the second distance threshold, the distance between the two vehicles is medium. In order to meet the driving lighting and prevent the oncoming driver from being blinded by strong light, the headlights of the vehicle close to the oncoming vehicle are controlled to be low beams, and the headlights of the vehicle away from the oncoming vehicle are controlled to be high beams. If the distance is not greater than the first threshold, the two vehicles are close and are about to meet, and the headlights on both sides of the vehicle are controlled to be low beams. To prevent oncoming drivers from being blinded by strong light, the first distance threshold is less than the second distance threshold. Preferably, the first distance threshold may be 50m and the second distance threshold may be 200m. It can be understood that when a strong light spot is found in front of the vehicle, since the two vehicles traveling in opposite directions are gradually approaching, the headlights change one by one from high beams on both sides, low beams on one side, high beams on one side, and low beams on both sides during a meeting process.
[0074] Optionally, when measuring the distance between vehicles under a strong light background, a correction algorithm needs to be used to suppress the strong light in the image so that the proportions of the strong light part and the weak light part in the image are different, thereby improving the contrast effect of the image and optimizing the image display quality.
[0075] Preferably, the step of suppressing the strong light spots in the first image by using a correction algorithm comprises:
[0076] Performing a first color conversion on the first image having the strong light spot, wherein the first color conversion is used to convert the RGB mode in the first image into the HSV mode;
[0077] Using a median filtering algorithm to smooth the first image after the first color conversion, so as to remove the image reflection component in the first image and retain the incident light component in the first image;
[0078] Performing pixel nonlinear transformation on the first image retaining the incident light component, correcting the proportion of the strong light part and the weak light part in the first image, so as to improve the contrast effect in the image;
[0079] A second color conversion is performed on the corrected first image, where the second color conversion is used to convert the HSV in the first image into RGB, thereby completing the strong light suppression of the first image.
[0080] The expression of the corrected illumination component of the first image is:
[0081]
[0082] In the formula, is the illumination component in the corrected first image, is the incident light component in the first image after smoothing, is a pixel in the first image, is the adaptive index for correction;
[0083] (0:C)
[0084] In the formula, (0:C) is the pixels in the weak light part of the histogram of the first image, is the overall pixel histogram of the first image, To fine tune the parameters.
[0085] The hue, saturation and brightness of the acquired image in the HSV (Hue, hue; Saturation, saturation; Value, color brightness) color mode are independent of each other; the original color of the image will not be changed when the brightness is adjusted; therefore, the RGB (Red, red; Green, green; Blue, blue) color mode in the image can be converted to the HSV color mode first, and then the image strong light suppression can be performed; finally, the HSV-RGB reverse conversion is performed to complete the strong light suppression of the first image. The acquired image can be composed of a low-frequency incident light image and a high-frequency reflected light image. The high-frequency reflected light image can be effectively removed by smoothing with a median filter algorithm; the incident light is nonlinearly transformed in pixels to change the proportion of the strong and weak parts in the image; the overall brightness of the image is reduced under the interference of strong light background. Strong light suppression is conducive to improving the accuracy of vehicle recognition and distance measurement in the image; vehicle ranging can adopt the existing monocular vision geometric ranging model, which will not be repeated here.
[0086] In a specific implementation, when the vehicle is traveling on a curved road, the step of generating the curve headlight control data includes:
[0087] Obtaining a front wheel turning angle and a wheelbase of the vehicle under a current curved road condition, and calculating a curve radius of the current curved road condition according to the front wheel turning angle and the wheelbase of the vehicle;
[0088] Obtaining a current speed of the vehicle, and calculating a safe braking distance of the vehicle based on the current speed;
[0089] The first cornering headlight control data is calculated according to the safe braking distance and the curve radius, and the first cornering headlight control data is used to control the headlight turning angle.
[0090] The expression of the headlight angle is:
[0091]
[0092] In the formula, For the car lights corner, is the safe braking distance, is the curve radius;
[0093]
[0094] In the formula, is the current speed of the vehicle, , , They are the braking parameters of the braking distance and vehicle speed fitting during the vehicle braking and deceleration process;
[0095]
[0096] In the formula, is the wheelbase of the vehicle, is the front wheel turning angle of the vehicle.
[0097] Optionally, when the vehicle is turning, the angle of the headlight needs to be rotated left and right in the horizontal direction according to the radius of the curve, so as to illuminate the area inside the curve as much as possible, reduce the blind spot of vision, and timely find obstacles inside the curve; the radius of the curve can be calculated by the wheel angle and the wheelbase of the vehicle. During braking, the vehicle is decelerating, and the safe braking distance of the vehicle includes the reaction distance and the braking distance. According to the comparison table of ordinary people's reaction time and vehicle speed and braking distance, the relationship expression between the safe braking distance and the vehicle speed can be fitted accordingly; the curve radius and safe braking distance can further obtain the horizontal rotation angle of the headlight. In order to improve the illumination of the headlight on the inside of the curve.
[0098] Furthermore, when the vehicle is traveling on a curve, it is also necessary to control the use of the high beam and low beam of the front headlights to reduce the impact on the oncoming vehicles while meeting the current vehicle lighting requirements; therefore, when the road condition on which the vehicle is currently traveling is a curve, the step of generating the curve headlight control data further includes:
[0099] Intermittently acquiring a plurality of second images in the direction of travel of the vehicle, and determining whether the light intensity in the two preceding and following second images changes;
[0100] If the light intensity does not change, second cornering light control data is generated, where the second cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time;
[0101] If the light intensity changes, it means that there is a vehicle driving in the opposite lane, and the changes in the light intensity in the front and rear second images are calculated respectively;
[0102] If the change in the light intensity is not greater than the first change threshold, third cornering light control data is generated; if the change in the light intensity is greater than the first change threshold and less than the second change threshold, fourth cornering light control data is generated; if the change in the light intensity is not less than the second change threshold, fifth cornering light control data is generated;
[0103] Among them, the third cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time, the fourth cornering light control data is used to control the low beam lights on the side of the vehicle close to the oncoming vehicle and the high beam lights on the side away from the oncoming vehicle, and the fifth cornering light control data is used to control the low beam lights on both sides of the vehicle to be turned on at the same time.
[0104] Optionally, when the vehicle is traveling on a curved road, several second images of the vehicle's traveling direction are intermittently acquired. If the light intensity of the two images does not change, it means that there is no vehicle traveling in the opposite lane of the curve. At this time, the vehicle turns on the high beams on both sides to meet the lighting requirements of the current vehicle. If the light intensity changes, it means that there is a vehicle traveling in the opposite lane of the curve. When the two vehicles approach each other, the light intensity will change accordingly. If the change in light intensity is not greater than the first change threshold, the distance between the two vehicles is far, and the vehicle turns on the high beams on both sides to meet the lighting requirements of the current vehicle. If the change in light intensity is greater than the first change threshold and less than the second change threshold, the distance between the two vehicles is medium, the headlights of the vehicle close to the oncoming vehicle are controlled to be low beams, and the headlights of the vehicle far from the oncoming vehicle are controlled to be high beams. If the change in light intensity is not less than the second change threshold, the distance between the two vehicles is close and they are about to meet, the headlights on both sides of the vehicle are controlled to be low beams. To prevent the oncoming driver from being blinded by strong light, the first change threshold is less than the second change threshold.
[0105] Optionally, the light intensity can be understood as the incident luminous flux per unit area, and the expression of the light intensity is:
[0106]
[0107] In the formula, is the light intensity, the unit is lux (lx), It is the total luminous flux of light emitted in all directions, measured in lumen (lm). is the surface area of the irradiated object;
[0108]
[0109] In the formula, is the proportionality coefficient, is the spectral radiation flux, is the spectral visual function, is the minimum wavelength of the incident light, is the maximum wavelength of the incident light.
[0110] In summary, the vehicle light control method provided by the present application first obtains the road condition information of the vehicle, and the road condition information includes at least straight road conditions and curved road conditions; then obtains image information of the vehicle's traveling direction, and obtains the light intensity of the vehicle's environment according to the image information; based on the image information of the vehicle's traveling direction, the light intensity of the vehicle's environment is obtained according to the image information to generate straight-line headlight control data and curved headlight control data corresponding to the road condition, and controls the switching of high-beam and low-beam lights on both sides of the vehicle through the straight-line headlight control data, which not only meets the lighting conditions in front of the current vehicle traveling in a straight line, but also reduces the impact of the light on the opposite vehicles; controls the switching of high-beam and low-beam lights on both sides of the vehicle and the turning angle of the headlights through the curved headlight control data, and on the basis of meeting the lighting conditions in front of the current vehicle traveling in a curved road and reducing the impact of the light on the opposite vehicles, further provides lighting for the inner side of the curve, reduces the blind spot of the inner side of the curve, greatly improves driving safety, and is suitable for large-scale promotion.
[0111] Embodiment 2
[0112] This embodiment provides a vehicle lighting control system, including:
[0113] A collection module, used to collect current state data of the vehicle, analyze the state data, and determine the road condition information of the vehicle currently traveling, wherein the road condition information at least includes straight road conditions and curved road conditions;
[0114] An acquisition module is used to acquire image information of the vehicle's traveling direction in real time, and acquire the light intensity of the vehicle's environment based on the image information;
[0115] A generating module, for generating straight line headlight control data corresponding to the straight line road condition and curved road headlight control data corresponding to the curved road condition according to the road condition information of the vehicle currently traveling and the light intensity of the environment;
[0116] A control module is used to control the vehicle's headlight status according to the straight headlight control data, and to control the vehicle's headlight angle and headlight status according to the curved headlight control data, wherein the headlight status at least includes the vehicle's high beams on both sides being turned on at the same time, the high beam on one side being turned on, the low beam on one side being turned on, and the low beams on both sides being turned on at the same time.
[0117] Wherein, when the road condition on which the vehicle is currently traveling is a straight road condition, the step of generating the straight line headlight control data includes:
[0118] Acquire a first image in the direction of vehicle travel, and determine whether there is a strong light spot generated by a vehicle traveling in the opposite lane in the first image;
[0119] If there is no strong light spot, generating first linear headlight control data, wherein the first linear headlight control data is used to control the high beams on both sides of the vehicle to be turned on at the same time;
[0120] If there is a strong light spot, a correction algorithm is used to suppress the strong light spot in the first image, reduce the overall brightness of the first image, and measure the distance between the vehicle traveling in the opposite lane and the current vehicle in the first image after the strong light is suppressed;
[0121] If the interval distance is not greater than the first distance threshold, second straight line headlight control data is generated; if the interval distance is greater than the first distance threshold and less than the second distance threshold, third straight line headlight control data is generated; if the interval distance is not less than the second distance threshold, fourth straight line headlight control data is generated;
[0122] Among them, the second linear headlight control data is used to control the low beam lights on both sides of the vehicle to be turned on at the same time, the third linear headlight control data is used to control the low beam lights on the side of the vehicle close to the oncoming vehicle and the high beam lights on the side away from the oncoming vehicle, and the fourth linear headlight control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time.
[0123] The step of suppressing the strong light points in the first image by using a correction algorithm comprises:
[0124] Performing a first color conversion on the first image having the strong light spot, wherein the first color conversion is used to convert the RGB mode in the first image into the HSV mode;
[0125] Using a median filtering algorithm to smooth the first image after the first color conversion, so as to remove the image reflection component in the first image and retain the incident light component in the first image;
[0126] Performing pixel nonlinear transformation on the first image retaining the incident light component, correcting the proportion of the strong light part and the weak light part in the first image, so as to improve the contrast effect in the image;
[0127] A second color conversion is performed on the corrected first image, where the second color conversion is used to convert the HSV in the first image into RGB, thereby completing the strong light suppression of the first image.
[0128] The expression of the corrected illumination component of the first image is:
[0129]
[0130] In the formula, is the illumination component in the corrected first image, is the incident light component in the first image after smoothing, is a pixel in the first image, is the adaptive index for correction;
[0131] (0:C)
[0132] In the formula, (0:C) is the pixels in the weak light part of the histogram of the first image, is the overall pixel histogram of the first image, To fine tune the parameters.
[0133] When the road condition on which the vehicle is currently traveling is a curved road condition, the step of generating the curved road light control data comprises:
[0134] Obtaining a front wheel turning angle and a wheelbase of the vehicle under a current curved road condition, and calculating a curve radius of the current curved road condition according to the front wheel turning angle and the wheelbase of the vehicle;
[0135] Obtaining a current speed of the vehicle, and calculating a safe braking distance of the vehicle based on the current speed;
[0136] The first cornering headlight control data is calculated according to the safe braking distance and the curve radius, and the first cornering headlight control data is used to control the headlight turning angle.
[0137] The expression of the headlight angle is:
[0138]
[0139] In the formula, For the car lights corner, is the safe braking distance, is the curve radius;
[0140]
[0141] In the formula, is the current speed of the vehicle, , , They are the braking parameters of the braking distance and vehicle speed fitting during the vehicle braking and deceleration process;
[0142]
[0143] In the formula, is the wheelbase of the vehicle, is the front wheel turning angle of the vehicle.
[0144] When the road condition on which the vehicle is currently traveling is a curved road condition, the step of generating the curved road light control data further includes:
[0145] Intermittently acquiring a plurality of second images in the direction of travel of the vehicle, and determining whether the light intensity in the two preceding and following second images changes;
[0146] If the light intensity does not change, second cornering light control data is generated, where the second cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time;
[0147] If the light intensity changes, it means that there is a vehicle driving in the opposite lane, and the changes in the light intensity in the front and rear second images are calculated respectively;
[0148] If the change in the light intensity is not greater than the first change threshold, third cornering light control data is generated; if the change in the light intensity is greater than the first change threshold and less than the second change threshold, fourth cornering light control data is generated; if the change in the light intensity is not less than the second change threshold, fifth cornering light control data is generated;
[0149] Among them, the third cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time, the fourth cornering light control data is used to control the low beam lights on the side of the vehicle close to the oncoming vehicle and the high beam lights on the side away from the oncoming vehicle, and the fifth cornering light control data is used to control the low beam lights on both sides of the vehicle to be turned on at the same time.
[0150] Embodiment 3
[0151] This embodiment provides a storage medium on which a computer program is stored. When the program is executed by a processor, the vehicle light control method as described above is implemented.
[0152] Embodiment 4
[0153] The present invention also provides a computer, see Figure 2 , shown is a computer in an embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned vehicle lighting control method is implemented.
[0154] The memory 10 includes at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer, such as a hard disk of the computer. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of the computer and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer, but also to temporarily store data that has been output or is to be output.
[0155] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.
[0156] It should be pointed out that Figure 2 The structure shown does not constitute a limitation on the computer. In other embodiments, the computer may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0157] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0158] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0159] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0160] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A vehicle lighting control method, characterized in that: include: Collecting current state data of the vehicle, analyzing the state data, and determining road condition information on which the vehicle is currently traveling, wherein the road condition information includes at least straight road conditions and curved road conditions; Acquire image information of the vehicle's traveling direction in real time, and acquire the light intensity of the vehicle's environment based on the image information; Generating straight line headlight control data corresponding to the straight line road condition and curved road headlight control data corresponding to the curved road condition according to the road condition information of the vehicle currently traveling and the light intensity of the environment; Control the vehicle's headlight state according to the linear headlight control data, and control the vehicle's headlight angle and headlight state according to the curved headlight control data, wherein the headlight state at least includes both sides of the vehicle's high beams being turned on at the same time, one side of the high beam being turned on and one side of the low beam being turned on, and both sides of the low beam being turned on at the same time; When the road condition on which the vehicle is currently traveling is a curved road condition, the step of generating the curved road light control data comprises: Intermittently acquiring a plurality of second images in the direction of travel of the vehicle, and determining whether the light intensity in the two preceding and following second images changes; If the light intensity does not change, second cornering light control data is generated, where the second cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time; If the light intensity changes, it means that there is a vehicle driving in the opposite lane, and the changes in the light intensity in the front and rear second images are calculated respectively; If the change in the light intensity is not greater than the first change threshold, third cornering light control data is generated; if the change in the light intensity is greater than the first change threshold and less than the second change threshold, fourth cornering light control data is generated; if the change in the light intensity is not less than the second change threshold, fifth cornering light control data is generated; Among them, the third cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time, the fourth cornering light control data is used to control the low beam lights on the side of the vehicle close to the oncoming vehicle and the high beam lights on the side away from the oncoming vehicle, and the fifth cornering light control data is used to control the low beam lights on both sides of the vehicle to be turned on at the same time.
2. The vehicle lighting control method according to claim 1, characterized in that: When the road condition on which the vehicle is currently traveling is a straight road condition, the step of generating the straight line headlight control data includes: Acquire a first image in the direction of vehicle travel, and determine whether there is a strong light spot generated by a vehicle traveling in the opposite lane in the first image; If there is no strong light spot, generating first linear headlight control data, wherein the first linear headlight control data is used to control the high beams on both sides of the vehicle to be turned on at the same time; If there is a strong light spot, a correction algorithm is used to suppress the strong light spot in the first image, reduce the overall brightness of the first image, and measure the distance between the vehicle traveling in the opposite lane and the current vehicle in the first image after the strong light is suppressed; If the interval distance is not greater than the first distance threshold, second straight line headlight control data is generated; if the interval distance is greater than the first distance threshold and less than the second distance threshold, third straight line headlight control data is generated; if the interval distance is not less than the second distance threshold, fourth straight line headlight control data is generated; Among them, the second linear headlight control data is used to control the low beam lights on both sides of the vehicle to be turned on at the same time, the third linear headlight control data is used to control the low beam lights on the side of the vehicle close to the oncoming vehicle and the high beam lights on the side away from the oncoming vehicle, and the fourth linear headlight control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time.
3. The vehicle lighting control method according to claim 2, characterized in that: The step of suppressing the strong light points in the first image by using a correction algorithm comprises: Performing a first color conversion on the first image having the strong light spot, wherein the first color conversion is used to convert the RGB mode in the first image into the HSV mode; Using a median filtering algorithm to smooth the first image after the first color conversion, so as to remove the image reflection component in the first image and retain the incident light component in the first image; Performing pixel nonlinear transformation on the first image retaining the incident light component, correcting the proportion of the strong light part and the weak light part in the first image, so as to improve the contrast effect in the image; The corrected first image is subjected to a second color conversion, wherein the second color conversion is used to convert the HSV in the first image into RGB, thereby completing the strong light suppression of the first image.
4. The vehicle lighting control method according to claim 3, characterized in that: The expression of the corrected illumination component of the first image is: In the formula, is the illumination component in the corrected first image, is the incident light component in the first image after smoothing, is a pixel in the first image, is the adaptive index for correction; (0:C) In the formula, (0:C) is the pixels in the weak light part of the histogram of the first image, is the overall pixel histogram of the first image, To fine tune the parameters.
5. The vehicle lighting control method according to claim 1, characterized in that: When the road condition on which the vehicle is currently traveling is a curved road condition, the step of generating the curved road light control data comprises: Obtaining a front wheel turning angle and a wheelbase of the vehicle under a current curved road condition, and calculating a curve radius of the current curved road condition according to the front wheel turning angle and the wheelbase of the vehicle; Obtaining a current speed of the vehicle, and calculating a safe braking distance of the vehicle based on the current speed; The first cornering headlight control data is calculated according to the safe braking distance and the curve radius, and the first cornering headlight control data is used to control the headlight turning angle.
6. The vehicle lighting control method according to claim 5, characterized in that: The expression of the headlight angle is: In the formula, For the car lights corner, is the safe braking distance, is the curve radius; In the formula, is the current speed of the vehicle, , , They are the braking parameters of the braking distance and vehicle speed fitting during the vehicle braking and deceleration process; In the formula, is the wheelbase of the vehicle, is the front wheel turning angle of the vehicle.
7. A vehicle lighting control system, characterized in that: include; A collection module, used to collect current state data of the vehicle, analyze the state data, and determine the road condition information of the vehicle currently traveling, wherein the road condition information at least includes straight road conditions and curved road conditions; An acquisition module is used to acquire image information of the vehicle's traveling direction in real time, and acquire the light intensity of the vehicle's environment based on the image information; A generating module, for generating straight line headlight control data corresponding to the straight line road condition and curved road headlight control data corresponding to the curved road condition according to the road condition information of the vehicle currently traveling and the light intensity of the environment; a control module, used to control the vehicle's headlight state according to the linear headlight control data, and control the vehicle's headlight angle and headlight state according to the curved headlight control data, wherein the headlight state at least includes both sides of the vehicle's high beams being turned on at the same time, one side of the high beam being turned on and one side of the low beam being turned on, and both sides of the low beam being turned on at the same time; When the road condition on which the vehicle is currently traveling is a curved road condition, the step of generating the curved road light control data comprises: Intermittently acquiring a plurality of second images in the direction of travel of the vehicle, and determining whether the light intensity in the two preceding and following second images changes; If the light intensity does not change, second cornering light control data is generated, where the second cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time; If the light intensity changes, it means that there is a vehicle driving in the opposite lane, and the changes in the light intensity in the front and rear second images are calculated respectively; If the change in the light intensity is not greater than the first change threshold, third cornering light control data is generated; if the change in the light intensity is greater than the first change threshold and less than the second change threshold, fourth cornering light control data is generated; if the change in the light intensity is not less than the second change threshold, fifth cornering light control data is generated; Among them, the third cornering light control data is used to control the high beam lights on both sides of the vehicle to be turned on at the same time, the fourth cornering light control data is used to control the low beam lights on the side of the vehicle close to the oncoming vehicle and the high beam lights on the side away from the oncoming vehicle, and the fifth cornering light control data is used to control the low beam lights on both sides of the vehicle to be turned on at the same time.
8. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vehicle lighting control method as described in any one of claims 1 to 6 is implemented.
9. A computer 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 vehicle lighting control method according to any one of claims 1 to 6 is implemented.
