[mob] Better logging of face landmarks
This commit is contained in:
parent
fac087c81b
commit
f3d18edf98
|
@ -25,4 +25,9 @@ class Landmark {
|
||||||
: json['y'] as double),
|
: json['y'] as double),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
toString() {
|
||||||
|
return '(x: ${x.toStringAsFixed(4)}, y: ${y.toStringAsFixed(4)})';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -494,10 +494,10 @@ class FaceMlService {
|
||||||
}
|
}
|
||||||
if (allLandmarksEqual) {
|
if (allLandmarksEqual) {
|
||||||
debugPrint("Discarding remote embedding for fileID ${fileMl.fileID} "
|
debugPrint("Discarding remote embedding for fileID ${fileMl.fileID} "
|
||||||
"because landmarks are not equal");
|
"because landmarks are equal");
|
||||||
debugPrint(
|
debugPrint(
|
||||||
fileMl.faceEmbedding.faces
|
fileMl.faceEmbedding.faces
|
||||||
.map((e) => e.detection.landmarks)
|
.map((e) => e.detection.landmarks.toString())
|
||||||
.toList()
|
.toList()
|
||||||
.toString(),
|
.toString(),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue