Gist ae31ce5b693d662b3add4af2919cea65
✓ Published0🌍 Public
Aandybak
Last edited Jun 1, 2020
Created on Jun 1, 2020
This example shows a Unity application that captures frames from a camera, sends them to a remote machine-learning API, and displays the stylized result in a UI Image component. It uses MiniJSON to serialize the image as base64-encoded PNG data into a JSON payload for a POST request to a RunwayML-style endpoint. The script repeatedly captures the camera’s RenderTexture at a set interval, uploads it, and updates a Preview sprite with the returned stylized image. It demonstrates real-time image processing through an external model with a simple polling loop to keep the remote service active.
AI-generated description