Are there any helper methods to draw a rotated rectangle that is returned by cv2.minAreaRect() presumably as ((x1,y1),(x2,y2),angle)
? cv2.rectangle() does not support an angle.
And since the tuple returned is not of the "RotatedRect" class (because it seems to not be implemented in the Python bindings) there is no points()
method, as shown in the C++ tutorial "Creating Bounding rotated boxes and ellipses for contours?".
How could a rotated rectangle be drawn from lines - rotate about the center point or the first point given?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…