当前位置:网站首页>2022-07-04 matlab reads video frames and saves them
2022-07-04 matlab reads video frames and saves them
2022-07-07 18:55:00 【Ziyun Wudi】
%%
filename = dir('**/*.mp4');
parfor fileIndex = 1:size(filename, 1)
frameFolder = strcat(filename(fileIndex).folder, '\ImageTest');
if ~exist(frameFolder, 'dir')
mkdir(frameFolder);
end
file = strcat(filename(fileIndex).folder, '\',filename(fileIndex).name);
obj = VideoReader(file);
% Number of frames
numFrames = obj.NumFrames;
for k = 1 : numFrames
% Read frame
frame = read(obj, k);
% Show frame image
% imshow(frame);
% Save frame image 0001.jpg, 0002.jpg
imwrite(frame,strcat(frameFolder, '\',sprintf('%04d.jpg',k)),'jpg');
end
end
边栏推荐
- 如何选择合适的自动化测试工具?
- Wireshark分析抓包数据*.cap
- The report of the state of world food security and nutrition was released: the number of hungry people in the world increased to 828million in 2021
- [sword finger offer] 59 - I. maximum value of sliding window
- Wireshark analyzes packet capture data * cap
- 小程序中实现付款功能
- 行业案例|数字化经营底座助力寿险行业转型
- Kirk Borne的本周学习资源精选【点击标题直接下载】
- debian10编译安装mysql
- Usage of PHP interview questions foreach ($arr as $value) and foreach ($arr as $value)
猜你喜欢

面试唯品会实习测试岗、抖音实习测试岗【真实投稿】

Year SQL audit platform

Discuss | what preparations should be made before ar application is launched?

五种网络IO模型

我感觉被骗了,微信内测 “大小号” 功能,同一手机号可注册两个微信
![[unity shader] insert pass to realize the X-ray perspective effect of model occlusion](/img/86/251404b81ae4ab6dbfd9da73cd11cb.png)
[unity shader] insert pass to realize the X-ray perspective effect of model occlusion

Wireshark分析抓包数据*.cap

Discuss | frankly, why is it difficult to implement industrial AR applications?

Tips for short-term operation of spot silver that cannot be ignored

静态路由配置
随机推荐
The highest level of anonymity in C language
Redis集群与扩展
unity2d的Rigidbody2D的MovePosition函数移动时人物或屏幕抖动问题解决
2022-07-04 matlab读取视频帧并保存
Tsinghua, Cambridge and UIC jointly launched the first Chinese fact verification data set: evidence-based, covering many fields such as medical society
体总:安全有序恢复线下体育赛事,力争做到国内赛事应办尽办
[Tawang methodology] Tawang 3W consumption strategy - U & a research method
Reject policy of thread pool
Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon
企业展厅设计中常用的三种多媒体技术形式
通过 Play Integrity API 的 nonce 字段提高应用安全性
GSAP animation library
2022年理财产品的一般收益率是多少?
Will domestic software testing be biased
Hash, bitmap and bloom filter for mass data De duplication
Usage of PHP interview questions foreach ($arr as $value) and foreach ($arr as $value)
Wireshark分析抓包数据*.cap
3.关于cookie
PHP面试题 foreach($arr as &$value)与foreach($arr as $value)的用法
Recommend free online SMS receiving platform in 2022 (domestic and foreign)