OpenCV: Template Matching Use the OpenCV function matchTemplate () to search for matches between an image patch and an input image Use the OpenCV function minMaxLoc () to find the maximum and minimum values (as well as their positions) in a given array.
Template Match Example docs.opencv.org Template Match Example