Tracking Vehicles in Image Sequence for Avoiding Obstacles