Face In
Sign in system with face recognition Based on code from https://github.com/serengil/deepface
Urs Utzinger, 2022
Requisits
pip3 install deepface
pip3 install camera-util
Create folder database and place images of known faces into them. Supports .jpg files.
Supports multiple images for same person, in database/First_Last/First_Last001.jpg
Configuration
detector_backend = "retinaface" # opencv*, ssd, mtcnn, dlib, retinaface
freeze_time = 5 # how will the results be displayed
frame_threshold = 5 # how many frames required to focus on a face, 5*
minimum_face_width = 180 # filter out small faces, depends on camera
model_name = "ArcFace" # VGG-Face*, Facenet, OpenFace, DeepFace, DeepID, Dlib, ArcFace or Ensemble
distance_metric = "cosine" # cosine*, euclidean, euclidean_l2
datafile = "./database/bme210_2022Spring.dat"
db_path = "./database" # Folder for .jpg files of known faces
Performance
| Detector | Example exection time in ms | Works w glasses | Works w obstruction | Works w facemask |
|---|---|---|---|---|
| Retinaface | 172-233 | yes | yes | yes |
| OpenCV | 40-56 | no | no | no |
| SSD | 19-30 | yes | yes | no |
| MTCNN | 873-1029 | yes | yes | no |
| DLIB | 346-352 | yes | no | no |
| Model | Example exection time in ms | Works w glasses | Works w obstruction | Works w facemask |
|---|---|---|---|---|
| ArcFace | ||||
| VGG-Face | ||||
| FaceNet | ||||
| OpenFace | ||||
| DeepID |
Metadata
Release files for FaceIn 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| FaceIn-1.0.1.tar.gz | 17.5 kB | Without provenance | Details for FaceIn-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| FaceIn-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for FaceIn-1.0.1-py2.py3-none-any.whl |
Total release size: 38.8 kB
Release files / FaceIn-1.0.1.tar.gz
| Download URL | FaceIn-1.0.1.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be8e8b6baf1be66930bb6c965b374d6bb806617ade6f464836e6650071ccb1fd
|
|
BLAKE2b-256 checksum How to use checksums |
909687281ab9a429d5570bc6a4765762ea562779f2703e959d0693e7e4905332
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / FaceIn-1.0.1-py2.py3-none-any.whl
| Download URL | FaceIn-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
22087d4a99dec7e1c68d13d71282dd30f819d6b2287fc038560664c8b5b39d16
|
|
BLAKE2b-256 checksum How to use checksums |
aa32eda43e23d4eaf2123de40d5f99c807cf564918d49b6a523ada0e6c49651d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for FaceIn 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.