Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Vanishing Point Estimation Using Hough Transform

The approach that i have used for this is discriminating between the left and right side of the lanes by separating them based on the calculated slope. This python script detects the non-parallel intersecting lines along side a road or a perspective image and estimates the intersection point. It identifies the dominant left and right lane lines in an image and calculates their intersection.

Code Structure:

  1. load_image(filename): Reads and converts the image to RGB.

  2. detect_lines(image): Applies Gaussian blur, edge detection, and Hough Transform.

  3. classify_and_select_lines(lines): Filters out vertical lines and selects the most prominent left and right lines based on slope and length.

  4. find_intersection(line1, line2): Calculates the intersection point of two lines in 2D.

Thanks a lot to Kuoyuan-Li for an idea to calculate the intersection.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages