Title: The detection of defects in automated visual inspection