Git Product home page Git Product logo

next24tech's Introduction

Road Lane Line Detection

Overview

This script utilizes computer vision techniques to detect and visualize lane lines in images and videos. It processes each frame to identify lane markings using edge detection and the Hough transform.

custom_region()

Creates a mask to isolate a polygonal region of interest within the input image, focusing on where lane lines are expected.

custom_hough()

Applies the probabilistic Hough transform to detect straight lines in edge-detected images generated using the Canny algorithm. Parameters such as rho, theta, threshold, minLineLength, and maxLineGap are specified to accurately identify potential lane markings.

calculate_slope_intercept()

Categorizes detected lines into left and right lane groups based on their slopes. Computes average slope and intercept, weighted by line lengths for accurate lane detection.

calculate_pixel_points()

Converts slope and intercept parameters into pixel coordinates defining lane line endpoints on the image, ensuring correct positioning within the frame.

detect_lane_lines()

Integrates slope-intercept calculations to identify left and right lane lines within the image. Processes detected lines and computes pixel coordinates for lane markings.

draw_detected_lines()

Overlays detected lane lines onto the original image using specified color and thickness parameters, aiding visualization and evaluation.

process_frame()

Orchestrates lane detection for a single image or video frame. Converts to grayscale, applies Gaussian blur, edge detection, region of interest masking, Hough line detection, and overlays detected lane lines.

process_video()

Automates lane detection across all frames of a video. Utilizes process_frame to process each frame sequentially, detect lane lines, and output an annotated video with lane markings.

next24tech's People

Contributors

ishita-jena 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.