Lane detection apparatus and operating method for the same
First Claim
1. An operating method of a lane detection apparatus comprising:
- detecting, by the lane detection apparatus, a plurality of edges in a driving image of a vehicle translated into Cartesian coordinates;
detecting, by the lane detection apparatus, a pattern of the plurality of edges in the driving image of the vehicle;
estimating, by the lane detection apparatus, a horizontal location of the vehicle in a driving lane based on the detected pattern of the plurality of edges;
setting, by the lane detection apparatus, two regions of interest in the driving image based on the horizontal location, the two regions of interest comprising a first region of interest and a second region of interest;
generating, by the lane detection apparatus, a first Hough space and a second Hough space corresponding to the first region of interest and the second region of interest, respectively, the first Hough space and the second Hough space each comprising a plurality of counting regions,wherein a portion of edges in the driving image of the vehicle is shown in each of the first region of interest and the second region of interest;
calculating, by the lane detection apparatus, a polar coordinate value of each pixel included in an edge of the plurality of edges in the driving image shown in each of the first region of interest and the second region of interest by using a Hough transform that transforms Cartesian coordinates into polar coordinates;
accumulating, by the lane detection apparatus, a count number of a counting region to which the polar coordinate value belongs, with respect to each of the first Hough space and the second Hough space;
selecting, by the lane detection apparatus, a first counting region having the highest count number among the plurality of counting regions with respect to a first Hough space and selecting a second counting region having the highest count number among the plurality of counting regions with respect to a second Hough space;
transforming, by the lane detection apparatus, the first counting region and the second counting region into a first straight line and a second straight line expressed by the Cartesian coordinates, the first straight line with respect to the first Hough space and the second straight line with respect to the second Hough space;
detecting, by the lane detection apparatus, the first straight line as a left lane and detecting the second straight line as a right lane of the driving lane;
calculating, by the lane detection apparatus, a distance between the left lane and the right lane;
determining, by the lane detection apparatus, whether the distance between the left lane and the right lane is within a predetermined reference range; and
increasing, by the lane detection apparatus, a number of the first counting region in the first Hough space or a number of the second counting region in the second Hough space when it is determined that the distance between the left lane and the right lane deviates from the predetermined reference range to output a warning message by the lane detection apparatus based at least on the determination.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed are a lane detection apparatus and an operating method for the same, and the operating method for the lane detection apparatus includes: detecting a plurality of edges in a driving image of a vehicle expressed by Cartesian coordinates; detecting a pattern of the plurality of edges; estimating a horizontal location of the vehicle in a driving lane based on the detected pattern; setting two regions of interest in the driving image based on the horizontal location; generating two Hough spaces corresponding two regions of interest, respectively, including a plurality of counting regions, and expressed by polar coordinates; calculating a polar coordinate value of each pixel included in the edge shown in each of two regions of interest among the plurality of edges by using Hough transform that transforms the Cartesian coordinates into the polar coordinates; accumulating the count of the counting region to which the polar coordinate value belongs, with respect to two respective Hough spaces; selecting a counting region having the highest count number among the plurality of counting regions with respect to two respective Hough spaces; transforming the counting region having the highest count number into two straight lines expressed by the Cartesian coordinates, with respect to two respective Hough spaces; and detecting two transformed straight lines as a left lane and a right lane of the driving lane.
12 Citations
9 Claims
-
1. An operating method of a lane detection apparatus comprising:
-
detecting, by the lane detection apparatus, a plurality of edges in a driving image of a vehicle translated into Cartesian coordinates; detecting, by the lane detection apparatus, a pattern of the plurality of edges in the driving image of the vehicle; estimating, by the lane detection apparatus, a horizontal location of the vehicle in a driving lane based on the detected pattern of the plurality of edges; setting, by the lane detection apparatus, two regions of interest in the driving image based on the horizontal location, the two regions of interest comprising a first region of interest and a second region of interest; generating, by the lane detection apparatus, a first Hough space and a second Hough space corresponding to the first region of interest and the second region of interest, respectively, the first Hough space and the second Hough space each comprising a plurality of counting regions, wherein a portion of edges in the driving image of the vehicle is shown in each of the first region of interest and the second region of interest; calculating, by the lane detection apparatus, a polar coordinate value of each pixel included in an edge of the plurality of edges in the driving image shown in each of the first region of interest and the second region of interest by using a Hough transform that transforms Cartesian coordinates into polar coordinates; accumulating, by the lane detection apparatus, a count number of a counting region to which the polar coordinate value belongs, with respect to each of the first Hough space and the second Hough space; selecting, by the lane detection apparatus, a first counting region having the highest count number among the plurality of counting regions with respect to a first Hough space and selecting a second counting region having the highest count number among the plurality of counting regions with respect to a second Hough space; transforming, by the lane detection apparatus, the first counting region and the second counting region into a first straight line and a second straight line expressed by the Cartesian coordinates, the first straight line with respect to the first Hough space and the second straight line with respect to the second Hough space; detecting, by the lane detection apparatus, the first straight line as a left lane and detecting the second straight line as a right lane of the driving lane; calculating, by the lane detection apparatus, a distance between the left lane and the right lane; determining, by the lane detection apparatus, whether the distance between the left lane and the right lane is within a predetermined reference range; and increasing, by the lane detection apparatus, a number of the first counting region in the first Hough space or a number of the second counting region in the second Hough space when it is determined that the distance between the left lane and the right lane deviates from the predetermined reference range to output a warning message by the lane detection apparatus based at least on the determination. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
Specification