code: def getDetBoxes(
      textmap,
      linkmap,
      text_threshold,
      link_threshold,
      low_text,
      poly=False,
  ):
      boxes, labels, mapper = getDetBoxes_core(
          textmap, linkmap, text_threshold, link_threshold, low_text
      )
  
      if poly:
          polys = getPoly_core(boxes, labels, mapper, linkmap)
      else:
          polys = [None] * len(boxes)
  
      return boxes, polys
  
file_path: EasyOCR/trainer/craft/utils/craft_utils.py
imports: import os
  import torch
  import cv2
  import math
  import numpy
  from data import imgproc
label_desc: Use image node_id 5 for calling a global function with example usage: getDetBoxes(textmap, linkmap, text_threshold, link_threshold, low_text, poly) and returns: boxes,  polys