Skip to content

Real-time path detection system using OpenCV. Processes webcam input with edge detection to identify and visualize road paths. Features GPU acceleration and multi-stage processing for reliable tracking. Perfect for robotics and autonomous vehicle projects.

License

Notifications You must be signed in to change notification settings

Harish-ioc/Path-Identification

Repository files navigation

CV Path Identifier

A real-time path identification and tracking application built with OpenCV and NumPy. The system uses edge detection, component filtering, and multi-stage processing to identify and visualize potential road paths from webcam input. Features GPU acceleration and multi-stage processing for reliable tracking.

Features

  • Real-time edge detection and road boundary identification
  • Multi-stage processing pipeline for reliable path tracking
  • GPU acceleration when available
  • Visualization of detected paths and tracking points
  • Adaptive filtering of detected components

Screenshots

Track Frame Visualization

Track Frame Track Frame shows the raw camera input with detected lane boundaries (green lines) and tracking points (red/blue dots)

Road Path Extraction

Road Path Road Path extracts the detected boundaries as lines for navigation purposes

Processed Output

Track Frame 2 Final processing stage with best-fit lines for potential navigation

Requirements

  • Python 3.6+
  • OpenCV
  • NumPy

Installation

# Clone this repository
git clone https://github.com/Harish-ioc/Path-Identification.git

# Navigate to project directory
cd Path-Identification

# Install dependencies
pip install -r requirements.txt

Usage

# Run using webcam input
python main.py
# Run for testing
python main_testing.py

Press 'q' to exit the application.

Implementation Details

The system works through multiple processing stages:

  1. Edge detection using Canny algorithm
  2. Connected component analysis to filter noise
  3. Bottom pixel detection to identify road boundaries
  4. Clustering and centroid calculation to create tracking points
  5. Path fitting for smooth navigation guidance

Future Improvements

  • Implement path prediction for smoother tracking
  • Add configuration options for different environments
  • Improve performance on low-powered devices
  • Add support for recorded video input

License

MIT

About

Real-time path detection system using OpenCV. Processes webcam input with edge detection to identify and visualize road paths. Features GPU acceleration and multi-stage processing for reliable tracking. Perfect for robotics and autonomous vehicle projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages