1. Field of the Invention
The present invention relates to a three-dimensional object detection device and a three-dimensional object detection method.
2. Background Information
In a conventionally known technique, a three-dimensional object near a host vehicle is detected based on a captured image captured by a camera (see Japanese Laid-Open Patent Application No. 2006-311216).
When a three-dimensional object near a host vehicle is detected based on a captured image captured with a camera at night, there is a problem in that, when water film has formed on the road surface due to rainfall and the like, a light source, such as a street light, could be reflected by the road surface; an image of light, such as the light source that reflects on the road surface, can then be erroneously detected as a three-dimensional object.
The problem to be solved by the present invention is to provide a three-dimensional object detection device that is capable of properly detecting a three-dimensional object.
The present invention solves the problem in a three-dimensional object detection device that detects a three-dimensional object based on a captured image captured by an image capturing unit by detecting the luminance in a plurality of image areas, based on the captured image, detecting, of the detected peaks in the luminance, a peak in the luminance having a luminance gradient of a predetermined value or more as a target luminance peak and suppressing the detection of a three-dimensional object based on the detection result of the target luminance peak during the nighttime.
According to the present invention, effectively preventing an erroneous detection of a light source, such as a street light reflected on the road surface, as a three-dimensional object by suppressing the detection of a three-dimensional object based on a specific luminance peak caused by a light source, such as a street light reflected on the road surface, is possible.
Referring now to the attached drawings which form a part of this original disclosure.
The camera 10 is attached to the host vehicle V1 so that the optical axis is an angle θ downward from the horizontal in a location at a height h at the rear of the host vehicle V1, as illustrated in
As illustrated in
Captured image data of the predetermined area obtained by the camera 10 is input into the viewpoint conversion unit 31, and the captured image data thus input is converted to bird's-eye view image data, which is a bird's-eye view state. A bird's-eye view state is a state of viewing from a viewpoint of an imaginary camera that is looking down from above, in particular, vertically downward. Viewpoint conversion can be carried out in the manner described in, for example, Japanese Laid-Open Patent Application No. 2008-219063. The reason that captured image data is converted to bird's-eye view image data is based on the principle that perpendicular edges unique to a three-dimensional object are converted into a straight-line group that passes through a specific fixed point by viewpoint conversion into bird's-eye view image data; utilizing this principle allows a planar object to be differentiated from a three-dimensional object.
The bird's-eye view image data obtained by viewpoint conversion, which is carried out by the viewpoint conversion unit 31, is sequentially input into the alignment unit 32, and the input positions of the bird's-eye view image data at different times are aligned.
As illustrated in part (a) of
In such a state, a bird's-eye view image PBt at the current moment is illustrated in part (b) of
The alignment unit 32 aligns the bird's-eye view images PBt and PBt−1, such as those described above, in terms of data. When this has been carried out, the alignment unit 32 offsets the bird's-eye view image PBt−1 at a single moment prior and matches the position with the bird's-eye view image PBt at the current moment. The left-side image and the center image in part (b) of
After alignment, the alignment unit 32 obtains the difference between the bird's-eye view images PBt and PBt−1 and generates difference image data PDt. In the present embodiment, the alignment unit 32 takes the absolute value of the difference in the pixel values of the bird's-eye view images PBt and PBt−1 in order to correspond to a variation in the illumination environment; when the absolute value is equal to or greater than a predetermined threshold value th, the pixel values of the difference image PDt are set to “1;” when the absolute value is less than a predetermined threshold value th, the pixel values of the difference image PDt are set to “0,” which allows difference image PDt data such as that illustrated on the right side of part (b) of
The alignment unit 32 in the present embodiment aligns in a bird's-eye view the positions of the bird's-eye view images obtained at different times and obtains the aligned bird's-eye view images; however, the “alignment” process may be carried out at a precision corresponding to the type of objects to be detected or to the required precision for detection. For example, the process may be a strict alignment process in which alignment is conducted based on the same time and same position or a loose alignment in which the coordinates of each bird's-eye view image are obtained.
The three-dimensional object detection unit 33 then detects a differential waveform based on the difference image PDt data illustrated in part (b) of
In generating the differential waveform, the three-dimensional object detection unit 33 sets a detection area (a detection frame) in the difference image PDt. An object of the three-dimensional object detection device 1 of the present example is to calculate the traveling distance for the adjacent vehicle with which there is a possibility of contact should the host vehicle V1 change lanes. Accordingly, in the present example, rectangular detection areas (the detection frames) A1, A2 are set behind the host vehicle V1, as illustrated in
The three-dimensional object detection unit 33 recognizes as ground lines L1, L2 the borders of the detection areas A1, A2 thus set on the host vehicle V1 side (the side along the driving direction), as illustrated in
More specifically, first, the three-dimensional object detection unit 33 defines a line La in the direction in which the three-dimensional object collapses the difference image PDt data. The three-dimensional object detection unit 33 then counts the number of difference pixels DP indicating a predetermined difference on the line La. In the present embodiment, the difference pixels DP indicating a predetermined difference have pixel values in the difference image PDt that are represented by “0” and “1,” and the pixels indicated by “1” are counted as difference pixels DP.
The three-dimensional object detection unit 33 counts the number of difference pixels DP and thereafter determines the crossing point CP of the line La and the ground line L1. The three-dimensional object detection unit 33 then correlates the crossing point CP and the count number and decides the horizontal-axis position, in particular, the position on the axis in the vertical direction in the drawing on the right in
Similarly, the three-dimensional object detection unit 33 defines the lines Lb, Lc, . . . in the direction in which the three-dimensional object collapses, counts the number of difference pixels DP, decides the horizontal-axis position based on the position of each crossing point CP, decides the vertical-axis position from the count number (the number of difference pixels DP), and plots the positions. The three-dimensional object detection unit 33 repeats the above in sequence to form a frequency distribution, thereby generating a differential waveform DWt as illustrated in the drawing on the right in
Here, the difference pixels PD in the difference image PDt data are pixels that have changed in the image at different moments; in other words, they are locations that can be construed to be where a three-dimensional object was present. Accordingly, in locations where a three-dimensional object was present, the number of pixels is counted along the direction in which the three-dimensional object collapses to form a frequency distribution, thereby generating a differential waveform DWt. In particular, the number of pixels is counted along the direction in which the three-dimensional object collapses, and a differential waveform DWt is therefore generated from information about the height direction in relation to the three-dimensional object.
The lines La and Lb in the direction in which the three-dimensional object collapses have different distances that overlap the detection area A1, as illustrated in the drawing on the left in
After the differential waveform DWt has been generated, the three-dimensional object detection unit 33 detects an adjacent vehicle that is present in the adjacent lane based on the generated differential waveform DWt.
The three-dimensional object detection unit 33 calculates the traveling speed of the three-dimensional object by comparing the differential waveform DWt at the current moment with the differential waveform DWt−1 at a single moment prior. In other words, the three-dimensional object detection unit 33 calculates the traveling speed of the three-dimensional object from the change in time of the differential waveforms DWt, DWt−1. The three-dimensional object detection unit 33 also calculates the relative traveling speed of the host vehicle V1 in relation to the traveling speed of the three-dimensional object.
More specifically, the three-dimensional object detection unit 33 divides the differential waveform DWt into a plurality of small areas DWt1, to DWtn (where n is an arbitrary integer of 2 or greater), as illustrated in
Next, the three-dimensional object detection unit 33 determines the offset amount (the amount of movement in the horizontal-axis direction (the vertical direction in
In this manner, in the present embodiment, the traveling distance of the three-dimensional object (the adjacent vehicle V2) is calculated from the offset amount of the differential waveform DWt when the error in the differential waveform DWt generated at different moments is at a minimum; this allows the traveling distance to be calculated from the offset amount, which is information about one dimension in a waveform, and allows the computation costs to be kept low when the traveling distance is calculated. Also, dividing the differential waveform DWt generated at different moments into a plurality of small areas DWt1 to DWtn allows a plurality of waveforms representing the locations of the three-dimensional object to be obtained, thereby allowing the offset amount at each location of the three-dimensional object to be determined and allowing the traveling distance to be determined from a plurality of offset amounts. Therefore, the precision of the calculation of the traveling distance can be improved. In the present embodiment, the traveling distance of the three-dimensional object is calculated from the change in time of the differential waveform DWt, which includes the height direction information. Consequently, in contrast to the focus being solely on the movement of a single point, the detection location prior to a change in time and the detection location after a change in time are specified with the height direction information included and accordingly readily end up being the same location; the traveling distance is calculated from the change in time at the same location; and the precision of the calculation of the traveling distance can be improved.
When a histogram is to be formed, the three-dimensional object detection unit 33 may weight a plurality of small areas DWt1 to DWtn, and count the offset amounts determined for each of the small areas DWt1 to DWtn in accordance with the weighting to form a histogram.
As illustrated in
On the other hand, a small area DWm+k (where k is an integer n−m or less) has an abundant undulation. In other words, in the small area DWm, there is a considerable difference between the maximum and minimum values of the count of the number of pixels indicating a predetermined difference. The three-dimensional object detection unit 33 increases the weighting of this type of small area DWm. This is because the small area DWm+k abundant in undulation is characteristic, and there is a high possibility that the offset amount will be accurately calculated. Weighting the small areas in this manner allows for a more precise calculation of the traveling distance.
The differential waveform DW1 is divided into a plurality of small areas DWt1 to DWtn in the present embodiment in order to enhance the precision of the calculation of the traveling distance; however, this division into the small areas DWt1 to DWtn is not required when a precise calculation of the traveling distance is not necessary. In this case, the three-dimensional object detection unit 33 calculates the traveling distance from the offset amount of the differential waveform DWt when the error between the differential waveform DWt and the differential waveform DWt−1 is at a minimum. In other words, the method for determining the offset amount between the differential waveform DWt−1 at a single moment prior and the differential waveform DWt at the current moment is not limited to the details described above.
The three-dimensional object detection unit 33 in the present embodiment determines the traveling speed of the host vehicle V1 (camera 10) and determines the offset amount for a stationary object from the determined traveling speed. After the offset amount of the stationary object has been determined, the three-dimensional object detection unit 33 ignores the offset amount that corresponds to the stationary object within the maximum value of the histogram and calculates the traveling distance of the three-dimensional object.
Even when the offset amount corresponding to the stationary object is ignored, there may be a plurality of three-dimensional objects present within the view angle of the camera 10 when there is a plurality of maximum values. However, a plurality of three-dimensional objects present within the detection areas A1, A2 occurs very rarely. Accordingly, the three-dimensional object detection unit 33 stops calculating the traveling distance. In the present embodiment, preventing a situation in which an erroneous traveling distance is calculated, such as when there is a plurality of maximum values, is thereby possible.
In this way, in the present embodiment, detecting an adjacent vehicle V2 that is present in an adjacent lane by detecting a three-dimensional object that is present in the detection areas A1, A2 and determining whether or not the detected three-dimensional object is an adjacent vehicle V2 is possible.
In addition, when water film has formed on the road surface due to rainfall and the like, and a light source, such as a street light, is reflected by the road surface at night, the present embodiment is provided with a function to effectively prevent the erroneous detection of an image of such a light source as a three-dimensional object. In order to realize this type of function, the computer 30 according to the present embodiment is provided with a nighttime assessment unit 34, a luminance detection unit 35, a specific luminance peak detection unit 36, a controller 37, a turbidity calculation unit 38, a road surface state estimation unit 39, and a headlight detection unit 40. Each of the configurations is described below.
The nighttime assessment unit 34 assesses whether or not nighttime has fallen based on a captured image captured by the camera 10. The method for nighttime assessment by the nighttime assessment unit 34 is not particularly limited; for example, the nighttime assessment unit 34 can determine that nighttime has fallen when the luminance of the entire captured image captured by the camera 10 is a predetermined value or lower. In addition, the nighttime assessment unit 34 may determine whether or not nighttime has fallen based on a luminometer or the time.
The luminance detection unit 35 detects the luminance of a subject from a captured image.
The specific luminance peak detection unit 36 detects a peak in the luminance caused by a light source, such as a street light, as a specific luminance peak based on the luminance histogram generated by the luminance detection unit 35. Specifically, the specific luminance peak detection unit 36 detects a peak in the luminance with a luminance gradient of a predetermined assessment gradient value or more among the peaks in the luminance detected in the luminance histogram as the specific luminance peak caused by a light source, such as a street light. The specific luminance peak detection unit 36 detects the specific luminance peak in both detection area A1 and detection area A2.
Specifically, as illustrated in part (B) of
The specific luminance peak detection unit 36 then detects the luminance gradient of the peak in the luminance in the luminance histogram based on the amount of change of the luminance gradient in the second derivative histogram. When a luminance histogram such as that illustrated in part (A) of
Returning to
Specifically, when the number of the detected specific luminance peaks is a predetermined first assessment number or greater and is less than a second assessment number, which is greater than the first assessment number, the controller 37 controls the detection of a three-dimensional object by the three-dimensional object detection unit 33 by changing the differential threshold value th to a high value in the area within the detection areas A1, A2 in which the specific luminance peaks are detected in order to suppress the detection of a three-dimensional object.
Additionally, when changing the differential threshold value th in the area in which the specific luminance peaks are detected, the controller 37 differentiates the differential threshold value th that is to be set depending on whether the peak is a specific luminance peak of high luminance or a specific luminance peak of medium luminance, as illustrated in
Additionally, when the number of the detected specific luminance peaks is a predetermined second assessment number or greater, the controller 37 prohibits the detection of a three-dimensional object by the three-dimensional object detection unit 33 in the area within the detection areas A1, A2 in which the specific luminance peaks are detected. Here, the specific luminance peak is thought to be caused by a light source, such as a street light reflected on the road surface; the greater the number of the detected specific luminance peaks, the more accurate the determination is that the road surface, which reflects light sources, such as a street light, is not being blocked by a three-dimensional object. In other words, the greater the number of the detected specific luminance peaks, the more accurate the determination is that a three-dimensional object is not present on the road, which reflects light sources, such as a street light. Accordingly, when the number of the detected specific luminance peaks is a predetermined second assessment number or greater and the detection of a three-dimensional object by the three-dimensional object detection unit 33 is prohibited in the area in which the specific luminance peaks are detected, preventing a reduction in the precision of detecting a three-dimensional object while effectively preventing an erroneous detection of a three-dimensional object is possible.
Additionally, when the number of the detected specific luminance peaks is a predetermined second assessment number or greater, the controller 37 differentiates the range in which the detection of a three-dimensional object is prohibited, according to the luminance of the specific luminance peak. Specifically, when the luminance of the specific luminance peak is high luminance, configuring the controller 37 to widen the range in which the detection of a three-dimensional object by the three-dimensional object detection unit 33 is prohibited (for example, the range in which the detection of a three-dimensional object by the three-dimensional object detection unit 33 is prohibited is set to a range that is wider than the area in which the specific luminance peaks are detected), when compared to a case in which the luminance of the specific luminance peak is medium luminance, as illustrated in
When an adjacent vehicle V2 is being detected, the controller 37 prohibits the control of detecting a three-dimensional object based on the specific luminance peak described above for a predetermined period of time. The controller 37 may repeatedly acquire from the three-dimensional object detection unit 33 the relative traveling speed of the host vehicle V1 in relation to the traveling speed of the three-dimensional object; the controller then may determine that an adjacent vehicle V2 is overtaking the host vehicle V1 and prohibit the control of detecting a three-dimensional object based on the specific luminance peak, when the number of times that the relative traveling speed of the host vehicle V1 is a predetermined speed or less becomes a predetermined assessment number or greater. In this case, the controller 37 can set the assessment number for assessing a three-dimensional object based on the relative traveling speed of the host vehicle V1, based on the magnitude of the luminance value of the detected specific luminance peak. For example, when the specific luminance peak has a high luminance, the controller 37 can increase the assessment number, as compared to a case in which the specific luminance peak is medium luminance, as illustrated in
Additionally, when controlling the detection of a three-dimensional object based on the specific luminance peak, the controller 37 can be configured to control the detection of a three-dimensional object only when, among the detected specific luminance peaks, the distance between the specific luminance peaks that are the farthest apart is a predetermined distance or greater. Here, since the peak in the luminance caused by the light 1h of the headlight of an adjacent vehicle V2 is gradual, when the light hl of a headlight is present, the distance between the peaks in the luminance that are farthest apart tends to become small. Accordingly, by controlling the detection of a three-dimensional object based on the specific luminance peak only when, among the detected specific luminance peaks, the distance between specific luminance peaks that are the farthest apart is a predetermined distance or greater, effectively preventing an erroneous detection of a peak in the luminance caused by the light from the headlight of an adjacent vehicle V2 as the specific luminance peak and suppressing the detection of a three-dimensional object is possible.
Returning to
When foreign matter, such as a water stain, adheres to the lens and the lens is clouded, the outline (the edge) of the subject is blurred due to a part of the light flux from the subject being blocked or irregularly reflected by the foreign matter; the intensity of the edges that are extracted from the subject tends to become small, as compared to when the lens is not clouded, as illustrated in
The turbidity calculation unit 38 then outputs the calculated turbidity of the lens to the controller 37. The controller thereby changes the first change amount and the second change amount for detecting the specific luminance peak according to the turbidity of the lens. Specifically, the controller 37 decreases the first change amount and the second change amount for detecting the specific luminance peak as the turbidity of the lens increases. As a result, detecting a peak in the luminance caused by a light source, such as a street light reflected on the road surface, as the specific luminance peak, even when the lens is clouded and in a scene in which the luminance gradient of the peak in the luminance caused by a light source, such as a street light reflected on the road surface, is small is possible.
The road surface state estimation unit 39 estimates whether or not the state is such that water film has formed on the road surface due to rainfall and the like. Specifically, the road surface state estimation unit 39 can estimate whether or not the state is such that water film has formed on the road surface due to rainfall and the like, based on the operating state of the wiper. For example, in the case that the operation frequency of the wiper can be set in three stages (Off, Low, and High), the road surface state estimation unit 39 estimates that there is a high possibility that rain has been falling until now and that water film (a water puddle) has formed on the road surface when the wiper is switched from High to Low or from High or Low to Off. When the operation frequency of the wiper is set to High, the road surface state estimation unit 39 may estimate that there is a high possibility that water film has formed on the road surface due to heavy rainfall. In this manner, the road surface state estimation unit 39 is able to appropriately estimate whether or not water film has formed on the road surface by estimating the rainfall state based on the operating state of the wiper.
The method for estimating the state of the road surface by the road surface state estimation unit 39 is not limited to the method described above; for example, an assessment regarding whether or not the state is such that water film has formed on the road surface can be performed in the following manner. Specifically, infrared light can be irradiated toward the lens, and a raindrop sensor (not diagrammed) can detect the attenuation amount of the irradiated infrared light that is attenuated by the raindrops to detect the amount of raindrops on the lens surface; as a result of this detection, the road surface state estimation unit 39 may estimate that water film has formed on the road surface due to rainfall when the amount of raindrops is a predetermined amount or more. Alternatively, a speculation regarding whether or not water film has formed on the road surface due to rainfall can be made by acquiring weather information via a navigation device.
Additionally, the road surface state estimation unit 39 may determine whether or not water film has formed on the road surface by determining whether or not an image of a building and the like is a false image reflected on the water or the like, which has formed on the road surface, as the result of a texture analysis of the image.
Specifically, out of the assessment lines (such as La, Lb in
The result of estimating the road surface state, which has been estimated by the road surface state estimation unit 40, is then output to the controller 37. The controller thereby controls the detection of a three-dimensional object by the three-dimensional object detection unit 33 based on the road surface state that has been estimated by the road surface state estimation unit 40. Specifically, when a speculation has been made that water film has formed on the road surface, determination is made that there is a high possibility that a light source, such as a street light, will be reflected on the road surface, and the first change amount and the second change amount for detecting the specific luminance peak are reduced. When water film has formed on the road surface and there is a high possibility that a light source, such as a street light, will be reflected on the road surface, since appropriately detecting a peak in the luminance caused by a light source, such as a street light reflected on the road surface, as a specific luminance peak is possible, effectively preventing the erroneous detection of a light source, such as a street light reflected on the road surface, as a three-dimensional object is possible. Additionally, the controller 37 can be configured so that, when the range in which the detection of a three-dimensional object is prohibited is being changed according to the luminance of the specific luminance peak, and when a speculation has been made that water film has formed on the road surface, the range in which the detection of a three-dimensional object is prohibited is further expanded, as illustrated in
Returning to
The result of detecting the headlight by the headlight detection unit 40 is transmitted to the controller 37. The controller 37 thereby controls the detection of a three-dimensional object by the three-dimensional object detection unit 33 based on the result of detecting the headlight by the headlight detection unit 40. Specifically, the controller 37 prohibits the suppression of detecting a three-dimensional object when the headlight of an adjacent vehicle V2 is detected by the headlight detection unit 40. When an adjacent vehicle V2 is present in an adjacent lane, appropriately detecting the adjacent vehicle V2 is thereby possible. The configuration is not limited to that described above, and the controller 37 can be configured to decrease the degree of suppression of detecting a three-dimensional object when a headlight of the adjacent vehicle V2 is detected by the headlight detection unit 40 by, for example, increasing the first change amount and/or the second change amount. The peak in the luminance of a light of a headlight of another vehicle (an adjacent vehicle) that is present two lanes away (in an adjacent-adjacent lane) from the driving lane of the host vehicle V1 tends to protrude sharply, when compared to a headlight of an adjacent vehicle V2. Accordingly, in the present embodiment, the light of a headlight of an adjacent-adjacent vehicle is detected as a specific luminance peak; as a result, effectively preventing the erroneous detection of an adjacent-adjacent vehicle as an adjacent vehicle V2 is possible.
Described next is the process for detecting an adjacent vehicle in accordance with the present embodiment.
The alignment unit 32 aligns the bird's-eye view image PBt data and the bird's-eye view image PBt−1 data at a single moment prior and generates difference image PDt data (Step S103). Specifically, the alignment unit 32 takes the absolute value of the difference in the pixel values of the bird's-eye view images PBt and PBt−1; when the absolute value is equal to or greater than a predetermined threshold value th, the pixel values of the difference image PDt are set to “1;” when the absolute value is less than a predetermined threshold value th, the pixel values of the difference image PDt are set to “0.” There are cases in which the differential threshold value th for calculating the pixel values of the differential image PDt is changed in a three-dimensional object detection control process mentioned below; in the case that the differential threshold value th is changed, the changed differential threshold value th will be used in this Step S103. Additionally, in the three-dimensional object detection control process mentioned below, there are cases in which the detection of a three-dimensional object is prohibited in the pixel area within the detection areas A1, A2 in which a specific luminance peak is detected; in this case, the pixel values of the difference image PDt in the area in which the detection of a three-dimensional object is prohibited will be calculated as “0,” thereby prohibiting the detection of a three-dimensional object.
The three-dimensional object detection unit 33 then counts the number of difference pixels DP having a pixel value of “1” from the difference image PDt data and generates a differential waveform DWt (Step S104). The three-dimensional object detection unit 33 then determines whether or not the peak of the differential waveform DWt is at a predetermined threshold value α or greater (Step S105). When the peak of the differential waveform DWt is not at the threshold value α or greater, in particular, when there is essentially no difference, the thought is that a three-dimensional object is not present in the captured image. Accordingly, when a determination has been made that the peak of the differential waveform DWt is not at the threshold value α or greater (Step S105=No), the three-dimensional object detection unit 33 determines that a three-dimensional object is not present and that an adjacent vehicle V2 is not present (Step S114). The operation then returns to Step S101 and repeats the operation illustrated in
On the other hand, when the peak of the differential waveform DWt is determined to be at a threshold value α or greater (Step S105=Yes), a determination is made by the three-dimensional object detection unit 33 that a three-dimensional object is present in an adjacent lane, the operation proceeds to Step S106, and the three-dimensional object detection unit 33 divides the differential waveform DWt into a plurality of small areas DWt1 to DWtn. The three-dimensional object detection unit 33 next imparts a weighting to each of the small areas DWt1 to DWtn, (Step S107), calculates the offset amount for each of the small areas DWt1 to DWtn (Step S108), and generates a histogram that takes into consideration the given weightings (Step S109).
The three-dimensional object detection unit 33 then calculates the relative traveling distance, which is the traveling distance of the three-dimensional object in relation to the host vehicle V1, based on the histogram (Step S110). Next, the three-dimensional object detection unit 33 calculates the absolute traveling speed of the three-dimensional object from the relative traveling distance (Step S111). At this time, the three-dimensional object detection unit 33 time-differentiates the relative traveling distance then adds the host vehicle speed detected by the vehicle speed sensor 20, and thereby calculates the relative traveling speed.
The three-dimensional object detection unit 33 then determines whether the absolute traveling speed of the three-dimensional object is 10 km/h or more and whether the relative traveling speed of the three-dimensional object in relation to the host vehicle V1 is +60 km/h or less (Step S112). When both conditions have been satisfied (Step S112=Yes), the three-dimensional object detection unit 33 determines that the detected three-dimensional object is an adjacent vehicle V2 e and that an adjacent vehicle V2 is present in the adjacent lane (Step S113). Then, the operation illustrated in
In the present embodiment, the detection areas A1, A2 are the left and right rear of the host vehicle V1, and focus is placed on whether the host vehicle V1 may possibly make contact with another object should a lane change be made. Accordingly, the operation of Step S112 is implemented. In other words, assuming that the system in the present embodiment is actuated on an expressway, when the speed of an adjacent vehicle V2 is less than 10 km/h, there would rarely be a problem even if an adjacent vehicle V2 were to be present because the adjacent vehicle V2 would be positioned far behind the host vehicle V1 when a lane change is made.// Similarly, when the relative traveling speed of an adjacent vehicle V2 exceeds +60 km/h in relation to the host vehicle V1 (i.e., when the adjacent vehicle V2 is moving at a speed 60 km/h greater than the speed of the host vehicle V1), there would rarely be a problem because the adjacent vehicle V2 would be positioned ahead of the host vehicle V1 when a lane change is made. Accordingly, the statement can be made that Step S112 determines if an adjacent vehicle V2 will pose a problem when a lane change is made.
In Step S112, a determination is made regarding whether the absolute traveling speed of the adjacent vehicle V2 is 10 km/h or greater and whether the relative traveling speed of the adjacent vehicle V2 in relation to the host vehicle V1 is +60 km/h or less, thereby having the following effect. For example, a possible case is that the absolute traveling speed of a stationary object is detected to be several kilometers per hour, depending on the attachment error of the camera 10. Accordingly, determining whether the speed is 10 km/h or greater reduces the possibility that the stationary object will be determined to be an adjacent vehicle V2. Also, this creates the possibility that the relative speed of an adjacent vehicle V2 in relation to the host vehicle V1 will be detected to be in excess of +60 km/h due to noise. Accordingly, determining whether the relative speed is +60 km/h or less can reduce the possibility of an erroneous detection due to noise.
Furthermore, in lieu of the process of Step S112, a determination can be made regarding whether the absolute traveling speed of the adjacent vehicle V2 is not negative or not 0 km/h. In addition, in the present embodiment, since focus is placed on whether the host vehicle V1 may possibly make contact with another object should a lane change be made, a warning sound may be emitted to the driver of the host vehicle, or a corresponding warning may be displayed by a predetermined display device when an adjacent vehicle V2 is detected in Step S113.
Described next with reference to
As illustrated in
In Step S202, the controller 37 assesses whether or not an adjacent vehicle V2 is being detected. The controller 37 is able to determine whether or not an adjacent vehicle V2 is being detected by determining whether or not a three-dimensional object is an adjacent vehicle V2 that is overtaking the host vehicle V1 based on the traveling speed of the host vehicle V1 in relation to the three-dimensional object. Furthermore, the controller 37 is able to determine whether or not an adjacent vehicle V2 is being detected based on the operation results of the adjacent vehicle detection process, as illustrated in
The luminance of the subject is detected by the luminance detection unit 35 in Step S203. Specifically, the luminance detection unit 35 divides the detection areas A1, A2 into a plurality of image areas and calculates the cumulative value of the luminance in each pixel area, as illustrated in
In Step S205, the specific luminance peak detection unit 36 generates a first derivative histogram based on the luminance histogram generated in Step S204; in the subsequent Step S206, a second derivative histogram is generated based on the first derivative histogram generated in Step S205.
In Step S207, the specific luminance peak detection unit 36 detects the specific luminance peak based on the second derivative histogram generated in Step S206. Specifically, the specific luminance peak detection unit 36 detects a peak in the luminance in which the amount of change of the luminance gradient exceeds a predetermined first change amount as a specific luminance peak of medium luminance and detects a peak in the luminance that exceeds a second change amount, which is greater than the first change amount as a specific luminance peak of high luminance.
In Step S208, the controller 37 carries out an operation for suppressing the detection of a three-dimensional object by the three-dimensional object detection unit 33 based on the specific luminance peaks detected in Step S207. Specifically, the controller 37 changes the differential threshold value th to a high value or prohibits the detection of a three-dimensional object in the pixel areas in which the specific luminance peaks were detected, based on the number of detected specific luminance peaks and the magnitude of the luminance value, as illustrated in
In Step S208, when suppressing the detection of a three-dimensional object by the three-dimensional object detection unit 33, the controller 37 changes the degree of suppression when suppressing the detection of a three-dimensional object according to the ease with which a light source, such as a street light reflected on the road surface, can be detected and the like. For example, when the lens of the camera 10 is clouded, detecting the peak in the luminance caused by a light source, such as a street light reflected on the road surface, is difficult; therefore, the controller 37 sets the degree of suppression for detecting a three-dimensional object to be low. Additionally, when water film has formed on the road surface, there is a high possibility that a light source, such as a street light, will be reflected on the road surface; therefore, the controller 37 sets the degree of suppression for detecting a three-dimensional object to be high. Furthermore, when an adjacent vehicle V2 is present in an adjacent lane, the controller 37 prohibits the suppression of the detection of a three-dimensional object in order to appropriately detect the adjacent vehicle V2.
As described above, in the first embodiment, effectively preventing the erroneous detection of a light source, such as a street light reflected on the road surface, as a three-dimensional object is possible by detecting a peak in the luminance caused by a light source, such as a street light reflected on the road surface, as a specific luminance peak, and by suppressing the detection of a three-dimensional object in areas within the detection areas A1, A2 in which the specific luminance peaks have been detected.
Described next is a three-dimensional object detection device 1a according to the second embodiment. The three-dimensional object detection device 1a according to the second embodiment is the same as that in the first embodiment, except that a computer 30a is provided in lieu of the computer 30 of the first embodiment, as illustrated in
The three-dimensional object detection device 1a according to the second embodiment is provided with a camera 10 and a computer 30a, as illustrated in
The detection areas A1, A2 in the present example are trapezoidal in a plan view (the bird's-eye view state), and the position, size, and shape of the detection areas A1, A2 are decided based on the distances d1 to d4. The detection areas A1, A2 of the example illustrated in the drawing are not limited to being trapezoidal; they may also be rectangular or another shape from a bird's-eye view state, as illustrated in
Here, the distance d1 is the distance from the host vehicle V1 to the ground lines L1, L2. The ground lines L1, L2 refer to a line in which a three-dimensional object, which is present in a lane adjacent to the lane in which the host vehicle V1 is driving, is in contact with the ground. In the present embodiment, an objective is to detect an adjacent vehicle V2 or the like (including two-wheeled vehicles or the like) driving in the left or right lane behind the host vehicle V1 and adjacent to the lane of the host vehicle V1. Accordingly, the distance d1, which is the position of the ground lines L1, L2 of the adjacent vehicle V2, can be decided so as to be substantially fixed from the distance d11 of the host vehicle V1 to a white line W and the distance d12 from the white line W to the position in which the adjacent vehicle V2 is predicted to drive.
The distance d1 is not limited to being predetermined, and may be variable. In this case, the computer 30a recognizes the position of the white line W in relation to the host vehicle V1 using white line recognition or another technique, and the distance d11 is decided based on the position of the recognized white line W. The distance d1 is thereby variably set using the decided distance d11. In the present embodiment described below, the position in which the adjacent vehicle V2 is driving (the distance d12 from the white line W) and the position in which the host vehicle V1 is driving (the distance d11 from the white line W) is mostly predictable, and the distance d1 is predetermined.
A distance d2 is the distance extending from the rear end part of the host vehicle V1 in the vehicle driving direction. The distance d2 is determined so that the detection areas A1, A2 are accommodated within at least the view angle a of the camera 10. In the present embodiment in particular, the distance d2 is set so as to be in contact with a range partitioned within the view angle a. The distance d3 indicates the length of the detection areas A1, A2 in the vehicle driving direction. The distance d3 is determined based on the size of the three-dimensional object to be detected. In the present embodiment, the object to be detected is an adjacent vehicle V2 or the like; therefore, the distance d3 is set to a length that includes the adjacent vehicle V2.
The distance d4 indicates the height, which has been set so that the tires of the adjacent vehicle V2 or the like are included in real space, as illustrated in part (b) of
As described above, the distances d1 to d4 are determined, and the position, the size, and the shape of the detection areas A1, A2 are thereby determined. More specifically, the position of the top side b1 of the detection areas A1, A2 that form a trapezoid is determined by the distance d1. The starting position C1 of the top side b1 is determined by the distance d2. The end position C2 of the top side b1 is determined by the distance d3. The lateral side b2 of the detection areas A1, A2 that form a trapezoid is determined by a straight line L3 extending from the camera 10 toward the starting position C1. Similarly, the lateral side b3 of the detection areas A1, A2 that form a trapezoid is determined by a straight line L4 extending from the camera 10 toward the end position C2. The position of the lower side b4 of the detection areas A1, A2 that form a trapezoid is determined by the distance d4. In this manner, the areas surrounded by the sides b1 to b4 are the detection areas A1, A2. The detection areas A1, A2 are regular squares (rectangles) in real space rearward from the host vehicle V1, as illustrated in part (b) of
The luminance difference calculation unit 41 calculates the luminance differences in the bird's-eye view image data, which has undergone viewpoint conversion by the viewpoint conversion unit 31, in order to detect the edges of a three-dimensional object included in the bird's-eye view image. The luminance difference calculation unit 41 calculates, for each of a plurality of positions along a perpendicular imaginary line extending along the perpendicular direction in real space, the luminance difference between two pixels near each position. The luminance difference calculation unit 41 is capable of calculating the luminance difference by a method for setting a single perpendicular imaginary line extending in the perpendicular direction in real space or by a method for setting two perpendicular imaginary lines.
Described below is the specific method for setting two perpendicular imaginary lines. The luminance difference calculation unit 41 sets a first perpendicular imaginary line that corresponds to a line segment extending in the perpendicular direction in real space and a second perpendicular imaginary line that is different from the first perpendicular imaginary line and that corresponds to the line segment extending in the perpendicular direction in real space. The luminance difference calculation unit 41 determines the luminance difference between a point on the first perpendicular imaginary line and a point on the second perpendicular imaginary line in continuous fashion along the first perpendicular imaginary line and the second perpendicular imaginary line. The operation of the luminance difference calculation unit 41 is described in detail below.
The luminance difference calculation unit 41 sets a first perpendicular imaginary line La (hereinafter referred to as the attention line La) that corresponds to a line segment extending in the perpendicular direction in real space and that passes through the detection area A1, as illustrated in part (a) of
The luminance difference calculation unit 41 sets an attention point Pa on the attention line La (a point on the first perpendicular imaginary line). The luminance difference calculation unit 41 sets a reference point Pr on the reference line Lr (a point on the second perpendicular imaginary line). The attention line La, the attention point Pa, the reference line Lr, and the reference point Pr have the relationship in real space that is illustrated in part (b) of
The luminance difference calculation unit 41 determines the luminance difference between the attention point Pa and the reference point Pr. If the luminance difference between the attention point Pa and the reference point Pr is great, an edge may possibly be present between the attention point Pa and the reference point Pr. In the second embodiment in particular, a perpendicular imaginary line is set as a line segment extending in the perpendicular direction in real space in relation to the bird's-eye view image in order to detect a three-dimensional object present in the detection areas A1, A2. Therefore, there is a high possibility that there is an edge of a three-dimensional object in the location where the attention line La has been set when the luminance difference between the attention line La and the reference line Lr is high. Accordingly, the edge line detection unit 42 illustrated in
This point will be described in greater detail.
When the adjacent vehicle V2 is being displayed in the captured image captured by the camera 10, the adjacent vehicle V2 appears in the detection area A1 in the bird's-eye view image, as illustrated in part (a) of
Next, the luminance difference calculation unit 41 sets a plurality of attention points Pa1 to PaN on the attention line La. In part (b) of
The luminance difference calculation unit 41 subsequently sets the reference points Pr1 to PrN so that they have the same height as the attention points Pa1 to PaN in real space. The luminance difference calculation unit 41 calculates the luminance difference between the attention point Pa and reference point Pr pairs at the same height. The luminance difference calculation unit 41 thereby calculates the luminance difference between two pixels for each of the plurality of positions (1−N) along the perpendicular imaginary line extending in the perpendicular direction in real space. The luminance difference calculation unit 41 calculates the luminance difference between, for example, a first attention point Pa1 and a first reference point Pr1 and calculates the luminance difference between a second attention point Pa2 and a second reference point Pr2. The luminance difference calculation unit 41 thereby determines the luminance difference in a continuous fashion along the attention line La and the reference line Lr. In other words, the luminance difference calculation unit 41 sequentially determines the luminance difference between the third to Nth attention points Pa3 to PaN and the third to Nth reference points Pr3 to PrN.
The luminance difference calculation unit 41 repeats the operation of setting the above-described reference line Lr, setting the attention point Pa, setting the reference point Pr, and calculating the luminance difference while shifting the attention line La within the detection area A1. In other words, the luminance difference calculation unit 41 repeatedly executes the above-described process while changing the positions of the attention line La and the reference line Lr by the same distance in real space along the direction in which the ground line L1 extends. The luminance difference calculation unit 41, for example, sets the line that was the reference line Lr in the previous operation to be the attention line La, sets the reference line Lr in relation to the attention line La, and sequentially determines the luminance difference.
In this manner, in the second embodiment, determining the luminance difference from the attention point Pa on the attention line La and the reference point Pr on the reference line Lr, which are at substantially the same height in real space, allows the luminance difference to be distinctly detected when an edge extending in the perpendicular direction is present. The precision for detecting a three-dimensional object can be enhanced without the operation for detecting the three-dimensional object being affected even when the three-dimensional object is enlarged in accordance with the height from the road surface by the conversion to a bird's-eye view image in order to compare the luminance between the perpendicular imaginary lines extending in the perpendicular direction in real space.
Returning to
Specifically, when an edge line is to be detected, the edge line detection unit 42 first assigns an attribute to the ith attention point Pai from the luminance difference between the ith attention point Pai (coordinates (xi, yi)) to the ith reference point Pri (coordinates (xi′, yi′)) in accordance with formula 1 noted below.
when I(xi,yi)>I(xi′,yi′)+t
s(xi,yi)=1
when I(xi,yi)<I(xi′,yi′)−t
s(xi yi)=−1
when the above do not hold true;
s(xi,yi)=0 [Formula 1]
In formula 1 above, t represents an edge threshold value, I(xi, yi) represents the luminance value of the ith attention point Pai, and I(xi′, yi′) represents the luminance value of the ith reference point Pri. In accordance with formula 1, the attribute s(xi, yi) of the attention point Pai is ‘1’ when the luminance value of the attention point Pai is greater than the luminance value obtained by adding the threshold value t to the reference point Pri. On the other hand, the attribute s(xi, yi) of the attention point Pai is ‘−1’ when the luminance value of the attention point Pai is less than the luminance value obtained by subtracting the edge threshold value t from the reference point Pri. The attribute s(xi, yi) of the attention point Pai is ‘0’ when the luminance value of the attention point Pai and the luminance value of the reference point Pri are in a relationship other than that stated above. In the present embodiment, there are cases in which the edge threshold value t is changed by the controller 37a mentioned below; when the edge threshold value t is changed by the controller 37a, the attribute s(xi, yi) of the attention point Pai is detected using the edge threshold value t that is changed by the controller 37a.
Next, the edge line detection unit 42 assesses whether the attention line La is an edge line from the continuity c(xi, yi) of the attribute s along the attention line La based on the following formula 2.
when s(xi,yi)=s(xi+1,yi+1)(excluding when 0=0)
c(xi,yi)=1
when the above does not hold true.
c(xi,yi)=0 [Formula 2]
The continuity c(xi, yi) is ‘1’ when the attribute s(xi, yi) of the attention point Pai and the attribute s(xi+1, yi+1) of the adjacent attention point Pai+1 are the same. The continuity c(xi, yi) is ‘0’ when the attribute s(xi, yi) of the attention point Pai and the attribute s(xi+1, yi+1) of the adjacent attention point Pai+1 are not the same.
Next, the edge line detection unit 42 determines the sum of the continuities c of all of the attention points Pa on the attention line La. The edge line detection unit 42 divides the sum of the continuities c thus determined by the number N of attention points Pa to thereby normalize the continuity c. The edge line detection unit 42 determines the attention line La to be an edge line when the normalized value has exceeded a threshold value θ. The threshold value θ is set in advance by experimentation or by another unit.
In other words, the edge line detection unit 42 determines whether the attention line La is an edge line based on formula 3 noted below. The edge line detection unit 42 then determines whether all of the attention lines La drawn on the detection area A1 are edge lines.
Σc(xi,yi)/N>θ [Formula 3]
In this manner, in the second embodiment, an attribute is assigned to the attention point Pa based on the luminance difference between the attention point Pa on the attention line La and the reference point Pr on the reference line Lr; then, a determination is made regarding whether the attention line La is an edge line based on the continuity c of the attributes along the attention line La. Therefore, the boundaries between the areas having high luminance and the areas having low luminance are detected as edge lines, and the edges can be detected in accordance with the natural senses of a human. The results of the above will be described.
In contrast, because the areas of low luminance and the areas of high luminance are adjacent to each other, the location 103 is recognized as an edge when an edge is detected only by luminance difference. However, in addition to the luminance difference at the location 103, the edge line detection unit 42 assesses the location 103 to be an edge line only when there is continuity in the attributes of the luminance difference. Therefore, the edge line detection unit 42 is capable of suppressing an erroneous assessment in which the location 103, which is not recognized as an edge line by human senses, is recognized as an edge line, and the edges can be detected by human senses.
Returning to
Furthermore, prior to detecting the three-dimensional object, the three-dimensional object detection unit 33a assesses whether the edge lines have been correctly detected by the edge line detection unit 42. The three-dimensional object detection unit 33a assesses whether a change in luminance on the edge lines is a predetermined threshold value tb or greater along the edge lines of the bird's-eye view image. When the change in luminance on the edge lines in the bird's-eye view image is a predetermined threshold value tb or greater, the edge lines are determined to have been detected by an erroneous assessment. On the other hand, when the change in luminance on the edge lines in the bird's-eye view image is less than a predetermined threshold value tb, a determination is made that the edge lines have been correctly assessed. The threshold value tb is set in advance by experimentation or by another unit.
As illustrated in part (a) of
The three-dimensional object assessment unit 34a assesses whether an edge line has been detected by an erroneous assessment based on the differences in the luminance distribution on the attention line La as described above. For example, a three-dimensional object included in a captured image tends to appear in an enlarged state in a bird's-eye view image when the captured image acquired by the camera 10 is converted into a bird's-eye view image. As described above, when the tire of an adjacent vehicle V2 is enlarged, changes in the luminance of the bird's-eye view image in the enlarged direction tend to be small because the tire as a single location is enlarged. In contrast, when a character or the like drawn on the road surface has been erroneously assessed to be an edge line, areas such as the character portion having a high luminance and areas such as the road surface portion having a low luminance are included in the bird's-eye view image in an intermixed fashion. In such a case, changes in the luminance in the enlarged direction tend to be greater. Accordingly, the three-dimensional object detection unit 33a determines that the edge line has been detected by an erroneous assessment when the change in luminance along the edge line is at a predetermined threshold value tb or greater and determines that the edge line is not caused by a three-dimensional object. A reduction in the precision for detecting a three-dimensional object is thereby suppressed when white characters such as “50” on the road surface, roadside vegetation, and the like are assessed to be edge lines. On the other hand, the three-dimensional object detection unit 33a determines that an edge line is the edge line of a three-dimensional object and determines that a three-dimensional object is present when changes in luminance along the edge line are less than a predetermined threshold value tb.
Specifically, the three-dimensional object detection unit 33a calculates the change in luminance of the edge line using formula 4 or 5 noted below. The change in luminance of the edge line corresponds to the evaluation value in real space in the perpendicular direction. Formula 4 evaluates the luminance distribution using the total value of the square of the difference between the ith luminance value I(xi, yi) and the adjacent ith+1 luminance value I(xi+1, yi+1) on the attention line La. Formula 5 evaluates the luminance distribution using the total value of the absolute value of the difference between the ith luminance value I(xi, yi) and the adjacent ith+1 luminance value I(xi+1, yi+1) on the attention line La.
Evaluation value in the perpendicular equivalent direction=Σ[{I(xi,yi)−I(xi+1,yi+1)}2] [Formula 4]
Evaluation value in the perpendicular equivalent direction=Σ|I(xi,yi)−I(xi+1,yi+1)| [Formula 5]
No limitation is imposed in the use of formula 5, and binarizing an attribute b of an adjacent luminance value using a threshold value t2 and then adding the binarized attribute b for all of the attention points Pa, as in formula 6 noted below, are also possible.
Evaluation value in the perpendicular equivalent direction=Σb(xi,yi)
where b(xi,yi)=1 when |I(xi,yi)−I(xi+1,yi+1)|>t2
b(xi,yi)=1
when the above does not hold true.
b(xi,yi)=0 [Formula 6]
The attribute b(xi, yi) of the attention point Pa(xi, yi) is ‘1’ when the absolute value of the luminance difference between the luminance value of the attention point Pai and the luminance value of the reference point Pri is greater than a threshold value t2. When the above relationship does not hold true, the attribute b(xi, yi) of the attention point Pai is ‘0.’ The threshold value t2 is set in advance by experimentation or by another unit so that the attention line La is not assessed to be on the same three-dimensional object. The three-dimensional object detection unit 33a then adds the attribute b for all of the attention points Pa on the attention line La and determines the evaluation value in the perpendicular equivalent direction in order to thereby assess whether an edge line is related to a three-dimensional object and whether a three-dimensional object is present.
The controller 37a controls the detection of a three-dimensional object by the three-dimensional object detection unit 33a. Specifically, the controller 37a suppresses the detection of a three-dimensional object by changing the edge threshold value t mentioned above to a high value or by prohibiting the detection of a three-dimensional object in the areas within the detection areas A1, A2 in which the specific luminance peaks are detected, based on the number of the specific luminance peaks that are detected by the specific luminance peak detection unit 36 and the magnitude of the luminance value.
Additionally, when suppressing the detection of a three-dimensional object by the three-dimensional object detection unit 33, the controller 37 obtains the turbidity of the lens from the turbidity calculation unit 38 and decreases the suppression degree when suppressing the detection of a three-dimensional object in the case that the lens of the camera 10 is clouded. When a speculation has been made that water film has formed on the road surface by the road surface state estimation unit 39, the controller 37 increases the suppression degree when suppressing the detection of a three-dimensional object. The controller 37 prohibits the suppression of detecting a three-dimensional object when the headlight of an adjacent vehicle V2 is detected by the headlight detection unit 40.
Next, the method for detecting an adjacent vehicle according to the second embodiment will be described with reference to
In Step S301, a predetermined area specified by the view angle a and the attachment position is captured by the camera 10, and the image data of the captured image P captured by the camera 10 is acquired by the computer 30a. Next, the viewpoint conversion unit 31 converts the viewpoint of the acquired image data and generates the bird's-eye view image data in Step S302.
Next, in Step S303, the luminance difference calculation unit 41 sets the attention line La on the detection area A1. At this time, the luminance difference calculation unit 41 sets a line corresponding to a line extending in the perpendicular direction in real space as the attention line La. Then, in Step S304, the luminance difference calculation unit 41 sets the reference line Lr on the detection area A1. The luminance difference calculation unit 41 sets, as the reference line Lr, a line that corresponds to a line extending in the perpendicular direction in real space and a line that is separated by a predetermined distance in real space from the attention line La.
Next, the luminance difference calculation unit 41 sets a plurality of attention points Pa on the attention line La in Step S305. At this time, the luminance difference calculation unit 41 sets a certain number of attention points Pa that will not be problematic during edge detection by the edge line detection unit 42. The luminance difference calculation unit 41 subsequently sets the reference points Pr so that the attention points Pa and the reference points Pr have the same height in real space in Step 306. The attention points Pa and the reference points Pr thereby substantially line up in the horizontal direction, and the edge line extending in the perpendicular direction in real space is more readily detected.
Next, in Step S307, the luminance difference calculation unit 41 calculates the luminance difference between the attention points Pa and the reference points Pr at the same height in real space. The edge line detection unit 42 then calculates the attribute s of each attention point Pa based on the luminance difference calculated by the luminance difference calculation unit 41 in accordance with formula 1 described above. In the present embodiment, the attribute s of each attention point Pa is calculated using the edge threshold value t for detecting the edges of a three-dimensional object. This edge threshold value t may be changed in the three-dimensional object detection control process mentioned below; in the case that the edge threshold value t is changed, the changed edge threshold value would be used in this Step S307. Additionally, in the three-dimensional object detection control process mentioned below, there are cases in which the detection of a three-dimensional object is prohibited in the pixel area within the detection areas A1, A2 in which a specific luminance peak has been detected; in this case, the pixel values of the difference image PDt in the area in which the detection of a three-dimensional object is prohibited will be calculated as “0,” thereby prohibiting the detection of a three-dimensional object.
In Step S308, the edge line detection unit 42 then calculates the continuity c of the attribute s of the attention points Pa in accordance with formula 2 described above. In Step S309, the edge line detection unit 36 further assesses whether a value obtained by normalizing the sum of the continuity c is greater than a threshold value θ in accordance with formula 3. When a determination has been made that the normalized value is greater than the threshold value θ (Step S309=Yes), the edge line detection unit 42 detects the attention line La as the edge line in Step S310. The operation then proceeds to Step S311. When a determination has been made that the normalized value is not greater than the threshold value θ (Step S309=No), the edge line detection unit 42 does not detect that the attention line La is an edge line, and the operation proceeds to Step S311.
In Step S311, the computer 30a determines whether the operations of Steps S303 to S310 have been executed for all of the attention lines La that can be set on the detection area A1. When a determination has been made that the above operations have not been carried out for all of the attention lines La (Step S311=No), the operation returns to Step S303, sets a new attention line La, and repeats the operation through Step S311. On the other hand, when a determination has been made that the operations have been carried out for all the attention lines La (Step S311=Yes), the operation proceeds to Step S312.
In Step S312, the three-dimensional object detection unit 33a calculates the change in luminance along the edge line for each edge line detected in Step S310. The three-dimensional object detection unit 33a calculates the change in luminance of the edge lines in accordance with any of formulas 4, 5, and 6. Next, in Step S313, the three-dimensional object detection unit 33a excludes, from among the edge lines, the edge lines for which the change in luminance is at a predetermined threshold value tb or greater. In other words, when an edge line having a large change in luminance is not assessed to be a correct edge line, the edge line is not used for detecting a three-dimensional object. As described above, this is done in order to suppress the detection of characters on the road surface, roadside vegetation, and the like included in the detection area A1 as edge lines. Therefore, the predetermined threshold value tb is determined by experimentation or by another unit in advance and is set based on the change in luminance that occurs due to the characters on the road surface, roadside vegetation, and the like. On the other hand, the three-dimensional object detection unit 33a determines an edge line having a change in luminance that is less than a predetermined threshold value tb to be an edge line of a three-dimensional object, thereby detecting the three-dimensional object present in an adjacent lane.
Next, in Step S314, a determination is made by the three-dimensional object assessment unit 33a as to whether the quantity of edge lines is a threshold value β or higher. Here, the second threshold value β is set in advance by experimentation or by another unit; for example, when a four-wheel vehicle is set as the three-dimensional object to be detected, the threshold value β is set based on the number of edge lines of a four-wheel vehicle that appeared in the detection area A1. When the determination is such that the quantity of edge lines is at the threshold value β or greater (Step S314=Yes), the three-dimensional object detection unit 33a determines that a three-dimensional object is present in the detection area A1, the operation proceeds to Step S315, and a determination is made that an adjacent vehicle is present. On the other hand, when the determination is such that the quantity of edge lines is not at the threshold value β or greater (Step S314=No), the three-dimensional object detection unit 33a determines that a three-dimensional object is not present in the detection area A1, the operation proceeds to Step S316, and a determination is made that an adjacent vehicle is not present within the detection area A1.
The three-dimensional object detection control process illustrated in
As described above, in the second embodiment, effectively preventing an erroneous detection of a light source, such as a street light reflected on the road surface, as a three-dimensional object when detecting the edges of a subject in the detection areas A1, A2 and detecting an adjacent vehicle V2 based on the edges is possible by detecting a peak in the luminance caused by a light source, such as a street light reflected on the road surface, as a specific luminance peak and by suppressing the detection of a three-dimensional object in areas within the detection areas A1, A2 in which the specific luminance peaks are detected.
The embodiments described above have been described in order to facilitate an understanding of the present invention, and they are not described in order to limit the present invention. Therefore, the elements disclosed in the embodiments above are intended to include all design modifications and equivalents thereto that lie within the technical range of the present invention.
For example, in the embodiments described above, an example configuration was provided in which the differential threshold value th or the edge threshold value t was changed according to the magnitude of the luminance value of the specific luminance peaks when the number of specific luminance peaks was a predetermined first assessment number or more and less than a second assessment number, as illustrated in
In the embodiments described above, an example configuration was provided in which a three-dimensional object is detected as an adjacent vehicle V2 when the traveling speed of the three-dimensional object satisfies a predetermined condition; however, no limitation is imposed thereby; for example, using a configuration in which the detection of an adjacent vehicle V2 is suppressed by changing the condition mentioned above based on the specific luminance peak is also possible. For example, in the embodiments described above, a three-dimensional object is determined to be an adjacent vehicle V2 when the absolute traveling speed of the three-dimensional object is 10 km/h or more and the relative traveling speed of the three-dimensional object in relation to the host vehicle V1 is +60 km/h or less; however, in a region in which a specific luminance peak is detected, a three-dimensional object may be determined to be an adjacent vehicle V2 when, for example, the absolute traveling speed of the three-dimensional object is 20 km/h or more and the relative traveling speed of the three-dimensional object in relation to the host vehicle V1 is +50 km/h or less.
In the embodiments described above, an example configuration was provided in which the detection of a three-dimensional object is suppressed only in the area within the detection areas A1, A2 in which a specific luminance peak is detected when controlling (suppressing) the detection of a three-dimensional object by the three-dimensional object detection unit 33 based on the result of detecting a specific luminance peak; however, no limitation is imposed thereby; for example, using a configuration in which the detection of a three-dimensional object is controlled (suppressed) for the entire detection areas A1, A2, based on the result of detecting a specific luminance peak, is also possible. In this case, using a configuration in which the detection of a specific luminance peak is carried out separately for the detection areas A1, A2 and in which the detection of a three-dimensional object is controlled (suppressed) only in the detection areas in which the specific luminance peaks are detected is preferable.
In the embodiments described above, an example configuration was provided in which, the detection of a three-dimensional object by the three-dimensional object detection unit 33 is prohibited in the area in which specific luminance peaks are detected when the number of the specific luminance peaks is a predetermined second assessment number or greater; however, no limitation is imposed thereby; for example, using a configuration in which the detection of a three-dimensional object by the three-dimensional object detection unit 33 is prohibited in the area in which a specific luminance peak is detected when even just one specific luminance peak of high luminance is detected is also possible.
In addition to the embodiments described above, using a configuration in which the absolute values of the amounts of change in the luminance gradient in the second derivative histogram is averaged is also possible; when the average value exceeds a predetermined reference value, a determination is made that many peaks in the luminance by a light source, such as a street light reflected on the road surface, are present, and the detection of a three-dimensional object by the three-dimensional object detection unit 33 is suppressed.
In the embodiments described above, an example configuration was provided in which controlling the detection of a three-dimensional object based on the specific luminance peak is prohibited only for a predetermined period of time when an adjacent vehicle V2 is being detected; however, no limitation is imposed thereby; using a configuration in which the detection of a specific luminance peak is suppressed only for a predetermined period of time when an adjacent vehicle V2 is being detected is also possible. For example, using a configuration in which the suppression degree for suppressing the detection of a three-dimensional object is reduced is possible by changing the first change amount or the second change amount for detecting a specific luminance peak to a high value for a predetermined period of time when an adjacent vehicle V2 is being detected. In the embodiments described above, an example configuration was provided in which a determination is made regarding whether or not an adjacent vehicle V2 is being detected by determining whether or not a three-dimensional object is an adjacent vehicle V2 that is overtaking the host vehicle V1, based on the relative traveling speed of the host vehicle V1 in relation to the three-dimensional object; however, no limitation is imposed thereby; using a configuration in which a determination is made regarding whether or not a three-dimensional object is an adjacent vehicle V2 that is overtaking the host vehicle V1 is also possible by comparing the relative traveling speed of the three-dimensional object in relation to the host vehicle V1 or by comparing the absolute traveling speed of the three-dimensional object with the absolute traveling speed of the host vehicle V1, thereby determining whether or not an adjacent vehicle V2 is being detected.
In addition to the embodiments described above, using a configuration in which a road surface reflection from the setting sun is detected, based on the first derivative histogram, and the detection of a three-dimensional object is suppressed in the area in which a road surface reflection from the setting sun is being generated is also possible. Here, when the setting sun is illuminating the road surface, there are cases in which the peaks in the luminance with a large luminance gradient are detected in one to two places in the same way as when a light source, such as a street light, is being reflected on the road surface. However, in the case of the setting sun, unlike with a light source, such as a street light, the setting sun will be detected in the same position on the road surface even after a period of time has elapsed; therefore, a peak caused by the setting sun will not be detected when the difference between the current luminance histogram and the luminance histogram at a single moment prior is formed into a first derivative histogram. The controller 37 is able to detect an area within the detection areas A1, A2 in which the setting sun is illuminating the road surface by detecting this type of luminance peak.
In the embodiments described above, an example configuration was provided in which the suppression degree when suppressing the detection of a three-dimensional object is increased when a speculation is made that water film has formed on the road surface by the road surface state estimation unit 39; however, no limitation is imposed thereby; for example, using a configuration in which the detection of a headlight of an adjacent vehicle V2 by the headlight detection unit 40 is suppressed when a speculation is made that water film has formed on the road surface by the road surface state estimation unit 39 is also possible. For example, using a configuration in which, when the headlight detection unit 40 detects a high luminance area of a predetermined area or more as a light source corresponding to the headlight of an adjacent vehicle V2, the detection of a headlight of an adjacent vehicle V2 by the headlight detection unit 40 is suppressed by increasing the predetermined area described above is possible when a speculation has been made that water film has formed on the road surface by the road surface state estimation unit 39. Alternatively, using a configuration in which the detection of a headlight of an adjacent vehicle V2 by the headlight detection unit 40 is suppressed by limiting the target area of detection corresponding to the headlight of an adjacent vehicle V2 to the area corresponding to the adjacent lane is possible when a speculation has been made that water film has formed on the road surface by the road surface state estimation unit 39. Additionally, there is the possibility of using a configuration in which, when the headlight detection unit 40 detects an area of a predetermined area or more, having a luminance difference with the surrounding of a predetermined luminance difference or more as a light source corresponding to the headlight of an adjacent vehicle V2, the detection of a headlight of an adjacent vehicle V2 by the headlight detection unit 40 is suppressed by calculating the traveling speed of the light source, based on the change in time of the light source, and by increasing the luminance difference and the area mentioned above for a light source with a slow traveling speed in relation to the host vehicle V1 and that is moving away behind the host vehicle V1. Accordingly, suppressing the detection of a light source corresponding to a headlight of an adjacent vehicle V2 when water film has formed on the road surface and when a light source, such as a street light reflected on the road surface, is easily detected is possible; as a result, suppressing the detection of a three-dimensional object is possible; thus, effectively preventing the erroneous detection of a light source, such as a street light reflected on the road surface, as a three-dimensional object is possible.
The camera 10 in the embodiments described above corresponds to the image capturing unit of the present invention. The viewpoint conversion unit 31 corresponds to the image conversion means of the present invention; the alignment unit 32, the three-dimensional object detection units 33, 33a, the luminance difference calculation unit 41, and the edge line detection unit 42 correspond to the three-dimensional object detection means of the present invention. The nighttime assessment unit 34 corresponds to the nighttime assessment means of the present invention; the luminance difference calculation unit 35 corresponds to the luminance difference calculation means of the present invention; the specific luminance peak detection unit 36 corresponds to the specific luminance peak detection means of the present invention; the controllers 37, 37a correspond to the control means of the present invention; the turbidity calculation unit 38 corresponds to the lens state assessment means of the present invention; the three-dimensional object detection units 33, 33a correspond to the traveling speed acquisition means and the three-dimensional object assessment means of the present invention; the road surface state estimation unit 39 corresponds to the road surface state estimation means of the present invention; and the headlight detection unit 40 corresponds to the light source detection means of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2012-166527 | Jul 2012 | JP | national |
This application is a U.S. National stage application of International Application No. PCT/JP2013/070308, filed Jul. 26, 2013, which claims priority to Japanese Patent Application No. 2012-166527 filed in Japan on Jul. 27, 2012.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2013/070308 | 7/26/2013 | WO | 00 |