convertDepthToImage

abstract fun convertDepthToImage(depth: Depth): Image

Converts the given depth frame to an Image, with its orientation and mirroring applied. The resulting image is a grey-scale RGB image, where black pixels are far away and white pixels are close by.

Throws

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