Multiple templates and one match. Using template Matching. How ?
Hi Guys, I am new to openCV.
I need to use template Matching fuction of openCV and I need some help. I have a video stream and I want to compare each frame with several templates.
So I have a database of templates (about 4 or 5 images) that I need to use to find my ROI on the video stream. How is that can be done ? I google for it but I couldn't find anything with multiple templates. I found the opposite (find several matches with one template) but not finding one match with multiple templates.
I don't see a way how to get around running matchTemplate for all your templates and hope it won't get too slow...
A faster not so accurate way would maybe to match the templates in alternating frames, e.g. match 1st template in 1st frame, 2nd in the 2nd frame, ... 5th in the 5th frame, then start again, 1st temmplate with the 6 frame, etc.