SimpleOCR:SDK Functions – DeskewImg

You are here:
< All Topics

int DeskewImg(IMG * img)

When a document has not been properly scanned, the resulting image can be skewed. This function analyses a skewed image and rotates it in order to fix the problem.

Return Value

If the function fails a nonzero error code is returned.



Pointer to an image of type IMG.


IMG *img; 

// Create an IMG 

if (DeskewImg(img,180)) 
// error processing 
Previous SimpleOCR:SDK Functions – DelImage
Next SimpleOCR:SDK Functions – DIBToIMG
Table of Contents
Contact Us for FREE Consultation on Your OCR Project
Go to Top