captureFrame method

Future<Map<String, dynamic>> captureFrame({
  1. int byteOrder = 2,
})

Captures a single RGB frame from the camera.

While a preview is running (see startPreview) this returns the latest frame from the native frame cache without disturbing the video stream.

On Android the returned frame is rotated to match the on-screen preview (the display pipeline already orients the preview), so coordinates derived from the frame map 1:1 onto the displayed image.

Implementation

Future<Map<String, dynamic>> captureFrame({int byteOrder = 2}) {
  throw UnimplementedError('captureFrame() has not been implemented.');
}