[mob] Minor change

This commit is contained in:
laurenspriem 2024-03-20 11:28:59 +05:30
parent eaea4f81b7
commit 2573328c30

View file

@ -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],