Nicomsoft OCR: Developer's Guide


Blk_Inversion


Syntax

C++:int Blk_Inversion(HBLK BlkObj, int Inversion)
C#:int Blk_Inversion(int BlkObj, int Inversion)
Visual Basic:Function Blk_Inversion(ByVal BlkObj As Integer, ByVal Inversion As Integer) As Integer
Java:int Blk_Inversion(HBLK BlkObj, int Inversion)
Delphi:function Blk_Inversion(BlkObj:HBLK; Inversion:integer):integer


Description

Sets, retrieves, or detects the block inversion flag state.


Parameters

BlkObj [IN] – the Block object.
Inversion [IN] – the inversion flag value; see the BLK_INVERSE_XXXXX constants for possible values.


Return value

If success, zero or the current inversion flag state; otherwise, an error code.


Remarks

If the inverted block is created after OCRSTEP_BINARIZE, this step will be executed again automatically at the OCRSTEP_OCR step.


Example

See the sample code for the Img_GetBlockCnt function.