I would like to do the following : I have a set of slides and a video in which those slides are discussed. Now I would like to extract the timestamp when the slide appears in the video. I would suggest to proceed in the following way:
Import the video
Import[]
(How can I import a mp4.file ?)Import the slides as images
For all frames in the video, I define the following function: I compare a certain amount of pixels of the frame to all the slides images. When a certain percentage of pixels are the same, I return the slide image and the corresponding timestamp.
My questions:
- How can I extract all timestamps for a video frames ?
- How can I extract the values of pixels within a certain geometric region of the frame.
In my video, a person might stand in fron of the slides, therefor I cannot simply say that I detect a slide in the video, if all pixels of the frame and the slide are the same.
Thanks.
Here is some material to try:
Instead of a video, one can use a gif:
One can try to extract the timestamp of this frame:
And if someone is steading in front (please excuse my drawing skills):
Please try with the following material: YOu can find the frames and the slides to match. Aim: Find position of the slides within the frame list.
https://www.dropbox.com/sh/l1deic1ris2il6w/AAAOU_ICZM_f0T-9M9kfNNeRa?dl=0