Correctly identifying the road area on an image is a crucial task for many traffic analyses based on surveillance cameras and computer vision. Despite that, most of the systems do not provide this functionality in an automatic fashion; instead, the road area needs to be annotated by tedious and inefficient manual processes. This situation results in further inconveniences when one deals with a lot of cameras, demanding considerable effort to setup the system. Besides, since traffic analysis is an outdoor activity, cameras are exposed to disturbances due to natural events (e.g., wind, rain and bird strikes), which may require recurrent system reconfiguration.
Check out this background subtraction library at Github