Hello I want to write a program to check the presence of multiple objects, for example leds, of different classes (like led colors) in an rigid environment, for example on an PCB, when the camera position is not fixed. Let's say for example, that we have 30 red leds, 20 green leds and 10 blue leds which have to be checked. I can find the leds with simpleBlobDetector, and also determine their class (red, green or blue). As a result I have an unordered list of about 60 leds, with coordinates and class. But how can I match this against the ordered list of 60 reference leds? I hope for something like findHomography, which returns a geometric transformation matrix and a list of matches. But as far as I know, findHomography takes two ordered lists of coordinates, assuming that each keypoint is unique. But this is not always the case for technical images that may contain many instances of the same object.