The switch SW2 is controlled so that when the object is mainly or totally occluded it is in the position shown in the drawing, while if the object is not, or is only partially occluded, it adopts the second position to select the output of the Kalman filter.