Ask Your Question

Revision history [back]

I recommend to stick with your previous link to find contours of OpenCV. the moment helps you to find the center only.

simpler tutorial for contours : http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/find_contours/find_contours.html

Use the FindContours method with CV_RETR_TREE option that option with give you a tree of contours inside a contours. if there's a contour within a contour. it seems to be a non-filled circle.