Spaces:
Runtime error
Runtime error
File size: 157 Bytes
cd59216 | 1 2 3 4 5 6 | import cv2
def unsharp_masking(img):
gaussian = cv2.GaussianBlur(img, (0, 0), 2.0)
img = cv2.addWeighted(img, 2.0, gaussian, -1.0, 0)
return img |