I am trying compare two images containing a same object and show a result of similarity between them. At first I tried histogram comparison and matchTemplate() function using "TM_CCOEFF_NORMED". But that did not seem to be a good idea and the result varied a lot. My second approach was to use ORB to extract features and find key points. But then i came to know that, ORB feature matching is to find the position of a known object. My app wasn't going anywhere with feature extraction since it keeps detecting wrong features and match wrong key points.
Sorry for making the question messy and confusing. I am kind of new to all this. It'd be really helpful if i could get some suggestions on what actually to use to detect an object using a photo of that object, from another image.