-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,41 @@ | ||
# deepface | ||
Face recognition application using DeepFace | ||
|
||
## DeepFace | ||
|
||
- **Face Verification**: The task of face verification refers to comparing a face with another to verify if it is a match or not. Hence, face verification is commonly used to compare a candidate’s face to another. This can be used to confirm that a physical face matches the one in an ID document. | ||
- **Face Recognition**: The task refers to finding a face in an image database. Performing face recognition requires running face verification many times. | ||
- **Facial Attribute Analysis**: The task of facial attribute analysis refers to describing the visual properties of face images. Accordingly, facial attributes analysis is used to extract attributes such as age, gender classification, emotion analysis, or race/ethnicity prediction. | ||
- **Real-Time Face Analysis**: This feature includes testing face recognition and facial attribute analysis with the real-time video feed of your webcam. | ||
|
||
Install the DeepFace package | ||
|
||
```shell | ||
#Repo: https://github.com/serengil/deepface | ||
pip install deepface | ||
``` | ||
|
||
Import the library | ||
|
||
```python | ||
from deepface import DeepFace | ||
``` | ||
|
||
Run Face Verification with Deep Learning on DeepFace | ||
|
||
```python | ||
verification = DeepFace.verify(img1_path = "img1.jpg", img2_path = "img2.jpg") | ||
``` | ||
|
||
## Photos | ||
Photo by Fresh Tr: https://www.pexels.com/photo/little-asian-girl-posing-in-park-19078969/ | ||
|
||
Photo by Fresh Tr: https://www.pexels.com/photo/portrait-of-a-girl-in-a-white-blouse-19078970/ | ||
|
||
Photo by Fresh Tr: https://www.pexels.com/photo/little-asian-girl-sitting-near-green-tree-19078973/ | ||
|
||
Photo by Toàn Đỗ Công: https://www.pexels.com/photo/a-young-man-standing-by-the-souvenir-store-23109894/ | ||
|
||
Photo by Toàn Đỗ Công: https://www.pexels.com/photo/a-young-couple-standing-on-a-sidewalk-in-a-city-23109901/ | ||
|
||
Photo by Toàn Đỗ Công: https://www.pexels.com/photo/photo-of-a-young-man-wearing-a-black-tank-top-and-glasses-standing-against-the-sea-22129916/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from deepface import DeepFace | ||
|
||
verification = DeepFace.verify( | ||
img1_path = "photo/pexels-fr3sh-19078970.jpg", | ||
img2_path = "photo/pexels-fr3sh-19078969.jpg" | ||
) |