convertFrameToImage

abstract fun convertFrameToImage(frame: Frame): Image

Converts the given frame to an Image, with its orientation and mirroring applied. This performs a CPU copy, synchronously on the calling thread.

Throws

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