processImage static method
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;
}
}