Ask Your Question

Revision history [back]

Help detecting small hole on tube

Hello, I am newish to openCV and trying to find a good method to detect a really small hole on a tube. I went to an image pixel website to find the values of the tube versus the hole colors so I know the threshold. I have thought about a few ways to do this but haven't been having food luck at detecting the hole by itself.

My general train of thought is to:

  • Load the image in
  • Gray scale it
  • Blur it for noise
  • Set a region to filter out the rest of the scene that is not the tube.

Then from here I have tried a few methods such at Hough, Canny, and contours but I can't seem to get a good setting on the tube hole itself. Please let me know if you're able to help. I am using python 3.5.3 and openCV 3.3 to try and do this.

Thanks!

C:\fakepath\tube1.jpg

click to hide/show revision 2
None

updated 2017-10-26 01:20:27 -0600

berak gravatar image

Help detecting small hole on tube

Hello, I am newish to openCV and trying to find a good method to detect a really small hole on a tube. I went to an image pixel website to find the values of the tube versus the hole colors so I know the threshold. I have thought about a few ways to do this but haven't been having food luck at detecting the hole by itself.

My general train of thought is to:

  • Load the image in
  • Gray scale it
  • Blur it for noise
  • Set a region to filter out the rest of the scene that is not the tube.

Then from here I have tried a few methods such at Hough, Canny, and contours but I can't seem to get a good setting on the tube hole itself. Please let me know if you're able to help. I am using python 3.5.3 and openCV 3.3 to try and do this.

Thanks!

C:\fakepath\tube1.jpgC:\fakepath\tube1.jpg