Apparatus, including a camera which has an objective lens configured to focus light from an object, and an imaging array configured to receive the focused light and in response thereto, to output a signal representative of an image of the object. The apparatus further includes a multiplicity of illuminators arrayed around the objective lens and configured to illuminate the object, and a processor which is coupled to differentially adjust respective light intensities emitted by the illuminators responsively to the signal.