A PoseNet to TouchDesigner integration using Runway ML
PoseNet is a machine-learning based pose detection model built on TensorFlow.js. Read more about it in this post by Dan Oved.
Runway is an intuitive machine learning tool for creators.
This project is a basic implementation of PoseNet in TouchDesigner via an OSC bridge to Runway. It includes:
A tox external for communicating with Runway running PoseNet
An example project showing how to use the pose data to outline a face, including calculations of face's distance from the camera.
To use the .tox first load it into your project, make sure the OSC port and IP are correct and toggle Enable OSC
,
this will send the initiation message to Runway and begin streaming detected pose data from the DAT
output.
The output includes the overall pose score as we as a _score
, _x
and _y
for every keypoint.
Each pose detected, in case the model runs in multipose mode, will be represented as a new row in the DAT
.
You can also
PoseNet
.Network
and then OSC
and verify the ip and port.Run PoseNet
.Enable OSC
in TouchDesigner.