This commit is contained in:
Manav Rathi
2024-07-04 20:26:31 +05:30
parent dca76f304c
commit 52448cd2a2

View File

@@ -280,12 +280,9 @@ const indexFacesInBitmap = async (
},
);
const alignments: FaceAlignment[] = [];
for (const { detection } of partialResult) {
const alignment = computeFaceAlignment(detection);
alignments.push(alignment);
}
const alignments = partialResult.map(({ detection }) =>
computeFaceAlignment(detection),
);
const alignedFacesData = convertToMobileFaceNetInput(
imageBitmap,