Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
atatakun/testapp2
atatakun
/
ControlNet-v1-1-Annotators-cpu
like
0
Running
App
Files
Files
Community
bacbc79
ControlNet-v1-1-Annotators-cpu
/
annotator
/
canny
/
__init__.py
atatakun
Duplicate from atatakun/testapp2
18dd6ad
over 1 year 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)