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 7e74f872e..de8535c87 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 0eeda2758..d9d964ec5 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; }