How to detect an ellipse? [closed]
I'm currently using Emgu CV, and I'm trying to locate a target such as the one below.
I attempted to use HoughCircle method to find the ellipses, but that isn't working for me; I suspect they are not "circular" enough. So how would I go about finding these ellipses?
The target "ellipses" are not elliptical. Rather they are composed of two half circles and two lines. For ellipse fits take a look at
cv::fitEllipse()
. Evantually you can check the error of a contour to the fitted ellipse points (cv::ellipse()
).Okay, so how should I go about finding these half circles with lines?
Perhabs you can create a model shape and test the found contours with
cv::matchShapes
, but the image is very blured. At the moment I have no smart solution for that.