OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Sat, 22 Jun 2019 18:35:17 -0500fitellipse not for image but given pointshttp://answers.opencv.org/question/214634/fitellipse-not-for-image-but-given-points/ Hello everyone,
I want to fit an ellipse to given points in Python. The points are:
x_vals = np.array([cos(0.1 * i) for i in range(30)])
y_vals = np.array([sin(0.1 * i) for i in range(30)])
I tried to make a numpy array of the points:
Points = [(x_vals[i], y_vals[i]) for i in range(len(x_vals))]
cv2.fitEllipse(np.array(points))
But unfortunately it gives me an error :( can anyone help?Sat, 22 Jun 2019 18:35:17 -0500http://answers.opencv.org/question/214634/fitellipse-not-for-image-but-given-points/