title: detect and remove text from photo
body: <p>I have a dataset of about 2000 pictures of banana plants that I need to check if a CNN can spot the difference between them.
  The problem is that some of the photos that were taken include their tag in the photo.</p>
  
  <p>is there a way to detect and remove those somehow?</p>
  
  <p>I have tried masking parts of the images, but every mask is suitable only for a few photos and I cannot apply it for all photos</p>
  
  <p>The thing I tried, using cv2 with python, but didn't help:</p>
  
  <p>masking the image:
  <a href="https://stackoverflow.com/questions/45965333/removing-parts-of-the-image-with-opencv">Removing parts of the image with OpenCV</a></p>
  
  <p>removing text from the image:
  <a href="https://stackoverflow.com/questions/53592055/opencv-remove-text-from-image">OpenCV - Remove text from image</a></p>
  
  <p>the classes are A/B/C/D
  pictures:
  <a href="https://i.stack.imgur.com/9kekF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9kekF.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Nzmps.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nzmps.jpg" alt="enter image description here"></a></p>