code: def adjustResultCoordinates(polys, ratio_w, ratio_h, ratio_net=2):
      if len(polys) > 0:
          polys = np.array(polys)
          for k in range(len(polys)):
              if polys[k] is not None:
                  polys[k] *= (ratio_w * ratio_net, ratio_h * ratio_net)
      return polys
  
file_path: EasyOCR/easyocr/craft_utils.py
imports: import numpy
  import cv2
  import math
  from scipy.ndimage import label
label_desc: Use image node_id 5 for calling a global function with example usage: adjustResultCoordinates(polys, ratio_w, ratio_h, ratio_net) and returns: polys