Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Testing hand tracking inside of Unity using Google MediaPipe Hands Python bindings.

License

Notifications You must be signed in to change notification settings

ganeshsar/UnityPythonMediaPipeHands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multithreaded Unity Python MediaPipe Hands

NOTICE: this project has been replaced by Tracking4All which is actively supported and features much better quality, is cross-platform with embedded Unity support and more!

Testing hand tracking inside of Unity using Google MediaPipe Hands Python framework. Webcam readings, piping, and MediaPipe Hands all run on a different thread.

Instructions

  1. Requires Python, Unity Hub, a WebCam, and decently fast CPU.
  2. pip install mediapipe
  3. Clone this repository.
  4. Run the Unity project FIRST which acts as a server.
  5. Next run main.py which actually runs MediaPipe Hands.
  6. Go back to the running Unity project to see your hands inside of the game view.

Tips

  • You can set the DEBUG flag True in hands.py to visualize what is being seen and how your hands are being interpreted.
  • Improve the accuracy of the model by setting MODEL_COMPLEXITY to 1 inside hands.py

About

Testing hand tracking inside of Unity using Google MediaPipe Hands Python bindings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published