getPixelBuffer
Gets this Frame's pixel data, for non-planar Frames (e.g. RGB). For planar Frames, use getPlanes instead, as the content of this buffer is then platform specific.
Unlike VisionCamera's ArrayBuffer, the returned ByteArray is a copy of the pixel data: prefer getNativeBuffer for zero-copy GPU or ML processing.
Throws
If this Frame is not valid anymore, or cannot be accessed on the CPU (hasPixelBuffer).