Update README.md

less lines in snippets
This commit is contained in:
Sefik Ilkin Serengil 2025-03-12 13:10:12 +00:00 committed by GitHub
parent 40b28aab22
commit e18e0e49d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,20 +107,11 @@ DeepFace is a **hybrid** face recognition package. It currently wraps many **sta
```python
models = [
"VGG-Face",
"Facenet",
"Facenet512",
"OpenFace",
"DeepFace",
"DeepID",
"ArcFace",
"Dlib",
"SFace",
"GhostFaceNet",
"Buffalo_L"
"VGG-Face", "Facenet", "Facenet512", "OpenFace", "DeepFace",
"DeepID", "ArcFace", "Dlib", "SFace", "GhostFaceNet",
"Buffalo_L",
]
#face verification
result = DeepFace.verify(img1_path = "img1.jpg", img2_path = "img2.jpg", model_name = models[0])
@ -193,19 +184,9 @@ All deepface functions accept optional detector backend and align input argument
```python
backends = [
'opencv',
'ssd',
'dlib',
'mtcnn',
'fastmtcnn',
'retinaface',
'mediapipe',
'yolov8',
'yolov11s',
'yolov11n',
'yolov11m',
'yunet',
'centerface',
'opencv', 'ssd', 'dlib', 'mtcnn', 'fastmtcnn',
'retinaface', 'mediapipe', 'yolov8', 'yolov11s',
'yolov11n', 'yolov11m', 'yunet', 'centerface',
]
detector = backends[3]