Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
vumichien
/
canvas_controlnet
like
52
Runtime error
App
Files
Files
Community
2
Fetching metadata from the HF Docker repository...
fd34a04
canvas_controlnet
/
annotator
/
canny
/
__init__.py
vumichien
Up
87ad8f4
almost 2 years ago
raw
Copy download link
history
blame
Safe
155 Bytes
import
cv2
class
CannyDetector
:
def
__call__
(
self, img, low_threshold, high_threshold
):
return
cv2.Canny(img, low_threshold, high_threshold)