public class Runway
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_HOST |
static java.lang.String |
VERSION |
Constructor and Description |
---|
Runway() |
Modifier and Type | Method and Description |
---|---|
void |
drawPoseNetParts(JSONObject data,
float ellipseSize)
shorthand for drawing PoseNet parts into the sketch's default graphics buffer
|
void |
query(PImage input)
send a query to Runway
Don't call this on a Runway instace, but a Runway sublcass instead.
|
void |
query(PImage input,
java.lang.String format,
java.lang.String key)
send an image query to Runway with specific format (JPG/PNG) and JSON key to hold the Base64 encoded image
Don't call this on a Runway instace, but a Runway sublcass instead.
|
void |
query(java.lang.String input)
send a query to Runway
Don't call this on a Runway instace, but a Runway sublcass instead.
|
static java.lang.String |
version()
return the version of the Library.
|
public static final java.lang.String VERSION
public static java.lang.String DEFAULT_HOST
public void query(PImage input)
input
- - input image for Runway to query (assumes image is resized/cropped to dimensions set in model)public void query(PImage input, java.lang.String format, java.lang.String key)
input
- format
- key
- public void query(java.lang.String input)
input
- - JSON formatted inputpublic static java.lang.String version()
public void drawPoseNetParts(JSONObject data, float ellipseSize)
data
- - the JSONObject received from RunwayellipseSize
- - how large should joints be renderedProcessing Library RunwayML by George Profenza. (c) 2019