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.

- 🟣 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
- Python 🐍
- OpenCV
- NumPy
- Scikit-learn (SVC Classifier)
- Skimage
- Matplotlib
├── 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
-
Clone the repository:
git clone https://github.com/ayyash1/parking-slot-detector.git cd parking-slot-detector
-
Install dependencies:
pip install -r requirements.txt
-
Prepare your input video and mask:
- Add your video to Data/
- Use a binary mask image (PNG) to mark parking slot regions
-
Run detection:
python main.py
- Mobile dashboard integration
- YOLOv8 or hybrid detection
- Edge device deployment
- IoT display for slot guidance
Developed by Ayyash Fous
This project is open-source and available under the MIT License