convertFrameToImage
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.