Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
ehristoforu
/
extensions
like
3
Model card
Files
Files and versions
Community
0163a2c
extensions
/
sd-webui-controlnet
/
annotator
/
canny
/
__init__.py
ehristoforu
Upload folder using huggingface_hub
0163a2c
verified
12 months ago
raw
Copy download link
history
blame
Safe
123 Bytes
import
cv2
def
apply_canny
(
img, low_threshold, high_threshold
):
return
cv2.Canny(img, low_threshold, high_threshold)