Possibility on defect detection.
Hello, I'm working on a project where I need to find minor defects and report if it is defected.
Here are pictures of good and bad samples. Please note that these images are a result of post thresolding stage. Ie, noice removal and all pre-processing has been done. Gray outline that you see is convexHull curve for the contour (object).
Good sample
Bad sample (defect at top left corner)
Things I've tried till now.
- Histogram matching of thresolded images.
- Contour area and minAreaRect area comparing.
However, each of this method works on a particular defect but not all.
Any suggestions / tips for better results ?
if the defects that you have to detect is always something like what appears in the second image you can check about the convexity defects functionality provided by the opencv library.
@theodore Not necessarily. Sometimes, defects are so minor / major that convexity defects can not be used to measure it. I will try to add some more images just to give you more hints on defect types.