human/test/test-node.js

29 lines
707 B
JavaScript
Raw Normal View History

2021-10-02 13:46:07 +02:00
process.env.TF_CPP_MIN_LOG_LEVEL = '2';
2021-04-03 16:49:14 +02:00
const Human = require('../dist/human.node.js').default;
2021-04-14 18:53:00 +02:00
const test = require('./test-main.js').test;
2021-04-03 16:49:14 +02:00
const config = {
cacheSensitivity: 0,
2021-04-14 18:53:00 +02:00
modelBasePath: 'file://models/',
2021-04-03 16:49:14 +02:00
backend: 'tensorflow',
debug: false,
2021-09-19 20:07:53 +02:00
async: true,
2021-04-03 16:49:14 +02:00
face: {
enabled: true,
2021-09-19 20:07:53 +02:00
detector: { rotation: true },
2021-04-09 14:07:58 +02:00
mesh: { enabled: true },
iris: { enabled: true },
description: { enabled: true },
emotion: { enabled: true },
antispoof: { enabled: true },
liveness: { enabled: true },
2021-04-03 16:49:14 +02:00
},
2021-09-19 20:07:53 +02:00
hand: { enabled: true },
body: { enabled: true },
object: { enabled: true },
segmentation: { enabled: true },
2021-06-05 23:51:46 +02:00
filter: { enabled: false },
2021-04-03 16:49:14 +02:00
};
2021-04-14 18:53:00 +02:00
test(Human, config);