1. A method for controlling a camera to perform a selected task from a set of tasks, the method comprising: determining a viewing condition of the camera to perform each task from the set of tasks; determining a posterior probability of task success for each task from the set of tasks based on the determined viewing conditions and a prior probability of task success for each task; determining a change in rate of information gain for task success for each task from the set of tasks based on the posterior probability; selecting the task to be performed based on the change in rate of information gain; and controlling the camera to perform the selected task.