public class OMRHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ASC_FILE |
static String |
CONFIG_FILE |
| Constructor and Description |
|---|
OMRHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValid(Document doc)
isValid
|
static Map<String,String> |
process(File fileToProcess,
long omId)
process
|
static void |
processAndStoreMetadata(long omId,
String uuid)
processAndStoreMetadata
|
static void |
storeMetadata(Map<String,String> results,
String docPath)
storeMetadata
|
static Map<String,File> |
trainingTemplate(File template)
trainingTemplate
|
public static final String ASC_FILE
public static final String CONFIG_FILE
public static boolean isValid(Document doc)
public static Map<String,File> trainingTemplate(File template) throws IOException, net.sourceforge.jiu.codecs.InvalidFileStructureException, net.sourceforge.jiu.codecs.InvalidImageIndexException, net.sourceforge.jiu.codecs.UnsupportedTypeException, net.sourceforge.jiu.ops.MissingParameterException, net.sourceforge.jiu.ops.WrongParameterException
IOExceptionnet.sourceforge.jiu.codecs.InvalidFileStructureExceptionnet.sourceforge.jiu.codecs.InvalidImageIndexExceptionnet.sourceforge.jiu.codecs.UnsupportedTypeExceptionnet.sourceforge.jiu.ops.MissingParameterExceptionnet.sourceforge.jiu.ops.WrongParameterExceptionpublic static Map<String,String> process(File fileToProcess, long omId) throws IOException, OMRException, DatabaseException, net.sourceforge.jiu.codecs.InvalidFileStructureException, net.sourceforge.jiu.codecs.InvalidImageIndexException, net.sourceforge.jiu.codecs.UnsupportedTypeException, net.sourceforge.jiu.ops.MissingParameterException, net.sourceforge.jiu.ops.WrongParameterException
IOExceptionOMRExceptionDatabaseExceptionnet.sourceforge.jiu.codecs.InvalidFileStructureExceptionnet.sourceforge.jiu.codecs.InvalidImageIndexExceptionnet.sourceforge.jiu.codecs.UnsupportedTypeExceptionnet.sourceforge.jiu.ops.MissingParameterExceptionnet.sourceforge.jiu.ops.WrongParameterExceptionpublic static void storeMetadata(Map<String,String> results, String docPath) throws IOException, ParseException, PathNotFoundException, RepositoryException, DatabaseException, NoSuchGroupException, LockException, AccessDeniedException, ExtensionException, AutomationException, NoSuchPropertyException, OMRException
public static void processAndStoreMetadata(long omId,
String uuid)
throws IOException,
PathNotFoundException,
AccessDeniedException,
RepositoryException,
DatabaseException,
OMRException,
NoSuchGroupException,
LockException,
ExtensionException,
ParseException,
NoSuchPropertyException,
AutomationException,
net.sourceforge.jiu.codecs.InvalidFileStructureException,
net.sourceforge.jiu.codecs.InvalidImageIndexException,
net.sourceforge.jiu.codecs.UnsupportedTypeException,
net.sourceforge.jiu.ops.MissingParameterException,
net.sourceforge.jiu.ops.WrongParameterException
IOExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionOMRExceptionNoSuchGroupExceptionLockExceptionExtensionExceptionParseExceptionNoSuchPropertyExceptionAutomationExceptionnet.sourceforge.jiu.codecs.InvalidFileStructureExceptionnet.sourceforge.jiu.codecs.InvalidImageIndexExceptionnet.sourceforge.jiu.codecs.UnsupportedTypeExceptionnet.sourceforge.jiu.ops.MissingParameterExceptionnet.sourceforge.jiu.ops.WrongParameterExceptionCopyright © 2015. All Rights Reserved.