1 | initial version |
Your question is kinda vague but, some of the possibilities are:
So basically what you want to do is template matching. For that you first define a global descriptor of an image - http://docs.opencv.org/modules/imgproc/doc/histograms.html - http://docs.opencv.org/modules/imgproc/doc/feature_detection.html
Then you match the result of your references with the input images and use a distance metric between both. Best match has closest distance, meaning it is the most equal one.
Google template based matching, you will find tons of examples.