Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 1.38 KB

File metadata and controls

31 lines (16 loc) · 1.38 KB

Video-Keyframe-Extractor-Using-RGB-Features-in-Matlab

In this script, I use a sample video called planes.mp4 which has 4 scene changes. If you watch the video you can see that there are scene changes at approximately:

1)00:03:xx

1

2)00:06:xx

2

3)00:10:xx

3

4)00:14:xx

4

-It takes the i th and i+1 th frames' RGB features and calculates the histogam difference of those features. In the figure the maximum points of the graph are the maximum changes of RGB features which extracted from the frames.

extract

-As you can see in the figure, you can take the maximum points of the graph as keyframes. It finds all 4 keyframes successfully in this example.

-x-axis indicates the duration of the video, by taking the durations of the maximum points you can extract that frame at that duration as keyframe.

-Automatically saves frames matrice as planes.mat in the current folder for later usage.