Hello, As a part of a project, based on a reference image like this one image: (acceptable object quality) I need to be able to detect possible defects on other images. These may be some big bumps on the flat surface, or broken rims/edges on the circular parts or ''teeth''.
Since I know what an acceptable state is, my first attemt was to combine edge detection and template matching on specific ROIs and not on the whole image. Though I haven't tested Haussdorf distance as mentioned on another post, using opencv's matchTemplate isn't giving so good results.
To sum up, for a 'generic' approach to such a problem, Haussdorf distance is my only hope? If this doesn't work, the next step is to examine every 'feature'(ROI, cicles or teeth) individually with something like shape signature methods, that i have read in bibliography?
Sorry for being so general but don't know how to tackle such a problem