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-pythonnumpy
- Set the path of the folder containing input images in the file
main.pyat 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.cppat line 199. - Run the file
main.cpp. For CMake users,CMakeLists.txtis also created.