A visual approach for driver inattention detection