I want camera to focus only on object or face using haar-classifiers (ex: face classifier or smile classifiers) remaining part of the image must be hidden or kind of blurred. I created haar classifiers for smile detection.
I want to focus only on face for my project to detect yawning.
skin color extraction using YCrCb color channel which will return you skin and you can eliminated background. See this http://spottrlabs.blogspot.in/2012/01/super-simple-skin-detector-in-opencv.html https://www.youtube.com/watch?v=vZk9k9azonw