capture and detect the face without GUI