From 81f313784ee90e042a27d40197b163d6a33713b1 Mon Sep 17 00:00:00 2001 From: Ashish Date: Wed, 6 Jan 2021 12:58:56 +0530 Subject: [PATCH] Fixed a typo in documentation It should be have been contour - 1, but mistyped as contour - 2 --- .../py_contours/py_contours_hierarchy/py_contours_hierarchy.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/py_tutorials/py_imgproc/py_contours/py_contours_hierarchy/py_contours_hierarchy.rst b/source/py_tutorials/py_imgproc/py_contours/py_contours_hierarchy/py_contours_hierarchy.rst index 60fd1c1..e2b5931 100644 --- a/source/py_tutorials/py_imgproc/py_contours/py_contours_hierarchy/py_contours_hierarchy.rst +++ b/source/py_tutorials/py_imgproc/py_contours/py_contours_hierarchy/py_contours_hierarchy.rst @@ -154,7 +154,7 @@ For examle, I took above image, rewrite the code for cv2.RETR_TREE, reorder the Take contour-0 : It is in hierarchy-0. Next contour in same hierarchy is contour-7. No previous contours. Child is contour-1. And no parent. So array is [7,-1,1,-1]. -Take contour-2 : It is in hierarchy-1. No contour in same level. No previous one. Child is contour-2. Parent is contour-0. So array is [-1,-1,2,0]. +Take contour-1 : It is in hierarchy-1. No contour in same level. No previous one. Child is contour-2. Parent is contour-0. So array is [-1,-1,2,0]. And remaining, try yourself. Below is the full answer: ::