📜  使用 python 代码示例进行图像补全修复

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

代码示例1
import numpy as np
import cv2

img = cv2.imread('messi_2.jpg')
mask = cv2.imread('mask2.png',0)

dst = cv2.inpaint(img,mask,3,cv2.INPAINT_TELEA)

cv2.imshow('dst',dst)
cv2.waitKey(0)
cv2.destroyAllWindows()