Remove unused
This commit is contained in:
parent
2db8c779b4
commit
c2e42266a6
2 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue