cv.boxPoints - MATLAB File Help
cv.boxPoints

Finds the four vertices of a rotated rectangle

points = cv.boxPoints(box)

Input

Output

The function finds the four vertices of a rotated rectangle. This function is useful to draw the rectangle. You can also use cv.RotatedRect.points method. Please visit the tutorial on "Creating Bounding rotated boxes and ellipses for contours" for more information.

See also