public class GOCREngine extends OCREngine
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTION_DATAPATH |
static java.lang.String |
OPTION_UNKNOWN_CHAR |
static java.lang.String |
OPTION_USE_EXTERNALDB |
static java.lang.String |
TMP_PNM_ORIGSIZE |
static java.lang.String |
TMP_PNM_ZOOMED |
static java.lang.String |
UNKNOWN_CHAR |
static java.lang.String |
VAR_TRAINDATA_PATH |
defaultZoomScale, OCR_DEFAULT_ENGINE_CLAZZ, OCR_DEFAULT_ENGINE_KEY, OCR_G_ENGINE_CLAZZ, OCR_G_ENGINE_KEY, OCR_T_ENGINE_CLAZZ, OCR_T_ENGINE_KEY, STAF_OCR_ENGINE_VAR_NAME, STAF_OCR_LANGUAGE_ID_VAR_NAME
Constructor and Description |
---|
GOCREngine() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
databasePathOption() |
java.lang.String |
imageToText(java.awt.image.BufferedImage image,
java.lang.String langId,
java.awt.Rectangle subarea,
float zoom)
Convert buffered image to text using OCR technology.
|
static void |
main(java.lang.String[] args) |
findTextRectFromImage, getdefaultZoomScale, getOCREngine, getOCREngineKey, getOCRLanguageCode, getSelfDefinedLangId, imageToText, runCommandLine, setdefaultZoomScale, setOCREngineKey, setOCRLanguageCode, storedImageToText, storedImageToText, zoomImageWithType
public static java.lang.String TMP_PNM_ZOOMED
public static java.lang.String TMP_PNM_ORIGSIZE
public static java.lang.String UNKNOWN_CHAR
public static java.lang.String OPTION_UNKNOWN_CHAR
public static java.lang.String OPTION_USE_EXTERNALDB
public static java.lang.String OPTION_DATAPATH
public static java.lang.String VAR_TRAINDATA_PATH
public static java.lang.String databasePathOption()
public java.lang.String imageToText(java.awt.image.BufferedImage image, java.lang.String langId, java.awt.Rectangle subarea, float zoom) throws SAFSException
OCREngine
imageToText
in class OCREngine
SAFSException
- if meets any Exceptionpublic static void main(java.lang.String[] args)
Copyright © SAS Institute. All Rights Reserved.