The presence check function adds up the pixels (pixel) of a reference object, on the basis of which it generates a threshold value. If the sum of the pixels of a subsequently inspected object exceeds the threshold value, the object is registered as present, and vice versa.