public class VisualRecognition extends WatsonService
| Modifier and Type | Field and Description |
|---|---|
static String |
IMG_FILE |
static String |
LABELS_TO_CHECK |
| 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, executeWithoutResponse, getApiKey, getDefaultContentType, getDefaultRequestParams, getEndPoint, getGson, getHttpClient, getThreadSafeClient, setApiKey, setEndPoint, setUsernameAndPassword, toStringpublic static final String LABELS_TO_CHECK
public static final String IMG_FILE
public 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.