mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-03-17 10:07:02 +08:00
7 lines
190 B
Python
7 lines
190 B
Python
import cv2
|
|
|
|
|
|
class CannyDetector:
|
|
def __call__(self, img, low_threshold, high_threshold, l2gradient):
|
|
return cv2.Canny(img, low_threshold, high_threshold, L2gradient=l2gradient)
|