public interface ITextCaptureService extends IRecognitionService
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ITextCaptureService.Callback
A callback interface to interact with the text capture service: input the data and obtain the results.
|
static class |
ITextCaptureService.CharInfo
Extended information about the characters' formatting.
|
static interface |
ITextCaptureService.ExtendedSettings
Extended service configuration settings.
|
static class |
ITextCaptureService.TextLine
A line of recognized text; the location and additional information are also available.
|
IRecognitionService.DebugLog, IRecognitionService.ResultStabilityStatus, IRecognitionService.Warning| Modifier and Type | Method and Description |
|---|---|
ITextCaptureService.ExtendedSettings |
getExtendedSettings()
Extended service configuration settings.
|
void |
setRecognitionLanguage(Language... languages)
Sets the languages to be used for recognition.
|
void |
setTextTypes(TextCapture.TextType... textTypes)
Sets the text types to be used for recognition.
|
void |
setTranslationDictionary(java.lang.String dictionaryName)
Deprecated.
|
setAreaOfInterest, setDebugLog, start, stop, submitFrame, submitFrame, submitRequestedFramevoid setRecognitionLanguage(Language... languages)
By default, only English language is set. Setting the correct languages for your text will improve recognition accuracy. However, setting too many languages may slow down performance.
languages - one or more languages to be used for recognition@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 setTextTypes(TextCapture.TextType... textTypes)
By default, only the 'Normal' text type is set. This is sufficient in most cases. Setting the correct text type for your text could improve the accuracy of recognition. However, setting multiple text types may slow down the performance.
textTypes - one or more text types to be used for recognitionITextCaptureService.ExtendedSettings getExtendedSettings()
getExtendedSettings in interface IRecognitionService