1. In a computing environment, a method comprising, performing near-duplicate image retrieval, including by detecting visual patterns in images, representing the visual patterns as visual pattern vectors, and using the visual pattern vectors and visual word vectors to determine similarity between images.