Robust and efficient background subtraction by quadratic polynomial fitting