Text this: Image processing of edge and surface defects