Ask Your Question
0

Detecting concentric circles

asked 2016-12-08 17:53:42 -0600

unxnut gravatar image

I am trying to find circles in the attached image.

I have used the function cv::HoughCircles(img, circles, cv::HOUGH_GRADIENT, 1, 1);. However, it is unable to detect the circle in this image or other similar images. Can someone point what I may be doing wrong?

image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-12-09 05:55:21 -0600

pi-null-mezon gravatar image

You should decrease the threshold for the circles detection - read this manual

Call function with not default parameters:

cv::HoughCircles(img,_vcircles,CV_HOUGH_GRADIENT,1,1,100,20);

and you will get:image description

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-12-08 17:53:42 -0600

Seen: 2,197 times

Last updated: Dec 09 '16