Automatically detect faces and compares them with an existing database