Template matching is the process of finding a smaller known template image in another larger image.
Questions tagged [template-matching]
363 questions
1
vote
1 answer
Regex matches only full condition, but it should settle with less for a search engine
As always, I'm the worst regex maker in the world. But this time I really tried.
So my goal is to make one regex, that handles search related stuff. Search queries might be something like that:
stack overflow
"stackoverflow"
title="stack…

Kalle H. Väravas
- 3,579
- 4
- 30
- 47
1
vote
1 answer
About OpenCV Template Match
I tried to use Template Match on source picture and template and wanted to find the source's direction same as template's. (They are the same item and same size)
I checked source picture's direction by rotate 90, 180, 270 degrees and use above…

Jhow Liu
- 35
- 6
1
vote
1 answer
matlab template matching only for 0 (or 1) in matrix
I'm a beginner in matlab programming and i'm having some troubles with template matching. I have a few white boxes with a black border (link for pic below) along with some text and I want to extract all the boxes,and there's also one that has an X…

Chris Post
- 117
- 1
- 13
1
vote
1 answer
How to determine CUDA gpu performance?
I am writing a cuda program for matching each input image of resolution ~180X180, with about 10,000 template images of resolution ~128*128. The goal is to achieve realtime performance i.e. Template matching of 25~30 input images(each with all 10,000…

Genutek
- 387
- 1
- 5
- 11
1
vote
2 answers
License Plate Image Matching
I would like to match two license plate images, sample images given below
Here these two license plate belong to same vehicle, hence they should give match.
There may be zoom and slight rotation in these images, also only a part of the original…
user2863023
1
vote
1 answer
How to match multiple objects
How do i match multiple objects using a single template?
i want to match multiple objects by threshold value.
When i matched a single object, i used this code.
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
Mat img =…
user3030042
1
vote
0 answers
Error when i perform the operation matchTemplate error(-215)
I wrote a program to match a patchimage with source image..I am successful in creating patch image and gives no error when i compile the file. But when i want to display it; it shows the following error
OpenCV Error: Assertion…

Sam M Mathew
- 81
- 1
- 1
- 4
1
vote
1 answer
Opencv c++Template/Pattern Matching Scale and Rotation invariant
I want to see if a template in present in an image using openCv and c++. However due to different distance at which the image is taken and different position of the image, the match does not occur correctly.
here is my code:
IplImage* image =…

vidzz
- 197
- 2
- 4
- 15
1
vote
2 answers
What's the significance of a negative NCC coefficient w.r.t. image template matching?
I have been using Matlab's normxcorr2 function to do template matching with images by performing normalized cross correlation. To find the maximum correspondence between a template and an image, one can simply run normxcorr2 and then find the…

t2k32316
- 993
- 1
- 13
- 29
1
vote
0 answers
Color histogram similarity vs Template matching for "Video Matching"
I'm planning to create an application to check the similarity of two given videos by comparing the similarity of frames in the video. i think this can be done using both "color histogram" similarity and "Template matching". could someone please…

PIKP
- 753
- 2
- 15
- 24
1
vote
1 answer
Template Matching using FFT more efficient with gray-scale images?
Is Template Matching using FFT more efficient if the source and template images are gray-scale images?
Also, let me piggy back. Does any one know of an excellent tutorial to implement Template matching using Fast Fourier Transforms?
Thanks.!

peterd
- 99
- 9
1
vote
1 answer
Java out of bounds with template matching
I have recently been interested in template matching, I know librarys like OpenCV exist but i wanted to make a simple function to find all the points where a template can be found in a search BufferedImage without the need for any extra librarys or…

zeddex
- 1,260
- 5
- 21
- 38
1
vote
1 answer
Implementing template matching for individual characters/glyphs (OCR)
I'm working on a C# OCR program (project for my own learning purposes, nothing commercial-quality) that will recognize Hebrew characters. I plan to do this by separating the glyphs from the images and then applying template matching methods.
Where…

Mac Sigler
- 189
- 1
- 15
0
votes
2 answers
Comparing two images(Book Spines) and recognize
I am creating an android application to recognize book in a library. What I do is I will take a image of the book spine of a book and send it to a server to do the image process there and recognize the book from a database and send the details about…

Gihan
- 2,476
- 2
- 27
- 33
0
votes
0 answers
Separating Bad Matches vs Good matches in Template Matching, especially with Overlapping images (OpenCV)
I'm trying to find and identify agent/character icons in an image for a project (specifically the agent icons that are outlined with a green border). I only began learning OpenCV a month ago, and the most success I've had was using template matching…

Wezzles
- 1
- 2