Smart Parking Space Detection

Smart parking detection with OpenCV: mark the bays, count free spaces from pictures or video, chart free spaces over time. Python, OpenCV, Tkinter.

  • Price: ₹1,499
  • Category: AI / ML
  • Technology: Python, OpenCV, NumPy, Tkinter, Pillow, SQLite, Matplotlib
  • Includes: Full source code
  • Suitable for: BCA / B.Sc CS, MCA / M.Sc CS, B.E / B.Tech CSE & IT

Project overview

Finding a free parking space wastes time, and a lot owner wants to know how full the lot is. This application counts free bays from a picture or a video using classical OpenCV techniques that are easy to explain. First the bays are marked once by dragging rectangles on a picture of the lot (or by adding a block of equal bays with the auto-grid). Then the Detect screen compares every bay with a picture of the empty lot - or counts edge pixels when no empty picture is available - and draws green boxes for free bays and red boxes for occupied ones with the number of free spaces on top. On the demo pictures the compare method finds every car and the edge method about nine bays in ten correctly or better. The Video screen plays a video with live counts, analyses the whole video into a 'free spaces over time' chart and CSV file, and can even rebuild the empty-lot picture from the video itself by taking the median of many frames. Layouts are saved, every check is logged, and the demo pictures, video and a ready 20-bay layout are drawn by us, so the project works the moment it is installed.

Modules

  1. Login: Admin login with a salted password hash; change the password from the side menu.
  2. Layout: Mark the bays by dragging rectangles or with an auto-grid; set or build the empty-lot picture; save, load and delete layouts.
  3. Detect: Choose a picture, method and threshold; green / red bays, free-space count and a saved result picture.
  4. Video: Play a video with live counts, analyse the whole video into a chart and CSV, adjust the frame step.
  5. Reports: Log of every check with a chart of free spaces; CSV export.

Requirements

  • Python 3.11
  • Internet once, to install the libraries (about 3 minutes)
  • Windows 10 / 11

How to run this project

  1. Install Python 3.11 from python.org and tick "Add python.exe to PATH" during setup.
  2. Extract the zip and open the project folder (STUDENT_GUIDE.md explains every step in simple words).
  3. Double-click `1_INSTALL.bat` once and wait until it says [OK] (about 3 minutes; it downloads the libraries into a private .venv folder).
  4. Double-click `2_RUN.bat` to start the project. If it does not start, double-click `CHECK_SETUP.bat` and read what it says.
  5. Log in with admin / admin123.
  6. Open Video: the demo video plays with live counts; click 'Analyse whole video' for the free-spaces chart. Open Reports to see the log of checks and export it to CSV.

More AI / ML projects