Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwhovian/blink-detection
Eye blink detection with OpenCV and dlib implemented in Python
https://github.com/nwhovian/blink-detection
blink-detection dlib-face-detection opencv python
Last synced: 2 days ago
JSON representation
Eye blink detection with OpenCV and dlib implemented in Python
- Host: GitHub
- URL: https://github.com/nwhovian/blink-detection
- Owner: nWhovian
- Created: 2020-04-21T18:15:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T01:48:39.000Z (over 2 years ago)
- Last Synced: 2023-03-03T08:45:48.941Z (over 1 year ago)
- Topics: blink-detection, dlib-face-detection, opencv, python
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation guide
## I. Local installation
1. Clone repository:
```
git clone https://github.com/nWhovian/blink-detection.git
```
2. Move to the cloned folder and install requirements:
```
cd path/to/blink-detection
pip install -r requirements.txt
```
3. Download the dlib’s pre-trained facial landmark detector
```
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=17YdgpbtvxWvPhRHIkuSwjlp9nFSBKv3M' -O shape_predictor_68_face_landmarks.dat
```
4. (optional) You can download a video with my face and use it for testing
```
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=12gbn8y0qt1aIFOw9R8lmVX2LBPCuinJB' -O video.mp4
```
5. Run the script with video file argument
```
python ./blink_detection.py --shape-predictor shape_predictor_68_face_landmarks.dat --video -path/to/video
```
or with web camera streaming
```
python ./blink_detection.py --shape-predictor shape_predictor_68_face_landmarks.dat
```
You can see the video examples of blink detection using here:
```
https://drive.google.com/file/d/1XwlD3P_TnJui66ysGpBa7b7Zet6SUYea/
```