Hello! In this video, I show you how to make an eye tracker in Python with OpenCV and DLib and use that to control your computer with Pyautogui. I hope to provide some insight into the computer vision processes involved with isolating and finding the center of the iris and how to calibrate that to on-screen coordinates. I originally submitted this (along with some other features like voice commands) to HooHacks 2020 with my friends Suhas Nandiraju and Autin Mitra, which we ended up winning.
I used Python 3.8 for this
Required libraries:
OpenCV
DLib
Pyautogui
DLib landmark detection model:
https://github.com/davisking/dlib-mod...
Final code:
https://gist.github.com/myfatemi04/be...
コメント