An approach to image analysis is described consisting of five stages: edge detection, thresholding, linking, shape description and shape abstraction. The approach is illustrated by applying the steps to the problem of automatic inspection.