code: def heatmap2coords(self, seg_pred):
      coordinates = []
      for i in range(self.num_classes - 1):
          heat_map = seg_pred[i + 1]
          if self.smooth:
              heat_map = cv2.blur(
                  heat_map, (9, 9), borderType=cv2.BORDER_REPLICATE
              )
          coords = self.get_coords(heat_map)
          indexes = [i for i, x in enumerate(coords) if x > 0]
          if not indexes:
              continue
          self.add_coords(coordinates, coords)
  
      if len(coordinates) == 0:
          coords = np.zeros(self.points_nums)
          self.add_coords(coordinates, coords)
      return coordinates
  
file_path: PaddleSeg/contrib/LaneSeg/third_party/get_lane_coords.py
imports: import cv2
  import numpy
label_desc: Use image node_id 6 for calling the LaneProcessor obj's underlying member method code with example usage: obj.heatmap2coords(seg_pred) and returns: coordinates