This commit is contained in:
Manav Rathi
2024-05-29 13:25:41 +05:30
parent cee093c214
commit b3a0bc624b
3 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import { blobCache } from "@/next/blob-cache";
import type { Box, Face, FaceAlignment } from "./types-old";
import type { Box } from "./types";
import type { Face, FaceAlignment } from "./types-old";
export const saveFaceCrop = async (imageBitmap: ImageBitmap, face: Face) => {
const faceCrop = extractFaceCrop(imageBitmap, face.alignment);

View File

@@ -115,7 +115,6 @@ const openFaceDB = async () => {
/**
* @returns a lazily created, cached connection to the face DB.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const faceDB = () => (_faceDB ??= openFaceDB());
/**

View File

@@ -2,7 +2,8 @@ import log from "@/next/log";
import ComlinkCryptoWorker from "@ente/shared/crypto";
import { putEmbedding } from "services/embeddingService";
import type { EnteFile } from "types/file";
import type { Face, FaceDetection, MlFileData, Point } from "./types-old";
import type { Point } from "./types";
import type { Face, FaceDetection, MlFileData } from "./types-old";
export const putFaceEmbedding = async (
enteFile: EnteFile,