Template Matching - OpenCV with Python for Image and Video Analysis 11

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=2CZltXv-Gpk



Duration: 8:46
160,518 views
1,353


Welcome to another OpenCV with Python tutorial, in this tutorial we're going to cover a fairly basic version of object recognition. The idea here is to find identical regions of an image that match a template we provide, giving a certain threshold. For exact object matches, with exact lighting/scale/angle, this can work great. An example where these conditions are usually met is just about any GUI on the computer. The buttons and such are always the same, so you can use template matching. Pair template matching with some mouse controls and you've got yourself a web-based bot!

To start, you will need a main image, and a template. You should take your template from the exact "thing" you are looking for in the image. I will provide an image as an example, but feel free to use an image of your favorite website or something like that.

Sample code and text-based tutorial: https://pythonprogramming.net/template-matching-python-opencv-tutorial/

https://pythonprogramming.net
https://twitter.com/sentdex
https://www.facebook.com/pythonprogramming.net/
https://plus.google.com/+sentdex




Other Videos By sentdex


2016-01-11Haar Cascade for image & video object classification - OpenCV w/ Python for Image Video Analysis 21
2016-01-11Training Haar cascade object detection - OpenCV with Python for Image and Video Analysis 20
2016-01-11Cleaning images and creating description files - OpenCV with Python for Image and Video Analysis 19
2016-01-11Gathering Images for Haar Cascade - OpenCV with Python for Image and Video Analysis 18
2016-01-11Making your own Haar Cascade Intro - OpenCV with Python for Image and Video Analysis 17
2016-01-10Haar Cascade Object Detection Face & Eye - OpenCV with Python for Image and Video Analysis 16
2016-01-09MOG Background Reduction - OpenCV with Python for Image and Video Analysis 15
2016-01-08Feature Matching (Homography) Brute Force - OpenCV with Python for Image and Video Analysis 14
2016-01-07Corner Detection - OpenCV with Python for Image and Video Analysis 13
2016-01-04GrabCut Foreground Extraction - OpenCV with Python for Image and Video Analysis 12
2016-01-02Template Matching - OpenCV with Python for Image and Video Analysis 11
2015-12-31Edge Detection and Gradients - OpenCV with Python for Image and Video Analysis 10
2015-12-29Morphological Transformations - OpenCV with Python for Image and Video Analysis 9
2015-12-28Blurring and Smoothing - OpenCV with Python for Image and Video Analysis 8
2015-12-27Color Filtering - OpenCV with Python for Image and Video Analysis 7
2015-12-22Thresholding - OpenCV with Python for Image and Video Analysis 6
2015-12-20Image arithmetics and Logic - OpenCV with Python for Image and Video Analysis 5
2015-12-19Image Operations - OpenCV with Python for Image and Video Analysis 4
2015-12-18Drawing and Writing on Image - OpenCV with Python for Image and Video Analysis 3
2015-12-17Loading Video Source - OpenCV with Python for Image and Video Analysis 2
2015-12-16Intro and loading Images - OpenCV with Python for Image and Video Analysis 1



Tags:
Python (Programming Language)
OpenCV (Software)
Tutorial
Image Analysis (Field Of Study)
video analysis
template match
image match
Template Matching