The final pitfall was in illumination conditions, which are also
important for identification and segmentation of the images. On
the one hand, overly bright illumination could prevent accurate
identification since contrast of the dark paint patterns on a bright
pig skin could decrease. On the other hand, however, a dim illumination
could make pig segmentation against dark backgrounds
more difficult. In the experiments of this work, it was found that
a range of light intensity of 40–150 lux would be optimal.