This Python project provides a solution for real-time parking space detection and analysis using computer vision techniques. The system processes images or video feeds to determine the availability of parking spaces in a given area.
- Real-time Detection: Detects and marks parking spaces in real-time based on the provided input (images, videos, or camera feed).
- Interactive Initialization: Allows users to interactively mark parking spaces on a reference image for initialization.
- Visual Feedback: Provides visual feedback on the number of free parking spaces available.
-
Run the
ParkingSpacePicker.pyscript to mark parking spaces on a reference image:python ParkingSpacePicker.py
- Left-click to mark a parking space.
- Right-click to remove a marked parking space.
- Close the window to save the marked positions.
-
Run the
main.pyscript to analyze parking space availability in a video feed:python main.py
- The script will process the video feed and display the parking spaces in real-time, indicating the availability of each space.
- Python 3.x
- OpenCV
- numpy
- cvzone
-
Clone the repository:
git clone https://github.com/your_username/your_repository.git
-
Navigate to the project directory:
cd your_repository -
Install the required dependencies:
pip install -r requirements.txt
You can customize the parameters in the scripts (main.py, ParkingSpacePicker.py) according to your requirements.