Cameras are employed to see what the train engineers see. They are essential, for example, in determining what the facts of a grade crossing accident are: Were the gates operating and did the vehicle go around them, did the engineer blow the horn, did he apply the brakes, etc.? There is no viewing screen; they simply record to be downloaded later as necessary.
They are probably IR cameras for night viewing too... Train tracks are not usually well lit.
Thanks. So at 2:30am, the engineer would have a hard time seeing someone passed out on the tracks.