|
iDRS™ SDK 16
|
Interface for COcrContext wrapper. More...
Go to the source code of this file.
Functions | |
| COcrContext | COcrContext_Create (enum Language const lLanguage, idrs_exception *pargException) |
| Create creates an OCR context for the given language and text type parameters. | |
| COcrContext | COcrContext_Create2 (const LanguageArray xlLanguages, idrs_exception *pargException) |
| Create creates an OCR context for the given languages and text type parameters. | |
| 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. | |
| LanguageArray | COcrContext_GetLanguages (const COcrContext argCOcrContext, idrs_exception *pargException) |
| Gets the languages used for ocr recognition. | |
| void | COcrContext_SetLanguages (COcrContext argCOcrContext, const LanguageArray argLanguages, idrs_exception *pargException) |
| Set the ocr recognition languages. | |
| void | COcrContext_SetTextDetectionSensivity (COcrContext argCOcrContext, enum TextDetectionSensivity const evTextDetectionSensivity, idrs_exception *pargException) |
| Sets the text detection sensitivity. | |
| enum TextDetectionSensivity | COcrContext_GetTextDetectionSensivity (const COcrContext argCOcrContext, idrs_exception *pargException) |
| Gets the text detection sensitivity. | |
| void | COcrContext_SetFontInfoComputation (COcrContext argCOcrContext, enum FontInfoComputation const evFontInfoComputation, idrs_exception *pargException) |
| Sets the font computation type. | |
| enum FontInfoComputation | COcrContext_GetFontInfoComputation (const COcrContext argCOcrContext, idrs_exception *pargException) |
| Gets the font computation type. | |
| void | COcrContext_SetCharacterSet (COcrContext argCOcrContext, const idrs_string strCharacterSet, idrs_exception *pargException) |
| Sets the character set to be used during text recognition. | |
| const idrs_string | COcrContext_GetCharacterSet (const COcrContext argCOcrContext, idrs_exception *pargException) |
| Gets the character set to be used during text recognition. | |
| void | COcrContext_SetTextType (COcrContext argCOcrContext, enum TextType const evTextType, idrs_exception *pargException) |
| Sets the type of text that is expected to be recognized. | |
| enum TextType | COcrContext_GetTextType (const COcrContext argCOcrContext, idrs_exception *pargException) |
| Gets the text type associated to this ocr context. | |
| 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 TextDirection | COcrContext_GetTextDirection (const COcrContext argCOcrContext, idrs_exception *pargException) |
| Gets the direction of the text which this context will search on the page. | |
| IDRS_BOOL | COcrContext_IsEqual (const COcrContext argCOcrContext, const COcrContext argOcrContext, idrs_exception *pargException) |
| IsEqual tests if two ocr contexts are equal. | |
| void | COcrContext_Destroy (COcrContext argCOcrContext, idrs_exception *pargException) |
| Destroys a COcrContext handle. | |
Interface for COcrContext wrapper.
| COcrContext COcrContext_Create | ( | enum Language const | lLanguage, |
| idrs_exception * | pargException | ||
| ) |
Create creates an OCR context for the given language and text type parameters.
| lLanguage | The identifier for the recognition language. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| COcrContext COcrContext_Create2 | ( | const LanguageArray | xlLanguages, |
| idrs_exception * | pargException | ||
| ) |
Create creates an OCR context for the given languages and text type parameters.
| xlLanguages | An array that contains the identifiers for the languages to recognize. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
page7
| 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.
| xlLanguages | An array that contains the identifiers for the languages to recognize. |
| uiLanguagesCount | Number of language items in xlLanguages argument. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
page7
| void COcrContext_Destroy | ( | COcrContext | argCOcrContext, |
| idrs_exception * | pargException | ||
| ) |
Destroys a COcrContext handle.
| argCOcrContext | COcrContext handle to destroy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| const idrs_string COcrContext_GetCharacterSet | ( | const COcrContext | argCOcrContext, |
| idrs_exception * | pargException | ||
| ) |
Gets the character set to be used during text recognition.
| argCOcrContext | COcrContext handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum FontInfoComputation COcrContext_GetFontInfoComputation | ( | const COcrContext | argCOcrContext, |
| idrs_exception * | pargException | ||
| ) |
Gets the font computation type.
| argCOcrContext | COcrContext handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| LanguageArray COcrContext_GetLanguages | ( | const COcrContext | argCOcrContext, |
| idrs_exception * | pargException | ||
| ) |
Gets the languages used for ocr recognition.
| argCOcrContext | COcrContext handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum TextDetectionSensivity COcrContext_GetTextDetectionSensivity | ( | const COcrContext | argCOcrContext, |
| idrs_exception * | pargException | ||
| ) |
Gets the text detection sensitivity.
| argCOcrContext | COcrContext handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum TextDirection COcrContext_GetTextDirection | ( | const COcrContext | argCOcrContext, |
| idrs_exception * | pargException | ||
| ) |
Gets the direction of the text which this context will search on the page.
By default, the text direction is set to TextDirection.Any: text will be searched in any supported direction by the context's languages.
| argCOcrContext | COcrContext handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum TextType COcrContext_GetTextType | ( | const COcrContext | argCOcrContext, |
| idrs_exception * | pargException | ||
| ) |
Gets the text type associated to this ocr context.
By default, the text type is set to TextType::Printed
| argCOcrContext | COcrContext handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_BOOL COcrContext_IsEqual | ( | const COcrContext | argCOcrContext, |
| const COcrContext | argOcrContext, | ||
| idrs_exception * | pargException | ||
| ) |
IsEqual tests if two ocr contexts are equal.
| argCOcrContext | COcrContext handle |
| argOcrContext | The ocr context to compare to |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void COcrContext_SetCharacterSet | ( | COcrContext | argCOcrContext, |
| const idrs_string | strCharacterSet, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the character set to be used during text recognition.
| argCOcrContext | COcrContext handle |
| strCharacterSet | Buffer containing the characters to be used during text recognition |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void COcrContext_SetFontInfoComputation | ( | COcrContext | argCOcrContext, |
| enum FontInfoComputation const | evFontInfoComputation, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the font computation type.
| argCOcrContext | COcrContext handle |
| evFontInfoComputation | Font computation type |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void COcrContext_SetLanguages | ( | COcrContext | argCOcrContext, |
| const LanguageArray | argLanguages, | ||
| idrs_exception * | pargException | ||
| ) |
Set the ocr recognition languages.
| argCOcrContext | COcrContext handle |
| argLanguages | The array containing the languages to be used during ocr recognition |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void COcrContext_SetTextDetectionSensivity | ( | COcrContext | argCOcrContext, |
| enum TextDetectionSensivity const | evTextDetectionSensivity, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the text detection sensitivity.
| argCOcrContext | COcrContext handle |
| evTextDetectionSensivity | Text detection sensitivity |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| 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.
By default, the text direction is set to TextDirection.Any: text will be searched in any supported direction by the context's languages.
| argCOcrContext | COcrContext handle |
| evTextDirection | The direction this context will consider when reading text on the page. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void COcrContext_SetTextType | ( | COcrContext | argCOcrContext, |
| enum TextType const | evTextType, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the type of text that is expected to be recognized.
By default, the text type is set to TextType::Printed
| argCOcrContext | COcrContext handle |
| evTextType | Text type - see |
| pargException | Pointer to exception structure that will be filled if an exception occurs |