Giter Club home page Giter Club logo

handmate-osc's Introduction

MediaPipe-Hands-OSC

MediaPipe-Hands-OSC implements the Google MediaPipe Hand model on the browser, getting the landmarks from two hands and outputting to OSC via UDP using the osc.js library.

Installation Guide for Beginners

You must have Node installed on your computer. If you don't, download the latest stable version here. Launch the installer and install Node.

Download the MediaPipe-Hands-OSC code folder.

Open your terminal window on Mac (press CMD + spacebar simultaneously, in the search window, type in terminal and enter) or Command Prompt on Windows. Go to the folder where you downloaded MediaPipe-Hands-OSC. You can do this by just dragging the folder into the terminal winwdow and press enter. Or type in 'cd' followed by the path name. For example, if you put the folder on your desktop:

$ cd desktop/MediaPipe-Hands-OSC-main/

Install package dependencies (the files you will need to run the code) by typing in:

$ npm install

Mac users - If you get a permission error, try typing this instead and when terminal asks for a password, enter your administrator password:

$ sudo npm install

Then, run bridge.js to start the OSC link by typing:

$ node bridge.js

You should see a message 'osc success'.

Double click to open the index.html file OR go to https://monlim.github.io/MediaPipe-Hands-OSC/ on your browser. Start waving your hands around.

Usage

Please use Google Chrome or Firefox on a Desktop. Will not work in Safari. UDP send on port 8080 and receive on port 9129.

Note: you will need another application to receive your OSC landmarks and process them. There is a MaxMSP patch example in the assets folder. Landmarks are prefixed as:

  • /lx for Left Hand x-axis
  • /ly for Left Hand y-axis
  • /rx for Right Hand x-axis
  • /ry for Right Hand y-axis

This is a list of the landmarks (image provided by Google MediaPipe):

Image provided by Google MediaPipe

For more information on the hand-tracking model, please see MediaPipe documentation.

handmate-osc's People

Contributors

monlim avatar

Stargazers

takahiro kinoshita avatar Matvey avatar JINGJUN TAO avatar  avatar  avatar Toni avatar

Watchers

 avatar

handmate-osc's Issues

Video Window Freezes in Ubuntu 20.04

I'm trying to use this with Chrome on Ubuntu 20.04 but for some reason the video image freezes when a hand is detected. When I use Handmate-MIDI this doesn't happen. Wondering what could be happening here. I don't see any error messages.

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.