Companion

object Companion

Functions

Link copied to clipboard
fun create(session: Session, frame: Frame, withAnchor: Boolean = true): FrameData?

Creates a new FrameData object, acquiring and holding all necessary image resources. The caller is responsible for calling close() on the returned FrameData object.

Link copied to clipboard
fun createFromToF(session: Session, frame: Frame, toFCamera: ToFCamera, withAnchor: Boolean = true, toF2DAnalysisLogs: Boolean = false): FrameData?

Creates FrameData from ToF sensor depth with matched RGB colors from ARCore camera. This allows ToF depth to follow the same rendering and collection pipeline as ARCore depth.