SimpleOCR:SDK Functions -FixOrientationImg

You are here:
< All Topics

int FixOrientationImg(IMG * img)

When a document has not been properly scanned, the resulting image can be of the wrong orientation. This function analyses an image in the wrong orientation, and rotates it the necessary 90, 180, or 270 degrees.

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 (FixOrientationImg(img)) 
// error processing 
Previous SimpleOCR:SDK Functions – FreeMultipleImg
Next SimpleOCR:SDK Functions – CountPixelsImg
Table of Contents
Contact Us for FREE Consultation on Your OCR Project
Go to Top