A controller (100) for an automated
milking apparatus (110) acquires an animal's identifier (ID1). Based on the identifier (ID1), the controller (100) retrieves an
exposure setting (ID1:xs1) from a data storage (120) selected to capture image data (D) of at least one body part (131, 132, 133, 134) of the animal whose unique identity is reflected by the identifier (ID1).
img Using the stored
exposure settings (ID1:xs1), the camera (140) captures image data (D) representing at least one body part (131,132,133,134).
img The controller (100) is based on image data (D).
img The camera (140) uses the
exposure settings (ID1:xs1) from the data storage (120) to register image data (D). img At least one first frame of the image data (D). img If at least one
region of interest in the image does not meet the
image quality standard, the exposure setting (ID1:xs1) for the animal whose unique identity is reflected by the identifier (ID1) is adjusted (ID1:xs1') and stored in the data storage (120) to replace the previously stored exposure setting (ID1:xs1).