---
description: >-
  Reference :
  https://www.pyimagesearch.com/2017/04/24/eye-blink-detection-opencv-python-dlib/
---

# Real-time eye blink detection using facial landmarks

## The Objectives of a project

Using a webcam, we will get real-time video. so, I will detect and count eye blink with real-time video.&#x20;

#### \<result>

<div align="left"><img src="https://3145865572-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MWS9GJNGS8qhQK5QahB%2F-MWXfXEdkMf8vAN0gDpU%2F-MWXhVf0BYSfsiaBz_Zj%2FIMG_0359.gif?alt=media&#x26;token=4c006ec0-d363-48a6-a849-31d0abede2d3" alt="execution result gif. when i blink eyes, count up ."></div>

### Knowledge to be used

1. We use a research result how changes in the ratio of the eyes when they blink.&#x20;
2. we need to use Opencv for detecting facial landmarks
3. we need to install dlib, imutils, .... packages to activity
4. we use model "shape\_predictor\_68\_face\_landmarks.dat"

> shape\__predictor\__&#x36;8\_face\_landmarks.dat" : Get 68 Face Landmarks Data

&#x20;

### The Order of study...

1. what is dlib, imutils? (+how to install)
2. Real\_time facial-landmarks-dlib-opencv-python
3. introduce how to detect eye blink by "real-time eye blink detection using facial landmarks"
4. eye-blink-detection-opencv-dlib

