Files
ControlNet/annotator/canny/__init__.py
lvmin e38d22aa1c i
2023-02-10 11:28:11 -08:00

6 lines
123 B
Python

import cv2
def apply_canny(img, low_threshold, high_threshold):
return cv2.Canny(img, low_threshold, high_threshold)