我有一个从多个ARFrame生成点云的应用程序。看起来,用来捕捉图像的相机具有动态的白平衡,并且可以在捕获会话的中间改变它。
如何配置ARView、ARSession或ARCamera以强制它在会话期间锁定白平衡?
我可以访问以下参数,但没有看到任何与白平衡相关的内容。
var arView: ARView!
let session: ARSession = arView.session
var sampleFrame: ARFrame = session.currentFrame!
let camera = sampleFrame.camera
func configureSessionAndRun() {
arView.automaticallyConfigureSession = false
let configuration = ARWorldTrackingConfiguration()
configuration.sceneReconstruction = .meshWithClassification
configuration.frameSemantics = .smoothedSceneDepth
configuration.planeDetection = [.horizontal, .vertical]
configuration.environmentTexturing = .automatic
arView.session.run(configuration)
}发布于 2021-01-31 20:21:59
只有两个AR View属性可能有所帮助,但它们只是可获取的,而不是可设置的:
let frame = arView.session.currentFrame
frame?.camera.exposureDuration // { get }
frame?.camera.exposureOffset // { get }https://stackoverflow.com/questions/65983193
复制相似问题