This project aims to find the vanishing point of the images. Code is available in Python and C++.
You can find complete explaination of the logic and documentation of the code here.
Clone this repository and follow the steps below to run the code.
- Install the following dependencies.
opencv-python
numpy
- Set the path of the folder containing input images in the file
main.py
at line 141. - Run the code using terminal
- Navigate to the cwd.
- Run:
$ python main.py
- Make sure you have OpenCV binaries installed.
- Set the path of the folder containing input images in the file
main.cpp
at line 199. - Run the file
main.cpp
. For CMake users,CMakeLists.txt
is also created.