In this M.Sc. Thesis work it is examined if, with computerised image analysis, it is possible to automatically decide whether a pantograph is damaged and in need of maintenance. This problem arises in an automatic image analysis system which generates images of trains. In the worst case a damaged pantograph will tear down the contact wire, which is very costly. The thesis work is a part of a project with the purpose to limit the number of torn down contact wires. The report describes a method of doing this and the stability of an implementation of the method. In the segmentation of the contact shoe, a model-based method which matches a template of the part of the pantograph which is of interest is used. The segmentation accuracy is high. The analysis of the contact shoe uses the mean intensity of disjunct regions of the contact shoe. For a reliable analysis of the contact shoe, a more powerful method is needed.