title: Remove Boxes/rectangles from image
body: <p>I have the following image.
  <a href="https://i.stack.imgur.com/M6IB3.jpg" rel="nofollow noreferrer">this image</a></p>
  
  <p>I would like to remove the orange boxes/rectangle around numbers and keep the original image clean without any orange grid/rectangle.</p>
  
  <p>Below is my current code but it does not remove it.</p>
  
  <pre><code>Mat mask = new Mat();
  Mat src = new Mat();
  src = Imgcodecs.imread("enveloppe.jpg",Imgcodecs.CV_LOAD_IMAGE_COLOR);
  Imgproc.cvtColor(src, hsvMat, Imgproc.COLOR_BGR2HSV);
  
  Scalar lowerThreshold = new Scalar(0, 50, 50);
  Scalar upperThreshold = new Scalar(25, 255, 255);
  Mat mask = new Mat();
  Core.inRange(hsvMat, lowerThreshold, upperThreshold, mask);
  //src.setTo(new scalar(255,255,255),mask);
  
  what to do next ?
  </code></pre>
  
  <p>How can i remove the orange boxes/rectangle from the original images ?</p>
  
  <p>Update:
  For information , the mask contains exactly all the boxes/rectangle that i want to remove. I don't know how to use this mask to remove boxes/rectangle from the source (src) image as if they were not present.</p>