aboutsummaryrefslogtreecommitdiff
path: root/gerbolyze.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2019-03-26 02:15:14 +0900
committerjaseg <git@jaseg.net>2019-03-26 02:15:14 +0900
commit1acddfcdfb1bc6a33fbcccb8e736db0758a1bbf2 (patch)
treea2aa2b428dd379d517295ba6eaa88dca0165bc75 /gerbolyze.py
parentf7ae8b97d8e44c50d2bbc50dc43faeecda63c1af (diff)
downloadgerbolyze-1acddfcdfb1bc6a33fbcccb8e736db0758a1bbf2.tar.gz
gerbolyze-1acddfcdfb1bc6a33fbcccb8e736db0758a1bbf2.tar.bz2
gerbolyze-1acddfcdfb1bc6a33fbcccb8e736db0758a1bbf2.zip
gerbolyze.py: Fix fix for findContours
Diffstat (limited to 'gerbolyze.py')
-rwxr-xr-xgerbolyze.py2
1 files changed, 1 insertions, 1 deletions
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]