SimpleOCR:SDK Functions -FixOrientationImg
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
Parameters
img
Pointer to an image of type IMG.
Example
IMG *img;
// Create an IMG
...
if (FixOrientationImg(img))
{
// error processing
...
}