Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

image completion inpainting with python

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()
Source by opencv-python-tutroals.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #image #completion #inpainting #python
ADD COMMENT
Topic
Name
6+1 =