The disclosure of the following priority application is herein incorporated by reference: Japanese Patent Application No. 2012-149871 filed Jul. 3, 2012.
1. Field of the Invention
The present invention relates to a lane departure warning device that gives a warning to a driver of a vehicle on which the device is mounted and which the driver is driving (hereafter, referred to as “own vehicle”) when the own vehicle is likely to depart from a lane.
2. Description of Related Art
Various technologies have been proposed, which are designed to capture images around a vehicle by an in-vehicle camera and recognize objects (vehicles, pedestrians and so on) and traffic signs/marks (road surface paints such as compartment lines, marks such as “STOP” and so on) in the captured image. For example, Japanese Patent Publication Laid-open No. 2003-44863 discloses a division line recognition device. If the division line recognition device can detect a compartment line such as a white line or Botts' dots painted on a road by using an in-vehicle camera and obtain a position of a vehicle in a lane on which the vehicle is travelling, that is, a relative position with respect to the compartment line, it can be estimated whether the possibility that the vehicle will depart from the lane is high or low can be estimated. If, when the possibility of departure is high, a warning is given to the driver or the steering and/or brakes are controlled, the departure of the vehicle from the lane will be prevented or, if it is unavoidable, the amount of departure from the lane can be decreased.
The division line recognition device disclosed in Japanese Patent Publication Laid-open No. 2003-44863 is configured to vary a threshold value for use in the recognition and judgment of division lines (white lines) depending on the size of dirtiness on the camera. As a result, even when the dirtiness on the camera has an increased size, the device can remain in a state in which it can well recognize white lines. However, since the threshold value is varied to those values at which white lines can be readily recognized, there is also an increasing possibility that the device will erroneously recognize objects other than the white lines. If such a division line recognition device is applied to a lane departure warning system, there is an increasing possibility that an erroneous warning is given more often.
According to the present invention, lane departure warning device includes: a compartment line detection unit that detects a compartment line in an image of a running lane on which a vehicle is traveling, the image being captured by an image capturing device which the vehicle has; a dirtiness detection unit that detects dirtiness on any one of a lens of the image capturing device or a partition between an outside of a vehicle interior of the vehicle and the image capturing device; a departure judgment unit that judges whether or not the vehicle departs from the compartment line; and a warning judgment unit that when it is judged that the vehicle departs from the compartment line, outputs a warning signal based on a degree of the dirtiness detected. A position of the vehicle with respect to the compartment line when the warning signal is output varies depending on the degree of the dirtiness.
The lane departure warning device 100 according to the present embodiment, as shown in
Image data of images captured by the image capturing device 101 is input to the lane departure warning device 100 and further, various types of information about the vehicle such as vehicle speed, rudder angle, yaw rate, and turn signal are input to the lane departure warning device 100. When the warning judgment unit 5 judges that there is a high possibility that the own vehicle will depart from a lane on which it is running, the warning judgment unit 5 outputs a warning generation command to a warning sound generator 102 and a warning display 103.
The image capturing device 101 outputs, through a dedicated line, images obtained by capturing images of an outside of the own vehicle by an image sensor such as a CCD (Charge Coupled Device) image sensor or a CMOS (Complementary Metal Oxide Semiconductor) image sensor to the compartment line detection unit 1 and the dirtiness detection unit 2 of the lane departure warning device 100 as analog data or as image data that can be treated by a computer after conversion of the analog data thereinto by digital processing.
The compartment line detection unit 1 detects compartment lines such as white line and Botts' dots painted on roads in the form of solid line, broken line or sequence of dots by using image data (image information) relating to the outside of the vehicle captured by the image capturing device 101. The Botts' dots include a center line, border lines of lanes, for example, a pair of lanes such as a left side lane and a right side lane, and outer lines of a roadway.
The dirtiness detection unit 2 detects lens dirtiness by using the image data (image information) of images of the outside of the vehicle captured by the image capturing device 101. Examples of the lens dirtiness include dirtiness on a surface of a lens of the image capturing device 101 when the image capturing device 101 is arranged outside the vehicle interior or dirtiness on a surface of a partition (glass or the like) between the outside of the vehicle interior and the image capturing device 101 when the image capturing device 101 is arranged in the vehicle interior. Here, “dirtiness” means “a state in which a material on the surface of the ground such as soil or mud is adhering”, “a state in which an artificial material such as a snow-melting agent is adhering”, “a state in which rain drops or water drops are adhering”, “a state in which the surface of a lens is cloudy or turbid whitely”, and so on. The dirtiness detection unit 2 obtains a degree of the detected dirtiness and outputs the obtained degree of dirtiness to the departure judgment parameter setting unit 4.
The departure judgment unit 3 judges whether or not the possibility that the vehicle will depart from the compartment line is high. Here, it is preferred that the departure judgment is made according to Japanese Industrial Standard JIS D 0804 or ISO (International Organization for Standardization) standard ISO/DIS 17361.
The departure judgment unit 3 performs judgment as to whether or not the possibility that the vehicle will depart from the compartment line is high based on the degree of lens dirtiness detected by the dirtiness detection unit 2. The setting of the parameter on this occasion is performed by the departure judgment parameter setting unit 4.
When the departure judgment unit 3 judges that there is a high possibility that the vehicle will depart from the compartment line and when no warning suppression condition is met, the warning judgment unit 5 outputs a warning generation command to the warning sound generator 102 or the warning display 103 through a communication system such as an in-vehicle LAN or a dedicated line. Here, the warning suppression conditions include the following ones. That is, the turn signal indicator is being operated by the driver; it is within a predetermined time from completion of operation of the turn signal indicator (for example, for 2 seconds); the vehicle speed is equals to or shorter than a predetermined value (for example, 70 km/h or lower); the curvature radius of road is equals to or smaller than a predetermined value (for example, 200 m or less); and so on.
The warning sound generator 102 includes a speaker or the like that transmits a warning by sound to the driver based on the output from the warning judgment unit 5.
The warning display 103 includes a display, a meter panel, a warning light or the like that visually transmits a warning to the driver based on the output from the warning judgment unit 5.
First, in step S201, the lane departure warning device 100 digitally processes an image captured by the image capturing device 101 and takes in the result of the digital processing as image data. However, when the image has already been digital processed by the image capturing device 101, the lane departure warning device 100 takes in the image data that is output from the image capturing device 101 directly.
Then, in step S202, the dirtiness detection unit 2 in the lane departure warning device 100 detects lens dirtiness using the image data taken in by the lane departure warning device 100 in step S201. A specific example of a method of the processing for the detection of the lens dirtiness is explained with reference to
Then, the dirtiness detection unit 2 obtains a degree of the detected mud dirtiness. The degree of mud dirtiness is generally obtained by a ratio of area of the mud dirtiness region 300 to a total area of the image 350 corresponding to the image data. For example, it is assumed that a range of an index representing the degree of mud dirtiness is 0 to 100, with a smaller index representing less mud dirtiness. According to a method, when a ratio of an area of the mud dirtiness region 300 to a total area of the image 350 corresponding to the image data is 0%, the index representing the degree of mud dirtiness is defined to be 0; when the ratio of the area of the mud dirtiness region 300 to the total area of the image 350 corresponding to the image data is 50%, the index representing the degree of mud dirtiness is defined to be 100; and when the ratio of the area of the mud dirtiness region 300 to the total area of the image 350 corresponding to the image data is between 0% and 50%, the index representing the degree of mud dirtiness is obtained by linear interpolation. The degree of mud dirtiness may be represented by stepwise levels. For example, when the ratio of the area of the mud dirtiness region 300 to the total area of the image 350 corresponding to the image data is 0% to 10%, the degree of mud dirtiness is defined to be at level 0; when the ratio of the area of the mud dirtiness region 300 to the total area of the image 350 corresponding to the image data is 10% to 25%, the degree of mud dirtiness is defined to be at level 1; when the ratio of the area of the mud dirtiness region 300 to the total area of the image 350 corresponding to the image data is 25% to 40%, the degree of mud dirtiness is defined to be at level 2; and when the ratio of the area of the mud dirtiness region 300 to the total area of the image 350 corresponding to the image data is 40% or more, the degree of mud dirtiness is defined to be at level 3.
Here, the method of detecting mud dirtiness has been explained above. Regarding the rain drops or water drops, the ratio of the area of the rain drops or water drops region to the total area of the image 350 corresponding to the image data can be obtained similarly to the mud dirtiness. With regard to dirtiness with the snow-melting agent or white turbidity, the degree of dirtiness can be obtained by a method of detecting the state of light scattering or edge strength of an object in the image data.
In this step, the degree of dirtiness finally output from the dirtiness detection unit 2 is expressed by the largest value among the degrees of dirtiness corresponding to the mud dirtiness regions 300 when the degrees of dirtiness are represented by indices 0 to 100, or by the highest level (for example, level 1 is higher than level 0) among those levels corresponding to the mud dirtiness regions 300 when the degrees of dirtiness are expressed by stepwise levels. The degree dirtiness need not always be expressed by indices 0 to 100 or by four levels from level 0 to level 3, but may be expressed otherwise with the same definition in a consistent way.
Then, in step S203, the compartment line detection unit 1 in the lane departure warning device 100 detects a compartment line painted on a road in the image corresponding to the image data taken in by the lane departure warning device 100 in step S201. A specific method of the processing for detecting the compartment line is explained with reference to
As shown in
Furthermore, the compartment line detection unit 1 calculates a distance between the compartment line and an optical axis of the image capturing device 101, that is, a distance from the optical axis of the image capturing device 101 to the compartment line. A specific calculation method in a step in which the distance from the optical axis of the image capturing device 101 to the compartment line is calculated is explained with reference to
Note that when calculating the distance from the optical axis 43 of the image capturing device 101 to the compartment line 42, the coordinates of a point on the outer side of the compartment line 42 or a central point of the compartment line 42 may be used instead of the coordinates of the point A on the internal side of the compartment line 42. It will suffice if the same definition is used in a consistent way. Further, the number of the points on a compartment line that is used for calculating the distance from the optical axis 43 of the image capturing device 101 to the compartment line is not limited to one for each of the compartment lines within the image 450. Instead, a plurality of points (for example 10 points) for each of the compartment lines within the image 450 may be used.
Then, in step S204, the departure judgment unit 3 in the lane departure warning device 100 judges whether or not the own vehicle will depart from a lane on which it is traveling based on the information about the compartment lines detected by the compartment line detection unit 1 in step S203. Here, explanation is made on a case where the position at which the image capturing device 101 is attached is a rear end of the vehicle, with image capturing being performed in a direction toward the rear side of the vehicle.
The departure judgment unit 3 first estimates a distance from a predetermined site of the own vehicle to the compartment line based on the compartment line detected in step S203 and the distance from the optical axis of the image capturing device 101 to the compartment line. Here, according to Japanese Industrial Standards JIS D 0804 and ISO Standards ISO/DIS 17361, whether or not a warning is given is judged based on the distance from an outer part of the front wheel of the vehicle to the compartment line and hence it is necessary to correct a distance from the optical axis to the compartment line detected from the image of the rear side of the vehicle captured by the image capturing device 101 to the distance from the outer part of the front wheel to the compartment line. The correction processing is specifically explained with reference to
The departure judgment unit 3 corrects a distance d1 from the optical axis of the image capturing device 101 to a left compartment line 41 calculated by the image capturing device 101 arranged on the rear of the vehicle to a distance D1 from an outer part of a left front wheel of the vehicle to the left compartment line 41 (distance to the compartment line after correction). The distance D1 from the outer part of the left front wheel of the vehicle to the left compartment line 41 can be calculated according to an equation (1), using a distance K from a point at which the distance d1, i.e., the distance from the optical axis of the image capturing device 101 to the left compartment line 41 is calculated to the front wheel of the vehicle, a distance C1 from the image capturing device 101 to the outer part of the left front wheel of the vehicle, and a yaw angle θ of the vehicle.
D1=d1−K×tan θ−C1 (1)
In the same manner, the departure judgment unit 3 corrects a distance d2 from the optical axis of the image capturing device 101 to a right compartment line 42 calculated by the image capturing device 101 arranged on the rear of the vehicle to a distance D2 from an outer part of a right front wheel of the vehicle to the right compartment line 42 (distance to the compartment line after correction). The distance D2 from the outer part of the right front wheel of the vehicle to the right compartment line 42 can be calculated according to an equation (2), using a distance K from a point at which the distance d2, i.e., the distance from the optical axis of the image capturing device 101 to the right compartment line 42 is calculated to the front wheel of the vehicle, a distance C2 from the image capturing device 101 to the outer part of the right front wheel of the vehicle, and a yaw angle θ of the vehicle.
D2=d2+K×tan θ−C2 (2)
Note that vehicle yaw angles θ can be obtained by a method using a least-square method in which an angle of compartment line is obtained from a plurality of pieces of information about distances d1, d2 to right and left compartment lines in the past, a method in which an angle of compartment line is calculated directly from a sheet of captured image, and so on.
Then, the departure judgment unit 3 judges whether or not the possibility that the vehicle 60 will depart from the compartment line is high using the distances D1 and D2 to the compartment line obtained according to the equations (1) and (2), respectively. Specifically, whether or not the distance D1 (or D2) to the compartment line is less than a predetermined threshold value for departure judgment Ds (D1<Ds) is judged. When an affirmative judgment is made, it is judged that the possibility that the vehicle 60 will depart from the compartment line is high and this is notified to the driver in a subsequent processing. On the contrary, when a negative judgment is made, it is judged that the possibility that the vehicle 60 will depart from the compartment line is low and this is notified to the driver in a subsequent processing.
Further, in step S204, the departure judgment parameter setting unit 4 in the departure judgment unit 3 sets a parameter to be used for the judgment of departure using the degree of dirtiness obtained by the dirtiness detection unit 2 in step S202. This is because according as the degree of dirtiness increases, result of detection of a compartment line in step S203 becomes increasingly unstable, so that if the result of the detection of the compartment line is used as it is, there is a possibility that an erroneous warning will be given, and the departure judgment parameter setting unit 4 sets a parameter to be used for the judgment of departure in order to decrease the frequency of occurrence of the erroneous warning. A specific method to achieve this is explained with reference to the drawings.
First, explanation is made on the method of setting a threshold value for the judgment of departure Ds.
Then, explanation is made on the method of setting a filter coefficient p of a filter by which distances d1 and d2 (see
d1f=d1fz×(p−1)+d1×p (3)
d2f=d2fz×(p−1)+d2×p (4)
According to the equations (3) and (4), the smaller the filter coefficient is, the more priority is given to the result of calculation in the previous processing cycle, so that unstableness of the result of detection of the compartment line can be alleviated. Then, by modifying the equations (1) and (2) so as to use the result of calculation according to the equations (3) and (4), respectively, equations (5) and (6), respectively, below are obtained.
D1=d1f−K×tan θ−C1 (5)
D2=d2f+K×tan θ−C2 (5)
Here, explanation is made on the method in which the distances d1 and d2 to the compartment line detected in step S203 (see
Then, explanation is made on the method of setting a correction coefficient q (where q is within the range of 0≦q≦1) by which yaw angles θ in the equations (1) and (2) and in the equations (5) and (6) are multiplied. First, the equations (5) and (6) are modified using the correction coefficient q by which the yaw angle θ is multiplied to obtain equations (7) and (8) below.
D1=d1f−K×tan(θ×q)−C1 (7)
D2=d2f+K×tan(θ×q)−C2 (8)
According to the equations (7) and (8), as the correction coefficient q becomes smaller, the correction with the yaw angle θ becomes less effective, so that unstableness of the yaw angle θ can be alleviated.
As explained above, in step S204, when calculating the distances D1 and D2 to the compartment line, the parameter to be used for the judgment of departure based on the degree of dirtiness obtained in step S202 can be set by using the equations (7) and (8), so that the frequency of occurrence of erroneous warning can be decreased.
Finally, in step S205, when it is judged in step S204 that the possibility that the own vehicle will depart from the compartment line is high and the warning suppression condition is not met, the warning judgment unit 5 outputs a warning generation command to the warning sound generator 102 and the warning display 103 and terminates this routine. Here, examples of the warning suppression condition include the turn signal indicator being in operation; it being within a predetermined time (for example, 2 seconds) from completion of operation of the turn signal indicator; the vehicle speed being not higher than a predetermined value (for example, 70 km/h or less); the curvature radius of road being not higher than a predetermined value (for example, 200 m or less); and so on. The timing at which a warning is cancelled is set to be after a lapse of a predetermined time (for example, 2 seconds) from the warning is given.
As explained above, by changing the parameter to be used for the judgment of departure based on the degree of lens dirtiness, the frequency of occurrence of the erroneous warning can be decreased even when dirt adheres to the lens of the camera or a partition such as a glass plate. In addition, by decreasing the frequency of occurrence of the erroneous warning, the driver and passengers can have improved feeling of safety and reliability.
According to the present embodiment, the position at which the image capturing device is attached to the rear end of the vehicle and the direction of image capturing is toward the rear side of the vehicle. However, an image capturing device that captures images of the front of the vehicle may be used. For example, the position at which the image capturing device is attached may be different from that according to the present embodiment.
In the configuration of the lane departure warning device 100 according to the present embodiment shown in
The dirtiness detection unit 2 obtains the degree of the detected dirtiness and outputs it to the compartment line detection parameter setting unit 11 and the departure judgment parameter setting unit 4.
The compartment line detection parameter setting unit 11 sets a parameter to be used when the compartment line detection unit 1 detects a compartment line based on the degree of lens dirtiness detected by the dirtiness detection unit 2.
Then, explanation is made on an example of a processing procedure performed by a CPU (not shown) included in the lane departure warning device 100 according to the present embodiment by executing a program therefor.
The flowchart corresponding to the present embodiment is the same as the flowchart shown in
In step S203 shown in
First, explanation is made on a specific method of detecting a compartment line by the compartment line detection unit 1 with reference to
Then, explanation is made on a method of determining the reliability of the compartment line detected by the compartment line detection unit 1. Here, the reliability of the compartment line is expressed by a value of 0 to 100, with a larger value representing a higher reliability. Within the ranges 111 and 112 in which compartment lines are to be detected as shown in
As explained above, by changing the method of detecting a compartment line using the degree of dirtiness obtained in step S202 and by adding decision processing for deciding the reliability of the detected compartment line, the precision of detection of a compartment line can be increased.
Further, when the departure judgment unit 3 calculates the equations (1) and (2), the reliability of compartment line obtained in step S203 may be used. Specifically, the departure judgment unit 3 calculates the equations (1) and (2) when it is judged that the compartment line has acceptable reliability. On the other hand, when it is judged that the reliability of the compartment line is not acceptable, the departure judgment unit 3 does not perform calculation of the equations (1) and (2) and sets an invalid value to the distance to the compartment line D1 (or D2).
As explained above, by obtaining the distance to the compartment line based on the reliability of the compartment line, it becomes possible to give a lane departure warning with higher precision than otherwise.
The lane departure warning device 100 according to the present embodiment shown in
The compartment line fluctuation amount calculation unit 12 calculates a chronological fluctuation amount with respect to a distance to a compartment line, that is, a compartment line fluctuation amount based on the distance to the compartment line detected by the compartment line detection unit 1. The departure judgment parameter setting unit 4 sets a parameter to be used for the judgment of departure based on the magnitude of the fluctuation amount.
The compartment line fluctuation amount calculated by the compartment line fluctuation amount calculation unit 12 being large means that the position of the compartment line detected by the compartment line detection unit 1 varies widely. In other words, the detection result by the compartment line detection unit 1 varies widely, which indicates that the detection of the compartment line by the compartment line detection unit 1 is unstable (incorrect) accordingly. That is, when the compartment line fluctuation amount is large, the detection of the compartment line is unstable, so that it becomes highly possible that use of the information about the compartment line as it is will result in giving an erroneous warning at high frequencies.
The compartment line fluctuation amount calculation unit 12 calculates, as a compartment line fluctuation amount, a standard deviation of a difference between a distance to a compartment line in the present processing cycle and a distance to the compartment line in a last processing cycle in a predetermined period of time. The compartment line fluctuation amount may be a value of standard deviation as it is or may be expressed by stepwise levels as follows. For example, when the compartment line fluctuation amount is 0 to 5 cm, it is defined to be at level 0; when the compartment line fluctuation amount is 5 to 15 cm, it is defined to be at level 1; and when the compartment line fluctuation amount is 15 cm or more, it is defined to be at level 2. Here, standard deviation is used. Also, variance may be used. Furthermore, the compartment line fluctuation amount may be calculated by other methods. Based on the compartment line fluctuation amount calculated by the compartment line fluctuation amount calculation unit 12 as mentioned above, the departure judgment parameter setting unit 4 sets parameters for use in the judgment of departure, that is, a threshold value for the judgment of departure Ds, a filter coefficient p of a filter by which the distance to a compartment line is multiplied, and a correction coefficient q by which yaw angle is multiplied.
First, explanation is made on the method of setting a threshold value for departure judgment Ds by a departure judgment parameter setting unit 4.
Then, explanation is made on a method of setting a filter coefficient p of a filter by which the distance to a compartment line is multiplied, the method being performed by the departure judgment parameter setting unit 4.
Then, explanation is made on the method of setting a correction coefficient q by which yaw angle is multiplied, by the departure judgment parameter setting unit 4.
Note that the parameter for the judgment of departure that is set based on the compartment line fluctuation amount may be calculated separately from the parameter for the judgment of departure that is set based on the degree of dirtiness obtained in step S202 in
In any of the first, second and third embodiments, the lane departure warning device 100 may include a cleaning device for removing lens dirtiness. While the lens dirtiness is being cleaned by the cleaning device, it becomes difficult to detect compartment lines since the image that the lane departure warning device 100 obtains from the image capturing device 101 may contain a cleaning agent and/or a wiper. Therefore, it is preferred that the lane departure warning device 100 is configured so as not to give any warning generation command to the outside therefrom while the lens dirtiness is being cleaned by the cleaning device. This can be achieved, for example, by deeming that while the lens dirtiness is being cleaned by the cleaning device, the warning suppression condition of the warning judgment unit 5 is met or by compulsorily decreasing the range in which compartment lines are detected by the compartment line detection parameter setting unit 11 to zero to establish a state where no compartment line is detected. Further, the lane departure warning device 100 may include a notification device that notifies to the driver or passengers that the lane departure warning device 100 is in a state where it does not output any warning generation command to the outside in case that the lane departure warning device 100 outputs no warning generation command to the outside because of the lens dirtiness being cleaned by a cleaning device. In this manner, the driver and passengers can have improved feeling of safety and reliability.
The above described embodiments are examples and various modifications can be made without departing from the scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2012-149871 | Jul 2012 | JP | national |