public final class PhotoParameters extends AbstractTaskDetails.TaskParameters
PhotoParameters.AnalysisType.KEYWORD_EXTRACTION
and PhotoParameters.AnalysisType.VISUAL
should be used.<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <taskParameters> <analysisTypeList> <analysisType>FACE_DETECTION</analysisType> <analysisType>KEYWORD_EXTRACTION</analysisType> <analysisType>VISUAL</analysisType> </analysisTypeList> </taskParameters>
Modifier and Type | Class and Description |
---|---|
static class |
PhotoParameters.AnalysisType
The analysis type for the provided content.
|
Constructor and Description |
---|
PhotoParameters() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<PhotoParameters.AnalysisType> |
getAnalysisTypes() |
void |
initialize(java.util.Map<java.lang.String,java.lang.String> metadata)
initialize the the parameters from the given metadata map
|
void |
setAnalysisTypes(java.util.Set<PhotoParameters.AnalysisType> analysisTypes) |
java.util.HashMap<java.lang.String,java.lang.String> |
toMetadata() |
public PhotoParameters()
public java.util.Set<PhotoParameters.AnalysisType> getAnalysisTypes()
setAnalysisTypes(Set)
public void setAnalysisTypes(java.util.Set<PhotoParameters.AnalysisType> analysisTypes)
analysisTypes
- the analysisTypes to setgetAnalysisTypes()
public void initialize(java.util.Map<java.lang.String,java.lang.String> metadata) throws java.lang.IllegalArgumentException
AbstractTaskDetails.TaskParameters
initialize
in class AbstractTaskDetails.TaskParameters
java.lang.IllegalArgumentException
- on bad valuespublic java.util.HashMap<java.lang.String,java.lang.String> toMetadata()
toMetadata
in class AbstractTaskDetails.TaskParameters
Copyright © 2015 Tampere University of Technology, Pori Department.