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