Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
abhishek
/
sketch-to-image
like
10
Runtime error
App
Files
Files
Community
2
58f667f
sketch-to-image
/
annotator
/
blur
/
__init__.py
abhishek
HF staff
first commit
58f667f
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