This commit is contained in:
Manav Rathi 2024-05-18 09:21:17 +05:30
parent 46ad045ed4
commit 0188749692
No known key found for this signature in database

View file

@ -1,27 +1,10 @@
import { Box, Dimensions, Point } from "services/face/geom";
import { EnteFile } from "types/file";
export declare type FaceDescriptor = Float32Array;
export declare type Cluster = Array<number>;
export interface FacesCluster {
faces: Cluster;
summary?: FaceDescriptor;
}
export interface NearestCluster {
cluster: FacesCluster;
distance: number;
}
export declare type Landmark = Point;
export class AlignedBox {
box: Box;
rotation: number;
}
export interface FaceDetection {
// box and landmarks is relative to image dimentions stored at mlFileData
box: Box;