From 8dc460bb2de41b82f021ec480c2c51584f5952d9 Mon Sep 17 00:00:00 2001 From: Eunho Lee Date: Sun, 25 Oct 2020 15:44:05 +0900 Subject: [PATCH] Update py_contour_features.rst - Fix minor typo --- .../py_contours/py_contour_features/py_contour_features.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/py_tutorials/py_imgproc/py_contours/py_contour_features/py_contour_features.rst b/source/py_tutorials/py_imgproc/py_contours/py_contour_features/py_contour_features.rst index 1d8715a..d88fe44 100644 --- a/source/py_tutorials/py_imgproc/py_contours/py_contour_features/py_contour_features.rst +++ b/source/py_tutorials/py_imgproc/py_contours/py_contour_features/py_contour_features.rst @@ -123,7 +123,7 @@ Let (x,y) be the top-left coordinate of the rectangle and (w,h) be its width and 7.b. Rotated Rectangle ----------------------- -Here, bounding rectangle is drawn with minimum area, so it considers the rotation also. The function used is **cv2.minAreaRect()**. It returns a Box2D structure which contains following detals - ( top-left corner(x,y), (width, height), angle of rotation ). But to draw this rectangle, we need 4 corners of the rectangle. It is obtained by the function **cv2.boxPoints()** +Here, bounding rectangle is drawn with minimum area, so it considers the rotation also. The function used is **cv2.minAreaRect()**. It returns a Box2D structure which contains following details - ( top-left corner(x,y), (width, height), angle of rotation ). But to draw this rectangle, we need 4 corners of the rectangle. It is obtained by the function **cv2.boxPoints()** :: rect = cv2.minAreaRect(cnt)