Object detection and tracking in time-varying and badly illuminated outdoor environments