how to remove text from image (not inpaiting but just solid color over the text)

Advertisements Hi have the following python code that find the text in a image, and uses cv2.inpaint to remove that text by covering with generated background, but I just want to put solid color over the text instead generating the background this is what I want to achieve import keras_ocr import cv2 import math import… Read More how to remove text from image (not inpaiting but just solid color over the text)