convertCameraImageToImageColor function
Image
convertCameraImageToImageColor(
- CameraImage 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);
}