API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Recognition Callback Functions > IG_REC_progress_CB_register |
Registers a callback address for the LPFNIG_REC_PROGRESS_MONITOR progress monitoring function.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_progress_CB_register( LPFNIG_REC_PROGRESS_MONITOR pCallBack, LPAT_VOID lpUserData ); |
Name | Type | Description |
---|---|---|
pCallBack | LPFNIG_REC_PROGRESS_MONITOR | Address of the callback entry point in the application. |
lpUserData | LPAT_VOID | Pointer to the user data to be passed to the callback function. |
This function does not process image pixels.
Copy Code
|
|
---|---|
//... //enumIGRecError __stdcall func(LPAT_REC_PROGRESS_MONITOR mod, void *pContext) //{ // return IGE_REC_EXT_OK; //} //... AT_ERRCOUNT ErrCount = 0; HIG_REC_IMAGE higRecImage = 0; HIGEAR higImage = 0; LPFNIG_REC_PROGRESS_MONITOR pCallBack = &func; ErrCount += IG_load_file("Image.tif", &higImage); ErrCount += IG_REC_image_import(higImage, &higRecImage); ErrCount += IG_REC_progress_CB_register(pCallBack, NULL); //... ErrCount += IG_REC_image_recognize(higRecImage); //... ErrCount += IG_REC_image_delete(higRecImage); ErrCount += IG_image_delete(higImage); |