Template matching is the process of finding a smaller known template image in another larger image.
Questions tagged [template-matching]
363 questions
0
votes
0 answers
Remove lighting shape affecting image to remain the feature
I want to do motion detection and block matching based on features on the road.
The problem is the lighting effect at night that comes from reverse light mirror shape. The mirror cause the lighting to create lines and not-well distributed…

Nurul Hidayah
- 3
- 3
0
votes
1 answer
Is it possible to make dynamic template matching with cv2.templateMatch()
I have a document (graphical plan of a building) which has some objects I need to detect with text in it. Basically it's just a oblate hexagon with text inside. My task is to find all such hexagons on a given plan. I decided to cut one hexagon and…

wasd
- 1,532
- 3
- 28
- 40
0
votes
0 answers
GDI+ Error while UnlockBits
I am trying to find a image within an image (Template matching) with the AForge library.
ExhaustiveTemplateMatching tm = new ExhaustiveTemplateMatching(0.921f);
// find all matchings with specified above similarity
…

0x45
- 779
- 3
- 7
- 26
0
votes
0 answers
OpenCV Read Mat from Memory returns null
I create a MAT from a given hWnd
cv::Mat hwnd2mat(HWND hwnd) {
HDC hwindowDC, hwindowCompatibleDC;
int height, width, srcheight, srcwidth;
HBITMAP hbwindow;
cv::Mat src;
BITMAPINFOHEADER bi;
hwindowDC = GetDC(hwnd);
hwindowCompatibleDC =…

0x45
- 779
- 3
- 7
- 26
0
votes
1 answer
AForge.net ExhaustiveTemplateMatching
I am new to AForge.net. I have several dot pattern images and i need to find the occurrence of each in another image. Using a fixed confidence level of around 0.9f i am unable to get results. However when i lower the confidence level i get invalid…
0
votes
1 answer
Check if a template exists using match_template from scikit-image
I'm trying to use the match_template method from the scikit-image library to check if a template exists inside an image and get its X and Y positions. I'm using the scikit-image template matching example.
My code looks like this:
#!/usr/bin/env…

KelvinS
- 2,870
- 8
- 34
- 67
0
votes
0 answers
Python - Rotated Template Matching (not using Feature Matching)
I’m looking for a method to do template matching (in Python), where the template is rotated (the angle is unknown). The scale is not modified: I just need to find the rigid body motion.
The template is in fact a crop of the original image, rotated…

JuaniL
- 107
- 1
- 1
- 8
0
votes
0 answers
Template Matching Returns Zero
I'am simply using template matching with method cv2.TM_CCOEFF_NORMED by using opencv. The difference is that both reference image and warped image are divided into small pieces for instances 128x108 resolution. Generally, it works well but sometimes…

krisiun
- 1
- 2
0
votes
1 answer
Template matching
I am trying to detect elevators on floor plans in MATLAB. The code I have now is not detecting elevators, it is instead just pointing at the edges of the image. I am expecting to detect all the elevators on a floor plan. Elevators are represented by…
0
votes
1 answer
Corner detection in Python OpenCV for extraction of squares
I am working on a form extraction module which detects text in specific segments of an image. So far I am able to remove the text and retain only the bounding box in the image.
My next step was to extract each box in the image. To do that I am…

Akas Antony
- 739
- 1
- 8
- 19
0
votes
1 answer
Template matching with multiple templates
I am doing a project based on template matching using open-Cv. Here i need to check my source image with multiple templates an identify the correct template. The code is working perfectly for single template, but for multiple images i need to close…

Saurabh Band
- 13
- 2
- 8
0
votes
1 answer
OpenCL template matching with larger template is slower than OpenCV CPU version
I am new to opencl, now I am workin on a optimisation of template matching with OpenCL. I have done some experiements with smaller templates and found that the my OpenCL implementation is faster than OpenCV's CPU version. But in this particular case…

Binu MD
- 25
- 6
0
votes
1 answer
ExhaustiveTemplateMatching Rectangle doesn't work when there is more than one template on image
I've been working on my project that involves Exhaustive Template Matching using C# and AForge.net. I've managed to build application that finds templates. Well, almost. It works perfectly when there is only one template on image. However, when I…

DarkoMark
- 3
- 2
0
votes
1 answer
Brown and Blue Color Object detection using EMGU CV
I'm using template matching to detect brown color image and set a threshold of 0.7 to accept right match. I created a few templates for brown color image but every time I inspect a new brown image with template I'm getting low scores 0.4 even if…

Shayer
- 3
- 2
0
votes
2 answers
use SIFT or ORB for template match
with inspire of this tutorial:
Feature Matching, I'm trying to do template matching and clustering of image set I have.
The dataset I have in most of it, the image is straight ( maybe 10-degree rotate max )
I would like to use this information to…

Michael
- 149
- 2
- 11