public class VisualRecognition extends WatsonService
Modifier and Type | Field and Description |
---|---|
static String |
IMG_FILE
The Constant IMG_FILE (value is "imgFile")
|
static String |
LABELS_TO_CHECK
The Constant LABELS_TO_CHECK (value is "labels_to_check").
|
VERSION
Constructor and Description |
---|
VisualRecognition()
Instantiates a new visual recognition.
|
Modifier and Type | Method and Description |
---|---|
LabelSet |
getLabelSet()
Gets the labels and label groups.
|
VisualRecognitionImages |
recognize(File image)
Classifies the images against all the label groups and labels.
|
VisualRecognitionImages |
recognize(File image,
LabelSet labelSet)
Classifies the images against the label groups and labels.
|
VisualRecognitionImages |
recognize(String imageName,
InputStream image,
LabelSet labelSet) |
configureHttpClient, execute, executeRequest, executeWithoutResponse, getApiKey, getEndPoint, getName, getToken, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setUsernameAndPassword, toString
public static final String IMG_FILE
public static final String LABELS_TO_CHECK
public VisualRecognition()
public LabelSet getLabelSet()
public VisualRecognitionImages recognize(File image)
image
- the image filepublic VisualRecognitionImages recognize(File image, LabelSet labelSet)
image
- the file imagelabelSet
- the labels to classify againstpublic VisualRecognitionImages recognize(String imageName, InputStream image, LabelSet labelSet)
Copyright © 2015–2016. All rights reserved.