public class VisualRecognition extends WatsonService
| Constructor and Description |
|---|
VisualRecognition()
Instantiates a new visual recognition.
|
| Modifier and Type | Method and Description |
|---|---|
LabelSet |
getLabelSet()
Gets the labels and label groups.
|
RecognizedImage |
recognize(File image)
Classifies the images against all the label groups and labels.
|
RecognizedImage |
recognize(File image,
LabelSet labelSet)
Classifies the images against the label groups and labels.
|
execute, getApiKey, getDefaultContentType, getDefaultRequestParams, getEndPoint, getGson, getHttpClient, setApiKey, setEndPoint, setUsernameAndPassword, toStringpublic VisualRecognition()
public RecognizedImage recognize(File image, LabelSet labelSet)
image - the file imagelabelSet - the labels to classify againstpublic LabelSet getLabelSet()
public RecognizedImage recognize(File image)
image - the image fileCopyright © 2015. All rights reserved.