The present invention claims priority of Korean Patent Applications No. 10-2009-0023988, filed on Mar. 20, 2009, which is incorporated herein by reference.
The present invention relates to an apparatus and method for recognizing a traffic line, and more particularly, to an apparatus and method for recognizing a traffic line by predicting the location of the traffic line.
As well known to those skilled in the art, a technique for detecting a traffic line using an image recognizer in outdoor road environments is directly related to the self-control traveling of an automated guided vehicle. Such an automated guided vehicle is configured to automatically travel by adjusting the brake, accelerator and steering gear of the vehicle according to the external environment recognized by sensors. In general, the schemes of the automated guided vehicle are classified into a scheme using a Radio Frequency (RF) transceiver and a scheme using a monitoring camera.
Further, traffic line detection technologies directly related to the self-control traveling of an automated guided vehicle are implemented using technologies which extract edges using a Sobel filter, a Laplacian filter, etc. and detect the location of traffic lines using the extracted edges, that is, location diction technologies. For these technologies, various methods using a Global Positioning System (GPS) and an inertial navigation device have recently been presented, and a lot of research into new methods using sensor fusion is currently being conducted.
However, among the above-described techniques, technologies using a Sobel filter, a Laplacian filter are disadvantageous in that they are very vulnerable to noise.
Further, the traffic line detection techniques are disadvantageous in that, since many cameras are used and, in particular, high-resolution cameras are required, economic burden may increase, and in that, since a lot of processing time is required due to complicated detection algorithms. Therefore, it is difficult to use these techniques. Furthermore, there are disadvantages in that, when an automated guided vehicle passes through a tunnel, or travels in an environment in which the weather suddenly changes as in the case of heavy snowfall or heavy rainfall, there occurs the situation in which the traffic lines are actually present, but they cannot be identified because a screen instantaneously becomes white due to the saturation of the light quantity of a camera, and the situation in which instantaneous erroneous detection is performed due to the degradation of image information captured by the camera, thus resulting in danger to the traveling of the automated guided vehicle.
In view of the above, the present invention provides an apparatus and method for recognizing a traffic line zone even when traveling is conducted in an environment in which the weather suddenly changes.
In accordance with an aspect of the present invention, there is provided an apparatus for recognizing traffic lines on a roadway, including:
an image division unit for dividing an image of the roadway captured by a camera into a specific number of areas;
a traffic line detection unit for detecting a traffic line from the respective divided areas of the roadway images;
a traffic line representation unit for obtaining a traffic line equation representing the traffic line in the detected traffic line;
a location detection unit for detecting a current location of a vehicle using movement direction and velocity of the vehicle sensed by a location detector; and
a traffic line prediction unit for predicting a location of the traffic line to be displaced, using the detected current location, and the movement direction and velocity of the vehicle on a basis of traffic line equation.
In accordance with an aspect of the present invention, there is provided a method of recognizing traffic lines on a roadway, including:
sensing movement direction and velocity of a vehicle on the roadway using a location detector;
obtaining a roadway image having the traffic lines;
dividing the roadway image into a plurality of areas;
extracting traffic line zones from the respective areas of the roadway image;
obtaining a traffic line equation for representing the traffic line in the extracted traffic line zones; and
predicting a location of the traffic line to be displaced in subsequent roadway image, using the current position, movement direction, and velocity based on the traffic line equation.
The above and other objects and features of the present invention will become apparent from the following description of preferred embodiments given in conjunction with the accompanying drawings, in which:
Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
A camera S1 captures a surface of a roadway to obtain a roadway image in color. The image conversion unit 10 receives the roadway image in color captured by the camera S1, and converts the roadway image in color into a roadway image in gray. The roadway image in gray is suitable to easily recognize a traffic line from a roadway using a difference in brightness in the roadway image in gray, thereby enabling to reduce processing time. The roadway image in gray is then provided to the image division unit 20.
Alternatively, if the roadway image obtained by the camera S1 is a grey image, the image conversion unit 10 may be removed in the traffic line recognition apparatus of the present invention. In this case, the roadway image in gray may be directly provided to the image division unit 20.
The image division unit 20 divides the roadway image in gray into a plurality of image areas, e.g., first to fourth quadrants 502, 504, 506 and 508 as shown in
The traffic line detection unit 30 serves to detect the traffic line in the four image areas. The traffic line detection unit 30 includes a region search unit 31, a location finding unit 33 and a determination unit 35, as shown in
The region search unit 31 establishes three search regions in each of the four image areas to extract a traffic line zone having a difference in brightness. For example, in
The location finding unit 33 finds the location of center points of the traffic line zones searched by the region search unit 31 to provide the center points to the determination unit 35.
The traffic line determination unit 35 obtains a straight line passing through the uppermost center point and the lowermost center point in the direction of a Y-axis (for example, a vertical axis) in each quadrant image, and determines whether an intermediate center point of the three center points exists on the straight line. If it is determined that the intermediate center point exists on the straight line, the traffic line determination unit 35 recognizes the straight line as a traffic line passing through three center points. If, however, it is determined that the intermediate center point is deviated from the straight line, the traffic line determination unit 35 determines that a distance spaced apart from the straight line in the X-axis direction falls within a preset error range. If it is determined that the distance falls within the preset error range, the determination unit 35 also recognizes the straight line as a traffic line passing through three center points.
However, if the distance does not fall within the preset error range, the region search unit 31 repeats from the operation of the partition of each quadrant image into the three regions with different heights as described above.
The traffic line determination unit 35 provides the recognized traffic line for each quadrant image to the traffic line representation unit 40.
The traffic line representation unit 40 represents left and right traffic lines by obtaining equations of the left and right traffic lines. As shown in
The left traffic line representation unit 41 obtains a left traffic line equation using six center points located in a left half including the second and third quadrant images 504 and 506 of the roadway image so as to represent a left traffic line, and provides the left traffic line equation to the traffic line prediction unit 60.
The right traffic line representation unit 43 obtains a right traffic line equation using six center points located in a right half including the first and fourth quadrants 502 and 508 of the roadway image so as to represent a right traffic line in the roadway image, and provides the right traffic line equation to the traffic line prediction unit 60.
Meanwhile, the location detection unit 50 is configured to detect a current location of the vehicle on the roadway using movement direction and velocity of the vehicle, which are sensed by a location detector S2, for example, a Differential Global Positioning System (DGPS), an internal rotary encoder, a gyroscope, a digital compass sensor, etc. The current location, the movement direction and velocity of the vehicle are provided in real time to the traffic line prediction unit 60.
The traffic line prediction unit 60 calculates a degree and direction, by which the left and right traffic lines will be displaced in an image coordinate system, using the current location, movement direction and velocity on a basis of the left and right traffic line equations, to thereby predict the locations of the left and right traffic lines to be displaced by displacements Δx and Δy from the left and right traffic lines which was predicted previously as shown in
The prediction of the traffic lines enables to optimize the establishment of the search range to search the traffic lines in subsequent road images.
Therefore, it is possible to prevent roadway image from being distorted and a traffic line from being erroneously detected due to sudden variation in the traveling environment, and enable a traffic line to be accurately detected even when traveling in an environment in which the weather suddenly changes.
A traffic line recognition process performed by the traffic line recognition apparatus according to the embodiment of the present invention having the above configuration will be described in detail with reference to
First, a roadway image in color captured by the camera S1 is provided to the image conversion unit 10 at step S401. Next, the roadway image in color is converted into a roadway image in gray by the image conversion unit 10 so as to easily separate traffic lines from the roadway image at step S403. The roadway image in gray is then provided to the image division unit 20.
The roadway image in gray is partitioned into four areas corresponding to first to fourth quadrants, as shown in
In the traffic line detection unit 30, the region search unit 31 establishes three search regions having different heights in a Y-axis direction in each roadway image of the first to four quadrants at step S407.
Thereafter, the region search unit 31 searches the three search regions to extract traffic line zones in which a difference in brightness is greater than a threshold and whose width is greater than a preset width in the direction of an X-axis in the search regions at step S409. The extracted traffic line zones are then provided to the location finding unit 33.
The location finding unit 33 finds the locations of the center points of the extracted traffic line zones provided from the range search unit 31, and provides the locations of the center points to the determination unit 35 at step S411.
The traffic line determination unit 35 obtains a straight line passing through both the uppermost center point 510 and the lowermost center point 512 in the direction of a Y-axis at step S413, and determines whether or not an intermediate center point 514 exists on the straight line at step S415.
If it is determined at step S415 that the intermediate center point 514 exists on the straight line, a control process goes to step S419 where the straight line is recognized as a traffic line passing through three center points 510, 512 and 514.
If, however, at step S415, it is determined that the intermediate center point 514 is deviated from the straight line, a control process advances to step S417 where the traffic line determination unit 35 determines that a distance, by which the intermediate center point 514 is spaced apart from the straight line, falls within a preset error range. If it is determined that the distance falls within the preset error range, the straight line is also recognized as a traffic line passing through three center points as in step S419. In contrast, if it is determined at step S417 that the distance does not fall within the preset error range, the straight line is not recognized as a traffic line passing through three center points, and thus the control process returns to step S407 to repeat the establishment of the search regions. After the recognition of the straight line as the traffic line passing through three points, the recognized traffic line is provided to the left traffic line representation unit 41 and the right traffic line representation unit 43 of the representation unit 40.
The left traffic line representation unit 41 obtains a left traffic line equation using six points located in the second and third quadrants as shown in
The right traffic line representation unit 43 obtains a right traffic line equation using six points located in the first and fourth quadrants of
Meanwhile, the location detection unit 50 detects the current location of the vehicle on the roadway using movement direction and velocity of the vehicle sensed by the location detector S2, and provides the detected current location, the movement direction and velocity of the vehicle in real time to the traffic line prediction unit 60 at step S425.
The traffic line prediction unit 60 predicts locations of the left and right traffic lines to be displaced in the directions of Δx and Δy from a previous left and right traffic lines, as shown in
The method of detecting a traffic line may be implemented in the form of a computer software program. The codes and code segments constituting the computer software program may be easily deduced by computer programmers skilled in the art. Further, the computer software program is stored in computer-readable media and is read and executed by a computer, so that the traffic line detection method is implemented. The computer-readable media include magnetic recording media, optical recording media, and carrier wave media.
As described above, according to the present invention, it is possible to predict the time-variation in the locations of curve equations representing traffic lines in an image coordinate system to minimize regions for detecting traffic lines, thus remarkably reducing processing time.
While the invention has been shown and described with respect to the particular embodiments, it will be understood by those skilled in the art that various changes and modification may be made without departing from the scope of the invention as defined in the following claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2009-0023988 | Mar 2009 | KR | national |