1 Star 0 Fork 1

zzb32 / Hand-Keypoint-Detector

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Hand Keypoint Detection in the Browser

This application detects hands in a live video stream.

It was created by integrating two open-source tools:

  • Handtrack.js by Victor Dibia - This neural network is used to detect bounding boxes around the hands seen in a video frame.
  • MediaPipe HandPose - This machine learning model is used to detect 21 3D keypoints of each detected hand.

This application was created to overcome the limitations presented by both the models: Handtrack.js only detects bounding boxes around hands and does not predict finger joints and palm keypoints, whereas HandPose is only able to detect keypoints in a single hand at a time. This application combines Handtrack.js and HandPose to detect the keypoints of multiple hands in a single video frame. The model first applies Handtrack.js to predict the bounding boxes around each detected hand. These bounding boxes are then individually fed to the HandPose model, which detects whether a hand is actually present within the bounding box and, if so, predicts the finger joints and palm keypoints.

The HandTrack.js model often produces bounding boxes that are too tight for the HandPose model to be able to detect a hand within them. Therefore, by default, I scale the bounding boxes by a factor of 2. I have also provided the option to scale the width and height of the bounding boxes according to the user’s preference. Other variables can also be changed, including:

  • Score Threshold - This determines what the minimum bounding box confidence score should be.
  • Maximum number of boxes - This specifies the maximum number of boxes that the HandTrack.js model should detect.
  • IoU Threshold - This clusters the bounding boxes by spatial closeness measured with IoU and keeps only the most confident bounding box among each cluster.

Running the application

To run locally, navigate to the root directory and run:

python app.py

Then, open a browser and type in the URL http://127.0.0.1:5000/.

空文件

简介

Real-time Hand Keypoint Detection in the Browser using Handtrack.js and HandPose 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zzb32/Hand-Keypoint-Detector.git
git@gitee.com:zzb32/Hand-Keypoint-Detector.git
zzb32
Hand-Keypoint-Detector
Hand-Keypoint-Detector
master

搜索帮助