After the painting process of synthetic parts, they are subjected to a fully automatic surface inspection by a shape-from-shading system before further processing. This method allows the smallest surface defects such as paint pimples, scratches, inclusions, lint or other raised or recessed defects to be reliably detected. For this, our system uses eight lighting directions with eight partial images, which are offset by Shape from Shading to form a height map of the surface.