code: def crop_foreground_infor(self, im, text_polys, text_tags):
      im, text_polys, text_tags = self.crop_area(
          im, text_polys, text_tags, crop_background=False
      )
  
      if text_polys.shape[0] == 0:
          return None
      # continue for all ignore case
      if np.sum((text_tags * 1.0)) >= text_tags.size:
          return None
      # pad and resize image
      input_size = self.input_size
      im, ratio = self.preprocess(im)
      text_polys[:, :, 0] *= ratio
      text_polys[:, :, 1] *= ratio
      _, _, new_h, new_w = im.shape
      #         print(im.shape)
      #         self.draw_img_polys(im, text_polys)
      score_map, geo_map, training_mask = self.generate_quad(
          (new_h, new_w), text_polys, text_tags
      )
      return im, score_map, geo_map, training_mask
  
file_path: PaddleOCR/ppocr/data/imaug/east_process.py
imports: import math
  import cv2
  import numpy
  import json
  import sys
  import os
label_desc: Use image node_id 11 for calling the EASTProcessTrain obj's underlying member method code with example usage: obj.crop_foreground_infor(im, text_polys, text_tags) and returns: im,  score_map,  geo_map,  training_mask, None, None