Skip to main content

A library and tool for detecting face masks in images and video streams

Project description

face-mask-detector

Example Image

PyPI - License contributions welcome

A library and tool for detecting face masks in images and video streams

Installation

To install face-mask-detector from source, clone this repository and run the following in the project root directory:

pip install -e '.[dev]'

As always, the usage of a python virtual environments is recommended for a development setup.

Quick Start

All commands are expected to be run in the project root directory.

To detect face masks in a image, run:

python scripts/detect_face_mask_in_image.py --image path/to/image

To start your webcam and detect face masks in the video stream, run:

python scripts/detect_face_masks_in_webcam_video_stream.py

To train the face-mask-detector model, run:

make model

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

face-mask-detector-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

face_mask_detector-0.1.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

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