UNPKG

@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 832 B
/** * All imports used here are also available via the npm package. * https://www.npmjs.com/package/%40handtracking.io/yoha */ import { DownloadMultipleYohaTfjsModelBlobs, StartTfjsWasmEngine, } from '../../entry'; import { CreateDrawDemo } from './draw'; async function Run() { CreateDrawDemo(async (src, config, progressCb, resultCb) => { const modelBlobs = await DownloadMultipleYohaTfjsModelBlobs('box/model.json', 'lan/model.json', progressCb); // Note the 'wasmPath' argument. This has to be in sync with how you serve the respective // files. See webpack.config.js for an example. StartTfjsWasmEngine(config, { wasmPaths: './node_modules/@tensorflow/tfjs-backend-wasm/dist/' }, src, modelBlobs, resultCb); }); } Run(); //# sourceMappingURL=tfjs_wasm_entry.js.map