A camera system that can be utilized in robotic surgery is presented. In particular, a method of setting a light level in a camera in a robotic system includes determining a location of at least one instrument end effectors within a field-of-view of the camera determining a region-of-interest in the field-of-view based on the location of the at least one instrument tip gathering luminance statistics in the region-of-interest computing a luminance value from the luminance statistics and adjusting an exposure in response to a comparison of the luminance value with a target luminance value.