mirror of https://github.com/vladmandic/human
14 lines
675 B
TypeScript
14 lines
675 B
TypeScript
/**
|
|
* EfficientPose Module
|
|
*/
|
|
import { GraphModel, Tensor } from '../tfjs/types';
|
|
import { Config } from '../config';
|
|
declare type Input = Tensor | typeof Image | ImageData | ImageBitmap | HTMLImageElement | HTMLMediaElement | HTMLVideoElement | HTMLCanvasElement | OffscreenCanvas;
|
|
export declare function load(config: Config): Promise<GraphModel>;
|
|
export declare function predict(input: {
|
|
tensor: Tensor | null;
|
|
canvas: OffscreenCanvas | HTMLCanvasElement;
|
|
}, config: Config): Promise<Uint8ClampedArray | null>;
|
|
export declare function process(input: Input, background: Input | undefined, config: Config): Promise<HTMLCanvasElement | OffscreenCanvas>;
|
|
export {};
|