import cv2
import numpy as np
img = cv2.imread('./image/fruit.png')
mask = cv2.imread('./image/mask.png',0)
dst = cv2.inpaint(img,mask,5,flags=cv2.INPAINT_TELEA)
cv2.imshow('dst',np.hstack((dst,img)))
cv2.waitKey(0)
cv2.destroyAllwindows()
import cv2
import numpy as np
img = cv2.imread('./image/fruit.png')
mask = cv2.imread('./image/mask.png',0)
dst = cv2.inpaint(img,mask,5,flags=cv2.INPAINT_TELEA)
cv2.imshow('dst',np.hstack((dst,img)))
cv2.waitKey(0)
cv2.destroyAllwindows()