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
Release history Release notifications | RSS feed
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
Close
Hashes for mask_recognition-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01803225e3b61255bc498f823ebc133a2b39aad0b4fb0a38e56c782f0a4669f7 |
|
MD5 | 6a8d14dbd912a18964c537b56ec5f182 |
|
BLAKE2b-256 | 84e4b9909747c9e5afb4478f645446f70f2f185a6721f9d4de5653585baaca8e |