📜  python cv2 unblur - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:17.555000             🧑  作者: Mango

代码示例1
import cv2
import numpy as np

image = cv2.imread('1.jpg')
sharpen_kernel = np.array([[-1,-1,-1], [-1,9,-1], [-1,-1,-1]])
sharpen = cv2.filter2D(image, -1, sharpen_kernel)

cv2.imshow('sharpen', sharpen)
cv2.waitKey()