abstract class AbstractRekognitionExtractor extends AbstractExtractor
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractRekognitionExtractor.AbstractValueHandler
AbstractValueHandler implements common functionality for extending
ValueHandlers.
|
(package private) class |
AbstractRekognitionExtractor.BoundingBoxHandler
BoundingBoxHandler creates a Topic structure representing a "boundingbox"
structure from the response data.
|
(package private) class |
AbstractRekognitionExtractor.CoordinateHandler
CoordinateHandler creates a coordinate topic with simple occurrences of
x and y from a JSONObject looking like:
{
"x":
|
protected static class |
AbstractRekognitionExtractor.JSON |
protected class |
AbstractRekognitionExtractor.MatchHandler
MatchHandler creates a Topic representing a celebrity match from the
response data.
|
(package private) class |
AbstractRekognitionExtractor.NumericValueHandler
NumericValueHandler creates simple occurrence data representing numeric
(double) values.
|
(package private) class |
AbstractRekognitionExtractor.NumericValuesHandler
NumericValuesHandler creates a series of Topics from a JSONObject where
the keys are used as Topics to be associated with the detection and
a numeric value describing the confidence of the association.
|
(package private) class |
AbstractRekognitionExtractor.PoseHandler
PoseHandler creates a Topic representing a "pose" structure from the
response data.
|
(package private) static interface |
AbstractRekognitionExtractor.ValueHandler
A value handler is used to create and associate topics from face detection
data return as JSON.
|
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
API_ROOT |
protected static RekognitionConfiguration |
conf |
protected static java.lang.String |
DETECTION_SI |
private static java.lang.String |
EXTRACT_ERROR |
protected static java.lang.String |
FACE_SI_ROOT |
protected static java.lang.String |
FEATURE_SI_ROOT |
protected static java.lang.String |
FLATTENING_DELIMETER |
protected static java.lang.String |
IMAGE_SI |
private static java.lang.String |
LANG_SI |
private static boolean |
MAKE_DISTINCT_CONFIDENCE_TOPICS |
protected static java.lang.String |
SCENE_SI_ROOT |
protected static java.lang.String |
SI_ROOT |
CUSTOM_EXTRACTOR, DONE_FAILED, DONE_MANY, DONE_ONE, EXACTLY_GIVEN_URLS, FILE_EXTRACTOR, FILE_PATTERN, GIVEN_URLS_AND_ALL_CRAWLED_DOCUMENTS, GIVEN_URLS_AND_CRAWLED_DOCUMENTS_IN_URL_DOMAIN, GIVEN_URLS_AND_LINKED_DOCUMENTS, GIVEN_URLS_AND_URL_BELOW, INFO_WAIT_WHILE_WORKING, LOG_TITLE, POINT_START_URL_TEXT, RAW_EXTRACTOR, SELECT_DIALOG_TITLE, STRING_EXTRACTOR_NOT_SUPPORTED_MESSAGE, URL_EXTRACTOR
CLOSE, EXECUTE, INVISIBLE, VISIBLE, WAIT
RETURN_ERROR, RETURN_INFO
Constructor and Description |
---|
AbstractRekognitionExtractor() |
Modifier and Type | Method and Description |
---|---|
boolean |
_extractTopicsFrom(java.io.File f,
TopicMap t) |
boolean |
_extractTopicsFrom(java.lang.String str,
TopicMap t) |
boolean |
_extractTopicsFrom(java.net.URL u,
TopicMap t) |
protected static void |
addFeatureToDetection(TopicMap tm,
Topic Detection,
java.lang.String featureType,
java.lang.String featureData) |
protected static void |
associateImageWithDetection(TopicMap tm,
Topic image,
Topic detection) |
protected abstract java.util.HashMap<java.lang.String,AbstractRekognitionExtractor.ValueHandler> |
createHandlerMap() |
protected java.lang.String |
getBestMatch(org.wandora.dep.json.JSONObject obj,
double treshold) |
protected static RekognitionConfiguration |
getConfiguration() |
protected static Topic |
getDetectionClass(TopicMap tm) |
protected static Topic |
getDetectionTopic(TopicMap tm) |
protected static Topic |
getFeatureClass(TopicMap tm) |
protected static Topic |
getFeatureTypeTopic(TopicMap tm,
java.lang.String featureType) |
protected static Topic |
getImageClass(TopicMap tm) |
protected static Topic |
getImageTopic(TopicMap tm,
java.lang.String url) |
protected static Topic |
getLangTopic(TopicMap tm) |
protected static Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si) |
protected static Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si,
java.lang.String bn) |
protected static Topic |
getRekognitionClass(TopicMap tm) |
protected static Topic |
getWandoraClassTopic(TopicMap tm) |
protected static void |
makeSubclassOf(TopicMap tm,
Topic t,
Topic superclass) |
protected static void |
setConfiguration(RekognitionConfiguration c) |
acceptBrowserExtractRequest, addCrawlerUrl, browserExtractorConsumesPlainText, buildSI, buildSL, clearMasterSubject, createAssociation, createAssociation, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, croppedFilename, croppedFilename, croppedUrlString, croppedUrlString, doBrowserExtract, dropExtract, dropExtract, dropExtract, execute, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFromText, getBrowserExtractorName, getContentTypes, getCrawlerMode, getDescription, getExtractorType, getForceContent, getForceFiles, getForceUrls, getGUIText, getGUIText, getIcon, getInterruptsHandled, getMasterSubject, getName, getType, getWandora, handle, handleContent, handleCustomType, handleFiles, handleForcedContent, handleInterrupt, handleStringContent, handleUrls, initializeCustomType, instantDropHandle, makeSubclassOfWandoraClass, runInOwnThread, setData, setDisplayName, setForceContent, setForceFiles, setForceUrls, setMasterSubject, setMasterSubject, setTopicMap, setupCrawler, setWandora, takeNap, urlEncode, useTempTopicMap, useURLCrawler
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, initialize, interruptAllThreads, interruptThreads, interruptThreads, isConfigurable, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, run, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMap, writeOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, execute, execute, getContext, getToolMenuItem, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptions
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
private static boolean MAKE_DISTINCT_CONFIDENCE_TOPICS
protected static final java.lang.String API_ROOT
protected static final java.lang.String FLATTENING_DELIMETER
private static final java.lang.String LANG_SI
protected static final java.lang.String SI_ROOT
protected static final java.lang.String IMAGE_SI
protected static final java.lang.String DETECTION_SI
protected static final java.lang.String FACE_SI_ROOT
protected static final java.lang.String SCENE_SI_ROOT
protected static final java.lang.String FEATURE_SI_ROOT
private static final java.lang.String EXTRACT_ERROR
protected static RekognitionConfiguration conf
protected abstract java.util.HashMap<java.lang.String,AbstractRekognitionExtractor.ValueHandler> createHandlerMap()
public boolean _extractTopicsFrom(java.io.File f, TopicMap t) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.net.URL u, TopicMap t) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.lang.String str, TopicMap t) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
protected static void setConfiguration(RekognitionConfiguration c)
protected static RekognitionConfiguration getConfiguration()
protected static Topic getImageTopic(TopicMap tm, java.lang.String url) throws TopicMapException
TopicMapException
protected static Topic getDetectionTopic(TopicMap tm) throws TopicMapException
TopicMapException
protected static void associateImageWithDetection(TopicMap tm, Topic image, Topic detection) throws TopicMapException
TopicMapException
protected static void addFeatureToDetection(TopicMap tm, Topic Detection, java.lang.String featureType, java.lang.String featureData) throws TopicMapException
TopicMapException
protected static Topic getFeatureTypeTopic(TopicMap tm, java.lang.String featureType) throws TopicMapException
TopicMapException
protected static Topic getImageClass(TopicMap tm) throws TopicMapException
TopicMapException
protected static Topic getDetectionClass(TopicMap tm) throws TopicMapException
TopicMapException
protected static Topic getFeatureClass(TopicMap tm) throws TopicMapException
TopicMapException
protected static Topic getRekognitionClass(TopicMap tm) throws TopicMapException
TopicMapException
protected static Topic getWandoraClassTopic(TopicMap tm) throws TopicMapException
TopicMapException
protected static Topic getOrCreateTopic(TopicMap tm, java.lang.String si) throws TopicMapException
TopicMapException
protected static Topic getOrCreateTopic(TopicMap tm, java.lang.String si, java.lang.String bn) throws TopicMapException
TopicMapException
protected static void makeSubclassOf(TopicMap tm, Topic t, Topic superclass) throws TopicMapException
TopicMapException
protected static Topic getLangTopic(TopicMap tm) throws TopicMapException
TopicMapException
protected java.lang.String getBestMatch(org.wandora.dep.json.JSONObject obj, double treshold) throws org.wandora.dep.json.JSONException
org.wandora.dep.json.JSONException
Copyright 2004-2015 Wandora Team