Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
jingyangcarl
/
matgen
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
3d1859b
matgen
/
text2tex
/
models
/
ControlNet
/
annotator
/
canny
/
__init__.py
jingyangcarl
update
0b56dc2
15 days ago
raw
Copy download link
history
blame
Safe
123 Bytes
import
cv2
def
apply_canny
(
img, low_threshold, high_threshold
):
return
cv2.Canny(img, low_threshold, high_threshold)