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
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
public 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
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
public 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
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
Copyright © 2016. All rights reserved.