human/types/blazeface/blazeface.d.ts

24 lines
698 B
TypeScript
Raw Normal View History

2021-05-22 20:53:51 +02:00
import * as tf from '../../dist/tfjs.esm.js';
import { Config } from '../config';
2021-03-17 23:57:00 +01:00
export declare class BlazeFaceModel {
model: any;
2021-05-22 20:53:51 +02:00
anchorsData: [number, number][];
anchors: typeof tf.Tensor;
2021-03-17 23:57:00 +01:00
inputSize: number;
2021-05-22 20:53:51 +02:00
config: Config;
2021-03-17 23:57:00 +01:00
constructor(model: any, config: any);
getBoundingBoxes(inputImage: any): Promise<{
boxes: {
2021-05-22 20:53:51 +02:00
box: {
startPoint: typeof tf.Tensor;
endPoint: typeof tf.Tensor;
};
2021-03-17 23:57:00 +01:00
landmarks: any;
2021-04-28 14:58:21 +02:00
anchor: number[];
2021-03-17 23:57:00 +01:00
confidence: number;
}[];
scaleFactor: number[];
} | null>;
}
export declare function load(config: any): Promise<BlazeFaceModel>;