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 
...
}
Previous SimpleOCR:SDK Functions – DIBToIMG
Next SimpleOCR:SDK Functions – GetImage
Table of Contents
Contact Us for FREE Consultation on Your OCR Project

Share This Story, Choose Your Platform!

OCR Guide
Brands
Compare most popular choices in one cozy and extensive table
Languages
Applications
Go to Top