Skip to content

teja656/Intelligent-Parking-Slot-Allocation-System

Repository files navigation

SmartMallAI

An AI-powered analytics system for smart malls using computer vision and machine learning.

Features

  • Person detection using YOLOv8
  • Face analysis (age, gender, emotion) using DeepFace
  • Customer behavior prediction using RandomForest
  • Real-time analytics dashboard
  • MongoDB integration for data storage
  • Automated slot allocation system

Setup

  1. Clone the repository:
git clone https://github.com/yourusername/SmartMallAI.git
cd SmartMallAI
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables:
  • Copy .env.example to .env
  • Update the MongoDB connection string and other settings
  1. Run the application:
python app.py

The application will be available at http://localhost:5000

Project Structure

SmartMallAI/
├── app.py                     # Main Flask app
├── yolo_detector.py          # YOLOv8 person detection
├── face_analysis.py          # DeepFace analysis
├── ml_model.py              # RandomForest model
├── db_manager.py            # MongoDB operations
├── utils.py                 # Utilities
├── models/                  # Trained models
├── data/                    # Training data
├── static/                  # Static files
│   ├── uploads/            # Image uploads
│   ├── css/               # Stylesheets
│   └── js/                # JavaScript
├── templates/              # HTML templates
└── logs/                  # Application logs

API Endpoints

  • GET / - Main dashboard
  • POST /upload - Upload and analyze image
  • GET /results/<result_id> - View analysis results
  • GET /dashboard/stats - Get real-time analytics

Dependencies

  • Flask - Web framework
  • YOLOv8 - Object detection
  • DeepFace - Face analysis
  • scikit-learn - Machine learning
  • MongoDB - Database
  • Chart.js - Analytics visualization

📸 Output Screenshots

🧍 Person Detection (YOLOv8)

Detection

📊 Dashboard Analytics

Dashboard

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This project presents an AI-driven smart parking system that intelligently allocates parking slots based on predicted vehicle parking duration. Unlike traditional systems that only detect empty slots, this system uses computer vision and machine learning to analyze passengers inside a vehicle and estimate how long the vehicle is likely to remain pa

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors