I'm new to opencv .My requirement is that in a video by giving an input image it should tag every occurence of the image in the video using opencv. Any help would be much appreciated.
Asked
Active
Viewed 812 times
2 Answers
0
You can try with OpenCV Template Matching
where you have to extract each frame your video and apply Template Matching. You can see OpenCV video tutorial here. Also see OpenCV documentation Reading and Writing Images and Video.

Haris
- 13,645
- 12
- 90
- 121
0
Load the input image in a global cv:Mat. Scale this image appropriately, make this the template image(or Mat).
First load the video, then extract each frame out of it and store in a local cv::Mat. Run template matching as suggested in the tutorial given by Harris with the local frame. If match found, mark the frame and position using some GUI or color whatever. Repeat process for next frame.

Soumyajit
- 435
- 1
- 9
- 19