Ask Your Question
0

matchTemplate multiple objects, false positive

asked 2020-04-29 05:48:35 -0600

Hi there!

I am using, matchTemplate without mask to match multiple objects in image with dimensions of 1600 X 900.

When those objects are presented on the image - everything works like a charm, i've found perfect tolerance after which i conclude that it is a match.

But when there are no objects - i am getting a lot of false positive matches with score of 1.0, i am using match method of TM_CCORR_NORMED, so 1.0 means perfect match, which it isn't in case when there are no objects.

Any suggestions how i can improve that?

edit retag flag offensive close merge delete

Comments

think about, what normalization does, the max will always be 1

berak gravatar imageberak ( 2020-04-29 05:52:04 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-04-29 05:59:23 -0600

Damn, thx bro, so simple... forgot that i am doing normalization...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-04-29 05:46:24 -0600

Seen: 203 times

Last updated: Apr 29 '20