1 | initial version |
1st it looks you do not clean the score round your match before to locate next match.
This is needed because around the highest match you have a lot of quasi max match due to small translation of the template around best location. For example your 1st match is 0.9 your 2nd best match has score 0.8 but around your 1st match you might have scores like 0.85 that would produces false match. that's why your have to ignore all scores around a match within an area same of your template.
You can achieve this drawing a filled rectangle in the score images centred in the location match using a "color value" lower than your threshold. (The tutorial should be updated with this )
2nd using half or quarter screw is too simple template this would produces a lot of false match. I suggest to use full screw with a bit of frame around as template. If the screw is '+' type than you can use 2 templates with 45deg rotated. But because the screw looks "torks" type you might forget about rotation.
2 | No.2 Revision |
1st it 1st: It looks you do not clean clear the score round around your match before to locate next match.
This is needed because around the highest match you have a lot of quasi max match matches due to small translation of the template around best location. For example your 1st match is 0.9 0.9, your 2nd best match has score 0.8 but around your 1st match you might have scores like 0.85 that would produces false match. that's That's why your you have to ignore all scores around a match within an area same of as your template.
You can achieve this drawing a filled rectangle in the score images images, centred in the location match match, using a "color value" lower than out of your threshold. (The threshold (the tutorial should be updated with this )this).
2nd using 2nd: Using half or quarter screw is too simple template this would produces a lot of false match. matches. I suggest to use full screw with a bit of frame around as template. If the screw is '+' type than you can use 2 templates with 45deg rotated. But because the screw looks "torks" type you might forget about rotation. rotation.