mirror of https://github.com/vladmandic/human
add static type definitions to main class
parent
e4293511d0
commit
e1546e158f
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
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;
|
||||
|
|
Loading…
Reference in New Issue