Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Robert001
/
UniControl-Demo
like
23
Runtime error
App
Files
Files
Community
3
afa0370
UniControl-Demo
/
annotator
/
blur
/
__init__.py
Robert001
first commit
b334e29
over 1 year ago
raw
Copy download link
history
blame
Safe
204 Bytes
import
cv2
class
Blurrer
:
def
__call__
(
self, img, ksize
):
img_new = cv2.GaussianBlur(img, (ksize, ksize), cv2.BORDER_DEFAULT)
img_new = img_new.astype(
'ubyte'
)
return
img_new