Writing a code using java language to use OpenCV library to do the following
1 – detect the face of person using a USB camera (facial recognition) and keep tracking it.
2 – detect the eyes also.
3 – show a warning message and sound an alarm (through speakers) if the face is not looking forward or the eyes are closed for a period (5 seconds) and if the eyes are blinking more than normal.
4 – stop the alarm and remove the warning message if the face is detected again and the eyes are open.
5 – putting comments on every major function and methods explaining its use and brief description.
6 – proof of working.