public class Vision extends BasicSense
Modifier and Type | Field and Description |
---|---|
static int |
IMAGE_SIZE |
static int |
MAX_IMAGE_SIZE |
conversations, DAY, DEFAULT_SPEAKER, engaged, HOUR, MAX_FILE_SIZE, MINUTE, RETRY
Constructor and Description |
---|
Vision() |
Modifier and Type | Method and Description |
---|---|
double[] |
coupledHueSat(byte[] image)
HSV stores color information in Hue and Saturation while intensity is in Value.
|
Vertex |
loadImage(byte[] image,
Network network)
Load binary image.
|
Vertex |
loadImage(java.lang.String urlPath,
Network network)
Load an image from a URL.
|
Vertex |
loadImage(Vertex source,
Vertex url)
Self API.
|
byte[] |
loadImageBytes(java.lang.String urlPath)
Load an image from a URL.
|
Vertex |
loadImageFile(java.lang.String filePath,
Network network)
Load an image from a file.
|
byte[] |
loadImageFileBytes(java.lang.String filePath)
Load an image from a file.
|
Vertex |
matchImage(byte[] image,
Vertex tag,
double error,
Network network)
Self API.
|
Vertex |
matchImage(Vertex source,
Vertex url,
Vertex tag,
Vertex error)
Self API.
|
addListener, awake, checkEngaged, checkSentence, discover, discoverSentence, getAction, getBot, getEmotionalState, getLanguageState, getListeners, getName, getPrimitive, getResponseListener, getShortTermMemory, initialize, input, input, isEnabled, log, log, log, migrateProperties, notifyExceptionListeners, notifyResponseListener, output, pool, printInput, removeListener, saveProperties, setAction, setBot, setEmotionalState, setIsEnabled, setLanguageState, setName, setResponseListener, shutdown, toString
public static int IMAGE_SIZE
public static int MAX_IMAGE_SIZE
public Vertex loadImage(java.lang.String urlPath, Network network)
public byte[] loadImageBytes(java.lang.String urlPath)
public byte[] loadImageFileBytes(java.lang.String filePath)
public Vertex loadImageFile(java.lang.String filePath, Network network)
public Vertex matchImage(byte[] image, Vertex tag, double error, Network network) throws java.io.IOException
java.io.IOException
public double[] coupledHueSat(byte[] image) throws java.io.IOException
java.io.IOException
public Vertex loadImage(Vertex source, Vertex url)