An automated scanner inspects the pantograph of a passing train. The inspection is done to prevent worn or damaged pantographs from tearing down the catenary line.