This example shows how to segment video in time. The algorithm in this example can be used to detect major changes in video streams, such as when a commercial begins and ends. It can be useful when editing video or when you want to skip ahead through certain content.
The following figure shows the Scene Change Detection example model:
Scene Change Detection Results
The model segments the video using the following steps. First, it finds the edges in two consecutive video frames, which makes the algorithm less sensitive to small changes. Based on these edges, the model uses the Block Processing block to compare sections of the video frames to one another. If the number of different sections exceeds a specified threshold, the example determines that the scene has changed.
Available Example Versions
Some compressed multimedia files are only supported on Windows platforms. The examples that use these types of files can only be run on Windows.