Estimate the Vanishing Point of an image.
- Python 3
- Numpy
- OpenCV
Next to the src
directory, have a pictures
directory, with nested dirs input
and output
.
For visualizations of the intermediate steps, try checking out the draw-intermediate-steps
branch, which for an input image, will also output:
- Canny edge output
- Hough transform
- Grid segmentation of image and estimated vanishing point cell
Running it a corridor image from here, the output steps are:
Canny Edge Output
Hough Transform
Grid Segmentation and Estimated Vanishing Point
Final