Preferably, the number of frames used in this averaging is controlled by the user, within specified limits, so that the user can affect the smoothness and speed of the tracking.
When the position of the tracked face moves more than a predetermined displacement threshold from the average position, this averaging is reset.