Ask Your Question

Template matching example not working as expected

asked 2015-10-08 07:02:04 -0500

RobertoGR gravatar image

Hi! I have followed the template matching tutorial from here and the resulting match does not correspond with the expected results at all. I downloaded both images (the original and template) from that page too.

Any ideas of what is happenig???

Thanks a lot!

edit retag flag offensive close merge delete


which opencv version is it ?

berak gravatar imageberak ( 2015-10-08 07:32:32 -0500 )edit

It's the 3.0 version :)

RobertoGR gravatar imageRobertoGR ( 2015-10-08 08:37:27 -0500 )edit

i'm seeing different results from the tutorial with 3.0, too.

berak gravatar imageberak ( 2015-10-08 08:40:29 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-10-08 09:09:49 -0500

RobertoGR gravatar image

It seems like the results showed in the tutorial are not correlated with the template image. The template image have a very poor quality. If I crop by my hand the face template from the original image, results are the expected. Thanks again for your help!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-10-08 07:02:04 -0500

Seen: 316 times

Last updated: Oct 08 '15