3 ms·
We will say that a video segment loops well when its first and last video frames are very similar. It's a reasonable approximation. However really perfect loop
by leni536 12y ago
We will say that a video segment loops well when its first and last video frames are very similar.
It's a reasonable approximation. However really perfect loops have not only matching positions of the objects but perfect speeds too. I would calculate optical flows and compare them at the first and the last frames too and somehow put it into the distance function.
One example: this algorithm would find the half period of a pendulum perfectly loop. Taking optical flows into account would fix this.
- kazinator 12y agoYes. For instance, suppose a point-like object is moving on a flat plane, in a repeating figure eight path. The ideal repetition unit is one cycle of the entire figure eight. But by the frame similarity heuristic, we will find that the cross in the figure eight creates two identical positions which give rise to a half-cycle of the figure eight also being considered viable. In this half cycle, the point abruptly changes direction at the cusp of a tear-drop path.
- amelius 12y agoNote that it is only possible to make a video looping if the entropy does not increase visibly in it.
- Tepix 12y agoI don't think it can be generalized like that, what if you want to loop a bouncing ball and start the loop at the moment the ball hits the floor?