Statistics for Active Control of Camera Parameters and Algorithm Selection for Object Detection