Skip to content

Just a simple Python app that send the results of the MediaPipe Holistic model through OSC.

License

Notifications You must be signed in to change notification settings

DavidDiazGuerra/MediaPipeOSC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MediaPipeOSC

The Python script mediapipe_osc_server.py runs the MediaPipe Holistic model and send its results through OSC. You will need to install the Python MediaPipe API following the official guide (I've tested it using Python 3.9.1) and the python-osc package.

Some comments about the mediapipe_osc_server.py script:

  1. It sends the OSC messages to the localhost through the port 8000, you can change it in line 21
  2. It flips the input image before sending it to the model, which is nice when visualizing a selfie camera but makes the model get right and left mixed up. If you want to avoid it, just comment line 35.
  3. If you have several video capture devices you can choose which one you want to use in line 23

exampleOF_MediaPipeOSC is a simple openframeworks example about how to read the OSC messages with the MediaPipe results to develop interactive applications. It needs the ofxOSC addon, which is included with the official installation.

About

Just a simple Python app that send the results of the MediaPipe Holistic model through OSC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published