From 16edd526f1c96682d113de731ea9decafd436e5d Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 26 Mar 2019 02:15:14 +0900 Subject: gerbolyze.py: Fix fix for findContours --- gerbolyze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerbolyze.py b/gerbolyze.py index 6991a3e..724466e 100755 --- a/gerbolyze.py +++ b/gerbolyze.py @@ -229,7 +229,7 @@ def plot_contours( # Extract contour hierarchy using OpenCV status_print('Extracting contours') # See https://stackoverflow.com/questions/48291581/how-to-use-cv2-findcontours-in-different-opencv-versions/48292371 - contours, hierarchy = findContoursHack(img, cv2.RETR_TREE, cv2.CHAIN_APPROX_TC89_KCOS)[-2:] + contours, hierarchy = cv2.findContours(img, cv2.RETR_TREE, cv2.CHAIN_APPROX_TC89_KCOS)[-2:] aperture = list(layer.apertures)[0] -- cgit