docstr_tok: []
code: def calculate_average_height(self, poly_quads):
      """ """
      height_list = []
      for quad in poly_quads:
          quad_h = (
              np.linalg.norm(quad[0] - quad[3])
              + np.linalg.norm(quad[2] - quad[1])
          ) / 2.0
          height_list.append(quad_h)
      average_height = max(sum(height_list) / len(height_list), 1.0)
      return average_height
  
imports: import math
  import cv2
  import numpy
  from skimage.morphology._skeletonize import thin
  from ppocr.utils.e2e_utils.extract_textpoint_fast import sort_and_expand_with_direction_v2
label_desc: Use image node_id 10 for calling the PGProcessTrain obj's underlying member method code with example usage: obj.calculate_average_height(poly_quads) and returns: average_height