public class VisualRecognition extends WatsonService
| Modifier and Type | Field and Description |
|---|---|
static String |
IMG_FILE
The Constant IMG_FILE.
|
static String |
LABELS_TO_CHECK
The Constant LABELS_TO_CHECK.
|
FORWARD_SLASH| 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, executeRequest, executeWithoutResponse, getApiKey, getDefaultContentType, getDefaultRequestParams, getEndPoint, getHttpClient, getThreadSafeClient, setApiKey, setAuthentication, 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.