docs: private String doOCR(IIOImage oimage, String filename, Rectangle rect, int pageNum) throws TesseractException {
          String text = "";
  
          try {
              setImage(oimage.getRenderedImage(), rect);
              text = getOCRText(filename, pageNum);
          } catch (IOException ioe) {
              // skip the problematic image
              logger.warn(ioe.getMessage(), ioe);
          }
  
          return text;
      }