Skip to content

Commit 63d3fdc

Browse files
committed
Merge pull request opencv#8466 from sxldvd:master
2 parents 8bee226 + 75a489b commit 63d3fdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/py_tutorials/py_imgproc/py_contours/py_contours_hierarchy/py_contours_hierarchy.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ will have their corresponding values. Just check it yourself and verify it.
9999

100100
Below is the result I got, and each row is hierarchy details of corresponding contour. For eg, first
101101
row corresponds to contour 0. Next contour is contour 1. So Next = 1. There is no previous contour,
102-
so Previous = 0. And the remaining two, as told before, it is -1.
102+
so Previous = -1. And the remaining two, as told before, it is -1.
103103
@code{.py}
104104
>>> hierarchy
105105
array([[[ 1, -1, -1, -1],
@@ -195,7 +195,7 @@ Take contour-0 : It is in hierarchy-0. Next contour in same hierarchy is contour
195195
contours. Child is contour-1. And no parent. So array is [7,-1,1,-1].
196196

197197
Take contour-2 : It is in hierarchy-1. No contour in same level. No previous one. Child is
198-
contour-2. Parent is contour-0. So array is [-1,-1,2,0].
198+
contour-3. Parent is contour-1. So array is [-1,-1,3,1].
199199

200200
And remaining, try yourself. Below is the full answer:
201201
@code{.py}

0 commit comments

Comments
 (0)