gpt4 book ai didi

ios - 增强现实套件 3 : SupportsFrameSemantics() is returning false on supported iOS device

转载 作者:行者123 更新时间:2023-12-01 16:21:19 25 4
gpt4 key购买 nike

我正在使用使用 iOS 13.2.3 的 iPhone 11。

Xcode 11.2.1

Xamarin.iOS V13.6.0.12

无论 API 调用说不支持它,人员分割确实可以成功工作,这很奇怪。我需要能够检测每个设备是否支持它来处理不支持 arkit 3 人类遮挡的设备。

还有其他人有同样的问题吗?

    public override void ViewDidLoad()
{

base.ViewDidLoad();

// All returning false
Debug.WriteLine("Person Segmentation Supported: " + ARWorldTrackingConfiguration.SupportsFrameSemantics(ARFrameSemantics.PersonSegmentation));
Debug.WriteLine("Person Segmentation Depth Supported: " + ARWorldTrackingConfiguration.SupportsFrameSemantics(ARFrameSemantics.PersonSegmentationWithDepth));
Debug.WriteLine("Body Detection Supported: " + ARWorldTrackingConfiguration.SupportsFrameSemantics(ARFrameSemantics.BodyDetection));

}

[Export("renderer:didAddNode:forAnchor:")]
public void DidAddNode(ISCNSceneRenderer renderer, SCNNode node, ARAnchor anchor)
{
// Returns false
Debug.WriteLine("Supported? " + ARWorldTrackingConfiguration.SupportsFrameSemantics(ARFrameSemantics.PersonSegmentationWithDepth));

// Create AR config with Person Segmentation added
var configuration = new ARWorldTrackingConfiguration
{
PlaneDetection = ARPlaneDetection.None,
LightEstimationEnabled = true,
FrameSemantics = ARFrameSemantics.PersonSegmentationWithDepth
};

// Runs the session and the feature works on iPhone 11 regardless of SupportsFrameSemantics(ARFrameSemantics.PersonSegmentationWithDepth) == false
ARView.Session.Run(configuration, new ARSessionRunOptions());
}

最佳答案

https://github.com/xamarin/xamarin-macios/issues/9271
我在 xamarin 的 github 上打开了一张问题单。请参阅 Whitneys 的评论以了解解决方法,她也打开了 PR,因此希望很快将其包含在更新中。

关于ios - 增强现实套件 3 : SupportsFrameSemantics() is returning false on supported iOS device,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59157121/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com