How Can We Help?

SimpleOCR:SDK Functions – EraseBlackBordersImg

You are here:
< All Topics

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 
...
}
Contact Us for FREE Consultation on Your OCR Project
=
Table of Contents

Title

Go to Top