Creates a listing of the available Spelling languages (together with the IG_REC_spelling_language_next_get function).
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_spelling_language_first_get( enumIGRecLanguages* pLang ); |
Name | Type | Description |
---|---|---|
pLang | enumIGRecLanguages* | Address of a variable to get the first language. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; HIG_REC_IMAGE higRecImage = 0; HIGEAR higImage = 0; enumIGRecLanguages eLang = IG_REC_LANG_NO; ErrCount += IG_load_file("Image.tif", &higImage); ErrCount += IG_REC_image_import(higImage, &higRecImage); //... ErrCount += IG_REC_spelling_is_enabled_set(TRUE); ErrCount += IG_REC_correction_is_enabled_set(TRUE); ErrCount += IG_REC_spelling_language_set(IG_REC_LANG_ENG); ErrCount += IG_REC_spelling_language_set(IG_REC_LANG_GER); ErrCount += IG_REC_spelling_language_first_get(&eLang); ErrCount += IG_REC_image_recognize(higRecImage); //... ErrCount += IG_REC_image_delete(higRecImage); ErrCount += IG_image_delete(higImage); |
This function returns with the enumIGRecLanguages language identifier of the first Spelling language available for the current recognition engine configuration.