简体   繁体   中英

How to extract all the frames from a video using MATLAB and do key frame extraction by any standard method?

I have a video to process frame by frame. I want to extract the key frames out of it. So the first task is to grab all the frames. We can read an AVI video using readavi but I am having no idea how to extract the RGB frames. Secondly, if someone can point to any MATLAB implementation for key frame extraction (using any standard method) or can post the code here it will be great.

To extract frames use the function frame2im . Here is an example how to do it.

For the key frame extraction I suggest you use some kind of similarity measure (like cross correlation, histogram distance, optical flow, etc..), and look for large changes in neighbouring images.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM