Skip to main content

lightweight video detection

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SocialDistanceDetect-0.1.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SocialDistanceDetect-0.1.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file SocialDistanceDetect-0.1.3.tar.gz.

File metadata

  • Download URL: SocialDistanceDetect-0.1.3.tar.gz
  • Upload date:
  • Size: 5.7 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

Hashes for SocialDistanceDetect-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1bb2e88e02a2ed04b03adb03157403dc94b0848777eb8e7caa8ec8bdb5b7d1ee
MD5 d4472e3eb97e0f5556dbb5a3beca19c2
BLAKE2b-256 f42ad74a517a1c14e294d3cc7f6afe9b34686ee88e2b88767fff53ae19602a2d

See more details on using hashes here.

File details

Details for the file SocialDistanceDetect-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: SocialDistanceDetect-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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

Hashes for SocialDistanceDetect-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 61b6f303237d7726784975401f030b74830cd48c0d226b96c7341423a43e920d
MD5 afa07c8f08a5fa9543b103640c2a73c9
BLAKE2b-256 2d9be771cb7d9dbb6f192c4fdf446eab0e1c7aabec4def400d1f636eb8e3ba64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page