@handtracking.io/yoha
Version:
Yoha is currently available for the web via JavaScript. More languages will be added in the future. If you want to port Yoha to another language and need help feel free reach out.
18 lines (17 loc) • 879 B
TypeScript
import { IEngineConfig, ITrackResultCb, IStopEngineCb } from './base';
import { ITrackSource } from '../track_source';
import { IYohaTfjsModelBlobs } from '../model/tfjs';
/**
* @public
* Starts an analysis loop on a track source (e.g. a `<video>` element) using the TFJS WebGl
* backend.
*
* @param config - Engine configuration.
* @param trackSource - The element to be analyzed.
* @param resCb - Callback that is called with hand tracking results. The callback may be called
* with high frequency.
* @param yohaModels - File blobs of the AI models required for the engine to run.
*
* @returns Promise that resolves with a callback that can be used to stop the analysis.
*/
export declare function StartTfjsWebglEngine(config: IEngineConfig, trackSource: ITrackSource, yohaModels: IYohaTfjsModelBlobs, resCb: ITrackResultCb): Promise<IStopEngineCb>;