Understand the MediaPipe Plugin architecture
mainThe plugin runs MediaPipe vision tasks via a web browser to leverage GPU acceleration through JavaScript/WebAssembly without requiring local library installations. It uses three core layers:
- Web (and websocket) server: An embedded server that hosts web pages and acts as a WebSocket server for two-way communication between the browser and TouchDesigner.
- Web browser: An embedded Chromium instance within TouchDesigner that runs the MediaPipe detection components and renders the video stream.
- JSON decoders: The browser sends detection data to TouchDesigner in JSON format. Specialized
.toxcomponents then decode this JSON into usable TouchDesigner data (CHOPs, DATs, etc.).