Reliable access and modify captured camera frames under SceneKit

六月ゝ 毕业季﹏ 提交于 2019-11-29 08:21:28

Here's the key for this problem:

session:didUpdateFrame:

Provides a newly captured camera image and accompanying AR information to the delegate.

So just moved CVPixelBufferRef manipulation, the image filtering code from

- (void)renderer:(id<SCNSceneRenderer>)aRenderer updateAtTime:(NSTimeInterval)time

to

- (void)session:(ARSession *)session didUpdateFrame:(ARFrame *)frame

Made sure to set self.sceneView.session.delegate = self to have this delegate called.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!