.
├── Code
| ├── utils
| ├── notebooks
| ├── other .py files
├── Data
├── Results
└── images
- Change the directory to the root folder.
- Run the following code:
python3 Code/ImageCorrection.py --BasePath ./ --VideoFilePath ./Data/Night\ Drive\ -\ 2689.mp4 --SaveFileName Results/Problem1/ImageCorrection.avi
- BasePath - BasePath - project folder
- VideoFilePath - absolute path of the video file
- SaveFileName - Path to the folder along with name where results are saved. Note: This path is relative to BasePath
The following operations were performed before lane de- tection:
- Image undistortion using cv2.undistort.
- Image blurring using a Gaussian kernel of size 5 ×5.
- Thresholding the gray image to get a binary image.
- Obtained ROI, which is almost 55% of the image.
- Change the directory to the root folder.
- Run the following code:
python3 Code/LaneDetection_part1.py --BasePath ./ --ImageFilePath ./Data/Project2_Dataset2/data_1/data --CamConfigFile ./Data/Project2_Dataset2/data_1/camera_params.yaml --SaveFileName Results/Problem2/lane_result_1.avi
- BasePath - project folder
- ImageFilePath - absolute path of the image files
- CamConfigFile - path where the .yml file is
- SaveFileName - file name for the saved video. Note: this path is relative to the BasePath
- Change the directory to the root folder.
- Run the following code:
python3 Code/LaneDetection_part2.py --BasePath ./ --VideoFilePath ./Data/Project2_Dataset2/data_2/challenge_video.mp4 --CamConfigFile.Data/Project2_Dataset2/data_2/cam_params.yaml --SaveFileName Results/Problem2/lane_result_2.avi
- BasePath - project folder
- VideoFilePath - absolute path of the video files
- CamConfigFile - path where the .yml file is
- SaveFileName - file name for the saved video. Note: this path is relative to the BasePath