Understanding background subtraction