Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Minor change

laurenspriem2573328c301f
diff --git a/mobile/lib/services/face_ml/face_ml_service.dart b/mobile/lib/services/face_ml/face_ml_service.dart
index 9b8e550c57..0fedda70d8 100644
--- a/mobile/lib/services/face_ml/face_ml_service.dart
+++ b/mobile/lib/services/face_ml/face_ml_service.dart
@@ -558,15 +558,14 @@ class FaceMlService {
}
for (int i = 0; i < result.faces.length; ++i) {
final FaceResult faceRes = result.faces[i];
- final FaceDetectionRelative relativeDetection = faceRes.detection;
final detection = face_detection.Detection(
box: FaceBox(
- xMin: relativeDetection.xMinBox,
- yMin: relativeDetection.yMinBox,
- width: relativeDetection.width,
- height: relativeDetection.height,
+ xMin: faceRes.detection.xMinBox,
+ yMin: faceRes.detection.yMinBox,
+ width: faceRes.detection.width,
+ height: faceRes.detection.height,
),
- landmarks: relativeDetection.allKeypoints
+ landmarks: faceRes.detection.allKeypoints
.map(
(keypoint) => Landmark(
x: keypoint[0],