【问题标题】:When I use ARKit's ARSCNView, can I use the iPhone's front camera?使用 ARKit 的 ARSCNView 时,可以使用 iPhone 的前置摄像头吗?
【发布时间】:2018-04-06 01:39:26
【问题描述】:

目前我正在学习 ARKit。
在网上,通常有使用 ARSCNView 和 iPhone 后置摄像头的示例代码。
我想将 ARKit 与前置摄像头一起使用,而不是 iPhone 的后置摄像头。
使用 ARKit 时,可以使用 ARSCNView 和 iPhone 的前置摄像头吗?
ARKit 是否同时支持 iPhone 的前置摄像头和后置摄像头?
另外,您能否告诉我您是否有使用 ARKit、ARSCNView 和 iPhone 前置摄像头的示例代码?

【问题讨论】:

  • 可以添加后置摄像头的代码吗?

标签: iphone swift camera arkit arscnview


【解决方案1】:

它确实存在,但它仍然有点受限,因为唯一能够运行它的设备是那些具有 TrueDepth 前置摄像头的设备,目前只有 iPhone X。

有来自苹果的示例代码可以在这里找到:https://developer.apple.com/documentation/arkit/creating_face_based_ar_experiences

这里是设备支持的相机列表的参考:https://developer.apple.com/library/content/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/Cameras/Cameras.html#//apple_ref/doc/uid/TP40013599-CH107-SW1

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-05-12
    • 2019-04-09
    • 1970-01-01
    • 2018-03-24
    • 2014-09-06
    • 1970-01-01
    • 2012-02-19
    相关资源
    最近更新 更多