license import { BaseTaskLibrary , Class } from './common' ; /** ObjectDetectorOptions proto instance. */ export declare interface ObjectDetectorOptions { getMaxResults ( ) : number ; setMaxResults ( value ) : ObjectDetectorOptions ; hasMaxResults ( ) : boolean ; getScoreThreshold ( ) : number ; setScoreThreshold ( value ) : ObjectDetectorOptions ; hasScoreThreshold ( ) : boolean ; getNumThreads ( ) : number ; setNumThreads ( value ) : ObjectDetectorOptions ; hasNumThreads ( ) : boolean ; } /** DetectionResult proto instance. */ export declare interface DetectionResult { getDetectionsList ( ) : Detection [ ] ; } /** Detection proto instance. */ export declare interface Detection { getBoundingBox ( ) : BoundingBox | null ; getClassesList ( ) : Class [ ] ; } /** BoundingBox proto instance. */ export declare interface BoundingBox { getHeight ( ) : number ; getOriginX ( ) : number ; getOriginY ( ) : number ; getWidth ( ) : number ; } /** ObjectDetector class type. */ export declare interface ObjectDetectorClass { param model param options create ( model , options ? ) : Promise < ObjectDetector > ; } /** The main ObjectDetector class interface. */ export declare class ObjectDetector extends BaseTaskLibrary { /** Performs detection on the given image-like element. */ detect ( input ) ; }