docstr: 结束当前物体标注，准备标下一个
docstr_tok: ["\u7ed3\u675f\u5f53\u524d\u7269\u4f53\u6807\u6ce8\uff0c\u51c6\u5907\u6807\u4e0b\u4e00\u4e2a"]
code: def finishObject(self, building=False):
      """
      结束当前物体标注，准备标下一个
      """
      object_prob = self.current_object_prob
      if object_prob is None:
          return None, None
      object_mask = object_prob > self.prob_thresh
      if self.lccFilter:
          object_mask = self.getLargestCC(object_mask)
      polygon = util.get_polygon(
          (object_mask.astype(np.uint8) * 255),
          img_size=object_mask.shape,
          building=building,
      )
      if polygon is not None:
          self._result_mask[object_mask] = self.curr_label_number
          self.resetLastObject()
          self.polygons.append([self.curr_label_number, polygon])
      return object_mask, polygon
  
imports: import json
  import logging
  import os.path
  import time
  import cv2
  import numpy
  import paddle
  from skimage.measure import label
  import util
  from eiseg import logger
  from inference import clicker
  from inference.predictor import get_predictor
  from eiseg.models import EISegModel
  from util import LabelList
  from util.vis import draw_with_blend_and_clicks
label_desc: Use image node_id 14 for calling the InteractiveController obj's underlying member method code with example usage: obj.finishObject(building) and returns: object_mask,  polygon, None,  None