Detect face mask in an Image
Project description
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)
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file face-mask-classifier-1.4.tar.gz.
File metadata
- Download URL: face-mask-classifier-1.4.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e476327ff6637429de742ab08507e8c4aee532cadc52c1f19d7e1ce26524d04
|
|
| MD5 |
727f72369657803a39306397688a9cdd
|
|
| BLAKE2b-256 |
37ce30b181f55b6c736e5e26334427de19153d86c10acceb798d999c020cb2f3
|
File details
Details for the file face_mask_classifier-1.4-py3-none-any.whl.
File metadata
- Download URL: face_mask_classifier-1.4-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da2210a6677859fdbc812c9aeb271dcdd2d2f9799d83199b85de0a3d0ef2ae3f
|
|
| MD5 |
f76c45f39db900c61c869942296fa742
|
|
| BLAKE2b-256 |
8d4a82bb210dd0a4285e03d634bd7bf9dc84d775022e9e748016cd3128563058
|