Automatic Detection of Railway Track Obstacles using a Monocular Camera