Code Monkey home page Code Monkey logo

empty-parking-space-detector's Introduction

Empty Parking Space Detector

Brief Description

The goal of the project is to detect and count the number of empty spots, given an orthogonal and top-view of a car parking lot. The parking lots can also have shadows in them. Created as part of Digital Image Processing course project.

Objective

  1. To capture and detect the existence of vehicles at the parking lot using image processing techniques.

  2. Count, and display available parking spaces.

Setup and Installation

  • to install the required dependencies run pip install -r requirements.txt

  • There are two approaches used.

    • To run the first approach: Go to src/Approach1/ then run findSpace1.ipynb then mainImg1.ipynb. similarly for image 2 replaing 1 with 2 in both files.
    • To run the second approach: Refer to the notebook ./src/Approach2/Project.ipynb and run all cells.
  • The data required for both approaches are present in the data folder.

Built with - Python 3

Modules used (latest versions):

  1. numpy
  2. opencv-python
  3. matplotlib
  4. pickle
  5. cvzone (pip install cvzone)
  6. os: for saving the images
  7. collections: for queues

Sample outputs

Approach 1

Testcase 1 - 15/69 empty parking spaces test1 Output for video input captured from a drone

Testcase 2 - 51/84 empty parking spaces test2

Approach 2

Testcase 1 - 15/18 empty parking spaces

Screenshot from 2022-11-28 23-35-06

Testcase 2 - 17/18 empty parking spaces

Screenshot from 2022-11-28 23-34-48

Testcase 3 - 39/40 empty parking spaces

Screenshot from 2022-11-28 23-34-20

Testcase 4 - Slant parking lot

Screenshot from 2022-11-28 23-35-23

Team Information

Team: Sesh

Smruti Biswal - 2020112011
Eshika Khandelwal - 2020114018
Srujana Vanka - 2020102005
Shreeya Singh - 2020102011

Contribution

Smruti and Srujana: Approach 1
Eshika and Shreeya: Approach 2

Biblography:

  1. Pickel documentation: Used to save positions of parking spaces in approach 1. link
  2. Pixel count to detect if the parking space is empty or not. link
  3. Capturing mouse click events with Python and OpenCV - SetMouseCallBack documentation link
  4. Adaptive Thresholding for detecting curves and edges. link
  5. Cvzone documentation: Used for displaying the pixel count over an image. link

Citation

empty-parking-space-detector's People

Contributors

srujana-16 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.