Skip to content

vvduc1803/Parking-Spot-Detection-and-Counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MasterHead


Parking Spots Detection and Counter

Build a basic model and base on OpenCV count number of parking spots , show status of parking spots and each line, recommend best line.

Workflow

I. Build basic model for know each parking spot empty or not.

II. Crop each parking spots by using connected component.

III. Updated status every 30 frames of parking spots have great degree of change about mean value.

III. Merge them and use Opencv library to take information

Dependencies

  • Opencv
  • Numpy
  • Python3
  • Pytorch
pip install opencv       # opencv library
pip instal numpy         # numpy library
pip instal pytorch       # pytorch library
pip install torchvision  # pytorch for vision

NB: Update the libraries to their latest versions before training.


Sample outputs

Click to watch full: HERE Screenshot

How to run

⬇️⬇️Download and extract all my train dataset: Parking Spots Detection Dataset

⬇️⬇️Download pretrained model: Model

Run the following scripts for training and/or testing

python train.py # For training the model 
python run.py   # For view result

dockerdockerDocker Image

Run the following scripts for visual result of model:

1. Download Docker

Open CMD

2. Download my image

docker pull vvduc1803/parking_spots:latest                                  # Pull image

3. Copy and paste

docker run -it -d --name parking_spots vvduc1803/parking_spots  # Run container

4. Copy and paste

docker run parking_spots                                            # Run visual result

Todo

  1. Experiments with different learning-rate and optimizers.
  2. Converting and optimizing for drone or camera deployment.

Authors

Van Duc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published