By Aniket Dalvi
Using Open CV library of python we will use it to detect the one of the eye moment i.e Blinking of eye.
Algorithm used in programming:
1. The Frame is captured and converted to grayscale 2
2. Filters are applied to remove any impurities
3. Haarcascade detects the face
4. Region of Image i.e ROI of face is fed to eye detection
5. Eyes are detected and list is passed to if-else block
6. If length of list is greater than two that means eyes are detected
7. Else the program is marked to eye blinked and restarted
The Haarcascade files are included in the zip file!
Please make sure thar openCV Python library is installed in the system before running the program!
Submitted by Aniket Dalvi (aniketdalvi89)
Download packets of source code on Coders Packet
Comments