Skip to main content

It recognize the face mask on human on the image

Project description

Project Description

Face Mask Recognition using PyTorch.

It creates a bounding box around the face of the person present in the image and put a text
at the top of the bounding box shows probability of mask on the face.

Install:

pip install mask_recognition

Requirements:

pytorch >= 1.2.0

torchvision >= 0.3.0

Usage:

from mask_recognition import MaskRecognition

import cv2 as cv

mr = MaskRecognition(device=0)  # -1 for cpu, 0 for gpu

frame = mr.recognize(frame, color="rgb")    # color="bgr" for BGR color scheme. frame is the RGB image.

########################## To use webcam ##########################

mr.cam_capture(device_id=0)     # 0 for default or 1, 2, 3, if more than one webcam

## press esc to stop    

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mask_recognition-0.0.1-py3-none-any.whl (27.7 MB view details)

Uploaded Python 3

File details

Details for the file mask_recognition-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mask_recognition-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 27.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.2.0.post20200511 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6

File hashes

Hashes for mask_recognition-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01803225e3b61255bc498f823ebc133a2b39aad0b4fb0a38e56c782f0a4669f7
MD5 6a8d14dbd912a18964c537b56ec5f182
BLAKE2b-256 84e4b9909747c9e5afb4478f645446f70f2f185a6721f9d4de5653585baaca8e

See more details on using hashes here.

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