public final class VideoParameters extends AbstractTaskDetails.TaskParameters
VideoParameters.SequenceType.SECOND
is used, the element sequenceDuration must be present.
PhotoParameters.AnalysisType.KEYWORD_EXTRACTION
and PhotoParameters.AnalysisType.VISUAL
should be used.<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <taskParameters> <analysisTypeList> <analysisType>AUDIO</analysisType> <analysisType>FACE_DETECTION</analysisType> <analysisType>KEYWORD_EXTRACTION</analysisType> <analysisType>VISUAL</analysisType> </analysisTypeList> <sequenceDuration>123180267</sequenceDuration> <sequenceType>SECOND</sequenceType> <timeCodeList> <timeCode> <to>6003.033406149492</to> <from>3281.8886457574004</from> </timeCode> </timeCodeList> </taskParameters>
TimecodeList
Modifier and Type | Class and Description |
---|---|
static class |
VideoParameters.SequenceType
Type of the requested analysis sequence
|
Constructor and Description |
---|
VideoParameters() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<PhotoParameters.AnalysisType> |
getAnalysisTypes() |
java.lang.Integer |
getSequenceDuration() |
VideoParameters.SequenceType |
getSequenceType() |
TimecodeList |
getTimecodes() |
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) |
void |
setSequenceDuration(java.lang.Integer sequenceDuration) |
void |
setSequenceType(VideoParameters.SequenceType sequenceType) |
void |
setTimecodes(TimecodeList timecodes) |
java.util.HashMap<java.lang.String,java.lang.String> |
toMetadata() |
public VideoParameters()
public java.lang.Integer getSequenceDuration()
setSequenceDuration(Integer)
public void setSequenceDuration(java.lang.Integer sequenceDuration)
sequenceDuration
- the sequence duration in secondsgetSequenceDuration()
public VideoParameters.SequenceType getSequenceType()
setSequenceType(service.tut.pori.contentanalysis.video.VideoParameters.SequenceType)
public void setSequenceType(VideoParameters.SequenceType sequenceType)
sequenceType
- the sequenceType to setgetSequenceType()
public TimecodeList getTimecodes()
setTimecodes(TimecodeList)
public void setTimecodes(TimecodeList timecodes)
timecodes
- the timecodes to setgetTimecodes()
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
public java.util.Set<PhotoParameters.AnalysisType> getAnalysisTypes()
public void setAnalysisTypes(java.util.Set<PhotoParameters.AnalysisType> analysisTypes)
analysisTypes
- the analysisTypes to setCopyright © 2015 Tampere University of Technology, Pori Department.