Skip to content

Commit

Permalink
[draft]
Browse files Browse the repository at this point in the history
  • Loading branch information
tankvn committed Jul 28, 2024
1 parent aa892d0 commit 827193f
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
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/
Binary file added photo/pexels-fr3sh-19078969.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added photo/pexels-fr3sh-19078970.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added photo/pexels-fr3sh-19078973.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added photo/pexels-toan-d-cong-680842095-22129916.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added photo/pexels-toan-d-cong-680842095-23109894.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added photo/pexels-toan-d-cong-680842095-23109901.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions verify.py
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"
)

0 comments on commit 827193f

Please sign in to comment.