mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 22:30:50 +08:00
7 lines
155 B
Python
7 lines
155 B
Python
import cv2
|
|
|
|
|
|
class CannyDetector:
|
|
def __call__(self, img, low_threshold, high_threshold):
|
|
return cv2.Canny(img, low_threshold, high_threshold)
|