automatically selecting video and extracting frames?
2 ビュー (過去 30 日間)
古いコメントを表示
i just have .avi video files from 12 am to 6 pm (day) with 5 min intervals, how can i select automatically videos of 12am, 4pm and 6pm, and extracting frames from each video?I know how to extract frame but can not automatically do for my problem. all video sorted with time sequence.
0 件のコメント
採用された回答
Walter Roberson
2016 年 2 月 1 日
4 件のコメント
Walter Roberson
2016 年 2 月 1 日
Correction, you need to multiply by another factor of 60 than what I originally wrote. 3600 seconds times the hour number.
その他の回答 (1 件)
Image Analyst
2016 年 2 月 1 日
It seems the gist of your question is "how can i select automatically videos of 12am, 4pm and 6pm, and extracting frames from each video?"
For the first question, how do you select the videos that were made at a specific time, you can use dir(). dir() returns a structure, or structure array if you have a file pattern instead of just one filename passed into it. The structure has as one of its fields the date and time stamp on the file. Now I'm not sure if you start recording a file at 4 p.m. and quit recording and close up the file at 4:30 if the file time is 4:00 or 4:30, so you'll have to check on that.
For the second question about how to open a video file and extract frames from it and do something with them, I ask you to run the demo script I have attached.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!