Abstract: using dlib, cuda and OpenCV to detect blinks
Environment: Windows 10, Python 3.7, dlib 19.17, cuda 10.0
How to configure the environment?
-
configure OpenCV in Python
https://blog.csdn.net/weixin_35684521/article/details/81953047
-
configure dilb and cuda in Python
How to run this project?
-
Download "model_part1.rar", "model_part2.rar" and "model_part3.rar" and decompress them into the path of your python project.
-
Run "blink detection.py"
Special Notice: If you use Pycharm to build your Python project, you need to press "ctrl+alt+s" and add and install the proper library. Then the "import" sentence can be compiled.
The result of this project is like this:
