ImageGear Professional v18.2 > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Recognition Image Preprocessing Functions > IG_REC_image_blank_page_detect |
Detects whether or not the image is considered to be blank.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_image_blank_page_detect( HIG_REC_IMAGE hImage, LPAT_BOOL lpIsBlank ); |
Name | Type | Description |
hImage | HIG_REC_IMAGE | Image handle. |
lpIsBlank | LPAT_BOOL | Buffer to return a value specifying whether or not the image is blank. |
See IG_REC_image_import.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; HIG_REC_IMAGE higRecImage = 0; HIGEAR higImage = 0; AT_BOOL bIsBlank = FALSE; ErrCount += IG_load_file("Image.tif", &higImage); ErrCount += IG_REC_image_import(higImage, &higRecImage); ErrCount += IG_REC_image_blank_page_detect(higRecImage, &bIsBlank); ErrCount += IG_REC_image_recognize(higRecImage); //... ErrCount += IG_REC_image_delete(higRecImage); ErrCount += IG_image_delete(higImage); |
This function will consider an image to be blank (all or mostly white) if there is only a small percentage of noise, especially noise around the edge of the image usually created as a result of scanning.