State Diagram For Face Recognition