Giter VIP home page Giter VIP logo

hand_tracking's Introduction

Hand tracking

1. ファイル説明

  • palm_detection_without_custom_op.tflite(手のひら検出)モデルファイル:mediapipe-modelsレポジトリよりダウンロードしました。
  • hand_landmark.tflite(ランドマーク検出)モデルファイル:mediapipeレポジトリよりダウンロードしました。
  • anchors.csvファイルとhand_tracker.pyファイル:hand_trackingレポジトリよりダウンロードしました。

2. 実施方法

$ pip install opencv-python tensorflow
$ python run.py

3. 結果

Result

hand_tracking's People

Contributors

fabian-hertwig-mw avatar hypercookie avatar metalwhale avatar sontdhust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hand_tracking's Issues

GPU for demo?

Hey, your demo video seems to be very smooth. Did you actually use a GPU for producing the demo? I tried to run the script on my laptop with i7 but without GPU and got ~2-3 FPS.

drawing bbox

Hi I have tried the below code to draw bbox around hand but not drawing properly

(handtracker.py)

bounding box offsets, width and height

    dx, dy, w, h = candidate_detect[box_ids, :4]

bbox_dict = {
"x": dx,
"y": dy,
"w": w,
"h": h
}
cv2.rectangle(frame, (bbox_dict['x'], bbox_dict['y']),
(bbox_dict['x'] + bbox_dict['w'], bbox_dict['y'] + bbox_dict['h']), (0, 255, 0), 1)

please advise

How do I detect both hands?

How do I detect both hands? I've already created two connections to recognize both hands, but it didn't work.

detect multi hands

Hi,thanks for you share about hand_tracking ,it's a nice job.
I want to consult that how could we detect multi hands and these points?
Thx!

No hands found

Hi metalwhale,

First of all, nice job. Thank you for trasnfering the google code. Right now I have the problem that it can't detection the hand. I was guessing if it is because the background is too noisy but it still didn't work even I applied the clear and white background. I firstly modified code to run with Kinect but it still didn't work with webcam. Could you help me with it? Thank you so much.

hand gusture recognition

How i can use this git for hand gusture recognition?
I would appreciate for your help, thanks.

Compare with google demo

Thank you for share this project.
Input same(similar) image to google and your project respectly, however get large distinguish between output keypoints. Have you find this question?
A simple test, download google app and install, open google app and your project sync and than compare result.

Error in __init__

Congratulation for your awesome work!!
When I try to run the file, it appears this error:

File "c:\ User_name \python tutorial\raspberrypicode\palmgit\hand_tracking-master2\run.py", line 67, in
detector = HandTracker(
File "c:\ User_name \python tutorial\raspberrypicode\palmgit\hand_tracking-master2\src\hand_tracker.py", line 32, in init
self.interp_palm = tf.lite.Interpreter(palm_model)
File "C:\Users\ User_name \AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow\lite\python\interpreter.py", line 455, in init
_interpreter_wrapper.CreateWrapperFromFile(
ValueError: Could not open 'models/palm_detection_without_custom_op.tflite'.

Any suggestions ?

Extremely slow hand tracking

The frame rate seems to be extremely slow. As I move my hand across the camera, the display updates not in a smooth manner but very shakily (seems to be low frame rate?) The result is nothing like the once seem in the project description.

The hand points seem not steady ^-^

Hi, @metalwhale ,its me again ^-^.
I test your work, and find that :
1.The hand key points that be detected seem not steady like your result, they always shake.
2.Sometimes it detect my face as a hand by mistake !
3. How can I find the hand key points' confidence?
Could you have some advise about that? Thanks alot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.