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.

Parameters

img

Pointer to an image of type IMG.

Example

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

Share This Story, Choose Your Platform!

OCR Guide
Brands
Compare most popular choices in one cozy and extensive table
Languages
Applications
Go to Top