diff --git a/mobile/lib/services/face_ml/face_ml_service.dart b/mobile/lib/services/face_ml/face_ml_service.dart index 9b8e550c57945313bea68a1a39cd5d91839556c1..0fedda70d82f6585fd90494c2f27f6e4aa1bf353 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],