How to detect circles accurately

Posted by user1767798 on Stack Overflow See other posts from Stack Overflow or by user1767798
Published on 2012-10-25T13:48:59Z Indexed on 2012/10/31 11:00 UTC
Read the original article Hit count: 223

Is there any way to accurately detect circles in opencv? I was using hough transform which give me good result but most of the time, shadow of the object and surrounding,light etc gives bad results, so am looking for options other than hough circles, accurate detection is very important for my project.

My basic approach so far is to find some spheres in the image taken in realtime. I am using houghcircle to find the spheres and base later calculations on the radius I am getting from that.

If the background is plain and nothing the sphere detect without problem, however if I am taking that image in my room where the background will have other objects it's often difficult to detect. So am looking for some other approach.

© Stack Overflow or respective owner

Related posts about image-processing

Related posts about opencv