docstr: 设置当前标注的图片
  
  Parameters
  ----------
  image : np.array
      当前标注的图片
  type_seg : bool
      标注类型是否为分割
docstr_tok: ["\u8bbe\u7f6e\u5f53\u524d\u6807\u6ce8\u7684\u56fe\u7247","Parameters","--","--","--","--","--","image",":","np.array","\u5f53\u524d\u6807\u6ce8\u7684\u56fe\u7247","type_seg",":","bool","\u6807\u6ce8\u7c7b\u578b\u662f\u5426\u4e3a\u5206\u5272"]
code: def setImage(self, image: np.array, type_seg: bool = True):
      """设置当前标注的图片
  
      Parameters
      ----------
      image : np.array
          当前标注的图片
      type_seg : bool
          标注类型是否为分割
  
      """
      if type_seg:
          if self.model is not None:
              self.image = image
              self._result_mask = np.zeros(
                  image.shape[:2], dtype=np.uint8
              )
              self.resetLastObject()
      else:
          # 检测标注模式下我们是允许model为None的，因为如果不启用预标注，那就不需要模型了
          self.image = image
          self._result_mask = np.zeros(image.shape[:2], dtype=np.uint8)
  
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 4 for calling the InteractiveController obj's underlying member method code with example usage: obj.setImage(image, type_seg) without return types