The application relates to the field of
image segmentation technology in
computer vision, in particular to a zero-shot
image segmentation method and
system based on a three-dimensional model of an object. The method comprises the following steps: for any untrained object, a three-dimensional model of the object is rendered into a two-dimensional RGB
reference image under a plurality of preset discrete viewing angles by using a
graphics rendering engine, the
reference image is input into a
visual basic model DINOv3, a global
feature vector representing
semantic information of the object is extracted, and a reference feature
library is constructed; a target image to be segmented is input into a
visual basic model SAM2, and a plurality of candidate object masks are generated; for each candidate
mask, an object image corresponding to the candidate
mask is cropped from the target image, and the object image is input into the DINOv3 to extract a
semantic feature vector of the candidate object; by calculating the
cosine similarity between the candidate object
feature vector and each template
feature vector in the reference feature
library, the top similar degrees with the highest values are selected, and an arithmetic mean value of the similar degrees is calculated, and the mean value is taken as the classification confidence of the candidate object
mask; the class
label of each candidate object mask is determined according to the confidence, and the class
label of the target object and a corresponding pixel-level segmentation mask are output.