ABBYY Mobile OCR Engine 4

Go to: Contents | Native Library API Reference | Enumerations

TFinePrebuiltDataType

TFinePrebuiltDataType enumeration constants are used to specify the type of the data that are obtained before the text recognition. It is used in the TFinePrebuiltDataCallbackFunction callback to specify the pointer type to which the data argument should be cast.

typedef enum tagTFinePrebuiltDataType {
     FPDT_RotationType = 0,
     FPDT_WordsInfo    = 1
} TFinePrebuiltDataType;

Elements

Name Description
FPDT_RotationType If the dataType argument of the TFinePrebuiltDataCallbackFunction callback function is set to FPDT_RotationType, the data argument of that function should be cast to the (TFineRotationType*) pointer type. If the FIPO_DetectPageOrientation flag in the image processing options of the recognition function is set, then the callback function with this data type delivers the detected rotation type.

Note: If both FIPO_DetectPageOrientation and FIPO_PrebuildWordsInfo are set in the image processing options of the recognition function, the callback function with the FPDT_WordsInfo data type is called after the callback function with the FPDT_RotationType data type.

FPDT_WordsInfo If the dataType argument of the TFinePrebuiltDataCallbackFunction callback function is set to FPDT_WordsInfo, the data argument of the that function should be cast to the (CFinePrebuiltLayoutInfo*) pointer type. If the FIPO_PrebuildWordsInfo flag is set in the image processing options of the recognition function, then the callback function with this data type delivers the prebuilt information  about the document layout, including the approximate positions of the words.

Note: If both FIPO_DetectPageOrientation and FIPO_PrebuildWordsInfo are set in the image processing options of the recognition function, the callback function with the FPDT_WordsInfo data type is called after the callback function with the FPDT_RotationType data type.

See also

TFinePrebuiltDataCallbackFunction