public class ClassifyImageRequest extends Object
Constructor and Description |
---|
ClassifyImageRequest() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getClassifierIds()
An array of classifier IDs to classify the images against.
|
InputStream |
getImage()
The image input stream (.jpg, or .png) or compressed (.zip) file of images to classify.
|
File |
getImageAsFile()
The image file (.jpg, or .png) or compressed (.zip) file of images to classify.
|
Double |
getThreshold()
A floating point value that specifies the minimum score a class must have to be displayed in the response.
|
String |
getUrl()
The URL of an image (.jpg, or .png).
|
void |
setClassifierIds(List<String> classifierIds) |
void |
setImage(InputStream image) |
void |
setThreshold(Double threshold) |
void |
setUrl(String url) |
public List<String> getClassifierIds()
public Double getThreshold()
public String getUrl()
public InputStream getImage()
public File getImageAsFile() throws IOException
IOException
- When the connector can't process the image input stream.public void setClassifierIds(List<String> classifierIds)
classifierIds
- the classifierIds to setpublic void setThreshold(Double threshold)
threshold
- the threshold to setpublic void setUrl(String url)
url
- the url to setpublic void setImage(InputStream image)
image
- the image to setCopyright © 2010–2017. All rights reserved.