Giter Club home page Giter Club logo

lane_detection's Introduction

Lane Detection in Videos

This project provides a web application for detecting lanes in videos using OpenCV and Streamlit. The application allows users to upload video files, processes the video to detect lanes, and then enables users to download the processed video.

Features

  • Detects lanes in video frames.
  • Uses OpenCV for image processing and lane detection.
  • Simple web interface built with Streamlit.
  • Supports video file formats such as MP4.

Installation

  1. Clone the repository:
    git clone https://github.com/gauravyadav016-png/Lane_Detection.git
    cd Lane_Detection
    
    

Usage

  1. Run the Streamlit application:

    streamlit run app.py
  2. Open your web browser and navigate to http://localhost:8501.

  3. Upload your video file using the provided interface.

  4. Click the "Process Video" button to detect lanes in the video and then download the processed video.

Code Overview

  • app.py: The main application file that sets up the Streamlit interface and handles file uploads and video processing.
  • LaneDetection: A class that provides methods to process video frames and detect lanes.
  • LaneLineHistory: A class to keep track of lane lines history for more stable lane detection.

Dependencies

  • streamlit: For building the web application interface.
  • numpy: For numerical operations.
  • opencv-python: For image processing and lane detection.
  • moviepy: For handling video file operations.
  • tempfile: For handling temporary file storage.

Input Sample

lane.mp4

Output Sample

output.mp4

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

lane_detection's People

Contributors

gauravyadav016-png avatar

Stargazers

Anshul Kalia avatar  avatar

Watchers

 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.