How to get the time when the image in the video changes?

I have a video showing a slide slide. I want the video time to change to the next page. I am using a Windows encoder to create a video. Can I use it?

+3
source share
1 answer

You can use a measure of similarity to a frame.
The simplest will be the SSD - Sum of Square Differences. For each two consecutive frames, calculate the difference in pixel pixels, build a square and sum over all pixels. If for a specific pair of consecutive frames the result suddenly jumps over a certain threshold, this means that the frames are different, and, most likely, a slide change took place.
Video compression will affect the threshold (higher compression = more compression artifacts = greater differences between frames => higher threshold for an acceptable difference).

+3
source

Source: https://habr.com/ru/post/1779945/


All Articles