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.



Pointer to an image of type IMG.


IMG *img; 

// Create an IMG 

// Error processing 
Contact Us for FREE Consultation on Your OCR Project
Table of Contents
Go to Top