1adrianb / 1adrianb/face-alignment
Detect eye blink?
- Langage dominant
- Python
- Étoiles
- 7.5k
- Forks
- 1.4k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Are the ret landmarks suitable to compute EAR?
more see https://pyimagesearch.com/2017/04/24/eye-blink-detection-opencv-python-dlib/
def eye_aspect_ratio(eye):
# compute the euclidean distances between the two sets of
# vertical eye landmarks (x, y)-coordinates
A = dist.euclidean(eye[1], eye[5])
B = dist.euclidean(eye[2], eye[4])
# compute the euclidean distance between the horizontal
# eye landmark (x, y)-coordinates
C = dist.euclidean(eye[0], eye[3])
# compute the eye aspect ratio
ear = (A + B) / (2.0 * C)
# return the eye aspect ratio
return ear
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
The issue asks if the library's facial landmarks (likely from the 'ret' model) are suitable for computing the Eye Aspect Ratio (EAR) for blink detection. First, examine the landmark indices and coordinate output in the face-alignment library's documentation or source code (e.g., in face_alignment/api.py or face_alignment/models.py). Compare the landmark ordering to the dlib model used in the linked article. Then, write a small script to extract eye landmarks from a test image and compute EAR to verify suitability. The goal is to confirm whether the existing landmarks can be directly used for blink detection or if preprocessing is needed.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- opencv, python, pytorch
- Domaine
- computer-vision
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100