lf
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
/**
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user