Skip to content

I have trained a classifier for parking lot detection, using that classifier we can detect and count available and acquired parking slots in a real time video.

Notifications You must be signed in to change notification settings

ayyash1/parking-lot-detection-computer-vision-full-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🅿️ Real-Time Parking Slot Detection

A real-time smart parking system that uses Computer Vision and a custom-trained SVC classifier to detect and count available vs. occupied parking slots from video feeds.

thumb

🚀 Features

  • 🟣 Real-time video processing using OpenCV
  • 🟣 Slot segmentation using a binary mask
  • 🟣 Occupancy detection with a trained SVC classifier
  • 🟣 Visual display of available vs. total slots
  • 🟣 Scalable design for smart cities, malls, or surveillance drones

🧠 Tech Stack

  • Python 🐍
  • OpenCV
  • NumPy
  • Scikit-learn (SVC Classifier)
  • Skimage
  • Matplotlib

🗂️ Project Structure

├── Data/ # Contains parking lot video and mask images
├── Train classifier/ # Classifier training scripts & saved models
├── main.py # Main pipeline for real-time detection
├── utils.py # Helper functions (slot detection, classifier interface)
├── requirements.txt # Python dependencies

⚙️ How to Run

  1. Clone the repository:

    git clone https://github.com/ayyash1/parking-slot-detector.git
    cd parking-slot-detector
  2. Install dependencies:

    pip install -r requirements.txt
  3. Prepare your input video and mask:

    • Add your video to Data/
    • Use a binary mask image (PNG) to mark parking slot regions
  4. Run detection:

    python main.py

📈 Future Scope

  • Mobile dashboard integration
  • YOLOv8 or hybrid detection
  • Edge device deployment
  • IoT display for slot guidance

🙍‍♂️Author

Developed by Ayyash Fous


📄 License

This project is open-source and available under the MIT License

About

I have trained a classifier for parking lot detection, using that classifier we can detect and count available and acquired parking slots in a real time video.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published