lightweight video detection
Project description
SocialDistance
Keep safe social distance is considered as an effective way of avoiding spreading of coronavirus. Our SocialDistance module SDD is a lightweight package which provides an implementation of utlizing deep learning models for monitoring safe social distance.
Demo
Dataset
We use the video clip collected from OXFORD TOWN CENTRE dataset and made the above demo video.
Supported Models
We have tested our model using Faster-RCNN, YOLO-v3 and SSD, based on the performance of each model, we have chosen YOLO-v3 as our default model
All our models are pretrained models from Gluno CV Tookit
Installation
You may be able to obtain the latest version our model from:
pip install -i https://test.pypi.org/simple/ SocialDistance==0.1
pip install gluoncv
pip install mxnet-cu101
Usage
After Successfully installed SocialDistance, you can use it for detection by:
from SocialDistance.utils.Run import Detect
detect = Detect()
#you may want to give an image as input to check the validity of bird-eye view transformation
detect(image)
If no arguments is given, our model will run using the default data collected from 'OXFORD TOWN CENTRE' dataset, otherwise you may want to specify arguments expicitly:
from SocialDistance.utils.Run import Detect
detect = Detect(video_path, video_save_path, keypoints, keypoints_birds_eye_view, actual_length, actual_width, pretrained_models)
#you may want to give an image as input to check the validity of bird-eye view transformation
detect(image)
Parameters
- video_path: input path of video
- video_save_path: output path of labelled video
- keypoints: selected key points from first frame of the input video
- keypoints_birds_eye_view: mapping location of keypoints on the bird-eye view image
- actual_length: actual length in real-world
- actual_width: actual width in real-world
- pretrained_models: selected pretrained models
Reference
- Landing AI 16 April 2020, Landing AI Creates an AI Tool to Help Customers Monitor Social Distancing in the Workplace, accessed 19 April 2020, https://landing.ai/landing-ai-creates-an-ai-tool-to-help-customers-monitor-social-distancing-in-the-workplace/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file SDDect-0.1.0.tar.gz
.
File metadata
- Download URL: SDDect-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b3aeba702b1f2a1ac8861ac7ad7e0d781af1fcddf08d4dde4f41bab401b79b1 |
|
MD5 | dfa3d38fd4267c25fcb8db1ff681a21b |
|
BLAKE2b-256 | 96496e376dd8b958661867e04888dad5e1b4d9054cc04175d6ec060a7f084f68 |
File details
Details for the file SDDect-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: SDDect-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4507ca7b38b49d607bd58d852b63405eaf8e69939021194f3e1e9bb374a34233 |
|
MD5 | 938eb3c8a63e8f751f5f2c42385db865 |
|
BLAKE2b-256 | 418a1cb9b10e8c2f8f0d37d8e32bdc34d6cf5fb806f7f807f4fd9d43ad8eea1e |