Adaptive gaze control for object detection