GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureOCR Class / GetBlockSpecialFormatData Method
The unique result identifier of the executed OCR process obtained by the GdPictureOCR.RunOCR method.
The 0-based index of the block within the specified OCR result. It must be a value between 0 and GdPictureOCR.GetBlockCount(OCRResultID) - 1.





In This Topic
GetBlockSpecialFormatData Method (GdPictureOCR)
In This Topic
Returns the special format data of the specified block within a specified OCR result, as JSON format.
Syntax
'Declaration
 
Public Function GetBlockSpecialFormatData( _
   ByVal OCRResultID As String, _
   ByVal BlockIdx As Integer _
) As String
public string GetBlockSpecialFormatData( 
   string OCRResultID,
   int BlockIdx
)
public function GetBlockSpecialFormatData( 
    OCRResultID: String;
    BlockIdx: Integer
): String; 
public function GetBlockSpecialFormatData( 
   OCRResultID : String,
   BlockIdx : int
) : String;
public: string* GetBlockSpecialFormatData( 
   string* OCRResultID,
   int BlockIdx
) 
public:
String^ GetBlockSpecialFormatData( 
   String^ OCRResultID,
   int BlockIdx
) 

Parameters

OCRResultID
The unique result identifier of the executed OCR process obtained by the GdPictureOCR.RunOCR method.
BlockIdx
The 0-based index of the block within the specified OCR result. It must be a value between 0 and GdPictureOCR.GetBlockCount(OCRResultID) - 1.

Return Value

The special format of the specified block. A member of the OCRBlockSpecialFormat enumeration.

Please always use the GdPictureOCR.GetStat method to determine if this method has been successful.

Remarks
It is recommend to use the GdPictureOCR.GetStat method to identify the specific reason for the method's failure, if any.
See Also