ABBYY Mobile OCR Engine 4

Go to: Contents | Native Library API Reference | Functions

FinePreprocessImage Function

This function binarizes an image and significantly reduces the size of the image. It can also perform skew correction, detect orientation etc., depending on the value of imageProcessingOptions parameter.

C Syntax
TFineErrorCode FinePreprocessImage( 
  const CFineImage*              image, 
  TFineImageProcessingOptions    imageProcessingOptions,
  CFineImage**                   preprocessedImageBuff, 
  CFineImageTransformationInfo** transformationInfo, 
  TFineProgressCallbackFunction  progressCallback
);

Parameters

image
[in] The image to be binarized as a CFineImage variable.
imageProcessingOptions
[in] OR combination of the TFineImageProcessingOptionsFlags constants which define the image processing parameters.
preprocessedImageBuff
[out] A pointer to pointer variable that receives the interface pointer of a CFineImage variable which describes the resultant image. This pointer must be released afterwards with the help of the FineFreeMemory function.
transformationInfo
[out] A pointer to pointer variable that receives the interface pointer of a CFineImageTransformationInfo variable which stores information about input image transformation. This pointer must be released afterwards with the help of the FineFreeMemory function.
progressCallback
[in] The TFineProgressCallbackFunction callback function that delivers the progress information. It can be 0.

Return value

The function returns the standard return values of ABBYY Mobile OCR Engine functions.

See also

FineFreeMemory