Skip to main content

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    

Release files for mask-recognition 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mask-recognition 0.0.1
File Interpreter ABI Platform
mask_recognition-0.0.1-py3-none-any.whl Python 3 none any Details

Release files / mask_recognition-0.0.1-py3-none-any.whl

Download URL mask_recognition-0.0.1-py3-none-any.whl
Size 27.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
01803225e3b61255bc498f823ebc133a2b39aad0b4fb0a38e56c782f0a4669f7
BLAKE2b-256 checksum
How to use checksums
84e4b9909747c9e5afb4478f645446f70f2f185a6721f9d4de5653585baaca8e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page