SimpleOCR:SDK Functions – EraseBlackBordersImg
int EraseBlackBordersImg(IMG * img)
Sometimes a scanned image has black borders. It happens frequently when the scanned document is smaller than the scanning area. This function detects and removes these black borders.
Return Value
On success, the function returns 0. If the function fails, the return value is different of 0.
Parameters
img
Pointer to an image of type IMG.
Example
IMG *img;
// Create an IMG
...
if(WIMGEraseBlackBorders(img))
{
// Error processing
...
}