Spaces:
Runtime error
Runtime error
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 |