简体   繁体   English

使用叠加视图从iPhone摄像头捕获视频

[英]Capture video from iPhone camera with overlay view

I'm creating an augmented reality app which overlays a 3D logo on the iPhone's video camera view using cocos3d. 我正在创建一个增强现实应用程序,它使用cocos3d在iPhone的摄像机视图上叠加了3D徽标。

I need to record the video with the logo overlay and write this to a file. 我需要录制徽标覆盖的视频并将其写入文件。

What would be the best way to accomplish this? 做到这一点的最佳方法是什么?

Try to modify this project from apple: here . 尝试从apple修改此项目: here Add your logoimage in the viewDidLoad method of AVCamViewController. 在AVCamViewController的viewDidLoad方法中添加徽标图像。 You'll need to clean the XIB from everything but the view. 您需要从视图之外的所有内容中清除XIB。

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

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