The visual inspection of many industrial products is based on contour analysis. The main task is the detection of defects like cracks and chips. The automation of this visual inspection procedure requires robust and flexible systems and algorithms. This paper describes new contour analysis algorithms for defect detection. Innovative techniques for contour filtering and analysis (e.g. scale-space analysis) will be presented. The performance of different approaches is shown by several industrial examples and applications.