processCameraImage function

Future<void> processCameraImage(
  1. ReceivePort rp,
  2. CameraImage image
)

Calls parallel method to convert image from CameraImage type into InputImage type.

Implementation

Future<void> processCameraImage(ReceivePort rp, CameraImage image) async {
  final message = {
    "sendport": rp.sendPort,
    "image": image,
  };

  await Isolate.spawn(_processCameraImage, message);
}