Face Mask detection
Face_mask is a fast mask detection classifier that utilizes pytorch
Try and start with
pip install facemask
download the pretrained model from BaiDu, password: fq1s
import facemask model = facemask.FaceMaskDetector(modelpath) model.detect_image_show(image_path) # or just return the detect results bboxs = model.model(image_path) # bbox_coordinate, confidence, label
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.