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 YOLO-v3 and SSD, based on the performance of each model, we have chosen YOLO-v3 as our default model

All our pretrained models are selected 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
import mxnet as mx
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.7.tar.gz (17.1 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.7-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for SDD-0.2.2.7.tar.gz
Algorithm Hash digest
SHA256 500bafda67bb5127a5c15abe109d0bf3aedec3cc1fbfa7efd98bea071ecd110c
MD5 370ce68a4281e2f9fbf148dd2a9d3485
BLAKE2b-256 ef0a8887c06c8a4720bdf562c09d16e0d54857721e73e338a12aa763882c0178

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for SDD-0.2.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c87a532015d8532e3d559157148abb95e15b7dc92509b13b8de4de3c418a4111
MD5 8f1f3103aa881604fbe2f3b2910aa512
BLAKE2b-256 95156a22ced6dc5fa6f561e9c11d25466bfaf9a36089790cf268f93c690e4f45

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