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