Skip to content

MetalFaq/Template_Matching

Repository files navigation

Template_Matching

Goals

  • To find objects in an image using Template Matching
  • Use this functions: cv2.matchTemplate(), cv2.minMaxLoc()

Theory

Template Matching is a method for searching and finding the location of a template image in a larger image.
OpenCV comes with a function cv2.matchTemplate() for this purpose.
It simply slides the template image over the input image (as in 2D convolution) and compares the template and patch of input image under the template image.
Several comparison methods are implemented in OpenCV. (You can check docs for more details).
It returns a grayscale image, where each pixel denotes how much does the neighbourhood of that pixel match with template.

About

OpenCV - Python: Image Processing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors