pretty much just copying the face recognizer script from the opencv demo