annotool.io
Class DirectoryReader
java.lang.Object
annotool.io.DirectoryReader
public class DirectoryReader
- extends java.lang.Object
This is equivalent to LabelReader from target file input mode but for directory structure input mode.
This class scans the sub directories of the problem directory to get the candidate images to work on.
It also generates the list of class names which is basically the name of the sub directory inside the
problem directory. Each image in the sub directory belong to the class represented by that sub directory.
It also creates annotation label. In directory structure mode, there can be only one annotation label.
The name of the root directory (problem directory) is used as annotation label.
Constructor Summary |
DirectoryReader(java.lang.String path,
java.lang.String ext)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryReader
public DirectoryReader(java.lang.String path,
java.lang.String ext)
getClassNames
public java.util.HashMap<java.lang.String,java.lang.String> getClassNames()
getAnnotations
public java.util.ArrayList<java.lang.String> getAnnotations()
getFileList
public java.util.ArrayList<java.lang.String> getFileList()
getFileListArray
public java.lang.String[] getFileListArray()