[mob] Minor changes
This commit is contained in:
parent
b1eb6c11b2
commit
d4d9253f1a
2 changed files with 3 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue