But one has to put some subsequent effort in using the code. It gives you all the face candidates that are detected by the Viola-Jones algorithm. But to be able to use these candidates for further programming one has to think about how to group the candidates and just keep those rectangles that overlap each other.
And this is not an easy part... at least for me by now... :D
@Hong - you would need to know the exact pixel position vector of the external application and then you could use ScreenCapture on it from within Matlab. I do not know of an easy way to programmatically get the position vector for an external process, but I assume that it's possible - you'll need to search online for a solution I'm afraid.
Excellent job, thank you so much!
However, since I am not very familiar with matlab, I would like to ask how can I screencapture an area in other application, for example Chrome, such that I can keep monitoring the application and response to it in later stages? Thank you so much!