Recognition of vehicle or traffic lights