On line 151 in this program it draws an ellipse:
ellipse( image, trackBox, Scalar(0,0,255), 3, CV_AA );
How do I figure the center coordinate of the ellipse that was drawn after line 151?
According to this page an ellipse has a “center” property but I cannot figure out how to access it.
Would appreciate if someone can guide me how to get this center property.
the “trackBox” in the code is
class object type. So you can access the center co ordinates by the following way
Add the following line of code after the line number 151 and see the center for visualization