Skip to content

ofirshe/image_processing_lane_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lane Detection and Advanced Features Annotation

Introduction

This project aims to provide a comprehensive lane detection system for dashcam videos, along with additional features such as crosswalk detection, proximity-based vehicle detection for collision avoidance, and night-time lane detection. The system processes real-world dashcam footage, annotating each frame with accurate lane markings and relevant annotations.

Features Implemented

  1. LanesDetectionOnFrame: This class is responsible for detecting and annotating lane markings on each frame of the input video. It utilizes techniques such as Hough transform, and Canny edge detection to accurately identify lane boundaries.

  2. CrosswalkDetectionOnFrame: Implements algorithms to detect and highlight crosswalks in the video footage. It utilizes pattern recognition and line detection techniques to differentiate crosswalks from other road markings.

  3. DistanceDetectionOnFrame: Provides functionality for proximity-based vehicle detection to aid in collision avoidance. The class identifies nearby vehicles in the video frames and calculates their relative distance from the driver's vehicle.

  4. Main Class: The main class serves as the entry point for the program. It loads the input videos, applies the annotations generated by the above classes, and generates output videos with the annotations overlayed.

Usage

  1. Clone the repository to your local machine.
  2. Ensure you have the necessary dependencies installed. You may use the requirements.txt file to install them using pip.
  3. Run the main class, providing the path to the input video(s) as arguments.
  4. The program will process the videos, apply the annotations, and generate output videos with annotated features.

Examples

[The gifs may take a few seconds to load]

  1. Lane detection and lane change detection:

    lanes1

  2. Proximity-Based Vehicle Detection:

    night

  3. Crosswalk Detection:

    cross

  4. Night-Time Lane Detection:

    night1

Dependencies

  • OpenCV
  • NumPy

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages