convertCameraImageToImageColor function Null safety

dynamic convertCameraImageToImageColor(
  1. dynamic image
)

Converts CameraImage (format auto detection) to BGR Image.

Implementation

imglib.Image convertCameraImageToImageColor(CameraImage image) {
  if (image.format.group == ImageFormatGroup.yuv420)
    return convertYUV420toImageColor(image);
  else
    return convertBGRA8888toImageColor(image);
}