The invention relates to the field of
computer vision and
machine learning, in particular to an image
annotation method based on region segmentation and FAISS optimization lookup, and the method comprises the steps: carrying out the adaptive segmentation of a to-be-annotated image through OpenCV, carrying out the scanning of connected region marks twice, decomposing the image into a plurality of semantic independent regions, and carrying out the lookup of each region; constructing a two-stage FAISS index mechanism, introducing a ConvNeXt
classification result as a prior constraint, and preferentially carrying out one-time retrieval in a same-class sample range; a
dynamic clustering strategy is adopted, the number of clustering centers is adjusted in a self-adaptive mode according to the data scale, and a long-
tail large cluster is dynamically split; and taking the distance between the similar image and the query image as a weight, carrying out weighted voting on the retrieved labels, fusing ConvNeXt classification confidence to dynamically adjust the retrieval weight, obtaining high-confidence labels of each region, and combining to form a whole
image labeling result. According to the method, a region-level independent retrieval and
dynamic clustering scattering mechanism is introduced, so that multi-target labeling is more sensitive and clearer; and a ConvNeXt
classification result is utilized to limit a search space, so that cross-class missing check is avoided, and efficient and accurate
automatic image annotation is realized.