Skip to content

dabasjayant/Smart-Vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartVision

SmartVision is a social distancing detector implemented in Python with OpenCV and Tensorflow.
Take a peek at the backend program in work 😊

Installation - Linux

OpenCV

pip install opencv-contrib-python

Other requirements

All the other requirements can be installed via the command :

pip install -r requirements.txt

Download Tensorflow models

Download the faster_rcnn_inception_resnet_v2_atrous_coco model from Tensorflow by clicking here. Just download all the models you want to try out, put them in the models folder and unzip them. For example :

tar -xvzf faster_rcnn_inception_v2_coco_2018_01_28.tar.gz

Run project

Calibrate

Run

python calibrate_with_mouse.py

You will be asked as input the name of the video and the size of the frame you want to work with. Note : It is important to start with the top right corner, than the bottom right, then bottom left, than end by top left corner ! You can add any video to the video folder and work with that.

Start social distancing detection

Run

python social_distanciation_video_detection.py

You will be asked as inputs :

  • The tensorflow model you want to use. Enter digit from shown options.
  • The name of the video. Enter digit from shown options.
  • The distance (in pixels between 2 persons).

Outputs

Both video outputs (normal frame and bird eye view) will be stored in the outputs file.

About

Submission: CityHack 2021 - A Computer Vision model to safeguard public safety by implementing social distancing during COVID 19

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages