Car light control method and system based on camera sensitization and car

文档序号:1840025 发布日期:2021-11-16 浏览:23次 中文

阅读说明:本技术 基于摄像头感光的车灯控制方法、系统及车辆 (Car light control method and system based on camera sensitization and car ) 是由 刘倩 张星月 赫康 潘宇威 汪明 于 2021-08-30 设计创作,主要内容包括:本发明公开了一种基于摄像头感光的车灯控制方法、系统及车辆,其中该方法包括步骤:利用车辆摄像头采集车身前方的图像,分析整个图像光线强弱,获得光线参数a;并对车身前方3-15m区域内的路面图像进行亮度分析,获得路面参数b;记录每次驾驶员开启和关闭近光灯与远光灯前的光线参数以及路面参数;根据光线参数以及路面参数的均值控制近光灯和远光灯的开启与关闭。本发明根据实时采集的整个图像的光线参数a以及路面参数b,共同控制车辆近光灯和远光灯的开启与关闭,避免驾驶员手动操作带来的驾驶风险,提高了驾驶安全性;此外,记录驾驶员开启和关闭近光灯与远光灯时的灯光习惯,并进行自学习,能够适应不同驾驶员的车灯习惯,提高驾驶舒适性。(The invention discloses a method and a system for controlling a vehicle lamp based on camera sensitization and a vehicle, wherein the method comprises the following steps: acquiring an image in front of a vehicle body by using a vehicle camera, and analyzing the light intensity of the whole image to obtain a light parameter a; analyzing the brightness of the road image in the area 3-15m in front of the vehicle body to obtain a road parameter b; recording light parameters and road surface parameters before a driver turns on and off a dipped headlight and a high beam each time; and controlling the turn-on and turn-off of the dipped headlights and the high beams according to the light parameters and the mean value of the road surface parameters. According to the invention, the turn-on and turn-off of the dipped headlights and the high beam of the vehicle are controlled together according to the light parameters a and the road surface parameters b of the whole image acquired in real time, so that the driving risk caused by the manual operation of a driver is avoided, and the driving safety is improved; in addition, the light habit of the driver when turning on and off the dipped headlight and the high beam is recorded, self-learning is performed, the vehicle lamp habit of different drivers can be adapted, and the driving comfort is improved.)

1. A car light control method based on camera sensitization is characterized by comprising the following steps:

acquiring an image in front of a vehicle body by using a vehicle camera, and analyzing the light intensity of the whole image to obtain a light parameter a; analyzing the brightness of the road image in the area 3-15m in front of the vehicle body to obtain a road parameter b;

setting default on and off control parameters of the vehicle lamp: the low beam light turn-on parameters are a1, b 1; low beam light off parameters a2, b 2; the high beam turn-on parameters are a3 and b 3; the high beam off parameters are a4, b 4;

controlling the turn-on and turn-off of the dipped headlights and the high beams according to the turn-on and turn-off control parameters of the vehicle lamps;

the vehicle lamp control method based on the camera light sensation further comprises the following steps:

firstly, recording a light parameter A11-A1n and a road parameter B11-B1n before starting each time a driver starts a dipped headlight;

recording a light parameter A21-A2n and a road parameter B21-B2n before closing each time a driver closes a dipped headlight;

recording light parameters A31-A3n and road surface parameters B31-B3n before starting each time the driver starts the high beam;

recording the light parameter A41-A4n and the road surface parameter B41-B4n before closing each time the driver closes the high beam;

calculating the average value A0 of A11-A1n as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4 and b4 are calculated; and controlling the turn-on and turn-off of the dipped headlights and the high beams according to the new control parameters.

2. The camera sensitization-based vehicle lamp control method according to claim 1, wherein discrete data in the recorded light parameters and road surface parameters are removed when new control parameters are calculated, and the specific removal method is as follows:

counting the average difference a0 of A11-A1 n; if the difference between A1x and the mean A0 is greater than 2a0, then A1x is removed as discrete data; wherein x is 1, 2, 3 … … n;

calculating the average value of A11-A1n after the discrete data are removed, and taking the average value as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4, b4 are calculated.

3. The method for controlling the vehicle lamp based on the camera light sensation according to claim 1 or 2, characterized in that the height of the dipped headlight is adjusted according to the road surface parameter b and the control parameter b 2.

4. The camera light sensing-based car light control method according to claim 3, wherein when the difference between the road surface parameter b and the control parameter b2 exceeds a preset threshold, the road surface image in the area 3-15m in front of the car body is divided into a front area and a rear area, the road surface parameter in each area is analyzed, and the height of the dipped headlight is adjusted according to the change direction of the road surface parameters of the front area and the rear area.

5. The camera sensitization-based vehicular lamp control method according to claim 1 or 2, wherein the recorded light parameters and road surface parameters are classified according to weather and seasons, and only the same light parameters and road surface parameters as the current weather and seasons are selected when calculating new control parameters.

6. A camera-exposure-based vehicle lamp control system for implementing the camera-exposure-based vehicle lamp control method according to claim 1, comprising:

the parameter acquisition module is used for acquiring an image in front of the vehicle body by using the vehicle camera, and analyzing the light intensity of the whole image to obtain a light parameter a; analyzing the brightness of the road image in the area 3-15m in front of the vehicle body to obtain a road parameter b;

the parameter setting module is used for setting the default starting and closing control parameters of the vehicle lamp: the low beam light turn-on parameters are a1, b 1; low beam light off parameters a2, b 2; the high beam turn-on parameters are a3 and b 3; the high beam off parameters are a4, b 4;

the vehicle lamp control module controls the turn-on and turn-off of the dipped headlights and the high beam headlights according to the vehicle lamp turn-on and turn-off control parameters;

the parameter updating module is used for recording light parameters A11-A1n and road parameters B11-B1n before starting each time a driver starts a dipped headlight; recording a light parameter A21-A2n and a road parameter B21-B2n before turning off each time a driver turns off a dipped headlight; recording a light parameter A31-A3n and a road surface parameter B31-B3n before starting each time a driver starts a high beam; recording light parameters A41-A4n and road surface parameters B41-B4n before closing each time when a driver closes a high beam; and also used for calculating the average value A0 of A11-A1n as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4 and b4 are calculated; and controlling the turn-on and turn-off of the dipped headlights and the high beams according to the new control parameters.

7. The camera light sensation-based car light control system according to claim 6, wherein the parameter updating module is further configured to remove discrete data in the recorded light parameters and road surface parameters when calculating new control parameters, and the specific removal method is as follows:

counting the average difference a0 of A11-A1 n; if the difference between A1x and the mean A0 is greater than 2a0, then A1x is removed as discrete data; wherein x is 1, 2, 3 … … n;

calculating the average value of A11-A1n after the discrete data are removed, and taking the average value as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4, b4 are calculated.

8. The camera light sensation-based car light control system according to claim 6, characterized in that the system further comprises a height adjusting module for adjusting the height of the dipped headlight according to the road surface parameter b and the control parameter b 2.

9. The camera light sensation-based car light control system according to claim 8, wherein the height adjusting module is specifically configured to divide the road surface image in the area 3-15m in front of the car body into a front area and a rear area when the difference between the road surface parameter b and the control parameter b2 exceeds a preset threshold, analyze the road surface parameter in each area, and adjust the height of the dipped headlight according to the change direction of the road surface parameters of the front area and the rear area.

10. A vehicle comprising a camera exposure based vehicular lamp control system according to any one of claims 6 to 9.

Technical Field

The invention belongs to the technical field of vehicle lamp control, and particularly relates to a vehicle lamp control method and system based on camera light sensing and a vehicle.

Background

With the increasing living standard, the automobile has become an indispensable vehicle for traveling. In the existing vehicle, no matter the dipped headlight or the high beam, the driver is required to manually turn on the dipped headlight or the high beam. Therefore, the situation that the driver forgets to turn on the vehicle lights or frequently switches the vehicle lights easily occurs, which can disperse the driver's attention and further cause traffic accidents.

And the driving habits of different drivers are different, and the use habits of the dipped headlight and the high beam are also different, so that the existing vehicle can not meet the comfort requirements of different drivers. In addition, the brightness of most of the existing vehicle lights cannot be adjusted, so that more appropriate lighting conditions cannot be provided for drivers, and great potential safety hazards are also caused.

Disclosure of Invention

The invention aims to provide a method and a system for controlling a vehicle lamp based on camera light sensing and a vehicle, which can correspondingly control the vehicle lamp according to different driving habits of different drivers and improve the driving safety.

The technical scheme adopted by the invention is as follows:

a car light control method based on camera sensitization comprises the following steps:

acquiring an image in front of a vehicle body by using a vehicle camera, and analyzing the light intensity of the whole image to obtain a light parameter a; analyzing the brightness of the road image in the area 3-15m in front of the vehicle body to obtain a road parameter b;

setting default on and off control parameters of the vehicle lamp: the low beam light turn-on parameters are a1, b 1; low beam light off parameters a2, b 2; the high beam turn-on parameters are a3 and b 3; the high beam off parameters are a4, b 4;

controlling the turn-on and turn-off of the dipped headlights and the high beams according to the turn-on and turn-off control parameters of the vehicle lamps;

the vehicle lamp control method based on the camera light sensation further comprises the following steps:

firstly, recording a light parameter A11-A1n and a road parameter B11-B1n before starting each time a driver starts a dipped headlight;

recording a light parameter A21-A2n and a road parameter B21-B2n before closing each time a driver closes a dipped headlight;

recording light parameters A31-A3n and road surface parameters B31-B3n before starting each time the driver starts the high beam;

recording the light parameter A41-A4n and the road surface parameter B41-B4n before closing each time the driver closes the high beam;

calculating the average value A0 of A11-A1n as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4 and b4 are calculated; and controlling the turn-on and turn-off of the dipped headlights and the high beams according to the new control parameters.

Further, when calculating a new control parameter, removing the discrete data in the recorded light parameter and road surface parameter, wherein the specific removing method comprises the following steps:

counting the average difference a0 of A11-A1 n; if the difference between A1x and the mean A0 is greater than 2a0, then A1x is removed as discrete data; wherein x is 1, 2, 3 … … n;

calculating the average value of A11-A1n after the discrete data are removed, and taking the average value as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4, b4 are calculated.

Further, the height of the dipped headlight is adjusted according to the road surface parameter b and the control parameter b 2.

Further, when the difference between the road surface parameter b and the control parameter b2 exceeds a preset threshold, the road surface image in the area 3-15m in front of the vehicle body is divided into a plurality of front and rear areas, the road surface parameter in each area is analyzed, and the height of the dipped headlight is adjusted according to the change direction of the road surface parameters of the front and rear areas.

Further, the recorded light parameters and road surface parameters are classified according to weather and seasons, and only the light parameters and road surface parameters which are the same as the current weather and season are selected when new control parameters are calculated.

A car light control system based on camera sensitization for realizing the car light control method based on camera sensitization comprises the following steps:

the parameter acquisition module is used for acquiring an image in front of the vehicle body by using the vehicle camera, and analyzing the light intensity of the whole image to obtain a light parameter a; analyzing the brightness of the road image in the area 3-15m in front of the vehicle body to obtain a road parameter b;

the parameter setting module is used for setting the default starting and closing control parameters of the vehicle lamp: the low beam light turn-on parameters are a1, b 1; low beam light off parameters a2, b 2; the high beam turn-on parameters are a3 and b 3; the high beam off parameters are a4, b 4;

the vehicle lamp control module controls the turn-on and turn-off of the dipped headlights and the high beam headlights according to the vehicle lamp turn-on and turn-off control parameters;

the parameter updating module is used for recording light parameters A11-A1n and road parameters B11-B1n before starting each time a driver starts a dipped headlight; recording a light parameter A21-A2n and a road parameter B21-B2n before turning off each time a driver turns off a dipped headlight; recording a light parameter A31-A3n and a road surface parameter B31-B3n before starting each time a driver starts a high beam; recording light parameters A41-A4n and road surface parameters B41-B4n before closing each time when a driver closes a high beam; and also used for calculating the average value A0 of A11-A1n as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4 and b4 are calculated; and controlling the turn-on and turn-off of the dipped headlights and the high beams according to the new control parameters.

Further, the parameter updating module is further configured to remove discrete data in the recorded light parameters and road surface parameters when calculating new control parameters, and the specific removal method is as follows:

counting the average difference a0 of A11-A1 n; if the difference between A1x and the mean A0 is greater than 2a0, then A1x is removed as discrete data; wherein x is 1, 2, 3 … … n;

calculating the average value of A11-A1n after the discrete data are removed, and taking the average value as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4, b4 are calculated.

Further, the system also comprises a height adjusting module for adjusting the height of the dipped headlights according to the road surface parameter b and the control parameter b 2.

Further, the height adjusting module is specifically configured to divide the road image in the area 3-15m in front of the vehicle body into a plurality of front and rear areas when the difference between the road parameter b and the control parameter b2 exceeds a preset threshold, analyze the road parameter in each area, and adjust the height of the dipped headlight according to the change direction of the road parameter in the plurality of front and rear areas.

A vehicle comprises the vehicle lamp control system based on the camera light sensation.

The invention has the beneficial effects that:

according to the light parameter a of the whole image acquired in real time and the road surface parameter b in the area 3-15m in front of the vehicle body, the turn-on and turn-off of the dipped headlight and the high beam of the vehicle are controlled together, so that the driving risk caused by manual operation of a driver is avoided, and the driving safety is improved; in addition, the light habit when the record driver opened and closed dipped headlight and high beam, light parameter and road surface parameter before the record driver opened and closed dipped headlight and high beam promptly to self-study according to the record data, can adapt to different drivers' car light habit, improve driving comfort.

The invention can also adjust the height of the dipped headlight according to the road surface parameter b in the area of 3-15m in front of the vehicle body acquired in real time and the dipped headlight turn-off control parameter b2 obtained by self-learning calculation, so that the vehicle can adapt to different road conditions.

Drawings

Fig. 1 is a schematic diagram of the control of the vehicle lamp based on the camera light sensing of the present invention.

Detailed Description

The invention will be further described with reference to the accompanying drawings in which:

the invention provides a vehicle lamp control method based on camera light sensing, which comprises the following steps as shown in figure 1:

and S1, acquiring pictures through the camera, analyzing the light intensity of the whole picture to obtain a light parameter a, and analyzing the brightness of the road surface area in the range of 3-15m in the front part of the vehicle body to obtain a road surface parameter b.

S2, setting default turning-on dipped headlight parameters a1 and b 1; setting default off low beam parameters a2, b 2; setting default high beam on parameters a3 and b 3; default off high beam parameters a4, b4 are set.

S3, when the light parameter a and the road surface parameter b acquired from the picture collected by the camera both accord with the set default values, the dipped headlight and the high beam are controlled to be turned on and off. For example, when the light parameter a and the road surface parameter b are both lower than the preset low beam default turn-on parameters a1 and b1, the low beam is turned on.

S4, the vehicle lamp control method based on the camera light sensation further comprises a control parameter self-learning part:

firstly, recording a picture light parameter A11-A1n before starting each time when a driver starts the near light; recording road surface parameters B11-B1n before starting;

recording a picture light parameter A21-A2n before closing each time when the driver closes the near light; recording road surface light parameters B21-B2n before closing;

recording a picture light parameter A31-A3n before starting each time when the driver starts the remote light; recording road surface parameters B31-B3n before starting;

fourthly, recording the light parameter A41-A4n of the picture before closing each time the driver closes the far light; recording road surface light parameters B41-B4n before closing;

dynamically updating a 1: the average value A0 of A11-A1n is obtained, the average difference a0 of A11-A1n is counted, when the difference between Ax and A0 is not less than 2 × a0, Ax is removed as discrete data, and x is 1, 2, 3 … … n. This step can remove data of individual erroneous operation (erroneous turning on of the dipped headlight when the dipped headlight is not required) or data of far dispersion.

After discrete data in the parameter data are removed, the average value a1 of the residual data is obtained, and a1 is used as a new default low beam light starting parameter; the other data refers to the calculation mode of a1, and finally b1 is calculated; a 2; b 2; a 3; b 3; a 4; b 4; and controlling the turn-on and turn-off of the dipped headlights and the high beams according to the new control parameters. Through updating, the parameters are changed in real time, so that the starting and the closing of the car lamp have the automatic updating learning function, the adjustment of the parameters of the starting light is realized, and the operation habit that a driver does not need to turn on or off the lamp is adapted.

When the control parameters are updated, the recorded light parameters and road surface parameters can be classified according to weather and seasons, and when new control parameters are calculated, only the light parameters and the road surface parameters which are the same as the current weather and the current seasons are selected. For example, when the vehicle is in snow, only the light parameters and the road surface parameters recorded in snow are selected to update the control parameters.

The height of the low beam can also be adjusted according to the road surface parameter b and the control parameter b 2. b2 is the road surface parameter when the dipped headlight is turned on, and when the difference between the road surface parameter b and the control parameter b2 exceeds the preset threshold value, it indicates that the height of the dipped headlight needs to be adjusted. In this case, the road surface image in the area 3 to 15m ahead of the vehicle body may be divided into a plurality of front and rear areas, the road surface parameter in each area may be analyzed, and the height of the low beam may be adjusted according to the changing direction of the road surface parameter in the plurality of front and rear areas. For example, if the road surface parameters of the multiple zones decrease from far to near, it indicates that the height of the dipped headlight is too high, and at this time, the height of the dipped headlight needs to be adjusted to be low, so that the irradiation range of the dipped headlight shifts to near, the brightness of the road surface at the front of the vehicle body is ensured, and the vehicle body adapts to different road conditions.

A car light control system based on camera sensitization for realizing the car light control method based on camera sensitization comprises the following steps:

the parameter acquisition module is used for acquiring an image in front of the vehicle body by using the vehicle camera, and analyzing the light intensity of the whole image to obtain a light parameter a; analyzing the brightness of the road image in the area 3-15m in front of the vehicle body to obtain a road parameter b;

the parameter setting module is used for setting the default starting and closing control parameters of the vehicle lamp: the low beam light turn-on parameters are a1, b 1; low beam light off parameters a2, b 2; the high beam turn-on parameters are a3 and b 3; the high beam off parameters are a4, b 4;

the vehicle lamp control module controls the turn-on and turn-off of the dipped headlights and the high beam headlights according to the vehicle lamp turn-on and turn-off control parameters;

the parameter updating module is used for recording light parameters A11-A1n and road parameters B11-B1n before starting each time a driver starts a dipped headlight; recording a light parameter A21-A2n and a road parameter B21-B2n before turning off each time a driver turns off a dipped headlight; recording a light parameter A31-A3n and a road surface parameter B31-B3n before starting each time a driver starts a high beam; recording light parameters A41-A4n and road surface parameters B41-B4n before closing each time when a driver closes a high beam; and also used for calculating the average value A0 of A11-A1n as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4 and b4 are calculated; and controlling the turn-on and turn-off of the dipped headlights and the high beams according to the new control parameters.

Further, the parameter updating module is further configured to remove discrete data in the recorded light parameters and road surface parameters when calculating new control parameters, and the specific removal method is as follows:

counting the average difference a0 of A11-A1 n; if the difference between A1x and the mean A0 is greater than 2a0, then A1x is removed as discrete data; wherein x is 1, 2, 3 … … n;

calculating the average value of A11-A1n after the discrete data are removed, and taking the average value as a new control parameter A1; similarly, b1, a2, b2, a3, b3, a4, b4 are calculated.

Further, the system also comprises a height adjusting module for adjusting the height of the dipped headlights according to the road surface parameter b and the control parameter b 2.

Further, the height adjusting module is specifically configured to divide the road image in the area 3-15m in front of the vehicle body into a plurality of front and rear areas when the difference between the road parameter b and the control parameter b2 exceeds a preset threshold, analyze the road parameter in each area, and adjust the height of the dipped headlight according to the change direction of the road parameter in the plurality of front and rear areas.

A vehicle comprises the vehicle lamp control system based on the camera light sensation.

The invention can collect the habit of turning on/off the light of the driver to adjust the light of the whole vehicle, and optimizes the time of turning on/off the headlight through real-time collection and processing of parameters, thereby adapting to the habit of turning on the headlight of different drivers.

It will be understood by those skilled in the art that the foregoing is merely a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included within the scope of the present invention.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:目标驱动模式自适应切换平台

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!