Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
w-okada committed May 13, 2022
1 parent f2eefb5 commit 9572097
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 116 deletions.
4 changes: 2 additions & 2 deletions 015_hand-pose-detection-worker-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 015_hand-pose-detection-worker-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dannadori/hand-pose-detection-worker-js",
"version": "1.0.21",
"version": "1.0.22",
"description": "",
"main": "dist/hand-pose-detection-worker.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ const predict = async (config: HandPoseDetectionConfig, params: HandPoseDetectio
const hand: Hand = {
keypoints: [...x.landmarkKeypoints],
handedness: x.handedness < 0.5 ? "Left" : "Right",
score: x.landmarkScore
// score: x.landmarkScore, // not work??
score: x.score

}
return hand
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ export class LocalHP extends LocalWorker {
const hand: Hand = {
keypoints: [...x.landmarkKeypoints],
handedness: x.handedness < 0.5 ? "Left" : "Right",
score: x.landmarkScore
// score: x.landmarkScore, // not work??
score: x.score

}
return hand
})
Expand Down
210 changes: 105 additions & 105 deletions 015demo_hand-pose-detection-js-demo/package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions 015demo_hand-pose-detection-js-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "^7.17.9",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0",
"@types/react-dom": "^18.0.4",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"autoprefixer": "^10.4.7",
"babel-loader": "^8.2.5",
"css-loader": "^6.7.1",
Expand All @@ -60,12 +60,12 @@
"style-loader": "^3.3.1",
"ts-loader": "^9.3.0",
"typescript": "^4.6.4",
"webpack": "^5.72.0",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.9.0"
},
"dependencies": {
"@dannadori/hand-pose-detection-worker-js": "^1.0.21",
"@dannadori/hand-pose-detection-worker-js": "^1.0.22",
"@dannadori/demo-base": "^1.0.11",
"react": "^18.1.0",
"react-dom": "^18.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class HandPoseDetectionDrawer {
outputCtx.fillStyle = "#4169e1aa";
prediction.forEach(hand => {
if (config.modelType === "tflite") {
if (hand.score < 0.00) {
if (hand.score < 0.70) {
return
}
hand.keypoints.forEach(key => {
Expand Down

0 comments on commit 9572097

Please sign in to comment.