# 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?

edit retag reopen merge delete

### Closed for the following reason question is not relevant or outdated by sturkmen close date 2020-10-03 06:20:39.854713

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()).
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.