iDRS™ SDK 16
Loading...
Searching...
No Matches
COcrContext_interface.h
Go to the documentation of this file.
1
7#ifndef COCRCONTEXT_INTERFACE_H
8
9#define COCRCONTEXT_INTERFACE_H
10
13
14#include "idrs_common.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
27COcrContext COcrContext_Create(enum Language const lLanguage, idrs_exception *pargException);
28
38COcrContext COcrContext_Create2(const LanguageArray xlLanguages, idrs_exception *pargException);
39
50COcrContext COcrContext_Create3(enum Language const * xlLanguages, IDRS_UINT const uiLanguagesCount, idrs_exception *pargException);
51
59LanguageArray COcrContext_GetLanguages(const COcrContext argCOcrContext, idrs_exception *pargException);
60
68void COcrContext_SetLanguages(COcrContext argCOcrContext, const LanguageArray argLanguages, idrs_exception *pargException);
69
77void COcrContext_SetTextDetectionSensivity(COcrContext argCOcrContext, enum TextDetectionSensivity const evTextDetectionSensivity, idrs_exception *pargException);
78
86enum TextDetectionSensivity COcrContext_GetTextDetectionSensivity(const COcrContext argCOcrContext, idrs_exception *pargException);
87
95void COcrContext_SetFontInfoComputation(COcrContext argCOcrContext, enum FontInfoComputation const evFontInfoComputation, idrs_exception *pargException);
96
104enum FontInfoComputation COcrContext_GetFontInfoComputation(const COcrContext argCOcrContext, idrs_exception *pargException);
105
113void COcrContext_SetCharacterSet(COcrContext argCOcrContext, const idrs_string strCharacterSet, idrs_exception *pargException);
114
122const idrs_string COcrContext_GetCharacterSet(const COcrContext argCOcrContext, idrs_exception *pargException);
123
133void COcrContext_SetTextType(COcrContext argCOcrContext, enum TextType const evTextType, idrs_exception *pargException);
134
144enum TextType COcrContext_GetTextType(const COcrContext argCOcrContext, idrs_exception *pargException);
145
157void COcrContext_SetTextDirection(COcrContext argCOcrContext, enum TextDirection const evTextDirection, idrs_exception *pargException);
158
170enum TextDirection COcrContext_GetTextDirection(const COcrContext argCOcrContext, idrs_exception *pargException);
171
180IDRS_BOOL COcrContext_IsEqual(const COcrContext argCOcrContext, const COcrContext argOcrContext, idrs_exception *pargException);
181
189void COcrContext_Destroy(COcrContext argCOcrContext, idrs_exception *pargException);
190
191#ifdef __cplusplus
192}
193#endif /* __cplusplus */
194
195#endif /* COCRCONTEXT_INTERFACE_H */
Interface for ArrayDefinitions wrapper.
IDRS_BOOL COcrContext_IsEqual(const COcrContext argCOcrContext, const COcrContext argOcrContext, idrs_exception *pargException)
IsEqual tests if two ocr contexts are equal.
enum TextDetectionSensivity COcrContext_GetTextDetectionSensivity(const COcrContext argCOcrContext, idrs_exception *pargException)
Gets the text detection sensitivity.
void COcrContext_SetTextDetectionSensivity(COcrContext argCOcrContext, enum TextDetectionSensivity const evTextDetectionSensivity, idrs_exception *pargException)
Sets the text detection sensitivity.
const idrs_string COcrContext_GetCharacterSet(const COcrContext argCOcrContext, idrs_exception *pargException)
Gets the character set to be used during text recognition.
enum TextDirection COcrContext_GetTextDirection(const COcrContext argCOcrContext, idrs_exception *pargException)
Gets the direction of the text which this context will search on the page.
LanguageArray COcrContext_GetLanguages(const COcrContext argCOcrContext, idrs_exception *pargException)
Gets the languages used for ocr recognition.
void COcrContext_SetTextType(COcrContext argCOcrContext, enum TextType const evTextType, idrs_exception *pargException)
Sets the type of text that is expected to be recognized.
void COcrContext_SetCharacterSet(COcrContext argCOcrContext, const idrs_string strCharacterSet, idrs_exception *pargException)
Sets the character set to be used during text recognition.
void COcrContext_Destroy(COcrContext argCOcrContext, idrs_exception *pargException)
Destroys a COcrContext handle.
COcrContext COcrContext_Create2(const LanguageArray xlLanguages, idrs_exception *pargException)
Create creates an OCR context for the given languages and text type parameters.
COcrContext COcrContext_Create(enum Language const lLanguage, idrs_exception *pargException)
Create creates an OCR context for the given language and text type parameters.
enum TextType COcrContext_GetTextType(const COcrContext argCOcrContext, idrs_exception *pargException)
Gets the text type associated to this ocr context.
void COcrContext_SetFontInfoComputation(COcrContext argCOcrContext, enum FontInfoComputation const evFontInfoComputation, idrs_exception *pargException)
Sets the font computation type.
COcrContext COcrContext_Create3(enum Language const *xlLanguages, IDRS_UINT const uiLanguagesCount, idrs_exception *pargException)
Create creates an OCR context for the given languages and text type parameters.
void COcrContext_SetLanguages(COcrContext argCOcrContext, const LanguageArray argLanguages, idrs_exception *pargException)
Set the ocr recognition languages.
void COcrContext_SetTextDirection(COcrContext argCOcrContext, enum TextDirection const evTextDirection, idrs_exception *pargException)
Sets the direction of the text which this context will search on the page.
enum FontInfoComputation COcrContext_GetFontInfoComputation(const COcrContext argCOcrContext, idrs_exception *pargException)
Gets the font computation type.
Interface for EnumDefinitions wrapper.
FontInfoComputation
Contains all sets of fonts that iDRS is able to recognize.
Definition EnumDefinitions_interface.h:2900
TextDirection
The TextDirection data type defines the text direction of the concerned element it is applied to.
Definition EnumDefinitions_interface.h:461
TextDetectionSensivity
Text detection sensitivity modes.
Definition EnumDefinitions_interface.h:3063
TextType
The TextType data type defines the type text type.
Definition EnumDefinitions_interface.h:427
The COcrContext class manages a recognition context for the OCR engine.
Class that handles a string of characters.
Language
The Language data type defines a language identifier.
Definition Language_interface.h:25
IDRS_INT IDRS_BOOL
A Boolean value.
Definition idrsstd_interface.h:37
unsigned int IDRS_UINT
An unsigned integer.
Definition idrsstd_interface.h:27