Template matching is the process of finding a smaller known template image in another larger image.
Questions tagged [template-matching]
363 questions
0
votes
1 answer
Template Matching on various sizes
Right now I am working on an OCR algorithm with Template Matching, using the opencv library. I am comparing pixel by pixel, and till now I have obtained good results. The problem comes when the area I want to match is of different size.
Ex: Template…

Robert8255
- 3
- 2
0
votes
0 answers
Sum of absolute differences, What does maxSAD stand for?
I'm working on a project regarding image processing, and i'm currently working on my subsystem that had to do with template matching and i'm implementing the SAD technique ( Sum of Absolute Differences ) in order to find a match between several…

user3650610
- 1
- 1
0
votes
1 answer
Finding best match by minMaxLoc returned values OpenCV
I have one source picture and 5 other samples and I want to find the sample that matches the source image best. I concluded that should use template matching since histogram comparison didn't fit the problem well. I use cv::minMaxLoc to determine…

user3577807
- 31
- 1
- 5
0
votes
1 answer
How to detect a subset image in a picture where the position of the picture may change
my objective here is simply to detect the seat no matter where's the image is positioned. To make things even simpler this is the only image that will be shown on the screen but the position of the image may change. User may move it right, left, up…

adhg
- 10,437
- 12
- 58
- 94
0
votes
0 answers
Weird error in OpenCV - Adding all matrices inside vector
I am working on a project. I have here a vector cache. Somehow I am getting a weird error (I have already checked other solutions but its still occurring) when I run this module:
if(cache.size() == 10)
{
Mat sum_template =…

learner
- 1,197
- 6
- 22
- 34
0
votes
1 answer
Rotation invariant multiple template occurrence in image Opencv
I have various template images and one big image with multiple ocurrence of each template in it, but are rotated.
I have tried with SIFT and SURF but only work with one ocurrence of each template and matchTemplate is not rotation invariant. I am…

diegoroman17
- 13
- 1
0
votes
2 answers
Finding image in specific area in image using Matching Template in javacv
I am trying to find the location of image inside a specific area in another. I am using javacv to do this issue. But my code is giving an error when executing cvMatchTemplate function. I think I am miss using cvSetImageROI.
This is how I am using…

0_0
- 107
- 9
0
votes
1 answer
Template Matching with template update
I am trying to implement real-time tracking using templates in OpenCV/C++. I am facing problem to update the template with every frame.
Following is the code:
#include
#include "opencv2/opencv.hpp"
#include…

learner
- 1,197
- 6
- 22
- 34
0
votes
1 answer
The term of "finding templates using classifiers"
can anyone tell me in an understantable way, what is it template matching and classifiers in image processing ??. Please give me relevant examples, not links to wikipedia. Im a kind a newbie in image processing. Thx in advance !!!

Naghi Attila
- 117
- 1
- 1
- 11
0
votes
1 answer
JavaCV IplImage.createFrom hangs in place
Not sure why this is happening. The method :
IplImage.createFrom(image);
Is hanging without returning any value. I've tried multiple images, and confirmed their existence. I'm writing an application that harnesses template matching, however this…

David
- 557
- 4
- 15
0
votes
2 answers
c++ vector of vectors size of the next column
I am writing a code to do some template matching using cv::matchTemplate but I have run into some problems with the 2-dimensional vector of vectors (vov) I created which I have called vvABC. At the moment, my vov has 10 elements which can change…

Dwanyne Haart
- 1
- 2
0
votes
1 answer
How to get the exact match Using Template Matching in OpenCV (in Android)?
I'm new to OpenCV. I doing a application which tells user that given image has given template or not. I used this code. It does matching perfectly. But it doesn't detect if the given image doesn't have the matching template. As I read it goes to the…

ssdehero
- 786
- 1
- 11
- 26
0
votes
2 answers
OpenCV Android templateMatch FATAL EXCEPTION
I'm trying to do template matching using OpenCV libs in Java. I'm trying to utilize a code that I found here to do the job.
When I execute the app I get FATAL EXCEPTION
07-10 20:24:28.456: E/cv::error()(8608): OpenCV Error: Assertion failed…

jaspernorth
- 415
- 1
- 10
- 28
0
votes
1 answer
How to choose stable area for template matching with OpenCV?
I am using OpenCV for some project. I want to use part of a planar appearance to track this planar with template matching. Is there some method to choose stabler patches for template matching? Any tips would be appreciated. Thanks in advance!

flyzhao
- 348
- 4
- 15
0
votes
1 answer
Template matching - how to ignore pixels
I'm trying to find a digit within an image. To test my code I took an image of the digit and then used AForge's Exhaustive Template Matching algorithm to search for it in another image. But I think there is a problem in that the digit is obviously…

Johnny
- 7,073
- 9
- 46
- 72