public class AlchemyVision extends AlchemyService
| Modifier and Type | Field and Description |
|---|---|
static String |
FORCE_SHOW_ALL
The Constant FORCE_SHOW_ALL.
|
static String |
HTML
The Constant HTML.
|
static String |
IMAGE
The Constant IMAGE.
|
static String |
IMAGE_POST_MODE
The Constant IMAGE_POST_MODE.
|
static String |
KNOWLEDGE_GRAPH
The Constant KNOWLEDGE_GRAPH.
|
static String |
NOT_RAW
The Constant NOT_RAW.
|
static String |
RAW
The Constant RAW.
|
static String |
URL
The Constant URL.
|
ENDPOINT, JSONP, OUTPUT_MODE| Constructor and Description |
|---|
AlchemyVision() |
| Modifier and Type | Method and Description |
|---|---|
ImageKeywords |
getImageKeywords(File image,
Boolean forceShowAll,
Boolean knowledgeGraph)
Extract keywords from an image
|
ImageKeywords |
getImageKeywords(URL url,
Boolean forceShowAll,
Boolean knowledgeGraph)
Extract keywords from a URL.
|
ImageLink |
getImageLink(String html)
Extract main image link from a HTML page.
|
ImageLink |
getImageLink(URL url)
Extract main image link from a URL.
|
ImageFaces |
recognizeFaces(File image,
Boolean knowledgeGraph)
Recognize faces from an image.
For each face detected returns: Bounding box Gender Approximate age Name (if celebrity is detected) |
ImageFaces |
recognizeFaces(URL url,
Boolean knowledgeGraph)
Recognize faces from a URL.
For each face detected returns: Bounding box Gender Approximate age Name (if celebrity is detected) |
execute, executeRequest, getInputFormat, setAuthenticationconfigureHttpClient, executeWithoutResponse, getApiKey, getEndPoint, getName, setApiKey, setDefaultHeaders, setEndPoint, setUsernameAndPassword, toStringpublic static final String FORCE_SHOW_ALL
public static final String HTML
public static final String IMAGE
public static final String IMAGE_POST_MODE
public static final String KNOWLEDGE_GRAPH
public static final String NOT_RAW
public static final String RAW
public static final String URL
public ImageKeywords getImageKeywords(File image, Boolean forceShowAll, Boolean knowledgeGraph)
image - the image fileforceShowAll - Includes lower confidence tagsknowledgeGraph - Include knowledge graph information in the the results.ImageKeywordspublic ImageKeywords getImageKeywords(URL url, Boolean forceShowAll, Boolean knowledgeGraph)
url - the image URLforceShowAll - Includes lower confidence tagsknowledgeGraph - Include knowledge graph information in the the results.ImageKeywordspublic ImageLink getImageLink(URL url)
url - the image URLImageLinkpublic ImageLink getImageLink(String html)
html - the HTMLImageLinkpublic ImageFaces recognizeFaces(File image, Boolean knowledgeGraph)
image - the imageknowledgeGraph - provide extra metadata for detected celebritiesImageFacespublic ImageFaces recognizeFaces(URL url, Boolean knowledgeGraph)
url - the urlknowledgeGraph - provide extra metadata for detected celebritiesImageFacesCopyright © 2015. All rights reserved.