Remove unused types

This commit is contained in:
Manav Rathi 2024-05-14 10:28:20 +05:30
parent 068ed78fe0
commit 8b46606a2e
No known key found for this signature in database

View file

@ -334,41 +334,3 @@ export interface ClipEmbedding {
embedding: Float32Array;
model: "ggml-clip" | "onnx-clip";
}
/// [`x`] and [y] are the coordinates of the top left corner of the box, so the minimim values
/// [width] and [height] are the width and height of the box.
/// All values are in absolute pixels relative to the original image size.
export interface CenterBox {
x: number;
y: number;
height: number;
width: number;
}
export interface DetectionPoint {
x: number;
y: number;
}
export interface Detection {
box: CenterBox;
landmarks: DetectionPoint[];
}
export interface FileMLFace {
id: string;
confidence: number;
blur: number;
embedding: Float32Array;
detection: Detection;
}
export interface FileML {
fileID: number;
clip?: ClipEmbedding;
faces: Face[];
height: number;
width: number;
version: number;
error?: string;
}