Spaces:
Runtime error
Runtime error
Download annotator/canny/__init__.py from shadow/Text2Video-Zero: direct link, hf CLI and curl.
- Browser
- Download file 155 Bytes
-
https://huggingface.co/spaces/shadow/Text2Video-Zero/resolve/main/annotator/canny/__init__.py
- Command line
-
hf download hf://spaces/shadow/Text2Video-Zero/annotator/canny/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/shadow/Text2Video-Zero/resolve/main/annotator/canny/__init__.py
155 Bytes
| import cv2 | |
| class CannyDetector: | |
| def __call__(self, img, low_threshold, high_threshold): | |
| return cv2.Canny(img, low_threshold, high_threshold) | |