This commit is contained in:
Hacker 17082006 2023-02-17 22:56:40 +07:00
parent 190681f0e4
commit 6a8cd6f8ac

View File

@ -2,5 +2,5 @@ import cv2
class CannyDetector:
def __call__(self, img, low_threshold, high_threshold):
return cv2.Canny(img, low_threshold, high_threshold)
def __call__(self, img, low_threshold, high_threshold, l2gradient):
return cv2.Canny(img, low_threshold, high_threshold, L2gradient=l2gradient)