Python 3 Opencv Image Inpainting Script to Remove Text, Noises & Strokes From Images GUI Desktop App
import numpy as np
import cv2
# Open the image.
img = cv2.imread('cat_damaged.png')
# Load the mask.
mask = cv2.imread('cat_mask.png', 0)
# Inpaint.
dst = cv2.inpaint(img, mask, 3, cv2.INPAINT_NS)
# Write the output.
cv2.imwrite('cat_inpainted.png', dst)