ComfyUI/comfy/annotator/canny/__init__.py
2023-02-17 21:15:35 +07:00

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)