First time here? Check out the FAQ!
answered 2016-09-09 22:28:23 -0600
Try taking a look at the tutorial on template matching. That should answer your questions.
http://docs.opencv.org/3.1.0/de/da9/tutorial_template_matching.html