π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Deprecating some methods
laurenspriem58c85c8c13dd
diff --git a/mobile/lib/utils/image_ml_isolate.dart b/mobile/lib/utils/image_ml_isolate.dartindex 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<List<Uint8List>> preprocessFaceAlign(Uint8List imageData,List<FaceDetectionAbsolute> 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<AlignmentResult>, List<bool>, List<double>, Size)>preprocessMobileFaceNetOnnx(String imagePath,diff --git a/mobile/lib/utils/image_ml_util.dart b/mobile/lib/utils/image_ml_util.dartindex 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<AlignmentResult>, List<bool>, List<double>, Size)>int height = 112,}) async {final stopwatch = Stopwatch()..start();-+final Size originalSize =Size(image.width.toDouble(), image.height.toDouble());