ear_blink_detection

Detectar parpadeo natural midiendo Eye Aspect Ratio (EAR) frame a frame con landmarks faciales

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ear_blink_detection" with this command: npx skills add davidcastagnetoa/skills/davidcastagnetoa-skills-ear-blink-detection

ear_blink_detection

El Eye Aspect Ratio (EAR) mide la apertura del ojo usando 6 landmarks faciales. Un parpadeo natural produce una caída rápida y recuperación del EAR. Las fotos no parpadean.

When to use

Usar como challenge principal de liveness activo: solicitar al usuario que parpadee 2 veces en 5 segundos.

Instructions

  1. Extraer landmarks del ojo usando MediaPipe Face Mesh.
  2. Para el ojo izquierdo usar landmarks: [33, 160, 158, 133, 153, 144].
  3. Calcular EAR: EAR = (||p2-p6|| + ||p3-p5||) / (2 * ||p1-p4||).
  4. Umbral de parpadeo: EAR_THRESHOLD = 0.25 (ojo cerrado si EAR < threshold).
  5. Detectar secuencia: EAR normal → cae por debajo del umbral → recupera → cuenta como 1 parpadeo.
  6. Requerir mínimo 2 parpadeos en ventana de 5 segundos.
  7. Validar velocidad del parpadeo: un parpadeo natural dura 150-400ms; más rápido o más lento es sospechoso.

Notes

  • Fórmula original: Soukupová & Čech (2016) "Real-Time Eye Blink Detection using Facial Landmarks".
  • EAR_THRESHOLD puede necesitar calibración por etnia/edad; considerar threshold adaptativo.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

c4_model_structurizr

No summary provided by upstream source.

Repository SourceNeeds Review
General

fastapi

No summary provided by upstream source.

Repository SourceNeeds Review
General

exif_metadata_analyzer

No summary provided by upstream source.

Repository SourceNeeds Review
General

api_key_management

No summary provided by upstream source.

Repository SourceNeeds Review