toList method

List toList(
  1. CameraImage cameraImage,
  2. Face face
)

Implementation

List toList(CameraImage cameraImage, Face face) {
  List input = _preProcess(cameraImage, face);
  input = input.reshape([1, 112, 112, 3]);
  List output = List.generate(1, (index) => List.filled(192, 0));

  this._interpreter!.run(input, output);
  output = output.reshape([192]);
  return List.from(output);
}