Thanks to visit codestin.com
Credit goes to github.com

Skip to content

danielbob32/ParkingSpace

Repository files navigation

Coverage   Latest Release   Build Status   License


index

ParkingSpace Detection System

Automated parking space detection using YOLOv11 and computer vision.
Demo · Report Bug · Request Feature

Table of Contents
  1. About
  2. Installation
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Learn More
  8. Data
  9. Acknowledgments

About

ParkingSpace is a research project for real-time parking space detection using YOLOv11 and RTSP cameras. It identifies available parking spaces in urban environments, including areas without pre-defined spots.

Developed under the supervision of Prof. Roi Poranne.

Features

  • Real-time detection with YOLOv11
  • RTSP camera support
  • Works in undefined parking areas
  • Probability mapping for space availability

Project Structure

  • src/parkingspace/ — Main source code (entry: main.py)
  • Demo/ — Demo videos and probability map
  • regions.json — Region definitions for parking detection
  • requirements.txt / requirements-gpu.txt — Dependencies
  • tests/ — Unit tests
  • scripts/ — Utility scripts

Installation

Requirements:

  • Python 3.8+
  • 2.5GB free disk space
  • CUDA-compatible GPU (optional)

Setup:

# Clone repository
git clone https://github.com/danielbob32/ParkingSpace.git
cd ParkingSpace

# Create and activate virtual environment
python -m venv parkingspace-env
# Windows:
parkingspace-env\Scripts\activate
# Linux/Mac:
source parkingspace-env/bin/activate

# Install dependencies
pip install -r requirements.txt
pip install -e .

# Run demo
python -c "from src.parkingspace import main; main()"

GPU (CUDA 11.7):

pip install -r requirements-gpu.txt
# Or
pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117

Check CUDA:

nvcc --version

Testing

Run all tests with:

pytest tests/

Usage

On first run, models are downloaded automatically. Processing is performed at 15-second intervals by default. Output is shown in a window with detected parking spaces.

Demo Output

Processing Window

Performance

  • Increase sampling interval for lower resource usage Sampling Interval
  • Reduce model resolution Model Resolution
  • Lower model accuracy for faster processing Model Accuracy

Contributing

Contributions are welcome. Please fork the repository and submit a pull request, or open an issue for suggestions.

  1. Fork the repository
  2. Create a feature branch
  3. Commit changes
  4. Push to your fork
  5. Open a pull request

License

Distributed under the Apache License. See LICENSE.

Contact

Daniel Bobritski — [email protected]

Project: https://github.com/danielbob32/ParkingSpace

Learn More

Data

Acknowledgments