简体   繁体   English

使用视频文件代替iPhone相机

[英]Using a video file instead of iPhone camera

Yesterday I posed the question of why the Apple WWDC 2010 samples for the iPhone camera dont work in the iphone simulator, Why don't the WWDC 2010 video capture samples work in the Simulator? 昨天我提出了一个问题,为什么iPhone相机的Apple WWDC 2010示例在iphone模拟器中不起作用, 为什么WWDC 2010视频捕获示例在Simulator中不能起作用? That question was answered promptly. 这个问题很快得到了回答。

However as a follow up question I would like to know how to use video frames from a video file that I put in my bundle so I can "simulate" the input to an algorithm while still testing on the simulator. 但是,作为后续问题,我想知道如何使用放入捆绑包中的视频文件中的视频帧,以便可以在仍然在模拟器上进行测试的同时“模拟”算法的输入。

Any ideas? 有任何想法吗? Anyone found code that can do that? 有人找到可以做到这一点的代码吗?

Look at this question to know how you can put a video into your simulator. 查看此问题,以了解如何将视频放入模拟器。 Then you can use that video to test any algorithm you want 然后,您可以使用该视频来测试所需的任何算法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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