face-mask-classifier-1.4
توضیحات
Detect face mask in an Image
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | face-mask-classifier-1.4 |
| نام | face-mask-classifier |
| نسخه کتابخانه | 1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Baskaran Thulukanam |
| ایمیل نویسنده | baskar.mailbox@gmail.com |
| آدرس صفحه اصلی | https://github.com/Baskar-t/face-mask-classifier |
| آدرس اینترنتی | https://pypi.org/project/face-mask-classifier/ |
| مجوز | MIT |
SVM facemask classifier
Pretrained Model used:
Keras-facenet model ()
This model is used to detect the faces in a image and create a embedding vector of the faces which would be passed to a SVM classifier.
The embedding vector is of dimension 512.
Download the SVM pretrained model https://github.com/Baskar-t/face-mask-classifier/tree/main/models
Class mask_predictor
#### image - path of the image file to predict the mask
#### pretrained path of the SVM model
def pred_mask(image,svm_model_path)
......
return img, box_list, label_list, proba_list
#### img - image vector
#### box list - list of image box of faces
#### label_list - list of labels for the predicted face images (Mask , No Mask)
#### proba_list - list of probability of predicted labels
Usage:
## mask_predictor.pred_mask(image path, path_svm_model)
نیازمندی
| مقدار | نام |
|---|---|
| ==2.4.3 | Keras |
| ==0.3.2 | keras-facenet |
| ==2.5.0 | tensorflow |
| ==0.24.2 | scikit-learn |
| ==0.1.0 | mtcnn |
| ==1.19.5 | numpy |
| ==4.61.1 | tqdm |
| ==8.2.0 | Pillow |
نحوه نصب
نصب پکیج whl face-mask-classifier-1.4:
pip install face-mask-classifier-1.4.whl
نصب پکیج tar.gz face-mask-classifier-1.4:
pip install face-mask-classifier-1.4.tar.gz