A comprehensive parking management system with computer vision integration for real-time space detection, user management, booking, and payment processing.
- Real-time Parking Space Detection: Uses computer vision to detect available parking spaces
- User Authentication System: Register, login, and manage user profiles
- Vehicle Management: Add and manage multiple vehicles per user
- Booking System: Book parking spaces with flexible duration options
- Payment Processing: Secure payment integration with multiple payment methods
- Zone-based Pricing: Different rates for different parking zones (General, Premium, VIP, Disabled)
- Admin Dashboard: Comprehensive admin interface with statistics and management tools
- Reporting System: Generate and export detailed reports
- Mobile-Friendly Design: Responsive interface that works on all devices
- Backend: Python with Flask
- Database: SQLite with SQLAlchemy ORM
- Computer Vision: OpenCV for real-time space detection
- Frontend: HTML, CSS, JavaScript, Bootstrap 5
- Authentication: Custom authentication system with session management
- Payment Processing: Simulated payment gateway (can be integrated with real payment processors)
-
Clone the repository:
git clone https://github.com/yourusername/smart-parking-system.git cd smart-parking-system -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate -
Install dependencies:
pip install -r requirements.txt -
Initialize the database:
python app.py -
Run the application:
python app.py -
Access the application at
http://localhost:5000
-
Registration and Login:
- Create a new account or login with existing credentials
- Manage your profile and vehicles
-
Booking a Space:
- View available spaces in real-time
- Select a space, duration, and vehicle
- Complete payment to confirm booking
-
Managing Bookings:
- View all your active bookings
- Cancel bookings if needed
- Access booking details and QR codes for entry
-
Dashboard:
- View key statistics and metrics
- Monitor parking space utilization
-
Space Management:
- Define and configure parking spaces
- Set rates for different zones
-
User Management:
- View and manage user accounts
- Access user booking history
-
Booking Management:
- View all bookings in the system
- Filter and search bookings
- Cancel or modify bookings
-
Reporting:
- Generate revenue reports
- Export data to CSV
smart-parking-system/
├── app.py # Main application file
├── auth.py # Authentication module
├── payment.py # Payment processing module
├── models.py # Database models
├── parkingspacepicker.py # Tool for defining parking spaces
├── static/ # Static files (CSS, JS, images)
├── templates/ # HTML templates
│ ├── admin/ # Admin interface templates
│ ├── auth/ # Authentication templates
│ ├── errors/ # Error pages
│ ├── payment/ # Payment templates
│ └── layout.html # Base template
├── CarParkPos # Parking space positions data
├── carPark.mp4 # Sample video for space detection
├── carParkImg.png # Reference image for space picker
└── requirements.txt # Project dependencies
The application can be configured by modifying the following settings in app.py:
SECRET_KEY: Secret key for session securitySQLALCHEMY_DATABASE_URI: Database connection stringUPLOAD_FOLDER: Path for file uploadsMAX_CONTENT_LENGTH: Maximum upload file size
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenCV for computer vision capabilities
- Flask for the web framework
- Bootstrap for the frontend design
- All contributors who have helped improve this project