How to identify near-duplicate features from anchor image before doing feature matching?

look into “clustering” of feature descriptors. k-means perhaps. since I have no idea what you are doing or why, it’s a shot in the dark.