public interface IRecognitionCoreAPI extends java.lang.AutoCloseable, TextCapture
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IRecognitionCoreAPI.ExtendedSettings
Extended configuration settings.
|
static interface |
IRecognitionCoreAPI.ProcessingSettings
Basic settings applicable to most methods
|
static class |
IRecognitionCoreAPI.TextBlock
The
TextBlock is a collection of lines of recognized text. |
static interface |
IRecognitionCoreAPI.TextRecognitionCallback
Callback for text recognition methods.
|
static interface |
IRecognitionCoreAPI.TextRecognitionSettings
Settings for text recognition.
|
static class |
IRecognitionCoreAPI.TranslationResult
Deprecated.
|
static class |
IRecognitionCoreAPI.Warning
Warnings
|
TextCapture.CaptureSceneType, TextCapture.CharInfo, TextCapture.TextLine, TextCapture.TextTypeCHAR_ATTRIBUTE_BOLD, CHAR_ATTRIBUTE_ITALIC, CHAR_ATTRIBUTE_SMALLCAPS, CHAR_ATTRIBUTE_STRIKETHROUGH, CHAR_ATTRIBUTE_SUPERSCRIPT, CHAR_ATTRIBUTE_UNCERTAIN, CHAR_ATTRIBUTE_UNDERLINED| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release all resources.
|
IRecognitionCoreAPI.ExtendedSettings |
getExtendedSettings()
Extended configuration settings.
|
IRecognitionCoreAPI.ProcessingSettings |
getProcessingSettings()
Basic settings applicable to most methods
|
IRecognitionCoreAPI.TextRecognitionSettings |
getTextRecognitionSettings()
Settings for text recognition.
|
IRecognitionCoreAPI.TextBlock[] |
recognizeText(android.graphics.Bitmap image,
IRecognitionCoreAPI.TextRecognitionCallback callback)
Recognize text on a still image.
|
void |
setTranslationDictionary(java.lang.String dictionaryName)
Deprecated.
Sets the name of the translation dictionary.
By default, no translation dictionary is used. Translation dictionaries should be put in the 'assets\translation' folder. |
IRecognitionCoreAPI.TranslationResult |
translate(java.lang.String text)
Deprecated.
Translate the input string. Non-translatable substrings are returned as is.
|
IRecognitionCoreAPI.TextBlock[] recognizeText(android.graphics.Bitmap image, IRecognitionCoreAPI.TextRecognitionCallback callback)
see getTextRecognitionSettings below
image - Image to recognize.callback - Implementation of the TextRecognitionCallback interface. Is called during the recognition
to track the recognition progress and interrupt processing if required.TextBlock objects.@Deprecated IRecognitionCoreAPI.TranslationResult translate(java.lang.String text) throws Engine.LicenseException, java.io.IOException
text - Text to translate.Engine.LicenseException - if license exception occursjava.io.IOException - if IO exception occurs@Deprecated void setTranslationDictionary(java.lang.String dictionaryName)
By default, no translation dictionary is used. Translation dictionaries should be put in the 'assets\translation' folder.
dictionaryName - the name of the translation dictionary file without extensionvoid close()
close in interface java.lang.AutoCloseableIRecognitionCoreAPI.ProcessingSettings getProcessingSettings()
IRecognitionCoreAPI.TextRecognitionSettings getTextRecognitionSettings()
IRecognitionCoreAPI.ExtendedSettings getExtendedSettings()