Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Best method to detect number of holes in part?

I'm working on a project that takes a picture of a part (brass part with multiple holes in it, see link) and then I would like to use OpenCV 3.1 to locate and count the holes.

I'm pretty new to OpenCV and could use some pointers into which method I should look into for accomplishing this task. Ideally, the program would locate the circles and do the work for me (I've had little luck thus far; using finding contours and hough circle sample code). Currently using C++.

Is OpenCV even capable of solving this problem?

Thanks in advance for any tips you can provide, Jamey