human/types/blazeface/box.d.ts

29 lines
904 B
TypeScript
Raw Normal View History

2021-03-17 23:57:00 +01:00
export declare function scaleBoxCoordinates(box: any, factor: any): {
startPoint: number[];
endPoint: number[];
};
export declare function getBoxSize(box: any): number[];
export declare function getBoxCenter(box: any): any[];
export declare function cutBoxFromImageAndResize(box: any, image: any, cropSize: any): any;
export declare function enlargeBox(box: any, factor?: number): {
startPoint: number[];
endPoint: any[];
landmarks: any;
};
export declare function squarifyBox(box: any): {
startPoint: number[];
endPoint: any[];
landmarks: any;
};
2021-04-25 22:56:10 +02:00
export declare function calculateLandmarksBoundingBox(landmarks: any): {
startPoint: number[];
endPoint: number[];
landmarks: any;
};
export declare const disposeBox: (t: any) => void;
export declare const createBox: (startEndTensor: any) => {
startEndTensor: any;
startPoint: any;
endPoint: any;
};