π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Better logging of face landmarks
laurenspriemf3d18edf986c
diff --git a/mobile/lib/face/model/landmark.dart b/mobile/lib/face/model/landmark.dartindex 13808c56b0..320afbabd1 100644--- a/mobile/lib/face/model/landmark.dart+++ b/mobile/lib/face/model/landmark.dart@@ -1,5 +1,5 @@-/// Landmark coordinate data.-///+/// Landmark coordinate data.+////// WARNING: All coordinates are relative to the image size, so in the range [0, 1]!class Landmark {double x;@@ -25,4 +25,9 @@ class Landmark {: json['y'] as double),);}++ @override+ toString() {+ return '(x: ${x.toStringAsFixed(4)}, y: ${y.toStringAsFixed(4)})';+ }}diff --git a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dartindex d32a7f2bb0..efd5a1c70f 100644--- a/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart+++ b/mobile/lib/services/machine_learning/face_ml/face_ml_service.dart@@ -494,10 +494,10 @@ class FaceMlService {}if (allLandmarksEqual) {debugPrint("Discarding remote embedding for fileID ${fileMl.fileID} "- "because landmarks are not equal");+ "because landmarks are equal");debugPrint(fileMl.faceEmbedding.faces- .map((e) => e.detection.landmarks)+ .map((e) => e.detection.landmarks.toString()).toList().toString(),);