JahanAjani / CarND-LaneLines-P1

Lane detection through image processing in continuous video stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Finding Lane Lines on the Road

Udacity - Self-Driving Car NanoDegree

Combined Image

Overview

When we drive, we use our eyes to decide where to go. The lines on the road that show us where the lanes are act as our constant reference for where to steer the vehicle. Naturally, one of the first things we would like to do in developing a self-driving car is to automatically detect lane lines using an algorithm.

In this project you will detect lane lines in images using Python and OpenCV. OpenCV means "Open-Source Computer Vision", which is a package that has many useful tools for analyzing images.

Step 1: Getting setup with Python

To do this project, you will need Python 3.6 along with the numpy, matplotlib, and OpenCV libraries, as well as Jupyter Notebook installed.

Follow below steps to create virual environment for this project:

> python -m venv laneDetect

> laneDetect\Scripts\activate

Step 2: Installing OpenCV

Once you have python environment active in console, first double check you are in your Python 3.5 environment:

>python

run the following command at the terminal prompt to get OpenCV:

> conda install -c https://conda.anaconda.org/menpo opencv3

then to test if OpenCV is installed correctly:

> python
>>> import cv2
>>>
(Ctrl-d to exit Python)

Step 3: Installing moviepy

We recommend the "moviepy" package for processing video in this project (though you're welcome to use other packages if you prefer).

To install moviepy run:

>pip install moviepy

and check that the install worked:

>python
>>>import moviepy
>>>
(Ctrl-d to exit Python)

Step 4: Opening the code in a Jupyter Notebook

You will complete this project in a Jupyter notebook. If you are unfamiliar with Jupyter Notebooks, check out this link to get started.

Jupyter is an ipython notebook where you can run blocks of code and see results interactively. All the code for this project is contained in a Jupyter notebook. To start Jupyter in your browser, run the following command at the terminal prompt (be sure you're in your Python 3 environment!):

> jupyter notebook

A browser window will appear showing the contents of the current directory. Click on the file called "P1.ipynb". Another browser window will appear displaying the notebook. Follow the instructions in the notebook to complete the project.

About

Lane detection through image processing in continuous video stream

License:MIT License


Languages

Language:Jupyter Notebook 99.8%Language:Shell 0.2%