public class RekognitionFaceDetector extends AbstractRekognitionExtractor
AbstractRekognitionExtractor.AbstractValueHandler, AbstractRekognitionExtractor.BoundingBoxHandler, AbstractRekognitionExtractor.CoordinateHandler, AbstractRekognitionExtractor.JSON, AbstractRekognitionExtractor.MatchHandler, AbstractRekognitionExtractor.NumericValueHandler, AbstractRekognitionExtractor.NumericValuesHandler, AbstractRekognitionExtractor.PoseHandler, AbstractRekognitionExtractor.ValueHandler| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
contentTypes |
API_ROOT, conf, DETECTION_SI, FACE_SI_ROOT, FEATURE_SI_ROOT, FLATTENING_DELIMETER, IMAGE_SI, SCENE_SI_ROOT, SI_ROOTCUSTOM_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_EXTRACTORCLOSE, EXECUTE, INVISIBLE, VISIBLE, WAITRETURN_ERROR, RETURN_INFO| Constructor and Description |
|---|
RekognitionFaceDetector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_extractTopicsFrom(java.lang.String imageUrl,
TopicMap tm)
The method used for actual extraction.
|
boolean |
_extractTopicsFrom(java.net.URL u,
TopicMap tm)
Parse the URL as a string and pass it to _extractTopicsFrom(String ...)
|
void |
configure(Wandora wandora,
Options options,
java.lang.String prefix)
If the tool is configurable, shows an user interface to configure the tool.
|
protected java.util.HashMap<java.lang.String,AbstractRekognitionExtractor.ValueHandler> |
createHandlerMap() |
java.lang.String[] |
getContentTypes()
Returns an array of String containing the content-types this
ContentHandler can process. |
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
int |
getExtractorType() |
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
private java.lang.String |
getJobsString(java.util.ArrayList<java.lang.String> jobs) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
boolean |
isConfigurable()
Whether this tool is configurable.
|
private void |
logUsage(org.wandora.dep.json.JSONObject respNode) |
boolean |
useURLCrawler() |
void |
writeOptions(Wandora wandora,
Options options,
java.lang.String prefix)
If the tool is configurable, saves all current tool options.
|
_extractTopicsFrom, addFeatureToDetection, associateImageWithDetection, getBestMatch, getConfiguration, getDetectionClass, getDetectionTopic, getFeatureClass, getFeatureTypeTopic, getImageClass, getImageTopic, getLangTopic, getOrCreateTopic, getOrCreateTopic, getRekognitionClass, getWandoraClassTopic, makeSubclassOf, setConfigurationacceptBrowserExtractRequest, 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, getCrawlerMode, getForceContent, getForceFiles, getForceUrls, getGUIText, getGUIText, getInterruptsHandled, getMasterSubject, 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, useTempTopicMapaddUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, initialize, interruptAllThreads, interruptThreads, interruptThreads, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, run, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, execute, getContext, getToolMenuItem, hlog, initialize, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLoggerforceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setStatepublic int getExtractorType()
getExtractorType in class AbstractExtractorpublic java.lang.String[] getContentTypes()
HandlerContentHandler can process.getContentTypes in interface HandlergetContentTypes in class AbstractExtractorpublic boolean useURLCrawler()
useURLCrawler in class AbstractExtractorpublic java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractExtractorpublic java.lang.String getDescription()
AbstractWandoraToolgetDescription in interface WandoraToolgetDescription in class AbstractExtractorpublic javax.swing.Icon getIcon()
AbstractWandoraToolgetIcon should return Icon object of
the tool.getIcon in interface WandoraToolgetIcon in class AbstractExtractorprotected java.util.HashMap<java.lang.String,AbstractRekognitionExtractor.ValueHandler> createHandlerMap()
createHandlerMap in class AbstractRekognitionExtractorpublic boolean _extractTopicsFrom(java.net.URL u,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractRekognitionExtractoru - the image URL to extracttm - the current TopicMapjava.lang.Exception - propagated from _extracTopicsFrom(String ...)public boolean _extractTopicsFrom(java.lang.String imageUrl,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractRekognitionExtractorimageUrl - the image URL for extractiontm - the current TopicMapjava.lang.Exception - if the supplied URL is invalid or Topic Map
manipulation failsprivate java.lang.String getJobsString(java.util.ArrayList<java.lang.String> jobs)
private void logUsage(org.wandora.dep.json.JSONObject respNode)
throws org.wandora.dep.json.JSONException
org.wandora.dep.json.JSONExceptionpublic boolean isConfigurable()
AbstractWandoraToolisConfigurable in interface WandoraToolisConfigurable in class AbstractWandoraToolpublic void configure(Wandora wandora, Options options, java.lang.String prefix) throws TopicMapException
AbstractWandoraToolconfigure in interface WandoraToolconfigure in class AbstractWandoraToolTopicMapExceptionpublic void writeOptions(Wandora wandora, Options options, java.lang.String prefix)
AbstractWandoraToolwriteOptions in interface WandoraToolwriteOptions in class AbstractWandoraToolCopyright 2004-2015 Wandora Team