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


Go to Top