In a system for protecting vehicles and pedestrians moving through a railroad crossing from being struck from an oncoming train, said system including a barrier positioned to block vehicle and pedestrian movement when the train approaches to within a predetermined distance of the crossing, the improvement comprising apparatus for viewing the crossing, detecting the presence of vehicles, pedestrian