public class VisualInsights extends WatsonService
Modifier and Type | Field and Description |
---|---|
static String |
FILTER_NAME
The Constant FILTER_NAME.
|
MESSAGE_CODE, MESSAGE_ERROR, VERSION
Constructor and Description |
---|
VisualInsights()
Instantiates a new visual insights service.
|
Modifier and Type | Method and Description |
---|---|
ServiceCall<Classifiers> |
getClassifiers()
Returns a summary of the collection's visual classifiers.
|
ServiceCall<Classifiers> |
getClassifiers(String name)
Returns a summary of the collection's visual classifiers, filtered by name.
|
ServiceCall<Summary> |
getSummary(File imagesFile)
Upload a set of images as a ZIP file for visual insight extraction.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setUsernameAndPassword, toString
public static final String FILTER_NAME
public VisualInsights()
public ServiceCall<Classifiers> getClassifiers()
public ServiceCall<Classifiers> getClassifiers(String name)
name
- the filter nameClassifiers
that match the given filter namepublic ServiceCall<Summary> getSummary(File imagesFile)
Summary
of a collection of images:
VisualInsights service = new VisualInsights(); service.setUsernameAndPassword("<username>", "<password>"); File images = new File("images.zip"); Summary summary = service.getSummary(images).execute(); System.out.println(summary);
imagesFile
- the images FileSummary
of the collection's visual attributesCopyright © 2015–2016. All rights reserved.