Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Datasets:
theanhntp
/
controlnet
like
0
Dataset card
Files
Files and versions
xet
Community
main
controlnet
/
sd-webui-controlnet-main
/
annotator
/
canny
/
__init__.py
theanhntp
Upload 1064 files
c5bb928
verified
about 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
123 Bytes
import
cv2
def
apply_canny
(
img, low_threshold, high_threshold
):
return
cv2.Canny(img, low_threshold, high_threshold)