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 SDD 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 SDD

How to Use

After Successfully installed SocialDistance, you can use it for detection by:

import SDD
from SDD.utils.Run import Detect
detect = Detect(pretrained_models = 'yolo_v3')
detector = detect(save_path = output_path_image, video = False, device = mx.cpu())
_ = detector(file_path)

Parameters

  • pretrained_models: str, Currently, we provided two pretrained models: 'yolo_v3' and 'ssd'
  • save_path: str, Path where you want to save the output video/ images
  • video: boolean, If your input is a video, set this parameter as True, if your input is a set of images, set this parameter as False
  • device: mx.cpu() or mx.gpu()
  • file_path: str, Input path of your video or image folder

Reference

  1. 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


Download files

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

Source Distribution

SDD-0.2.2.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

SDD-0.2.2.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file SDD-0.2.2.1.tar.gz.

File metadata

  • Download URL: SDD-0.2.2.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1

File hashes

Hashes for SDD-0.2.2.1.tar.gz
Algorithm Hash digest
SHA256 62c461b1edcc40da3d77a46d166e9763a7f72815cc0caa90d7a091eb3e380246
MD5 6f52bb25a053535f905a684bdb339904
BLAKE2b-256 7f615782c6c566aa408f8b6cd4859ad48a073ae81c51aa8b3bf734e3dfaeacdf

See more details on using hashes here.

File details

Details for the file SDD-0.2.2.1-py3-none-any.whl.

File metadata

  • Download URL: SDD-0.2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1

File hashes

Hashes for SDD-0.2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2c025365576d5355f2a83ed60ecc0c92eadf138325789cefeadb3b675d5c002
MD5 532cd4479f185d8084db7b2305ab1c73
BLAKE2b-256 7af5b50a749bc558928fd0746b255b1918dff6ac9eb6959a0101c6000cc39d03

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