convertDepthToImageAsync

open suspend fun convertDepthToImageAsync(depth: Depth): Image

Same as convertDepthToImage, but runs on a background dispatcher. The depth must not be disposed before this returns.

Throws

If the depth is invalid (Depth.isValid) or was not created by VisionCamera.