export const IMachineLearningRepository = 'IMachineLearningRepository'; export interface MachineLearningInput { thumbnailPath: string; } export interface BoundingBox { x1: number; y1: number; x2: number; y2: number; } export interface DetectFaceResult { imageWidth: number; imageHeight: number; boundingBox: BoundingBox; score: number; embedding: number[]; } export interface IMachineLearningRepository { classifyImage(input: MachineLearningInput): Promise; encodeImage(input: MachineLearningInput): Promise; encodeText(input: string): Promise; detectFaces(input: MachineLearningInput): Promise; }