[Python] FlannBasedMatcher image retrieval
I have a database of images that I'm searching through.
For each image I:
calculate descriptors with SIFT
use flann.add([descriptor]) (where flann is a FlannBasedMatcher)
I then use flann.knnMatch() to find matches for a target image
I'm able to get matches, but I'm struggling to piece together which image 'matched' my target image. I have a collection of dmatch object-pairs, but I don't know how to associate it with one particular image or its descriptors. In other code examples people create a sort of look up table based on the number of descriptors an image had, but even that doesn't quite make sense to me.
Thanks so much for any help!