mirror of https://github.com/vladmandic/human
add static type definitions to main class
parent
db00c45278
commit
ece985b6b7
|
@ -9,8 +9,9 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
|
|||
|
||||
## Changelog
|
||||
|
||||
### **HEAD -> main** 2021/08/17 mandic00@live.com
|
||||
### **HEAD -> main** 2021/08/18 mandic00@live.com
|
||||
|
||||
- rebuild full
|
||||
- improve face box caching
|
||||
- strict type checks
|
||||
- add webgu checks
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -66,14 +66,14 @@
|
|||
"@tensorflow/tfjs-layers": "^3.8.0",
|
||||
"@tensorflow/tfjs-node": "^3.8.0",
|
||||
"@tensorflow/tfjs-node-gpu": "^3.8.0",
|
||||
"@types/node": "^16.6.1",
|
||||
"@types/node": "^16.6.2",
|
||||
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
||||
"@typescript-eslint/parser": "^4.29.2",
|
||||
"@vladmandic/pilogger": "^0.2.18",
|
||||
"canvas": "^2.8.0",
|
||||
"chokidar": "^3.5.2",
|
||||
"dayjs": "^1.10.6",
|
||||
"esbuild": "^0.12.20",
|
||||
"esbuild": "^0.12.21",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-plugin-import": "^2.24.0",
|
||||
|
@ -85,7 +85,7 @@
|
|||
"seedrandom": "^3.0.5",
|
||||
"simple-git": "^2.44.0",
|
||||
"tslib": "^2.3.1",
|
||||
"typedoc": "0.21.5",
|
||||
"typedoc": "0.21.6",
|
||||
"typescript": "4.3.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
2021-08-18 14:27:34 [36mINFO: [39m @vladmandic/human version 2.1.3
|
||||
2021-08-18 14:27:34 [36mINFO: [39m User: vlado Platform: linux Arch: x64 Node: v16.5.0
|
||||
2021-08-18 14:27:34 [36mINFO: [39m Toolchain: {"tfjs":"3.8.0","esbuild":"0.12.20","typescript":"4.3.5","typedoc":"0.21.5","eslint":"7.32.0"}
|
||||
2021-08-18 14:27:34 [36mINFO: [39m Clean: ["dist/*","types/*","typedoc/*"]
|
||||
2021-08-18 14:27:34 [36mINFO: [39m Build: file startup all type: production config: {"minifyWhitespace":true,"minifyIdentifiers":true,"minifySyntax":true}
|
||||
2021-08-18 14:27:34 [35mSTATE:[39m target: node type: tfjs: {"imports":1,"importBytes":102,"outputBytes":1303,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-18 14:27:34 [35mSTATE:[39m target: node type: node: {"imports":42,"importBytes":436906,"outputBytes":379821,"outputFiles":"dist/human.node.js"}
|
||||
2021-08-18 14:27:34 [35mSTATE:[39m target: nodeGPU type: tfjs: {"imports":1,"importBytes":110,"outputBytes":1311,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-18 14:27:34 [35mSTATE:[39m target: nodeGPU type: node: {"imports":42,"importBytes":436914,"outputBytes":379825,"outputFiles":"dist/human.node-gpu.js"}
|
||||
2021-08-18 14:27:34 [35mSTATE:[39m target: nodeWASM type: tfjs: {"imports":1,"importBytes":149,"outputBytes":1378,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-18 14:27:34 [35mSTATE:[39m target: nodeWASM type: node: {"imports":42,"importBytes":436981,"outputBytes":379897,"outputFiles":"dist/human.node-wasm.js"}
|
||||
2021-08-18 14:27:34 [35mSTATE:[39m target: browserNoBundle type: tfjs: {"imports":1,"importBytes":2168,"outputBytes":1242,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-18 14:27:34 [35mSTATE:[39m target: browserNoBundle type: esm: {"imports":42,"importBytes":436845,"outputBytes":249180,"outputFiles":"dist/human.esm-nobundle.js"}
|
||||
2021-08-18 14:27:35 [35mSTATE:[39m target: browserBundle type: tfjs: {"modules":1170,"moduleBytes":4145868,"imports":7,"importBytes":2168,"outputBytes":2334701,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-18 14:27:35 [35mSTATE:[39m target: browserBundle type: iife: {"imports":42,"importBytes":2770304,"outputBytes":1379548,"outputFiles":"dist/human.js"}
|
||||
2021-08-18 14:27:35 [35mSTATE:[39m target: browserBundle type: esm: {"imports":42,"importBytes":2770304,"outputBytes":1379540,"outputFiles":"dist/human.esm.js"}
|
||||
2021-08-18 14:27:35 [36mINFO: [39m Running Linter: ["server/","src/","tfjs/","test/","demo/"]
|
||||
2021-08-18 14:27:55 [36mINFO: [39m Linter complete: files: 77 errors: 0 warnings: 0
|
||||
2021-08-18 14:27:55 [36mINFO: [39m Generate ChangeLog: ["/home/vlado/dev/human/CHANGELOG.md"]
|
||||
2021-08-18 14:27:55 [36mINFO: [39m Generate Typings: ["src/human.ts"] outDir: ["types"]
|
||||
2021-08-18 14:28:08 [36mINFO: [39m Generate TypeDocs: ["src/human.ts"] outDir: ["typedoc"]
|
||||
2021-08-18 14:28:19 [36mINFO: [39m Documentation generated at /home/vlado/dev/human/typedoc 1
|
||||
2021-08-19 16:13:34 [36mINFO: [39m @vladmandic/human version 2.1.3
|
||||
2021-08-19 16:13:34 [36mINFO: [39m User: vlado Platform: linux Arch: x64 Node: v16.5.0
|
||||
2021-08-19 16:13:34 [36mINFO: [39m Toolchain: {"tfjs":"3.8.0","esbuild":"0.12.21","typescript":"4.3.5","typedoc":"0.21.6","eslint":"7.32.0"}
|
||||
2021-08-19 16:13:34 [36mINFO: [39m Clean: ["dist/*","types/*","typedoc/*"]
|
||||
2021-08-19 16:13:34 [36mINFO: [39m Build: file startup all type: production config: {"minifyWhitespace":true,"minifyIdentifiers":true,"minifySyntax":true}
|
||||
2021-08-19 16:13:34 [35mSTATE:[39m target: node type: tfjs: {"imports":1,"importBytes":102,"outputBytes":1303,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-19 16:13:34 [35mSTATE:[39m target: node type: node: {"imports":42,"importBytes":437161,"outputBytes":379821,"outputFiles":"dist/human.node.js"}
|
||||
2021-08-19 16:13:34 [35mSTATE:[39m target: nodeGPU type: tfjs: {"imports":1,"importBytes":110,"outputBytes":1311,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-19 16:13:34 [35mSTATE:[39m target: nodeGPU type: node: {"imports":42,"importBytes":437169,"outputBytes":379825,"outputFiles":"dist/human.node-gpu.js"}
|
||||
2021-08-19 16:13:34 [35mSTATE:[39m target: nodeWASM type: tfjs: {"imports":1,"importBytes":149,"outputBytes":1378,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-19 16:13:34 [35mSTATE:[39m target: nodeWASM type: node: {"imports":42,"importBytes":437236,"outputBytes":379897,"outputFiles":"dist/human.node-wasm.js"}
|
||||
2021-08-19 16:13:34 [35mSTATE:[39m target: browserNoBundle type: tfjs: {"imports":1,"importBytes":2168,"outputBytes":1242,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-19 16:13:34 [35mSTATE:[39m target: browserNoBundle type: esm: {"imports":42,"importBytes":437100,"outputBytes":249180,"outputFiles":"dist/human.esm-nobundle.js"}
|
||||
2021-08-19 16:13:35 [35mSTATE:[39m target: browserBundle type: tfjs: {"modules":1170,"moduleBytes":4145868,"imports":7,"importBytes":2168,"outputBytes":2334701,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-08-19 16:13:35 [35mSTATE:[39m target: browserBundle type: iife: {"imports":42,"importBytes":2770559,"outputBytes":1379548,"outputFiles":"dist/human.js"}
|
||||
2021-08-19 16:13:35 [35mSTATE:[39m target: browserBundle type: esm: {"imports":42,"importBytes":2770559,"outputBytes":1379540,"outputFiles":"dist/human.esm.js"}
|
||||
2021-08-19 16:13:35 [36mINFO: [39m Running Linter: ["server/","src/","tfjs/","test/","demo/"]
|
||||
2021-08-19 16:13:59 [36mINFO: [39m Linter complete: files: 77 errors: 0 warnings: 0
|
||||
2021-08-19 16:13:59 [36mINFO: [39m Generate ChangeLog: ["/home/vlado/dev/human/CHANGELOG.md"]
|
||||
2021-08-19 16:13:59 [36mINFO: [39m Generate Typings: ["src/human.ts"] outDir: ["types"]
|
||||
2021-08-19 16:14:13 [36mINFO: [39m Generate TypeDocs: ["src/human.ts"] outDir: ["typedoc"]
|
||||
2021-08-19 16:14:29 [36mINFO: [39m Documentation generated at /home/vlado/dev/human/typedoc 1
|
||||
|
|
10
src/human.ts
10
src/human.ts
|
@ -99,6 +99,16 @@ export class Human {
|
|||
canvas: typeof draw.canvas,
|
||||
all: typeof draw.all,
|
||||
};
|
||||
/** Types used by Human */
|
||||
static Config: Config;
|
||||
static Result: Result;
|
||||
static Face: Face;
|
||||
static Hand: Hand;
|
||||
static Body: Body;
|
||||
static Item: Item;
|
||||
static Gesture: Gesture;
|
||||
static Person: Gesture
|
||||
static DrawOptions: draw.DrawOptions;
|
||||
/** @internal: Currently loaded models */
|
||||
models: {
|
||||
face: [unknown, GraphModel | null, GraphModel | null] | null,
|
||||
|
|
|
@ -12,7 +12,7 @@ const tests = [
|
|||
'test-node-wasm.js',
|
||||
];
|
||||
|
||||
const ignore = [
|
||||
const ignoreMessages = [
|
||||
'cpu_feature_guard.cc',
|
||||
'rebuild TensorFlow',
|
||||
'xla_gpu_device.cc',
|
||||
|
@ -35,7 +35,7 @@ function logMessage(test, data) {
|
|||
function logStdIO(ok, test, buffer) {
|
||||
const lines = buffer.toString().split(/\r\n|\n\r|\n|\r/);
|
||||
const filtered = lines.filter((line) => {
|
||||
for (const ignoreString of ignore) {
|
||||
for (const ignoreString of ignoreMessages) {
|
||||
if (line.includes(ignoreString)) return false;
|
||||
}
|
||||
return true;
|
||||
|
|
289
test/test.log
289
test/test.log
|
@ -1,169 +1,120 @@
|
|||
2021-08-17 09:12:17 [36mINFO: [39m @vladmandic/human version 2.1.3
|
||||
2021-08-17 09:12:17 [36mINFO: [39m User: vlado Platform: linux Arch: x64 Node: v16.5.0
|
||||
2021-08-17 09:12:17 [36mINFO: [39m tests: ["test-node.js","test-node-gpu.js","test-node-wasm.js"]
|
||||
2021-08-17 09:12:17 [36mINFO: [39m test-node.js start
|
||||
2021-08-17 09:12:18 [35mSTATE:[39m test-node.js passed: create human
|
||||
2021-08-17 09:12:18 [36mINFO: [39m test-node.js human version: 2.1.3
|
||||
2021-08-17 09:12:18 [36mINFO: [39m test-node.js platform: linux x64 agent: NodeJS v16.5.0
|
||||
2021-08-17 09:12:18 [36mINFO: [39m test-node.js tfjs version: 3.8.0
|
||||
2021-08-17 09:12:18 [35mSTATE:[39m test-node.js passed: set backend: tensorflow
|
||||
2021-08-17 09:12:18 [35mSTATE:[39m test-node.js passed: load models
|
||||
2021-08-17 09:12:18 [35mSTATE:[39m test-node.js result: defined models: 14 loaded models: 7
|
||||
2021-08-17 09:12:18 [35mSTATE:[39m test-node.js passed: warmup: none default
|
||||
2021-08-17 09:12:19 [35mSTATE:[39m test-node.js passed: warmup: face default
|
||||
2021-08-17 09:12:19 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.42,"keypoints":4}
|
||||
2021-08-17 09:12:19 [32mDATA: [39m test-node.js result: performance: load: 332 total: 1158
|
||||
2021-08-17 09:12:20 [35mSTATE:[39m test-node.js passed: warmup: body default
|
||||
2021-08-17 09:12:20 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17}
|
||||
2021-08-17 09:12:20 [32mDATA: [39m test-node.js result: performance: load: 332 total: 1080
|
||||
2021-08-17 09:12:20 [36mINFO: [39m test-node.js test body variants
|
||||
2021-08-17 09:12:21 [35mSTATE:[39m test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:22 [35mSTATE:[39m test-node.js passed: detect: samples/ai-body.jpg posenet
|
||||
2021-08-17 09:12:22 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.96,"keypoints":16}
|
||||
2021-08-17 09:12:22 [32mDATA: [39m test-node.js result: performance: load: 332 total: 746
|
||||
2021-08-17 09:12:23 [35mSTATE:[39m test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:23 [35mSTATE:[39m test-node.js passed: detect: samples/ai-body.jpg movenet
|
||||
2021-08-17 09:12:23 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17}
|
||||
2021-08-17 09:12:23 [32mDATA: [39m test-node.js result: performance: load: 332 total: 195
|
||||
2021-08-17 09:12:23 [35mSTATE:[39m test-node.js passed: detect: random default
|
||||
2021-08-17 09:12:23 [32mDATA: [39m test-node.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 1 person: 0 {} {"score":0.72,"class":"person"} {"score":0,"keypoints":0}
|
||||
2021-08-17 09:12:23 [32mDATA: [39m test-node.js result: performance: load: 332 total: 179
|
||||
2021-08-17 09:12:23 [36mINFO: [39m test-node.js test: first instance
|
||||
2021-08-17 09:12:24 [35mSTATE:[39m test-node.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-17 09:12:24 [35mSTATE:[39m test-node.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-17 09:12:24 [32mDATA: [39m test-node.js result: face: 0 body: 1 hand: 0 gesture: 1 object: 1 person: 0 {} {"score":0.72,"class":"person"} {"score":0.69,"keypoints":10}
|
||||
2021-08-17 09:12:24 [32mDATA: [39m test-node.js result: performance: load: 332 total: 140
|
||||
2021-08-17 09:12:24 [36mINFO: [39m test-node.js test: second instance
|
||||
2021-08-17 09:12:24 [35mSTATE:[39m test-node.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-17 09:12:25 [35mSTATE:[39m test-node.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-17 09:12:25 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.69,"keypoints":10}
|
||||
2021-08-17 09:12:25 [32mDATA: [39m test-node.js result: performance: load: 3 total: 1043
|
||||
2021-08-17 09:12:25 [36mINFO: [39m test-node.js test: concurrent
|
||||
2021-08-17 09:12:25 [35mSTATE:[39m test-node.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-17 09:12:25 [35mSTATE:[39m test-node.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-17 09:12:26 [35mSTATE:[39m test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:27 [35mSTATE:[39m test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:31 [35mSTATE:[39m test-node.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-17 09:12:31 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":42}
|
||||
2021-08-17 09:12:31 [32mDATA: [39m test-node.js result: performance: load: 332 total: 4402
|
||||
2021-08-17 09:12:31 [35mSTATE:[39m test-node.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-17 09:12:31 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 5 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":42}
|
||||
2021-08-17 09:12:31 [32mDATA: [39m test-node.js result: performance: load: 3 total: 4402
|
||||
2021-08-17 09:12:31 [35mSTATE:[39m test-node.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-17 09:12:31 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":42}
|
||||
2021-08-17 09:12:31 [32mDATA: [39m test-node.js result: performance: load: 332 total: 4402
|
||||
2021-08-17 09:12:31 [35mSTATE:[39m test-node.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-17 09:12:31 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":42}
|
||||
2021-08-17 09:12:31 [32mDATA: [39m test-node.js result: performance: load: 3 total: 4402
|
||||
2021-08-17 09:12:31 [36mINFO: [39m test-node.js test complete: 13794 ms
|
||||
2021-08-17 09:12:31 [36mINFO: [39m test-node-gpu.js start
|
||||
2021-08-17 09:12:32 [33mWARN: [39m test-node-gpu.js stderr: 2021-08-17 09:12:32.336897: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
|
||||
2021-08-17 09:12:32 [33mWARN: [39m test-node-gpu.js stderr: 2021-08-17 09:12:32.387680: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
|
||||
2021-08-17 09:12:32 [33mWARN: [39m test-node-gpu.js stderr: 2021-08-17 09:12:32.387718: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (wyse): /proc/driver/nvidia/version does not exist
|
||||
2021-08-17 09:12:32 [35mSTATE:[39m test-node-gpu.js passed: create human
|
||||
2021-08-17 09:12:32 [36mINFO: [39m test-node-gpu.js human version: 2.1.3
|
||||
2021-08-17 09:12:32 [36mINFO: [39m test-node-gpu.js platform: linux x64 agent: NodeJS v16.5.0
|
||||
2021-08-17 09:12:32 [36mINFO: [39m test-node-gpu.js tfjs version: 3.8.0
|
||||
2021-08-17 09:12:32 [35mSTATE:[39m test-node-gpu.js passed: set backend: tensorflow
|
||||
2021-08-17 09:12:32 [35mSTATE:[39m test-node-gpu.js passed: load models
|
||||
2021-08-17 09:12:32 [35mSTATE:[39m test-node-gpu.js result: defined models: 14 loaded models: 7
|
||||
2021-08-17 09:12:32 [35mSTATE:[39m test-node-gpu.js passed: warmup: none default
|
||||
2021-08-17 09:12:33 [35mSTATE:[39m test-node-gpu.js passed: warmup: face default
|
||||
2021-08-17 09:12:33 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.42,"keypoints":4}
|
||||
2021-08-17 09:12:33 [32mDATA: [39m test-node-gpu.js result: performance: load: 294 total: 1143
|
||||
2021-08-17 09:12:35 [35mSTATE:[39m test-node-gpu.js passed: warmup: body default
|
||||
2021-08-17 09:12:35 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17}
|
||||
2021-08-17 09:12:35 [32mDATA: [39m test-node-gpu.js result: performance: load: 294 total: 1140
|
||||
2021-08-17 09:12:35 [36mINFO: [39m test-node-gpu.js test body variants
|
||||
2021-08-17 09:12:35 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:36 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-body.jpg posenet
|
||||
2021-08-17 09:12:36 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.96,"keypoints":16}
|
||||
2021-08-17 09:12:36 [32mDATA: [39m test-node-gpu.js result: performance: load: 294 total: 769
|
||||
2021-08-17 09:12:37 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:37 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-body.jpg movenet
|
||||
2021-08-17 09:12:37 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17}
|
||||
2021-08-17 09:12:37 [32mDATA: [39m test-node-gpu.js result: performance: load: 294 total: 245
|
||||
2021-08-17 09:12:38 [35mSTATE:[39m test-node-gpu.js passed: detect: random default
|
||||
2021-08-17 09:12:38 [32mDATA: [39m test-node-gpu.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0,"keypoints":0}
|
||||
2021-08-17 09:12:38 [32mDATA: [39m test-node-gpu.js result: performance: load: 294 total: 610
|
||||
2021-08-17 09:12:38 [36mINFO: [39m test-node-gpu.js test: first instance
|
||||
2021-08-17 09:12:38 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-17 09:12:39 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-17 09:12:39 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.69,"keypoints":10}
|
||||
2021-08-17 09:12:39 [32mDATA: [39m test-node-gpu.js result: performance: load: 294 total: 989
|
||||
2021-08-17 09:12:39 [36mINFO: [39m test-node-gpu.js test: second instance
|
||||
2021-08-17 09:12:40 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-17 09:12:41 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-17 09:12:41 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.69,"keypoints":10}
|
||||
2021-08-17 09:12:41 [32mDATA: [39m test-node-gpu.js result: performance: load: 4 total: 943
|
||||
2021-08-17 09:12:41 [36mINFO: [39m test-node-gpu.js test: concurrent
|
||||
2021-08-17 09:12:41 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-17 09:12:41 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-17 09:12:41 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:42 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:47 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-17 09:12:47 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":42}
|
||||
2021-08-17 09:12:47 [32mDATA: [39m test-node-gpu.js result: performance: load: 294 total: 4310
|
||||
2021-08-17 09:12:47 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-17 09:12:47 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 5 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":42}
|
||||
2021-08-17 09:12:47 [32mDATA: [39m test-node-gpu.js result: performance: load: 4 total: 4310
|
||||
2021-08-17 09:12:47 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-17 09:12:47 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":42}
|
||||
2021-08-17 09:12:47 [32mDATA: [39m test-node-gpu.js result: performance: load: 294 total: 4310
|
||||
2021-08-17 09:12:47 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-17 09:12:47 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":42}
|
||||
2021-08-17 09:12:47 [32mDATA: [39m test-node-gpu.js result: performance: load: 4 total: 4310
|
||||
2021-08-17 09:12:47 [36mINFO: [39m test-node-gpu.js test complete: 14687 ms
|
||||
2021-08-17 09:12:47 [36mINFO: [39m test-node-wasm.js start
|
||||
2021-08-17 09:12:47 [35mSTATE:[39m test-node-wasm.js passed: model server: http://localhost:10030/models/
|
||||
2021-08-17 09:12:47 [35mSTATE:[39m test-node-wasm.js passed: create human
|
||||
2021-08-17 09:12:47 [36mINFO: [39m test-node-wasm.js human version: 2.1.3
|
||||
2021-08-17 09:12:47 [36mINFO: [39m test-node-wasm.js platform: linux x64 agent: NodeJS v16.5.0
|
||||
2021-08-17 09:12:47 [36mINFO: [39m test-node-wasm.js tfjs version: 3.8.0
|
||||
2021-08-17 09:12:48 [35mSTATE:[39m test-node-wasm.js passed: set backend: wasm
|
||||
2021-08-17 09:12:48 [35mSTATE:[39m test-node-wasm.js passed: load models
|
||||
2021-08-17 09:12:48 [35mSTATE:[39m test-node-wasm.js result: defined models: 14 loaded models: 6
|
||||
2021-08-17 09:12:48 [35mSTATE:[39m test-node-wasm.js passed: warmup: none default
|
||||
2021-08-17 09:12:48 [31mERROR:[39m test-node-wasm.js failed: warmup: face default
|
||||
2021-08-17 09:12:48 [31mERROR:[39m test-node-wasm.js failed: warmup: body default
|
||||
2021-08-17 09:12:48 [36mINFO: [39m test-node-wasm.js test body variants
|
||||
2021-08-17 09:12:49 [35mSTATE:[39m test-node-wasm.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:51 [35mSTATE:[39m test-node-wasm.js passed: detect: samples/ai-body.jpg posenet
|
||||
2021-08-17 09:12:51 [32mDATA: [39m test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":28.5,"gender":"female"} {} {"score":0.96,"keypoints":16}
|
||||
2021-08-17 09:12:51 [32mDATA: [39m test-node-wasm.js result: performance: load: 573 total: 1616
|
||||
2021-08-17 09:12:52 [35mSTATE:[39m test-node-wasm.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:53 [35mSTATE:[39m test-node-wasm.js passed: detect: samples/ai-body.jpg movenet
|
||||
2021-08-17 09:12:53 [32mDATA: [39m test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":28.5,"gender":"female"} {} {"score":0.92,"keypoints":17}
|
||||
2021-08-17 09:12:53 [32mDATA: [39m test-node-wasm.js result: performance: load: 573 total: 902
|
||||
2021-08-17 09:12:53 [35mSTATE:[39m test-node-wasm.js passed: detect: random default
|
||||
2021-08-17 09:12:53 [32mDATA: [39m test-node-wasm.js result: face: 0 body: 1 hand: 0 gesture: 1 object: 0 person: 0 {} {} {"score":0.92,"keypoints":17}
|
||||
2021-08-17 09:12:53 [32mDATA: [39m test-node-wasm.js result: performance: load: 573 total: 92
|
||||
2021-08-17 09:12:53 [36mINFO: [39m test-node-wasm.js test: first instance
|
||||
2021-08-17 09:12:54 [35mSTATE:[39m test-node-wasm.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-17 09:12:54 [35mSTATE:[39m test-node-wasm.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-17 09:12:54 [32mDATA: [39m test-node-wasm.js result: face: 0 body: 1 hand: 0 gesture: 1 object: 0 person: 0 {} {} {"score":0.69,"keypoints":10}
|
||||
2021-08-17 09:12:54 [32mDATA: [39m test-node-wasm.js result: performance: load: 573 total: 141
|
||||
2021-08-17 09:12:54 [36mINFO: [39m test-node-wasm.js test: second instance
|
||||
2021-08-17 09:12:55 [35mSTATE:[39m test-node-wasm.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-17 09:12:56 [35mSTATE:[39m test-node-wasm.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-17 09:12:56 [32mDATA: [39m test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":29.5,"gender":"female"} {} {"score":0.69,"keypoints":10}
|
||||
2021-08-17 09:12:56 [32mDATA: [39m test-node-wasm.js result: performance: load: 4 total: 987
|
||||
2021-08-17 09:12:56 [36mINFO: [39m test-node-wasm.js test: concurrent
|
||||
2021-08-17 09:12:56 [35mSTATE:[39m test-node-wasm.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-17 09:12:56 [35mSTATE:[39m test-node-wasm.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-17 09:12:57 [35mSTATE:[39m test-node-wasm.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:12:59 [35mSTATE:[39m test-node-wasm.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-17 09:13:03 [35mSTATE:[39m test-node-wasm.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-17 09:13:03 [32mDATA: [39m test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 0 person: 1 {"age":23.6,"gender":"female"} {} {"score":0.47,"keypoints":42}
|
||||
2021-08-17 09:13:03 [32mDATA: [39m test-node-wasm.js result: performance: load: 573 total: 3926
|
||||
2021-08-17 09:13:03 [35mSTATE:[39m test-node-wasm.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-17 09:13:03 [32mDATA: [39m test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 5 object: 0 person: 1 {"age":23.6,"gender":"female"} {} {"score":0.47,"keypoints":42}
|
||||
2021-08-17 09:13:03 [32mDATA: [39m test-node-wasm.js result: performance: load: 4 total: 3926
|
||||
2021-08-17 09:13:03 [35mSTATE:[39m test-node-wasm.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-17 09:13:03 [32mDATA: [39m test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":28.5,"gender":"female"} {} {"score":0.92,"keypoints":42}
|
||||
2021-08-17 09:13:03 [32mDATA: [39m test-node-wasm.js result: performance: load: 573 total: 3926
|
||||
2021-08-17 09:13:03 [35mSTATE:[39m test-node-wasm.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-17 09:13:03 [32mDATA: [39m test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 0 person: 1 {"age":28.5,"gender":"female"} {} {"score":0.92,"keypoints":42}
|
||||
2021-08-17 09:13:03 [32mDATA: [39m test-node-wasm.js result: performance: load: 4 total: 3926
|
||||
2021-08-17 09:13:03 [36mINFO: [39m test-node-wasm.js test complete: 15921 ms
|
||||
2021-08-17 09:13:03 [36mINFO: [39m status: {"passed":68,"failed":2}
|
||||
2021-08-19 16:14:50 [36mINFO: [39m @vladmandic/human version 2.1.3
|
||||
2021-08-19 16:14:50 [36mINFO: [39m User: vlado Platform: linux Arch: x64 Node: v16.5.0
|
||||
2021-08-19 16:14:50 [36mINFO: [39m tests: ["test-node.js","test-node-gpu.js","test-node-wasm.js"]
|
||||
2021-08-19 16:14:50 [36mINFO: [39m test-node.js start
|
||||
2021-08-19 16:14:50 [35mSTATE:[39m test-node.js passed: create human
|
||||
2021-08-19 16:14:50 [36mINFO: [39m test-node.js human version: 2.1.3
|
||||
2021-08-19 16:14:50 [36mINFO: [39m test-node.js platform: linux x64 agent: NodeJS v16.5.0
|
||||
2021-08-19 16:14:50 [36mINFO: [39m test-node.js tfjs version: 3.8.0
|
||||
2021-08-19 16:14:51 [35mSTATE:[39m test-node.js passed: set backend: tensorflow
|
||||
2021-08-19 16:14:51 [35mSTATE:[39m test-node.js passed: load models
|
||||
2021-08-19 16:14:51 [35mSTATE:[39m test-node.js result: defined models: 14 loaded models: 7
|
||||
2021-08-19 16:14:51 [35mSTATE:[39m test-node.js passed: warmup: none default
|
||||
2021-08-19 16:14:52 [35mSTATE:[39m test-node.js passed: warmup: face default
|
||||
2021-08-19 16:14:52 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.42,"keypoints":4}
|
||||
2021-08-19 16:14:52 [32mDATA: [39m test-node.js result: performance: load: 418 total: 1284
|
||||
2021-08-19 16:14:53 [35mSTATE:[39m test-node.js passed: warmup: body default
|
||||
2021-08-19 16:14:53 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17}
|
||||
2021-08-19 16:14:53 [32mDATA: [39m test-node.js result: performance: load: 418 total: 1203
|
||||
2021-08-19 16:14:53 [36mINFO: [39m test-node.js test body variants
|
||||
2021-08-19 16:14:54 [35mSTATE:[39m test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-19 16:14:55 [35mSTATE:[39m test-node.js passed: detect: samples/ai-body.jpg posenet
|
||||
2021-08-19 16:14:55 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.96,"keypoints":16}
|
||||
2021-08-19 16:14:55 [32mDATA: [39m test-node.js result: performance: load: 418 total: 792
|
||||
2021-08-19 16:14:56 [35mSTATE:[39m test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-19 16:14:56 [35mSTATE:[39m test-node.js passed: detect: samples/ai-body.jpg movenet
|
||||
2021-08-19 16:14:56 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17}
|
||||
2021-08-19 16:14:56 [32mDATA: [39m test-node.js result: performance: load: 418 total: 220
|
||||
2021-08-19 16:14:57 [35mSTATE:[39m test-node.js passed: detect: random default
|
||||
2021-08-19 16:14:57 [32mDATA: [39m test-node.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0,"keypoints":0}
|
||||
2021-08-19 16:14:57 [32mDATA: [39m test-node.js result: performance: load: 418 total: 691
|
||||
2021-08-19 16:14:57 [36mINFO: [39m test-node.js test: first instance
|
||||
2021-08-19 16:14:57 [35mSTATE:[39m test-node.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-19 16:14:58 [35mSTATE:[39m test-node.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-19 16:14:58 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.69,"keypoints":10}
|
||||
2021-08-19 16:14:58 [32mDATA: [39m test-node.js result: performance: load: 418 total: 1042
|
||||
2021-08-19 16:14:58 [36mINFO: [39m test-node.js test: second instance
|
||||
2021-08-19 16:14:58 [35mSTATE:[39m test-node.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-19 16:14:59 [35mSTATE:[39m test-node.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-19 16:14:59 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.69,"keypoints":10}
|
||||
2021-08-19 16:14:59 [32mDATA: [39m test-node.js result: performance: load: 3 total: 1006
|
||||
2021-08-19 16:14:59 [36mINFO: [39m test-node.js test: concurrent
|
||||
2021-08-19 16:15:00 [35mSTATE:[39m test-node.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-19 16:15:00 [35mSTATE:[39m test-node.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-19 16:15:00 [35mSTATE:[39m test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-19 16:15:01 [35mSTATE:[39m test-node.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-19 16:15:07 [35mSTATE:[39m test-node.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-19 16:15:07 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":42}
|
||||
2021-08-19 16:15:07 [32mDATA: [39m test-node.js result: performance: load: 418 total: 5554
|
||||
2021-08-19 16:15:07 [35mSTATE:[39m test-node.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-19 16:15:07 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 5 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":42}
|
||||
2021-08-19 16:15:07 [32mDATA: [39m test-node.js result: performance: load: 3 total: 5554
|
||||
2021-08-19 16:15:07 [35mSTATE:[39m test-node.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-19 16:15:07 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":42}
|
||||
2021-08-19 16:15:07 [32mDATA: [39m test-node.js result: performance: load: 418 total: 5554
|
||||
2021-08-19 16:15:07 [35mSTATE:[39m test-node.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-19 16:15:07 [32mDATA: [39m test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":42}
|
||||
2021-08-19 16:15:07 [32mDATA: [39m test-node.js result: performance: load: 3 total: 5554
|
||||
2021-08-19 16:15:07 [36mINFO: [39m test-node.js test complete: 16737 ms
|
||||
2021-08-19 16:15:07 [36mINFO: [39m test-node-gpu.js start
|
||||
2021-08-19 16:15:08 [33mWARN: [39m test-node-gpu.js stderr: 2021-08-19 16:15:08.166531: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
|
||||
2021-08-19 16:15:08 [33mWARN: [39m test-node-gpu.js stderr: 2021-08-19 16:15:08.343531: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
|
||||
2021-08-19 16:15:08 [33mWARN: [39m test-node-gpu.js stderr: 2021-08-19 16:15:08.343658: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (wyse): /proc/driver/nvidia/version does not exist
|
||||
2021-08-19 16:15:08 [35mSTATE:[39m test-node-gpu.js passed: create human
|
||||
2021-08-19 16:15:08 [36mINFO: [39m test-node-gpu.js human version: 2.1.3
|
||||
2021-08-19 16:15:08 [36mINFO: [39m test-node-gpu.js platform: linux x64 agent: NodeJS v16.5.0
|
||||
2021-08-19 16:15:08 [36mINFO: [39m test-node-gpu.js tfjs version: 3.8.0
|
||||
2021-08-19 16:15:08 [35mSTATE:[39m test-node-gpu.js passed: set backend: tensorflow
|
||||
2021-08-19 16:15:08 [35mSTATE:[39m test-node-gpu.js passed: load models
|
||||
2021-08-19 16:15:08 [35mSTATE:[39m test-node-gpu.js result: defined models: 14 loaded models: 7
|
||||
2021-08-19 16:15:08 [35mSTATE:[39m test-node-gpu.js passed: warmup: none default
|
||||
2021-08-19 16:15:10 [35mSTATE:[39m test-node-gpu.js passed: warmup: face default
|
||||
2021-08-19 16:15:10 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.42,"keypoints":4}
|
||||
2021-08-19 16:15:10 [32mDATA: [39m test-node-gpu.js result: performance: load: 285 total: 1378
|
||||
2021-08-19 16:15:11 [35mSTATE:[39m test-node-gpu.js passed: warmup: body default
|
||||
2021-08-19 16:15:11 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17}
|
||||
2021-08-19 16:15:11 [32mDATA: [39m test-node-gpu.js result: performance: load: 285 total: 1206
|
||||
2021-08-19 16:15:11 [36mINFO: [39m test-node-gpu.js test body variants
|
||||
2021-08-19 16:15:12 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-19 16:15:13 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-body.jpg posenet
|
||||
2021-08-19 16:15:13 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.96,"keypoints":16}
|
||||
2021-08-19 16:15:13 [32mDATA: [39m test-node-gpu.js result: performance: load: 285 total: 788
|
||||
2021-08-19 16:15:13 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-19 16:15:14 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-body.jpg movenet
|
||||
2021-08-19 16:15:14 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17}
|
||||
2021-08-19 16:15:14 [32mDATA: [39m test-node-gpu.js result: performance: load: 285 total: 218
|
||||
2021-08-19 16:15:14 [35mSTATE:[39m test-node-gpu.js passed: detect: random default
|
||||
2021-08-19 16:15:14 [32mDATA: [39m test-node-gpu.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 1 person: 0 {} {"score":0.72,"class":"person"} {"score":0,"keypoints":0}
|
||||
2021-08-19 16:15:14 [32mDATA: [39m test-node-gpu.js result: performance: load: 285 total: 193
|
||||
2021-08-19 16:15:14 [36mINFO: [39m test-node-gpu.js test: first instance
|
||||
2021-08-19 16:15:14 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-19 16:15:14 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-19 16:15:14 [32mDATA: [39m test-node-gpu.js result: face: 0 body: 1 hand: 0 gesture: 1 object: 1 person: 0 {} {"score":0.72,"class":"person"} {"score":0.69,"keypoints":10}
|
||||
2021-08-19 16:15:14 [32mDATA: [39m test-node-gpu.js result: performance: load: 285 total: 143
|
||||
2021-08-19 16:15:14 [36mINFO: [39m test-node-gpu.js test: second instance
|
||||
2021-08-19 16:15:15 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-upper.jpg [1,720,688,3]
|
||||
2021-08-19 16:15:16 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-upper.jpg default
|
||||
2021-08-19 16:15:16 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":29.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.69,"keypoints":10}
|
||||
2021-08-19 16:15:16 [32mDATA: [39m test-node-gpu.js result: performance: load: 5 total: 1003
|
||||
2021-08-19 16:15:16 [36mINFO: [39m test-node-gpu.js test: concurrent
|
||||
2021-08-19 16:15:16 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-19 16:15:16 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-face.jpg [1,256,256,3]
|
||||
2021-08-19 16:15:17 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-19 16:15:18 [35mSTATE:[39m test-node-gpu.js passed: load image: samples/ai-body.jpg [1,1200,1200,3]
|
||||
2021-08-19 16:15:22 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-19 16:15:22 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 4 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":42}
|
||||
2021-08-19 16:15:22 [32mDATA: [39m test-node-gpu.js result: performance: load: 285 total: 4653
|
||||
2021-08-19 16:15:22 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-face.jpg default
|
||||
2021-08-19 16:15:22 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 5 object: 1 person: 1 {"age":23.6,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":42}
|
||||
2021-08-19 16:15:22 [32mDATA: [39m test-node-gpu.js result: performance: load: 5 total: 4653
|
||||
2021-08-19 16:15:22 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-19 16:15:22 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":42}
|
||||
2021-08-19 16:15:22 [32mDATA: [39m test-node-gpu.js result: performance: load: 285 total: 4653
|
||||
2021-08-19 16:15:22 [35mSTATE:[39m test-node-gpu.js passed: detect: samples/ai-body.jpg default
|
||||
2021-08-19 16:15:22 [32mDATA: [39m test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"age":28.5,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":42}
|
||||
2021-08-19 16:15:22 [32mDATA: [39m test-node-gpu.js result: performance: load: 5 total: 4653
|
||||
2021-08-19 16:15:22 [36mINFO: [39m test-node-gpu.js test complete: 14260 ms
|
||||
2021-08-19 16:15:23 [36mINFO: [39m test-node-wasm.js start
|
||||
2021-08-19 16:15:23 [31mERROR:[39m test-node-wasm.js failed: model server: request to http://localhost:10030/models/ failed, reason: connect ECONNREFUSED 127.0.0.1:10030
|
||||
2021-08-19 16:15:23 [31mERROR:[39m test-node-wasm.js aborting test
|
||||
2021-08-19 16:15:23 [36mINFO: [39m status: {"passed":46,"failed":1}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -70,13 +70,13 @@
|
|||
</div>
|
||||
<p>All methods and properties are available only as members of Human class</p>
|
||||
<ul>
|
||||
<li>Configuration object definition: <a href="../interfaces/Config.html">Config</a></li>
|
||||
<li>Results object definition: <a href="../interfaces/Result.html">Result</a></li>
|
||||
<li>Configuration object definition: <a href="Human.html#Config">Config</a></li>
|
||||
<li>Results object definition: <a href="Human.html#Result">Result</a></li>
|
||||
<li>Possible inputs: <a href="../index.html#Input">Input</a></li>
|
||||
</ul>
|
||||
<dl class="tsd-comment-tags">
|
||||
<dt>param</dt>
|
||||
<dd><p><a href="../interfaces/Config.html">Config</a></p>
|
||||
<dd><p><a href="Human.html#Config">Config</a></p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
@ -114,6 +114,15 @@
|
|||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="Human.html#sysinfo" class="tsd-kind-icon">sysinfo</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="Human.html#tf" class="tsd-kind-icon">tf</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class"><a href="Human.html#version" class="tsd-kind-icon">version</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Human.html#Body" class="tsd-kind-icon">Body</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Human.html#Config" class="tsd-kind-icon">Config</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Human.html#DrawOptions" class="tsd-kind-icon">Draw<wbr>Options</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Human.html#Face" class="tsd-kind-icon">Face</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Human.html#Gesture" class="tsd-kind-icon">Gesture</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Human.html#Hand" class="tsd-kind-icon">Hand</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Human.html#Item" class="tsd-kind-icon">Item</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Human.html#Person" class="tsd-kind-icon">Person</a></li>
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Human.html#Result" class="tsd-kind-icon">Result</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="tsd-index-section ">
|
||||
|
@ -172,7 +181,7 @@
|
|||
<div class="lead">
|
||||
<p>Current configuration</p>
|
||||
<ul>
|
||||
<li>Details: <a href="../interfaces/Config.html">Config</a></li>
|
||||
<li>Details: <a href="Human.html#Config">Config</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -187,7 +196,7 @@
|
|||
<div class="lead">
|
||||
<p>Draw helper classes that can draw detected objects on canvas using specified draw</p>
|
||||
<ul>
|
||||
<li>options: <a href="../interfaces/DrawOptions.html">DrawOptions</a> global settings for all draw operations, can be overriden for each draw method</li>
|
||||
<li>options: <a href="Human.html#DrawOptions">DrawOptions</a> global settings for all draw operations, can be overriden for each draw method</li>
|
||||
<li>face: draw detected faces</li>
|
||||
<li>body: draw detected people and body parts</li>
|
||||
<li>hand: draw detected hands and hand parts</li>
|
||||
|
@ -569,6 +578,74 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a name="Body" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> Body</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">Body<span class="tsd-signature-symbol">:</span> <a href="../interfaces/Body.html" class="tsd-signature-type" data-tsd-kind="Interface">Body</a></div>
|
||||
<aside class="tsd-sources">
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a name="Config" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> Config</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">Config<span class="tsd-signature-symbol">:</span> <a href="../interfaces/Config.html" class="tsd-signature-type" data-tsd-kind="Interface">Config</a></div>
|
||||
<aside class="tsd-sources">
|
||||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p>Types used by Human</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a name="DrawOptions" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> Draw<wbr>Options</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">Draw<wbr>Options<span class="tsd-signature-symbol">:</span> <a href="../interfaces/DrawOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">DrawOptions</a></div>
|
||||
<aside class="tsd-sources">
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a name="Face" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> Face</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">Face<span class="tsd-signature-symbol">:</span> <a href="../interfaces/Face.html" class="tsd-signature-type" data-tsd-kind="Interface">Face</a></div>
|
||||
<aside class="tsd-sources">
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a name="Gesture" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> Gesture</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">Gesture<span class="tsd-signature-symbol">:</span> <a href="../index.html#Gesture" class="tsd-signature-type" data-tsd-kind="Type alias">Gesture</a></div>
|
||||
<aside class="tsd-sources">
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a name="Hand" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> Hand</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">Hand<span class="tsd-signature-symbol">:</span> <a href="../interfaces/Hand.html" class="tsd-signature-type" data-tsd-kind="Interface">Hand</a></div>
|
||||
<aside class="tsd-sources">
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a name="Item" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> Item</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">Item<span class="tsd-signature-symbol">:</span> <a href="../interfaces/Item.html" class="tsd-signature-type" data-tsd-kind="Interface">Item</a></div>
|
||||
<aside class="tsd-sources">
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a name="Person" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> Person</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">Person<span class="tsd-signature-symbol">:</span> <a href="../index.html#Gesture" class="tsd-signature-type" data-tsd-kind="Type alias">Gesture</a></div>
|
||||
<aside class="tsd-sources">
|
||||
</aside>
|
||||
</section>
|
||||
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a name="Result" class="tsd-anchor"></a>
|
||||
<h3><span class="tsd-flag ts-flagStatic">Static</span> Result</h3>
|
||||
<div class="tsd-signature tsd-kind-icon">Result<span class="tsd-signature-symbol">:</span> <a href="../interfaces/Result.html" class="tsd-signature-type" data-tsd-kind="Interface">Result</a></div>
|
||||
<aside class="tsd-sources">
|
||||
</aside>
|
||||
</section>
|
||||
</section>
|
||||
<section class="tsd-panel-group tsd-member-group ">
|
||||
<h2>Methods</h2>
|
||||
|
@ -586,10 +663,10 @@
|
|||
<div class="lead">
|
||||
<p>Main detection method</p>
|
||||
<ul>
|
||||
<li>Analyze configuration: <a href="../interfaces/Config.html">Config</a></li>
|
||||
<li>Analyze configuration: <a href="Human.html#Config">Config</a></li>
|
||||
<li>Pre-process input: <a href="../index.html#Input">Input</a></li>
|
||||
<li>Run inference for all configured models</li>
|
||||
<li>Process and return result: <a href="../interfaces/Result.html">Result</a></li>
|
||||
<li>Process and return result: <a href="Human.html#Result">Result</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -603,7 +680,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../index.html#Error" class="tsd-signature-type" data-tsd-kind="Type alias">Error</a><span class="tsd-signature-symbol"> | </span><a href="../interfaces/Result.html" class="tsd-signature-type" data-tsd-kind="Interface">Result</a><span class="tsd-signature-symbol">></span></h4>
|
||||
<p>result: <a href="../interfaces/Result.html">Result</a></p>
|
||||
<p>result: <a href="Human.html#Result">Result</a></p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -730,7 +807,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
<h4 class="tsd-returns-title">Returns <a href="../interfaces/Result.html" class="tsd-signature-type" data-tsd-kind="Interface">Result</a></h4>
|
||||
<p>result: <a href="../interfaces/Result.html">Result</a></p>
|
||||
<p>result: <a href="Human.html#Result">Result</a></p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -885,6 +962,33 @@
|
|||
<li class=" tsd-kind-property tsd-parent-kind-class">
|
||||
<a href="Human.html#version" class="tsd-kind-icon">version</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a href="Human.html#Body" class="tsd-kind-icon">Body</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a href="Human.html#Config" class="tsd-kind-icon">Config</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a href="Human.html#DrawOptions" class="tsd-kind-icon">Draw<wbr>Options</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a href="Human.html#Face" class="tsd-kind-icon">Face</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a href="Human.html#Gesture" class="tsd-kind-icon">Gesture</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a href="Human.html#Hand" class="tsd-kind-icon">Hand</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a href="Human.html#Item" class="tsd-kind-icon">Item</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a href="Human.html#Person" class="tsd-kind-icon">Person</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
|
||||
<a href="Human.html#Result" class="tsd-kind-icon">Result</a>
|
||||
</li>
|
||||
<li class=" tsd-kind-method tsd-parent-kind-class">
|
||||
<a href="Human.html#detect" class="tsd-kind-icon">detect</a>
|
||||
</li>
|
||||
|
@ -966,6 +1070,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -237,6 +237,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -236,6 +236,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -817,6 +817,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -373,6 +373,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -415,6 +415,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -244,6 +244,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -246,6 +246,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -272,6 +272,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p><a href="Body.html">Body</a>: detection & analysis results</p>
|
||||
<p><a href="../classes/Human.html#Body">Body</a>: detection & analysis results</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -134,7 +134,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p><a href="Face.html">Face</a>: detection & analysis results</p>
|
||||
<p><a href="../classes/Human.html#Face">Face</a>: detection & analysis results</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -146,7 +146,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p><a href="../index.html#Gesture">Gesture</a>: detection & analysis results</p>
|
||||
<p><a href="../classes/Human.html#Gesture">Gesture</a>: detection & analysis results</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -158,7 +158,7 @@
|
|||
</aside>
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="lead">
|
||||
<p><a href="Hand.html">Hand</a>: detection & analysis results</p>
|
||||
<p><a href="../classes/Human.html#Hand">Hand</a>: detection & analysis results</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -314,6 +314,9 @@
|
|||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
||||
</ul>
|
||||
<ul class="tsd-legend">
|
||||
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Human main module
|
||||
*/
|
||||
import { Config } from './config';
|
||||
import { Result } from './result';
|
||||
import { Result, Face, Hand, Body, Item, Gesture } from './result';
|
||||
import * as tf from '../dist/tfjs.esm.js';
|
||||
import * as facemesh from './blazeface/facemesh';
|
||||
import * as draw from './draw/draw';
|
||||
|
@ -78,6 +78,16 @@ export declare class Human {
|
|||
canvas: typeof draw.canvas;
|
||||
all: typeof draw.all;
|
||||
};
|
||||
/** Types used by Human */
|
||||
static Config: Config;
|
||||
static Result: Result;
|
||||
static Face: Face;
|
||||
static Hand: Hand;
|
||||
static Body: Body;
|
||||
static Item: Item;
|
||||
static Gesture: Gesture;
|
||||
static Person: Gesture;
|
||||
static DrawOptions: draw.DrawOptions;
|
||||
/** @internal: Currently loaded models */
|
||||
models: {
|
||||
face: [unknown, GraphModel | null, GraphModel | null] | null;
|
||||
|
|
Loading…
Reference in New Issue