Shadow detection algorithms for traffic flow analysis: a comparative study