[mob] Better logging of face landmarks
This commit is contained in:
parent
fac087c81b
commit
f3d18edf98
2 changed files with 9 additions and 4 deletions
|
@ -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)})';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(),
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue