diff --git a/mobile/lib/face/model/landmark.dart b/mobile/lib/face/model/landmark.dart index 13808c56b..320afbabd 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.dart index d32a7f2bb..efd5a1c70 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(), );