Tried this multi scale template matching example but its inaccurate with this image
I want to locate my template in an input image where the template might show at different scales, so that I can perform affine transformations later.
Tried this multi scale template matching example but its inaccurate with this image
I want to locate my template in an input image where the template might show at different scales, so that I can perform affine transformations later.
Your question is a little confusing. The title asks for improving accuracy and in your text you mention the template matching is lagging (slow?).
The example you link is a bare bones trick that might work, but it really isn't efficient matching at all.
If you want to improve accuracy, the correct term for what you want is scale invariant template matching. This can be done by detecting features (like edges) and comparing them.
See link1 and link2 for one example of this.