mirror of https://github.com/vladmandic/human
28 lines
628 B
JavaScript
28 lines
628 B
JavaScript
![]() |
const Human = require('../dist/human.node-wasm.js').default;
|
||
|
const test = require('./test-main.js').test;
|
||
|
|
||
|
const config = {
|
||
|
modelBasePath: 'http://localhost:10030/models/',
|
||
|
backend: 'wasm',
|
||
|
wasmPath: 'assets/',
|
||
|
debug: false,
|
||
|
videoOptimized: false,
|
||
|
async: false,
|
||
|
filter: {
|
||
|
enabled: true,
|
||
|
},
|
||
|
face: {
|
||
|
enabled: true,
|
||
|
detector: { enabled: true, rotation: true },
|
||
|
mesh: { enabled: true },
|
||
|
iris: { enabled: true },
|
||
|
description: { enabled: true },
|
||
|
emotion: { enabled: true },
|
||
|
},
|
||
|
hand: { enabled: true },
|
||
|
body: { enabled: true },
|
||
|
object: { enabled: false },
|
||
|
};
|
||
|
|
||
|
test(Human, config);
|