Skip to content

mflis/head-pointer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

head-pointer

Mouse pointer movement driven by head movement, mouse clicks simulated by eyes' blinks.

Installation

How to run

python video_facial_landmarks.py -p shape_predictor_68_face_landmarks.dat

where shape_predictor_68_face_landmarks.dat is a file containing dlib's pre-trained facial landmarsk detector. It can be downloaded from a tutorial linked below.

Overview

For the first ~6 seconds, keep your head still in the same position - that's when the initial position of your head is calculated, and head movements will be detected relative to this position. To move the mouse pointer, slightly move your head in a desired direction. To simulate mouse click, blink for about 1.5 seconds.

We used Eye blink detection with OpenCV, Python and dlib tutorial for blink detection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages