mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 06:10:50 +08:00
.
This commit is contained in:
parent
190681f0e4
commit
6a8cd6f8ac
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user