Skip to content

Commit

Permalink
fixed bug in isolator (cv function return changed)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianGroeger96 committed Apr 21, 2021
1 parent fa04026 commit 636434c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Isolator/isolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __threshold(self, image):

def __find_contours(self, image):
image_height, image_width = image.shape
_, contours, hierarchy = cv2.findContours(image, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_NONE)
contours, hierarchy = cv2.findContours(image, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_NONE)
contours_hierarchy = []
for i, cnt in enumerate(contours):
if (hierarchy[0][i][3] != -1 and hierarchy[0][i][2] == -1) or \
Expand Down

0 comments on commit 636434c

Please sign in to comment.