set_sam_image()#

function set_sam_image(predictor, img)#

Set the image to predict on.

Parameters:
  • predictor (segment_anything.SamPredictor)

  • img (ndarray)

Return type:

segment_anything.SamPredictor