Creates a listing of the available Spelling languages together with IG_REC_spelling_language_first_get.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_spelling_language_next_get( enumIGRecLanguages* pLang ); |
Name | Type | Description |
---|---|---|
pLang | enumIGRecLanguages* | Address of a variable to get the next spelling language. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; AT_ERRCODE ErrCode = IGE_SUCCESS; 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); while(ErrCode == IGE_SUCCESS) { ErrCount += IG_REC_spelling_language_next_get(&eLang); IG_warning_get(0, NULL, 0, NULL, &ErrCode, NULL, NULL, NULL, 0); } ErrCount += IG_REC_image_recognize(higRecImage); ErrCount += IG_REC_image_delete(higRecImage); ErrCount += IG_image_delete(higImage); |