1adrianb / 1adrianb/face-alignment

Detect eye blink?

Aperta
#345 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
7.5k
Fork
1.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
opencv, python, pytorch
Ambito
computer-vision
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.