Nicomsoft OCR: Developer's Guide


Img_GetScaleFactor


Syntax

C++:int Img_GetScaleFactor(HIMG ImgObj)
C#:int Img_GetScaleFactor(int ImgObj)
Visual Basic:Function Img_GetScaleFactor(ByVal ImgObj As Integer) As Integer
Java:int Img_GetScaleFactor(HIMG ImgObj)
Delphi:function Img_GetScaleFactor(ImgObj:HIMG):integer


Description

Retrieves the image scale factor, multipled by 1000. For instance, if the image size was increased by 2.4 times, this function will return 2400. The rescaling algorithm is intended for the best recognition results and applied at the OCRSTEP_PREFILTERS step, so this step must be executed before calling this function.


Parameters

ImgObj [IN] – the Image object.


Return value

If success, the scale factor; otherwise, an error code.


Remarks

None.


Example

See the sample code for the Img_GetPixLineCnt function.