matchTemplate gives wrong result when object does not exist.

asked 2014-04-18 12:07:57 -0600

Solution Developer gravatar image

matchTemplate gives wrong result when object does not exist in image. Can I get any help with thanks in advance, please?

edit retag flag offensive close merge delete

Comments

Wrong in what way? Is your template color balanced? what method? is it normalized?

GrumbleLion gravatar imageGrumbleLion ( 2014-04-28 15:36:31 -0600 )edit

I have same problem. I'm using Canny edge detector, COLOR_BGR2GRAY and TM_CCOEFF_NORMED. But it always finds a match.

EkremE gravatar imageEkremE ( 2016-06-20 09:56:36 -0600 )edit