update dependencies

pull/356/head
Vladimir Mandic 2021-12-30 12:39:29 -05:00
parent 15ff1efc4b
commit b817ff2150
3 changed files with 10 additions and 11 deletions

View File

@ -9,7 +9,7 @@
## Changelog
### **HEAD -> main** 2021/12/28 mandic00@live.com
### **HEAD -> main** 2021/12/30 mandic00@live.com
- fix samples
- fix(src): typo

View File

@ -53,7 +53,8 @@
"tensorflow"
],
"devDependencies": {
"@microsoft/api-extractor": "^7.19.2",
"@microsoft/api-extractor": "^7.19.3",
"@tensorflow/tfjs": "^3.12.0",
"@tensorflow/tfjs-backend-cpu": "^3.12.0",
"@tensorflow/tfjs-backend-wasm": "^3.12.0",
"@tensorflow/tfjs-backend-webgl": "^3.12.0",
@ -62,32 +63,30 @@
"@tensorflow/tfjs-core": "^3.12.0",
"@tensorflow/tfjs-data": "^3.12.0",
"@tensorflow/tfjs-layers": "^3.12.0",
"@tensorflow/tfjs-node-gpu": "^3.12.0",
"@tensorflow/tfjs-node": "^3.12.0",
"@tensorflow/tfjs": "^3.12.0",
"@tensorflow/tfjs-node-gpu": "^3.12.0",
"@types/node": "^17.0.5",
"@types/offscreencanvas": "^2019.6.4",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1",
"@vladmandic/build": "^0.6.6",
"@vladmandic/pilogger": "^0.4.2",
"@vladmandic/tfjs": "github:vladmandic/tfjs",
"canvas": "^2.8.0",
"dayjs": "^1.10.7",
"esbuild": "^0.14.8",
"esbuild": "^0.14.9",
"eslint": "8.5.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint": "8.5.0",
"node-fetch": "^3.1.0",
"rimraf": "^3.0.2",
"seedrandom": "^3.0.5",
"tslib": "^2.3.1",
"typedoc": "0.22.10",
"typescript": "4.5.4"
},
"dependencies": {}
}
}

View File

@ -163,7 +163,7 @@ async function verifyDetails(human) {
verify(res.hand.length === 1, 'details hand length', res.hand.length);
for (const hand of res.hand) {
verify(hand.score > 0.5 && hand.boxScore > 0.5 && hand.fingerScore > 0.5 && hand.box.length === 4 && hand.boxRaw.length === 4 && hand.label === 'point', 'details hand', hand.boxScore, hand.fingerScore, hand.label);
verify(hand.keypoints.length === 21 && Object.keys(hand.landmarks).length === 5 && Object.keys(hand.annotations).length === 6, 'details hand arrays', hand.keypoints.length, Object.keys(hand.landmarks).length, Object.keys(hand.annotations).length);
verify(hand.keypoints.length === 21 && Object.keys(hand.landmarks).length === 5 && Object.keys(hand.annotations).length === 7, 'details hand arrays', hand.keypoints.length, Object.keys(hand.landmarks).length, Object.keys(hand.annotations).length);
}
verify(res.gesture.length === 6, 'details gesture length', res.gesture.length);
verify(res.gesture[0].gesture === 'facing right', 'details gesture first', res.gesture[0]);