Defect Detection using OpenCV
Dear Members,
I am trying to detect defect in image by comparing defected image with original one. I have achieved it so far using canny algorithm.
Now i have to fill color to defected area after applying canny algorithm to it.
Kindly let me know for the same.
Thanks in advance.
please show us, what you tried, code, images ...
Hi Berak,
I am attaching code:
im: original image without defect im1: with defect (A scratch on image)
problem what i am facing is i am not able to get rectangle shape on defected areas.
Images ... my guess is your contours are not closed hence incorrect bounding rects
Hi Steven,