Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Minor changes

laurenspriemd4d9253f1ac5
diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart b/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart
index 7e74f872ef..de8535c871 100644
--- a/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart
+++ b/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart
@@ -12,7 +12,7 @@ extension FaceDirectionExtension on FaceDirection {
case FaceDirection.right:
return 'Right';
case FaceDirection.straight:
- return 'Straigt';
+ return 'Straight';
default:
throw Exception('Unknown FaceDirection');
}
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 0eeda2758b..d9d964ec53 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
@@ -204,8 +204,10 @@ class FaceMlService {
try {
switch (function) {
case FaceMlOperation.analyzeImage:
+ final time = DateTime.now();
final FaceMlResult result =
await FaceMlService.analyzeImageSync(args);
+ dev.log("`analyzeImageSync` function executed in ${DateTime.now().difference(time).inMilliseconds} ms");
sendPort.send(result.toJsonString());
break;
}