Detect face before sending them to traing and recognization