Matches text from a single ImageGear page.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_approx_regex_search_page( const HIG_REC_APPROX_REGEX higRecApproxRegex, const HIGEAR higPage, const AT_REC_MATCH_RESULT** const match_result_array, AT_INT* const match_result_size ); |
Name | Type | Description |
---|---|---|
higRecApproxRegex | const HIG_REC_APPROX_REGEX | The handle to an approximate regex instance. |
higPage | const HIGEAR | The handle to an ImageGear page. |
match_result_array | const AT_REC_MATCH_RESULT** const | A pointer to a vector of match result instances. The approximate regex owns this data. Callers that require access to this data after the approximate regex is deleted must duplicate this data and assume ownership of the copy. |
match_result_size | AT_INT* const | The number of match results in match_result_array. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT errCount = 0 ; HIGEAR higPage = 0 ; HIG_REC_APPROX_REGEX higRecApproxRegex = 0 ; LPAT_WCHAR patterns [] = { L".+" } ; const AT_REC_MATCH_RESULT* match_result_array = 0 ; AT_INT match_result_size = 0 ; IG_load_file ( "picture.bmp" , &higPage ); IG_REC_approx_regex_create( &higRecApproxRegex ) ; IG_REC_approx_regex_pattern_set( higRecApproxRegex , patterns , 1 ) ; errCount = IG_REC_approx_regex_search_page ( higRecApproxRegex, higPage, &match_result_array, &match_result_size ) ; IG_REC_approx_regex_delete( higRecApproxRegex ) ; IG_image_delete( higPage ) ; |
Text recognition is performed on the page. The resulting text is searched for pattern matches.
The following installed callbacks are invoked during execution of this function: