public interface IRecognitionCoreAPI
extends java.lang.AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static class |
IRecognitionCoreAPI.CharInfo
Extended information about the characters' formatting.
|
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 class |
IRecognitionCoreAPI.TextLine
The
TextLine represents a recognized text line. |
static interface |
IRecognitionCoreAPI.TextRecognitionCallback
Callback for text recognition methods.
|
static interface |
IRecognitionCoreAPI.TextRecognitionSettings
Settings for text recognition.
|
static class |
IRecognitionCoreAPI.TranslationResult
The
TranslationResult represents a translated text and mapping. |
static class |
IRecognitionCoreAPI.Warning
Warnings
|
Modifier and Type | Field and Description |
---|---|
static int |
CHAR_ATTRIBUTE_BOLD |
static int |
CHAR_ATTRIBUTE_ITALIC
Char Attributes
|
static int |
CHAR_ATTRIBUTE_SMALLCAPS |
static int |
CHAR_ATTRIBUTE_STRIKETHROUGH |
static int |
CHAR_ATTRIBUTE_SUPERSCRIPT |
static int |
CHAR_ATTRIBUTE_UNCERTAIN |
static int |
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.
|
static final int CHAR_ATTRIBUTE_ITALIC
static final int CHAR_ATTRIBUTE_BOLD
static final int CHAR_ATTRIBUTE_UNDERLINED
static final int CHAR_ATTRIBUTE_STRIKETHROUGH
static final int CHAR_ATTRIBUTE_SMALLCAPS
static final int CHAR_ATTRIBUTE_SUPERSCRIPT
static final int CHAR_ATTRIBUTE_UNCERTAIN
IRecognitionCoreAPI.TextBlock[] recognizeText(android.graphics.Bitmap image, IRecognitionCoreAPI.TextRecognitionCallback callback)
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.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 occursvoid 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.AutoCloseable
IRecognitionCoreAPI.ProcessingSettings getProcessingSettings()
IRecognitionCoreAPI.TextRecognitionSettings getTextRecognitionSettings()
IRecognitionCoreAPI.ExtendedSettings getExtendedSettings()