swift - 如何访问 ARSCNDebugOptions.showBoundingBoxes?

标签 swift augmented-reality scenekit arkit

使用 Apple ARKit,我正在尝试访问 ARSCNDebugOptions.showBoundingBoxes 以将框放在该框上并与之交互。

我该如何解决这个问题?我知道有 Apple Scanning and detecting of objects 但我认为真正的边界框调试选项更精确。

最佳答案

Using SCNDebugOption.showBoundingBoxes type property you get a visual representation of bounding boxes around any debugging objects: geometry, feature points, skeletons, world axes, etc.

public static var showBoundingBoxes: SCNDebugOptions { get }

.

sceneView.debugOptions = [.showBoundingBoxes]

目前 ARKit 2.0 API 不允许您获取有关这些边界框的任何信息,即它们的位置和方向,以及与它们的交互。

关于swift - 如何访问 ARSCNDebugOptions.showBoundingBoxes?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55413035/

相关文章:

xcode - swift 中运算符后出现意外的表达式

unity-game-engine - 如何将 vuforia 与声音结合使用

ios - SceneKit – NSAttributedString 未显示为 SCNText

ios - 如何在appdelegate中获取已发送的通知详细信息

ios - 将 Int 范围数组快速转换为字符串数组

ios - 实例化ViewControllerWithIdentifier后IBOutlet为零

swift - 如何在 RealityKit 中为变换设置动画

android - 使用相机搜索对象

swift - 如何在 Xcode 10.1 中渲染 DAE (COLLADA) 文件。目前正在崩溃

swift - 如何在 SceneKit 中加载 Gigapixel 图像作为 Material ?