Illumination and model-based detection of finishing defects