def getThresholdedImage(self,isInverted):
threshType = cv2.THRESH_BINARY_INV if isInverted else cv2.THRESH_BINARY
retval, threshold = cv2.threshold(self.imageToProcess,127,255,threshType)
return threshold
评论列表
文章目录