gerbolyze.py: Fix fix for findContours

This commit is contained in:
jaseg 2019-03-26 02:15:14 +09:00 committed by jaseg
parent f7ae8b97d8
commit 1acddfcdfb

View file

@ -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]