Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Superlang
/
ImageProcessor
like
21
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
2eb5b9e
ImageProcessor
/
annotator
/
canny
/
__init__.py
Huang
init
11ccb1b
almost 2 years ago
raw
Copy download link
history
blame
Safe
163 Bytes
import
cv2
class
CannyDetector
:
def
__call__
(
self, img, low_threshold=
100
, high_threshold=
200
):
return
cv2.Canny(img, low_threshold, high_threshold)