convertFrameToImageAsync

open suspend fun convertFrameToImageAsync(frame: Frame): Image

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

Throws

If the frame is invalid (Frame.isValid) or was not created by VisionCamera.