ImageGear Professional DLL v17.1 for Windows Accusoft
IG_REC_deskew_mode_set
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Recognition Image Preprocessing Functions > IG_REC_deskew_mode_set

Glossary Item Box

Selects deskewing mode.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_deskew_mode_set(
   enumIGRecImgDeskew ImgDeskew
);

Arguments:

ImgDeskew Select deskewing mode.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

Specifies which Image deskewing mode will be used during preprocessing. Deskewing mode can be automatic, switched off, or programmable.

Example:

  Copy Code
AT_ERRCOUNT ErrCount = 0;
HIG_REC_IMAGE higRecImage = 0;
HIGEAR higImage = 0;
enumIGRecImgDeskew eImgDeskew = IG_REC_IMG_DESKEW_3D;

ErrCount += IG_load_file("Image.tif", &higImage); 
ErrCount += IG_REC_image_import(higImage, &higRecImage);
ErrCount += IG_REC_deskew_mode_set(eImgDeskew);
ErrCount += IG_REC_image_recognize(higRecImage);

//...

ErrCount += IG_REC_image_delete(higRecImage);
ErrCount += IG_image_delete(higImage);

©2012. Accusoft Corporation. All Rights Reserved.