mirror of https://github.com/vladmandic/human
25 lines
832 B
TypeScript
25 lines
832 B
TypeScript
/**
|
|
* Simple helper functions used accross codebase
|
|
*/
|
|
import type { Box } from './result';
|
|
export declare function join(folder: string, file: string): string;
|
|
export declare function log(...msg: any[]): void;
|
|
export declare const now: () => number;
|
|
export declare function validate(defaults: any, config: any, parent?: string, msgs?: Array<{
|
|
reason: string;
|
|
where: string;
|
|
expected?: string;
|
|
}>): {
|
|
reason: string;
|
|
where: string;
|
|
expected?: string;
|
|
}[];
|
|
export declare function mergeDeep(...objects: any[]): any;
|
|
export declare const minmax: (data: Array<number>) => number[];
|
|
export declare function wait(time: any): Promise<void>;
|
|
export declare function scaleBox(keypoints: any, boxScaleFact: any, outputSize: any): {
|
|
box: Box;
|
|
boxRaw: Box;
|
|
yxBox: Box;
|
|
};
|
|
//# sourceMappingURL=util.d.ts.map
|