GdPicture.NET.14
GdPicture14 Namespace / GdPictureOCR Class / GetTableCellRect Method
The unique result identifier of the executed OCR process obtained by the RunOCR method.
The 0-based index of the detected table within the specified OCR result. It must be a value between 0 and GetTableCount(OCRResultID) - 1.
The 0-based index of the cell's column in a detected table within the specified OCR result. It must be a value between 0 and GetTableColumnCount(OCRResultID) - 1.
The 0-based index of the cell's row in a detected table within the specified OCR result. It must be a value between 0 and GetTableRowCount(OCRResultID) - 1.
Returns the left x-coordinate of the cell's bounding box, in pixels.
Returns the top y-coordinate of the cell's bounding box, in pixels.
Returns the width of the cell's bounding box, in pixels.
Returns the width of the cell's bounding box, in pixels.





In This Topic
GetTableCellRect Method (GdPictureOCR)
In This Topic
Returns the location of a cell in a specified table.
Syntax
'Declaration
 
Public Function GetTableCellRect( _
   ByVal OCRResultID As String, _
   ByVal TableIdx As Integer, _
   ByVal ColummIdx As Integer, _
   ByVal RowIdx As Integer, _
   ByRef Left As Integer, _
   ByRef Top As Integer, _
   ByRef Width As Integer, _
   ByRef Height As Integer _
) As GdPictureStatus
public GdPictureStatus GetTableCellRect( 
   string OCRResultID,
   int TableIdx,
   int ColummIdx,
   int RowIdx,
   out int Left,
   out int Top,
   out int Width,
   out int Height
)
public function GetTableCellRect( 
    OCRResultID: String;
    TableIdx: Integer;
    ColummIdx: Integer;
    RowIdx: Integer;
   Out  Left: Integer;
   Out  Top: Integer;
   Out  Width: Integer;
   Out  Height: Integer
): GdPictureStatus; 
public function GetTableCellRect( 
   OCRResultID : String,
   TableIdx : int,
   ColummIdx : int,
   RowIdx : int,
   Left : int,
   Top : int,
   Width : int,
   Height : int
) : GdPictureStatus;
public: GdPictureStatus GetTableCellRect( 
   string* OCRResultID,
   int TableIdx,
   int ColummIdx,
   int RowIdx,
   [PARAMFLAG::Out] int Left,
   [PARAMFLAG::Out] int Top,
   [PARAMFLAG::Out] int Width,
   [PARAMFLAG::Out] int Height
) 
public:
GdPictureStatus GetTableCellRect( 
   String^ OCRResultID,
   int TableIdx,
   int ColummIdx,
   int RowIdx,
   [Out] int Left,
   [Out] int Top,
   [Out] int Width,
   [Out] int Height
) 

Parameters

OCRResultID
The unique result identifier of the executed OCR process obtained by the RunOCR method.
TableIdx
The 0-based index of the detected table within the specified OCR result. It must be a value between 0 and GetTableCount(OCRResultID) - 1.
ColummIdx
The 0-based index of the cell's column in a detected table within the specified OCR result. It must be a value between 0 and GetTableColumnCount(OCRResultID) - 1.
RowIdx
The 0-based index of the cell's row in a detected table within the specified OCR result. It must be a value between 0 and GetTableRowCount(OCRResultID) - 1.
Left
Returns the left x-coordinate of the cell's bounding box, in pixels.
Top
Returns the top y-coordinate of the cell's bounding box, in pixels.
Width
Returns the width of the cell's bounding box, in pixels.
Height
Returns the width of the cell's bounding box, in pixels.

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.

We strongly recommend always checking this status first.

Remarks

This method requires the KVP and Table Processing - Intelligent Redaction component to run.

See Also