code: def getDetBoxes(
      textmap,
      linkmap,
      text_threshold,
      link_threshold,
      low_text,
      poly=False,
      estimate_num_chars=False,
  ):
      if poly and estimate_num_chars:
          raise Exception(
              "Estimating the number of characters not currently supported with poly."
          )
      boxes, labels, mapper = getDetBoxes_core(
          textmap,
          linkmap,
          text_threshold,
          link_threshold,
          low_text,
          estimate_num_chars,
      )
  
      if poly:
          polys = getPoly_core(boxes, labels, mapper, linkmap)
      else:
          polys = [None] * len(boxes)
  
      return boxes, polys, mapper
  
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 4 for calling a global function with example usage: getDetBoxes(textmap, linkmap, text_threshold, link_threshold, low_text, poly, estimate_num_chars) and returns: boxes,  polys,  mapper