code: def generate_region(
      self, img_h, img_w, word_level_char_bbox, horizontal_text_bools
  ):
      region_map = np.zeros([img_h, img_w], dtype=np.float32)
      for i in range(
          len(word_level_char_bbox)
      ):  # shape : [word_num, [char_num_in_one_word, 4, 2]]
          for j in range(len(word_level_char_bbox[i])):
              region_map = self.add_gaussian_map_to_score_map(
                  region_map,
                  word_level_char_bbox[i][j].copy(),
                  self.enlarge_region,
                  horizontal_text_bools[i],
                  map_type="region",
              )
      return region_map
  
file_path: EasyOCR/trainer/craft/data/gaussian.py
imports: import numpy
  import cv2
  from data.boxEnlarge import enlargebox
label_desc: Use image node_id 7 for calling the GaussianBuilder obj's underlying member method code with example usage: obj.generate_region(img_h, img_w, word_level_char_bbox, horizontal_text_bools) and returns: region_map