Similarity detection in computer vision