swift - ARKit / ARSCNView 中的视频稳定
问题描述
我使用 ARKit 和 ReplayKit 录制视频。我意识到使用 ARKit/ARSCNView 时相机/视频流非常不稳定。
有没有办法使用例如在 AVCaptureConnection 中可用的稳定模式来捕获视频流:-> activeVideoStabilizationMode
ARKit 中是否有类似的东西?
这是一些示例代码,非常基本的 arkit 设置:
@IBOutlet var sceneView: ARSCNView!
let scene = SCNScene()
func setupScene() {
sceneView.delegate = self
sceneView.session.delegate = self
sceneView.autoenablesDefaultLighting = true
// Set the scene to the view
sceneView.scene = scene
}
func resetTracking() {
// Create a session configuration
let configuration = ARWorldTrackingConfiguration()
configuration.planeDetection = .horizontal
// Run the view's session
sceneView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
}
解决方案
推荐阅读
- mysql - 如何重写 ON 子句以避免使用 OR
- node.js - fork:无法分配内存 - Ubuntu NGINX 使用 PM2 运行 NodeJS
- excel - 如何创建时间戳?
- java - 即时库的 Android Studio 3.5 索引问题
- python-3.x - Python初学者有一个基本问题:如何正确调用类和方法?
- angular - 如何在 Firebase 云函数和 Angular 之间共享 typescript 类
- python - 我真的需要这个python代码解释
- python - aiohttp logging:如何区分不同请求的日志消息?
- python - 如何计算窗口内的平均值,其中窗口的范围取决于列的值?
- sql - sql - 获取 2 个子查询的最小值