react-native-executorch
Version:
An easy way to run AI models in React Native with ExecuTorch
10 lines (9 loc) • 467 B
TypeScript
import { ResourceSource } from '../../types/common';
import { Detection } from '../../types/objectDetection';
import { BaseNonStaticModule } from '../BaseNonStaticModule';
export declare class ObjectDetectionModule extends BaseNonStaticModule {
load(model: {
modelSource: ResourceSource;
}, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
forward(imageSource: string, detectionThreshold?: number): Promise<Detection[]>;
}