code: def standard_nms_inds(S, thres):
      """
      Standard nms, retun inds.
      """
      order = np.argsort(S[:, 8])[::-1]
      keep = []
      while order.size > 0:
          i = order[0]
          keep.append(i)
          ovr = np.array([intersection(S[i], S[t]) for t in order[1:]])
  
          inds = np.where(ovr <= thres)[0]
          order = order[inds + 1]
  
      return keep
  
file_path: PaddleOCR/ppocr/postprocess/locality_aware_nms.py
imports: import numpy
  from shapely.geometry import Polygon
label_desc: Use image node_id 5 for calling a global function with example usage: standard_nms_inds(S, thres) and returns: keep