Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>What you are looking for is known as <strong>template matching</strong> in OpenCV.</p> <p>To get acquainted with OpenCV you should start reading <a href="https://stackoverflow.com/a/5680049/176769">some tutorials</a>, besides the books there are some good ones on the web. As a C++ guy, you will probably <strong>use the C++ interface</strong> of OpenCV which uses <code>cv::Mat</code> as the main data structure to represent images. If you see the <code>IplImage</code> data type being used, know it's from the C interface.</p> <p>After the preliminaries, you will eventually need to learn how to read frames from a video:</p> <ul> <li><a href="https://stackoverflow.com/a/14838999/176769">Reading a video with openCV</a></li> <li><a href="https://stackoverflow.com/a/14777135/176769">Read/write avi video using openCV</a></li> </ul> <p>and then how to process those frames, individually:</p> <ul> <li><a href="https://stackoverflow.com/a/3919216/176769">OpenCV every frame processing</a> (C interface)</li> <li><a href="https://stackoverflow.com/a/10788739/176769">How to find object on video using OpenCV</a></li> <li><a href="https://stackoverflow.com/a/9929714/176769">Object traking within a video file</a></li> <li><a href="https://stackoverflow.com/a/13235942/176769">Very Slow Processing of my Opencv Application</a></li> </ul> <p>Finally, you will investigate how <a href="http://docs.opencv.org/doc/tutorials/imgproc/histograms/template_matching/template_matching.html" rel="nofollow noreferrer">template matching</a> works:</p> <ul> <li><a href="https://stackoverflow.com/a/15606231/176769">How can I perform Template Matching process in SUB-IMAGE extracted from ORIGINAL-IMAGE and Display the results in Original Image</a></li> <li><a href="http://opencv-code.com/quick-tips/how-to-handle-template-matching-with-multiple-occurences/" rel="nofollow noreferrer">How to handle template matching with multiple occurences</a> </li> </ul> <p>There are other ways to track objects besides template matching, check these references:</p> <ul> <li><a href="https://computer-vision-talks.com/2011-07-13-comparison-of-the-opencv-feature-detection-algorithms/" rel="nofollow noreferrer">Comparison of OpenCV's feature detection algorithms</a></li> <li><a href="https://www.learnopencv.com/object-tracking-using-opencv-cpp-python/" rel="nofollow noreferrer">Object Tracking using OpenCV (C++/Python)</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload