The present invention relates to a technique of determining the situation of a traffic lane.
A conventional technique recognizes the situation of a traffic lane on the basis of an image obtained from a camera that captures an image of a road.
For example, Patent Document 1 describes the technique of grasping a traffic lane situation using an overhead image obtained by subjecting an image of a road to bird's eye view transformation (overhead transformation) to judge the travel situation of the own vehicle.
Patent Document 1: Japanese Patent Application Laid-Open No. 2009-122825
Unfortunately, it is costly to achieve the configuration of subjecting images to bird's eye view transformation to obtain an overhead image in hardware.
The present invention therefore has an object to provide a technique of recognizing the situation of a traffic lane on the basis of an image obtained from a camera that captures an image of a road, without performing bird's eye view transformation.
A first aspect of a traffic lane situation determining device according to the present invention includes a camera that is mounted in a vehicle and obtains an image whose object is a road in a travelling direction of the vehicle, a detection section that extracts a plurality of lines defining a traffic lane of the road from the image to detect a plurality of straight lines that respectively approximate the plurality of lines, an identification section that identifies an intersection of extended lines respectively obtained by extending the plurality of straight lines, and a determination section that compares a location of the intersection with a location of a point at infinity preset in the image to determine a situation of the traffic lane.
In a second aspect of the traffic lane situation determining device according to the present invention, in the first aspect, the determination section determines that the traffic lane in the travelling direction of the vehicle is a curved line in a case where the location of the intersection is deviated horizontally with respect to the point at infinity on the image.
In a third aspect of the traffic lane situation determining device according to the present invention, in the first or second aspect, the determination section determines that the traffic lane in the travelling direction of the vehicle is a sloped traffic lane in a case where the location of the intersection is deviated vertically with respect to the point at infinity on the image.
In a fourth aspect of the traffic lane situation determining device according to the present invention, in any one of the first to third aspects, the detection section includes an extraction section that extracts a road surface area of the image, and the detection section extracts a plurality of lines defining the traffic lane of the road from an area relatively close to the point at infinity in the surface area of the image to detect a plurality of straight lines that respectively approximate the plurality of lines.
A method for determining a traffic lane situation according to the present invention includes the steps of a) extracting, from an image whose object is a road in a travelling direction of a vehicle, a plurality of lines defining a traffic lane of the road to detect a plurality of straight lines that respectively approximate the plurality of lines; b) identifying an intersection of extended lines respectively obtained by extending the plurality of straight lines, and c) comparing a location of the intersection with a location of a point at infinity preset in the image to determine a situation of the traffic lane.
The present invention enables the recognition of the situation of a traffic lane on the basis of an image obtained from a camera that captures an image of a road at low cost without performing bird's eye view transformation.
These and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings.
Hereinafter, embodiments will be described with reference to the drawings. The identical reference numerals throughout the drawings indicate identical or equivalent elements.
[1-1. Configuration]
As shown in
The camera 11, which is mounted in a vehicle, can capture an image of a road around the vehicle. In this embodiment, the camera 11 is provided in a front portion of the vehicle (for example, a room mirror such as an inner rearview mirror) and obtains an image whose object is a road in the travelling direction of the vehicle.
The image processing unit 12 performs various types of image processing on image data of the image obtained by the camera 11. Examples of the image processing performed by the image processing unit 12 include pixel interpolation processing of determining an insufficient color component through interpolation and color space transform processing of transforming the color space of image data.
The frame memory 13 is a memory for transiently storing the image data after the image processing, which is output from the image processing unit 12.
The information processing unit 14, which is mainly composed of a CPU, a RAM, and a ROM, reads a program stored in the ROM and then execute the program by the CPU, thereby causing a straight line detecting section 141, an intersection identifying section 142, and a traffic lane situation determining section 143 to function. The functions implemented in the information processing unit 14 may be implemented by a hardware circuit.
The straight line detecting section 141 reads image data from the frame memory 13 and extracts a road surface area of an image. For example, the road surface area can be extracted by preliminarily holding a general pixel value indicating a road surface as a reference pixel value related to the road surface and comparing a pixel value of each pixel of an image with the reference pixel value. Further, the straight line detecting section 141 performs edge detection processing on the extracted road surface area and then performs straight line detection processing on the detected edge. The edge detection processing detects a plurality of lines (such as white lines) defining the traffic lane of a road, and the straight line detection processing approximately detects a plurality of straight lines extending along the plurality of lines. Each processing in the straight line detecting section 141 is performed while data during the processing is being stored in the intermediate memory 15. For example, Hough transform may be used as the straight line detection processing, which may be other processing.
The intersection identifying section 142 identifies an intersection of two extended lines on an image, which are obtained by individually extending a plurality of straight lines.
The traffic lane situation determining section 143 compares the intersection identified by the intersection identifying section 142 with the location of a point at infinity preliminarily set in an image, thereby determining the situation of a traffic lane.
[1-2. Operation]
The operation of the traffic lane situation determining device 1A will now be described.
Before the device is actually operated, as shown in
While the device is actually operated, as shown in
In Step SP12, then, the straight line detecting section 141 detects a plurality of straight lines that respectively approximate a plurality of lines defining the traffic lane of a road.
In Step SP13, the intersection identifying section 142 identifies an intersection of extended lines respectively obtained by extending the plurality of straight lines.
In Steps SP14 to SP19, then, the traffic lane situation determining section 143 compares the intersection of the extended lines with the location of the point at infinity, determining the situation of a forward traffic lane depending on the location of the intersection with respect to the point at infinity on an image.
Specifically, it is judged in Step SP14 whether the intersection is deviated rightward or leftward with respect to the point at infinity (is deviated horizontally). Whether the intersection is deviated rightward or leftward with respect to the point at infinity is judged on the basis of, for example, whether an amount of deviation exceeds a threshold (first right-to-left threshold).
If it is judged that the intersection is deviated rightward or leftward with respect to the point at infinity, the operation process moves to Step SP15, and it is determined in Step SP15 that the traffic lane in the travelling direction of the vehicle is a curved line (a curve). The direction of the curve can be identified from the direction of deviation of the intersection with respect to the point at infinity.
Meanwhile, if it is judged that the intersection is not deviated rightward or leftward with respect to the point at infinity, the operation process moves to Step SP16. It is determined in Step SP16 that the traffic lane in the travelling direction of the vehicle is a straight line.
For example,
Meanwhile, if the intersection CP1 of the plurality of straight lines SL1 and SL2 is not deviated rightward or leftward with respect to the point at infinity VP as shown in
Then, it is judged in Step SP17 whether the intersection is deviated upward or downward with respect to the point at infinity (is deviated vertically). Whether the intersection is deviated upward or downward with respect to the point at infinity may be judged on the basis of whether an amount of deviation exceeds a threshold (second top-to-bottom threshold).
If it is judged that the intersection is deviated upward or downward with respect to the point at infinity, the operation process moves to Step SP18, and it is determined in Step SP18 that the traffic lane in the travelling direction of the vehicle is a sloped traffic lane. Whether the slope is a downslope or an upslope can be identified from the direction of deviation of the intersection with respect to the point at infinity.
Meanwhile, if it is judged that the intersection is not deviated upward or downward with respect to the point at infinity, the operation process moves to Step SP19, and it is determined in Step SP19 that the traffic lane in the travelling direction of the vehicle is a traffic lane with no slope.
For example,
Meanwhile, if an intersection CP4 of a plurality of straight lines SL15 and SL16 is deviated downward with respect to the point at infinity VP as shown in
As described above, the traffic lane situation determining device 1A includes the camera 11 that is mounted in a vehicle and obtains an image whose object is a road in the travelling direction of the vehicle, the straight line detecting section 141 that extracts a plurality of lines defining the traffic lane of a road from an image to detect a plurality of straight lines that respectively approximate the plurality of lines, the intersection identifying section 142 that identifies an intersection of extended lines respectively obtained by extending the plurality of straight lines, and the traffic lane situation determining section 143 that compares the intersection with the location of a point at infinity VP preliminarily set in an image to determine the situation of the traffic lane.
The traffic lane situation determining device 1A can recognize the situation of a traffic lane on the basis of an image obtained from a camera that captures an image of the road without performing bird's eye view transformation. The traffic lane situation determining device 1A, which needs no configuration for bird's eye view transformation as described above, is capable of recognizing the situation of a traffic lane at low cost.
Next, a second embodiment of the present invention will be described. Although the traffic lane situation determining device 1A according to the first embodiment detects a plurality of lines defining the traffic lane of a road using all of the road surface area in an image, a traffic lane situation determining device 1B according to the second embodiment detects a plurality of lines defining the traffic lane of a road from an area relatively close to a point at infinity in the road surface area of an image. The traffic lane situation determining device 1B is substantially similar to the traffic lane situation determining device 1A in structure and function (see
As described above, the traffic lane situation determining device 1B detects a plurality of lines defining the traffic lane of a road from part of the road surface area in an image.
Specifically, the straight line detecting section 141 of the traffic lane situation determining device 1B (
More specifically, the straight line detecting section 141 divides the road surface area extracted from the image into an area NR relatively close to the point at infinity VP and an area FR relatively remote from the point at infinity VP, as shown in
The intersection identifying section 142 individually extends the plurality of straight lines SL21 and SL22 to identify an intersection CP5. The traffic lane situation determining section 143 compares the intersection CP5 with the location of the point at infinity VP to determine the situation of a traffic lane.
In the case where the road area in an image is divided into the area NR relatively close to the point at infinity VP and the area FR relatively remote from the point at infinity VP as shown in
Thus, the accuracy of determining the situation of a traffic lane can be improved by, on an image, extracting a plurality of lines defining the traffic lane of a road from the road surface area NR relatively close to the point at infinity VP and detecting a plurality of straight lines SL21 and SL22 that respectively approximate the plurality of lines, as the traffic lane situation determining device 1B performs.
A road surface area is horizontally divided into two and then a plurality of lines defining the traffic lane of a road are extracted from an area close to a point at infinity VP in the description above. Alternatively, a plurality of lines defining the traffic lane of a road may be extracted from an area a predetermined distance away from the point at infinity VP in the road surface area.
While the invention has been shown and described in detail, the foregoing description is in all aspects illustrative and not restrictive. It is therefore understood that numerous modifications and variations can be devised without departing from the scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2012-183186 | Aug 2012 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2013/070605 | 7/30/2013 | WO | 00 |