Remove unused

This commit is contained in:
Manav Rathi 2024-05-19 18:57:35 +05:30
parent 2db8c779b4
commit c2e42266a6
No known key found for this signature in database
2 changed files with 1 additions and 6 deletions

View file

@ -283,12 +283,6 @@ class MLIDbStorage {
await Promise.all(fileIds.map((fileId) => tx.store.delete(fileId)));
}
public async getFace(fileID: number, faceId: string) {
const file = await this.getFile(fileID);
const face = file.faces.filter((f) => f.id === faceId);
return face[0];
}
public async getPerson(id: number) {
const db = await this.db;
return db.get("people", id);

View file

@ -681,6 +681,7 @@ const extractFaceCrop = (
imageBitmap: ImageBitmap,
alignment: FaceAlignment,
): ImageBitmap => {
// TODO-ML: Do we need to round twice?
const alignmentBox = roundBox(
new Box({
x: alignment.center.x - alignment.size / 2,