Accurate and efficient background subtraction by monotonic second-degree polynomial fitting