docstr: Generate text center region mask and geometry attribute maps.
  
  Args:
      img_size (tuple): The image size (height, width).
      text_polys (list[list[ndarray]]): The list of text polygons.
  
  Returns:
      text_region_mask (ndarray): The text region mask.
docstr_tok: ["Generate","text","center","region","mask","and","geometry","attribute","maps",".","Args",":","img_size","(","tuple",")",":","The","image","size","(","height",",","width",")",".","text_polys","(","list","[","list","[","ndarray","]","]",")",":","The","list","of","text","polygons",".","Returns",":","text_region_mask","(","ndarray",")",":","The","text","region","mask","."]
code: def generate_text_region_mask(self, img_size, text_polys):
      """Generate text center region mask and geometry attribute maps.
  
      Args:
          img_size (tuple): The image size (height, width).
          text_polys (list[list[ndarray]]): The list of text polygons.
  
      Returns:
          text_region_mask (ndarray): The text region mask.
      """
  
      assert isinstance(img_size, tuple)
  
      h, w = img_size
      text_region_mask = np.zeros((h, w), dtype=np.uint8)
  
      for poly in text_polys:
          polygon = np.array(poly, dtype=np.int32).reshape((1, -1, 2))
          cv2.fillPoly(text_region_mask, polygon, 1)
  
      return text_region_mask
  
imports: import cv2
  import numpy
  from ppocr.utils.utility import check_install
  from numpy.linalg import norm
label_desc: Use image node_id 17 for calling the DRRGTargets obj's underlying member method code with example usage: obj.generate_text_region_mask(img_size, text_polys) and returns: text_region_mask