Skip to main content

SocialDistance

Keep safe social distance is considered as an effective way of avoiding spreading of coronavirus. Our SocialDistance module is a lightweight package which provides an implementation of utlizing deep learning models for monitoring safe social distance.

Demo

Watch the demo video

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

Metadata

Release files for SDDetector 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SDDetector 0.1.0
File Size Uploaded
SDDetector-0.1.0.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for SDDetector 0.1.0
File Interpreter ABI Platform
SDDetector-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / SDDetector-0.1.0.tar.gz

Download URL SDDetector-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
54dae1b2f254dd328560f06d15bff7b8c98b583399825b3059e9fc44ea522b51
BLAKE2b-256 checksum
How to use checksums
44bee7322baf12648c75b89c73aa78589e5de994beef8f048e09e03d16140a06
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / SDDetector-0.1.0-py3-none-any.whl

Download URL SDDetector-0.1.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afc8d44565d7f702d487cc5fa6083adf8181d002aaac23d9f7d61a16b03a2856
BLAKE2b-256 checksum
How to use checksums
a57c268c12b9145463c6606eb83107bd9caaa70362b221354412826a693c166b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page