ComfyUI/comfy/annotator/canny/__init__.py
Hacker 17082006 6a8cd6f8ac .
2023-02-17 22:56:40 +07:00

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)