public class AlchemyFaceDetection extends AbstractAlchemyExtractor
Modifier and Type | Class and Description |
---|---|
class |
AlchemyFaceDetection.AlchemyFaceDetectionParser |
Modifier and Type | Field and Description |
---|---|
private int |
faceDetectionCounter |
static int |
scaleDownWidth |
private static int |
tempCounter |
static boolean |
transformScores |
AAPI_SCHEMA_BASE, ALCHEMY_ACTION_SI, ALCHEMY_CATEGORY_SCORE_SI, ALCHEMY_CATEGORY_SI, ALCHEMY_ENTITY_RELEVANCE_SI, ALCHEMY_ENTITY_SI, ALCHEMY_ENTITY_TYPE_SI, ALCHEMY_IMAGE_KEYWORD_SI, ALCHEMY_KEYWORD_SI, ALCHEMY_LANGUAGE_SI, ALCHEMY_OBJECT_SI, ALCHEMY_RELATION_SI, ALCHEMY_SCORE_SI, ALCHEMY_SCORE_TYPE_SI, ALCHEMY_SENTIMENT_SCORE_SI, ALCHEMY_SENTIMENT_TYPE_SI, ALCHEMY_SI, ALCHEMY_SUBJECT_SI, ALCHEMY_TENSE_SI, ALCHEMY_URL, ALCHEMY_VERB_SI, defaultEncoding, DOCUMENT_SI, EXTRACT_RELEVANCE, FACE_DETECTION_AGE_SI, FACE_DETECTION_GENDER_SI, FACE_DETECTION_IDENTITY_SI, FACE_DETECTION_IDENTITY_SUBTYPE_SI, FACE_DETECTION_POSITION_SI, FACE_DETECTION_SI, FACE_DETECTION_SIZE_SI, FACE_DETECTION_TYPE_HIERARCHY_CHILD_SI, FACE_DETECTION_TYPE_HIERARCHY_PARENT_SI, FACE_DETECTION_TYPE_HIERARCHY_SI, GEO_SI, IMAGE_SI, LANG, SAME_AS_SI, SOURCE_SI, SUBTYPE_SI, TOPIC_SI
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 |
---|
AlchemyFaceDetection() |
Modifier and Type | Method and Description |
---|---|
boolean |
_extractTopicsFrom(java.awt.image.BufferedImage image,
java.lang.String locator,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.io.File file,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.io.InputStream in,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.lang.String data,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.net.URL url,
TopicMap topicMap) |
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() |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
private byte[] |
readFile(java.io.File file) |
private java.awt.image.BufferedImage |
resizeImage(java.awt.image.BufferedImage originalImage,
int newWidth) |
configure, createSameAsAssociationWith, doBrowserExtract, fillDocumentTopic, fillImageTopic, forgetAuthorization, getActionTopic, getActionType, getAlchemyType, getCategoryScoreTopic, getCategoryScoreType, getCategoryTopic, getCategoryType, getContentTypes, getDocumentType, getEntityTopic, getEntityType, getEntityTypeTopic, getEntityTypeType, getFaceDetectionAgeTopic, getFaceDetectionAgeType, getFaceDetectionGenderTopic, getFaceDetectionGenderType, getFaceDetectionIdentitySubtypeTopic, getFaceDetectionIdentitySubtypeType, getFaceDetectionIdentityTopic, getFaceDetectionIdentityType, getFaceDetectionPositionType, getFaceDetectionSizeType, getFaceDetectionTopic, getFaceDetectionType, getFaceDetectionTypeHierarchyChild, getFaceDetectionTypeHierarchyParent, getFaceDetectionTypeHierarchyTopic, getFaceDetectionTypeHierarchyType, getFileContents, getIcon, getImageKeywordType, getImageType, getKeywordTopic, getKeywordType, getLanguageTopic, getLanguageType, getObjectTopic, getObjectType, getOrCreateTopic, getOrCreateTopic, getOrCreateTopic, getRelationType, getRelevanceTopic, getRelevanceType, getSameAsType, getScoreTopic, getScoreType, getSentimentScoreTopic, getSentimentScoreType, getSentimentTypeTopic, getSentimentTypeType, getSourceType, getStringFromDocument, getSubjectTopic, getSubjectType, getTenseTopic, getTenseType, getTopicType, getType, getVerbTopic, getVerbType, getWandoraClass, isConfigurable, isValid, makeSubclassOf, sendRequest, solveAPIKey, solveAPIKey, solveTitle, useURLCrawler, writeOptions
acceptBrowserExtractRequest, addCrawlerUrl, browserExtractorConsumesPlainText, buildSI, buildSL, clearMasterSubject, createAssociation, createAssociation, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, croppedFilename, croppedFilename, croppedUrlString, croppedUrlString, dropExtract, dropExtract, dropExtract, execute, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFromText, getBrowserExtractorName, getCrawlerMode, getForceContent, getForceFiles, getForceUrls, getGUIText, getGUIText, getInterruptsHandled, getMasterSubject, 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
addUndoMarker, 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, solveNameForTopicMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute, getContext, getToolMenuItem, hlog, initialize, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
private static int tempCounter
public static int scaleDownWidth
public static boolean transformScores
private int faceDetectionCounter
public int getExtractorType()
getExtractorType
in class AbstractExtractor
public java.lang.String getName()
AbstractWandoraTool
getName
in interface WandoraTool
getName
in class AbstractExtractor
public java.lang.String getDescription()
AbstractWandoraTool
getDescription
in interface WandoraTool
getDescription
in class AbstractExtractor
public boolean _extractTopicsFrom(java.net.URL url, TopicMap topicMap) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.io.File file, TopicMap topicMap) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.io.InputStream in, TopicMap topicMap) throws java.lang.Exception
_extractTopicsFrom
in class AbstractAlchemyExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.lang.String data, TopicMap topicMap) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.awt.image.BufferedImage image, java.lang.String locator, TopicMap topicMap) throws java.lang.Exception
java.lang.Exception
private byte[] readFile(java.io.File file) throws java.io.IOException
java.io.IOException
private java.awt.image.BufferedImage resizeImage(java.awt.image.BufferedImage originalImage, int newWidth)
Copyright 2004-2015 Wandora Team