I am trying to implement in python the following C++ code
cv::RotatedRect box1(center, cv::Size(a_axis, b_axis), 0);
cv::ellipse(*img, box1, cv::Scalar(255, 255, 0), 1);
I know that ellipse would be
image = cv.ellipse(image, box, (255,255,0), 1)
but how do I get the box (RotatedRect)?