I have modified this ( https://github.com/ankitaggarwal011/FaceGrab ) for Deep Learning specific tasks, where you need images of people face. The two conditions I have set is that the grabbed image should contain face and should have a resolution more than 400x400