Ask Your Question

Revision history [back]

Hi,

Check the tutorial here: http://docs.opencv.org/2.4/doc/tutorials/imgproc/shapedescriptors/bounding_rects_circles/bounding_rects_circles.html

What you basically want to do is threshold the image, then do Canny, then use the example above to fit a circle inside the outlines that you get from Canny.

Kind regards.