In this tutorial, you will learn how to perform template matching using OpenCV and the  cv2.matchTemplate  function.
Other than contour filtering and processing, template matching is arguably one of the most simple forms of object detection:

It’s simple to implement, requiring only 2-3 lines of code
Template matching is computationally efficient
It doesn’t require you to perform thresholding, edge detection, etc., to generate a binary image (such as contour detection and processing does)
And with a basic extension, template matching can detect multiple instances of the same/similar object in an input image (which we’ll cover next week)

#opencv

OpenCV Template Matching ( cv2.matchTemplate )
2.05 GEEK