processImage static method

Future<List<List<List<List<double>>>>> processImage(
  1. Uint8List imageBytes, {
  2. int width = 640,
  3. int height = 640,
})

Orquestra o pré-processamento completo: converte bytes de imagem em tensor 4D normalizado

Implementation

static Future<List<List<List<List<double>>>>> processImage(
  Uint8List imageBytes, {
  int width = 640,
  int height = 640,
}) async {
  try {
    final tensor = await imageToTensor(imageBytes, width, height);

    return tensor;
  } catch (error) {
    rethrow;
  }
}