Coder Social home page Coder Social logo

zhuhaijun753 / road_lane_line_detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from georgesung/road_lane_line_detection

0.0 0.0 0.0 53.69 MB

Find lane lines on the road using Python and OpenCV, applying Canny edge detectors and Hough line transforms

Home Page: https://www.youtube.com/watch?v=EZcHGsPX55Y

Jupyter Notebook 97.62% Python 2.38%

road_lane_line_detection's Introduction

Finding Lane Lines on the Road

Combined Image

This project detects lane lines using Python and OpenCV. A video of the end-result can be found at:

https://www.youtube.com/watch?v=EZcHGsPX55Y

Dependencies

  • Python 3.5
  • NumPy
  • OpenCV
  • Matplotlib
  • MoviePy

How to run

To run the script stand-alone:

Usage: lane_lines.py [options]

Options:
  -h, --help            show this help message and exit
  -i INPUT_FILE, --input_file=INPUT_FILE
                        Input video/image file
  -o OUTPUT_FILE, --output_file=OUTPUT_FILE
                        Output (destination) video/image file
  -I, --image_only      Annotate image (defaults to annotating video)

For example, to detect lanes lines on the video 'challenge.mp4', run:

python lane_lines.py -i challenge.mp4 -o extra.mp4

To detect lane lines on a single image (e.g. for debugging), run:

python lane_lines.py -i input_image.jpg -o output_image.jpg -I

For detailed explanation of what the code does, and example images of intermediate steps, refer to P1.ipynb via jupyter notebook

road_lane_line_detection's People

Contributors

georgesung avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.