Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Conveniently, OpenCV has a Circle Detection function called Hough Circles.

Now, to make it easier on the algorithm, you should remove as many distractions as possible.

  • Filter the image so that only blue things remain. (I used Blue-0.5Red-0.5Green)
  • Run the circle detection.
  • Filter the circles returned, because the center had better be in the Blue.
  • It should also be near the geometric center of the blue.

Hopefully this helps.

Conveniently, OpenCV has a Circle Detection function called Hough Circles.

Now, to make it easier on the algorithm, you should remove as many distractions as possible.

  • Filter the image so that only blue things remain. (I used Blue-0.5Red-0.5Green)
  • Run the circle detection.
  • Filter the circles returned, because the center had better be in the Blue.
  • It should also be near the geometric center of the blue.

Hopefully this helps.

Oh right, here's one of your test images with circles drawn on it. It's using the default parameters from the example in the documentation, except I made dp=4.

One of your Test Images with Circles Drawn on it.