python cv2 unblur

Solutions on MaxInterview for python cv2 unblur by the best coders in the world

showing results for - "python cv2 unblur"
Maximilian
08 Nov 2016
1import cv2
2import numpy as np
3
4image = cv2.imread('1.jpg')
5sharpen_kernel = np.array([[-1,-1,-1], [-1,9,-1], [-1,-1,-1]])
6sharpen = cv2.filter2D(image, -1, sharpen_kernel)
7
8cv2.imshow('sharpen', sharpen)
9cv2.waitKey()