public class VideoRecordReader extends Object implements org.canova.api.records.reader.SequenceRecordReader
| Modifier and Type | Field and Description |
|---|---|
static String |
HEIGHT |
static String |
IMAGE_LOADER |
protected org.canova.api.split.InputSplit |
inputSplit |
static String |
WIDTH |
| Constructor and Description |
|---|
VideoRecordReader() |
VideoRecordReader(int height,
int width)
Load the record reader with the given height and width
|
VideoRecordReader(int height,
int width,
boolean appendLabel) |
VideoRecordReader(int height,
int width,
boolean appendLabel,
List<String> labels) |
VideoRecordReader(int height,
int width,
List<String> labels)
Load the record reader with the given height and width
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.canova.api.conf.Configuration |
getConf() |
List<String> |
getLabels() |
boolean |
hasNext() |
void |
initialize(org.canova.api.conf.Configuration conf,
org.canova.api.split.InputSplit split) |
void |
initialize(org.canova.api.split.InputSplit split) |
Collection<org.canova.api.writable.Writable> |
next() |
Collection<org.canova.api.writable.Writable> |
record(URI uri,
DataInputStream dataInputStream) |
void |
reset() |
Collection<Collection<org.canova.api.writable.Writable>> |
sequenceRecord() |
Collection<Collection<org.canova.api.writable.Writable>> |
sequenceRecord(URI uri,
DataInputStream dataInputStream) |
void |
setConf(org.canova.api.conf.Configuration conf) |
public static final String HEIGHT
public static final String WIDTH
public static final String IMAGE_LOADER
protected org.canova.api.split.InputSplit inputSplit
public VideoRecordReader()
public VideoRecordReader(int height,
int width,
List<String> labels)
height - the height to loadwidth - the width loadpublic VideoRecordReader(int height,
int width,
boolean appendLabel,
List<String> labels)
public VideoRecordReader(int height,
int width)
height - the height to loadwidth - the width loadpublic VideoRecordReader(int height,
int width,
boolean appendLabel)
public void initialize(org.canova.api.split.InputSplit split)
throws IOException,
InterruptedException
initialize in interface org.canova.api.records.reader.RecordReaderIOExceptionInterruptedExceptionpublic void initialize(org.canova.api.conf.Configuration conf,
org.canova.api.split.InputSplit split)
throws IOException,
InterruptedException
initialize in interface org.canova.api.records.reader.RecordReaderIOExceptionInterruptedExceptionpublic Collection<org.canova.api.writable.Writable> next()
next in interface org.canova.api.records.reader.RecordReaderpublic boolean hasNext()
hasNext in interface org.canova.api.records.reader.RecordReaderpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Collection<Collection<org.canova.api.writable.Writable>> sequenceRecord()
sequenceRecord in interface org.canova.api.records.reader.SequenceRecordReaderpublic void setConf(org.canova.api.conf.Configuration conf)
setConf in interface org.canova.api.conf.Configurablepublic org.canova.api.conf.Configuration getConf()
getConf in interface org.canova.api.conf.Configurablepublic List<String> getLabels()
getLabels in interface org.canova.api.records.reader.RecordReaderpublic void reset()
reset in interface org.canova.api.records.reader.RecordReaderpublic Collection<org.canova.api.writable.Writable> record(URI uri, DataInputStream dataInputStream) throws IOException
record in interface org.canova.api.records.reader.RecordReaderIOExceptionpublic Collection<Collection<org.canova.api.writable.Writable>> sequenceRecord(URI uri, DataInputStream dataInputStream) throws IOException
sequenceRecord in interface org.canova.api.records.reader.SequenceRecordReaderIOExceptionCopyright © 2016. All rights reserved.