Possible Duplicate:
matchTemplate opencv not working as shown in opencv document
I have posted some questions earlier also but still can not find the solution. According to my requirement I have to create a scanning paper app. In this the camera takes a picture and I have to detect the patterns(that will be predefined) if it appears in the captured image or not. I tried it with matchTemplate(opencv) but could not succeed it.
Since the image is captured from camera , so it might the case that the pattern in the captured image can be small or big from the size of the pattern image, so in this case do the matchTemplate will work properly, or if this could not be the solution so what another approach should I try now.