Then take a photo using takePhoto() or getPhoto() method and you can use opencast to do the face recognition.