Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Mellow-ai
/
PhotoAI_Mellow
like
1
Runtime error
App
Files
Files
Fetching metadata from the HF Docker repository...
main
PhotoAI_Mellow
/
annotator
/
canny
/
__init__.py
nik1-kaj
Duplicate from Mellow-ai/PhotoAI
be6c3ba
almost 3 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)