Added facial detection so that it only looks for movements within a region where a face was detected.
The file haarcascade.xml can be replaced with one of these or a custom cascade classifier for better performance.
The file haarcascade.xml can be replaced with one of these or a custom cascade classifier for better performance.