We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2304c38 commit 2b9b0a4Copy full SHA for 2b9b0a4
src/python/model_api/models/segmentation.py
@@ -219,11 +219,10 @@ def get_contours(
219
continue
220
221
children = []
222
- if hierarchy[i][2] >= 0:
223
- child_next_idx = hierarchy[i][2]
224
- while child_next_idx >= 0:
225
- children.append(contours[child_next_idx])
226
- child_next_idx = hierarchy[child_next_idx][0]
+ next_child_idx = hierarchy[i][2]
+ while next_child_idx >= 0:
+ children.append(contours[next_child_idx])
+ next_child_idx = hierarchy[next_child_idx][0]
227
228
if not children:
229
children = None
0 commit comments