|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.ocr.core.publicapi.OcrEngine
public final class OcrEngine
Main OCR class. Users will use instance of this class most of the time.
Constructor Summary | |
---|---|
OcrEngine(String resourcesFilePath,
int[] netNumbers,
String xmlEtalonFileName,
String fontCollectionFileName)
Initializes a new instance of the OcrEngine class. |
|
OcrEngine(String xmlFilesPath,
String xmlEtalonFilePath,
String fontCollectionPath)
Initializes a new instance of the OcrEngine class. |
|
OcrEngine(String xmlFilesPath,
String xmlEtalonFilePath,
String fontCollectionPath,
int[] netNumbers)
Initializes a new instance of the OcrEngine class. |
Method Summary | |
---|---|
OCRConfig |
getConfig()
Gets configuration. |
LanguageContainer |
getLanguages()
Gets container recognition languages. |
IRecognizedText |
getText()
Gets recognized text. |
boolean |
process()
Runs the recognition process. |
void |
setConfig(OCRConfig value)
Sets configuration. |
void |
setImage(File file)
Sets the picture to recognize the text from. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OcrEngine(String resourcesFilePath, int[] netNumbers, String xmlEtalonFileName, String fontCollectionFileName)
resourcesFilePath
- zip file containing networks xml files, xml etalon file and font collection filenetNumbers
- numbers of the networks in listxmlEtalonFileName
- etalon file namefontCollectionFileName
- font collection file namepublic OcrEngine(String xmlFilesPath, String xmlEtalonFilePath, String fontCollectionPath, int[] netNumbers)
xmlFilesPath
- path to folder containing xml files of networksnetNumbers
- numbers of the networks in listxmlEtalonFilePath
- etalon file namefontCollectionPath
- path to font collection filepublic OcrEngine(String xmlFilesPath, String xmlEtalonFilePath, String fontCollectionPath)
xmlFilesPath
- path to folder containing xml files of networksxmlEtalonFilePath
- etalon file namefontCollectionPath
- path to font collection fileMethod Detail |
---|
public OCRConfig getConfig()
public void setConfig(OCRConfig value)
public void setImage(File file)
public IRecognizedText getText()
public LanguageContainer getLanguages()
public boolean process() throws ApplicationException
ApplicationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |