diff --git a/src/shapedetect/Picture.py b/src/shapedetect/Picture.py index 00f2cb9d6c7d7b6a9824bacc758b8143f11ce801..aa0c41fc796b86af5143e0b2aee6b806387ab05b 100644 --- a/src/shapedetect/Picture.py +++ b/src/shapedetect/Picture.py @@ -114,6 +114,7 @@ class Picture: # 针对图片的操作 self.blur() # self.threshold(thresh, maxval) edge = cv2.Canny(self.modify, 75, 200) + # cv2.imshow("canny", edge) self.cnts = cv2.findContours(edge, cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE)[0] def drawShape(self, resize=300, thresh=60, maxval=255):