[英]fatal error: swapping a location with itself is not supported with Swift 2.0
[英]Fatal error – Face tracking is not supported on this device
我想在我的應用程序上啟用 ARFaceTrackingConfiguration,但我遇到了問題。 我正在使用具有 Apple A10 Fusion-64 位芯片的 iPhone 7,但仍然出現該致命錯誤。 你能幫我解決這個問題嗎?
我在 info.plist 上啟用了權限,我在 ARFaceTrackingCONfiguration 中使用 cheking.isSupported
let configuration = ARFaceTrackingConfiguration()
sceneView.session.run(configuration)
guard ARFaceTrackingConfiguration.isSupported else {
fatalError("Face tracking is not supported on this device")
}
是因為 iPhone 7 的前置攝像頭不是原深感攝像頭嗎?
如果沒有 TrueDepth 攝像頭,您將無法運行ARFaceTrackingConfiguration
。 查看文檔以獲取更多信息
面部跟蹤僅適用於配備前置 TrueDepth 攝像頭的 iOS 設備
您還可以通過調用ARFaceTrackingConfiguration.isSupported
檢查設備是否可以運行此配置
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.