OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

MediaPipe to openFrameworks UDP Example

A C++ tutorial showing how to modify MediaPipe’s desktop hand-tracking example so a custom calculator broadcasts landmarks, hand rectangles and detections over UDP while passing the data through the graph.

Independent OpenViST project profile, based on linked sources.

MediaPipe to openFrameworks UDP Example — Learning how to add UDP streaming to MediaPipe’s desktop hand-tracking graph
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when an external application needs hand-tracking data from MediaPipe and you want a repository example of the graph, calculator, protobuf and build-file changes for UDP output.

Who it is for

  • Creative-coding developers connecting MediaPipe hand tracking to openFrameworks
  • Developers who want to send MediaPipe tracking output to an external application over UDP

Documented uses

  • Broadcast hand landmarks, rectangles and detections from a MediaPipe graph over UDP.
  • Add a custom calculator and wrapper protobuf to MediaPipe’s desktop hand-tracking example.
  • Use MediaPipe hand-tracking output as input for an external interactive application.
Before you choose

Requirements & limits

  • The example sends data on UDP port 8080.
  • The tutorial requires MediaPipe, Protocol Buffers configured for openFrameworks, and use of MediaPipe’s Bazel build structure.
  • The README documents a CPU build and reports a test environment of macOS Mojave 10.14.6 with openFrameworks 0.10.1.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Add UDP output to MediaPipe desktop hand tracking

Modify the desktop hand-tracking graph to broadcast tracking data over UDP while passing it onward in the graph.

Before you start

  • An installed MediaPipe checkout
  • Protocol Buffers set up for openFrameworks
  • The MediaPipe hand-tracking example and its Bazel build structure

Steps

  1. Add the custom pass-through calculator to the desktop hand-tracking graph and route landmarks, hand rectangles and detections through it.

  2. Copy the custom calculator into MediaPipe’s calculators directory and add its dependencies to the calculator BUILD file.

  3. Add the calculator to the hand-tracking graph’s BUILD dependencies.

  4. Copy the wrapper protobuf into MediaPipe’s formats directory and declare the proto library and dependencies in its BUILD file.

  5. Build and run the CPU hand-tracking example using the Bazel commands in the README.

Expected outcome

The modified example broadcasts hand-tracking data over UDP on port 8080 and continues passing the tracking data through the graph.

Guide limitations

  • The README’s reported test environment is macOS Mojave 10.14.6 with openFrameworks 0.10.1; this does not establish compatibility with other environments.
  • The tutorial focuses on the MediaPipe sender and does not document a complete external UDP receiver.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
20 November 2026
Original website title
madelinegannon/example-mediapipe-udp · Official homepage title · retained in its source language