diff --git a/mobile/lib/utils/image_ml_isolate.dart b/mobile/lib/utils/image_ml_isolate.dart index c306fd0290..f9869ef8fd 100644 --- a/mobile/lib/utils/image_ml_isolate.dart +++ b/mobile/lib/utils/image_ml_isolate.dart @@ -305,6 +305,7 @@ class ImageMlIsolate { /// Returns a [Num3DInputMatrix] image usable for ML inference with BlazeFace. /// /// Uses [preprocessImageToMatrix] inside the isolate. + @Deprecated("No longer using BlazeFace") Future<(Num3DInputMatrix, Size, Size)> preprocessImageBlazeFace( Uint8List imageData, { required bool normalize, @@ -339,6 +340,9 @@ class ImageMlIsolate { } /// Uses [preprocessImageToFloat32ChannelsFirst] inside the isolate. + @Deprecated( + "Old method, not needed since we now run the whole ML pipeline for faces in a single isolate", + ) Future<(Float32List, Size, Size)> preprocessImageYoloOnnx( Uint8List imageData, { required bool normalize, @@ -379,6 +383,9 @@ class ImageMlIsolate { /// Uses [preprocessFaceAlignToUint8List] inside the isolate. /// /// WARNING: For preprocessing for MobileFaceNet, use [preprocessMobileFaceNet] instead! + @Deprecated( + "Old method, not needed since we now run the whole ML pipeline for faces in a single isolate", + ) Future> preprocessFaceAlign( Uint8List imageData, List faces, @@ -439,6 +446,9 @@ class ImageMlIsolate { } /// Uses [preprocessToMobileFaceNetFloat32List] inside the isolate. + @Deprecated( + "Old method, not needed since we now run the whole ML pipeline for faces in a single isolate", + ) Future<(Float32List, List, List, List, Size)> preprocessMobileFaceNetOnnx( String imagePath, diff --git a/mobile/lib/utils/image_ml_util.dart b/mobile/lib/utils/image_ml_util.dart index fcf5fb205b..fd04cc1c14 100644 --- a/mobile/lib/utils/image_ml_util.dart +++ b/mobile/lib/utils/image_ml_util.dart @@ -1084,7 +1084,7 @@ Future<(Float32List, List, List, List, Size)> int height = 112, }) async { final stopwatch = Stopwatch()..start(); - + final Size originalSize = Size(image.width.toDouble(), image.height.toDouble());