OpenCV 3 boxPoints()

OpenCV 3 boxPoints()

OpenCV documentation index - OpenCV 文档索引
https://www.docs.opencv.org/

master (4.x)
https://www.docs.opencv.org/master/

3.4 (3.4.x)
https://www.docs.opencv.org/3.4/

2.4 (2.4.x)
https://www.docs.opencv.org/2.4/

1. 3.4 (3.4.x) -> Modules -> Image Processing -> Structural Analysis and Shape Descriptors -> boxPoints()

1.1 Function Documentation - boxPoints()

void cv::boxPoints	(RotatedRect box,
OutputArray 	points 
)

Python

points = cv.boxPoints(box[, points])
#include 

Finds the four vertices of a rotated rect. Useful to draw the rotated rectangle.
查找旋转的矩形的四个顶点。绘制旋转的矩形很有用。

The function finds the four vertices of a rotated rectangle. This function is useful to draw the rectangle. In C++, instead of using this function, you can directly use RotatedRect::points method. Please visit the tutorial on Creating Bounding rotated boxes and ellipses for contours for more information.
该函数查找旋转矩形的四个顶点。此功能对于绘制矩形很有用。在 C++ 中,可以直接使用 RotatedRect::points 方法来代替使用此函数。请访问有关为轮廓创建边界旋转框和椭圆的教程以获取更多信息。

vertice:n. 顶点
rectangular [rekˈtæŋɡjələ(r)],rect:adj. 矩形的,成直角的

Parameters
box - The input rotated rectangle. It may be the output of
points - The output array of four vertices of rectangles. 矩形 4 个顶点组成的列表。

1.2 boxPoints(box[, points]) -> points

def boxPoints(box, points=None): # real signature unknown; restored from __doc__
    """
    boxPoints(box[, points]) -> points
    .   @brief Finds the four vertices of a rotated rect. Useful to draw the rotated rectangle.
    .   
    .   The function finds the four vertices of a rotated rectangle. This function is useful to draw the
    .   rectangle. In C++, instead of using this function, you can directly use RotatedRect::points method. Please
    .   visit the @ref tutorial_bounding_rotated_ellipses "tutorial on Creating Bounding rotated boxes and ellipses for contours" for more information.
    .   
    .   @param box The input rotated rectangle. It may be the output of
    .   @param points The output array of four vertices of rectangles.
    """
    pass

你可能感兴趣的:(OpenCV,2,-,OpenCV,3,-,OpenCV,4)