Get-Specified-Table
Command Description
Get specified form information and return an object. The object is two-dimensional array
Command Prototype
objTableData = Mage.ExtractSingleTable(jsonRet, talbe_id)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
jsonRet | True | expression | jsonRet | Output variables from "Screen Form OCR", "Image Form OCR", "PDF Form OCR" |
talbe_id | True | number | 0 | Specify the form index (starting from 0) in the form OCR result |
return
objTableData,The variable used to save the output of the command.
Demo
Dim jsonRet='' // Table recognition result, you need to use the result of self-recognizing the specified picture for assignment
TracePrint "--------------------Get the specified form--------------------"
// --------------------------------------------------------
// [Remarks] Get the specified form
// Input parameter 1:
// jsonRet--table recognition result
// Input parameter 2:
// talbe_id--table index
// Output parameters:
// objTableData: The variable to which the output of the function call is saved
// Command prototype: objTableData = Mage.ExtractSingleTable(jsonRet, talbe_id)
// --------------------------------------------------------
objTableData = Mage.ExtractSingleTable(jsonRet, 0)
TracePrint(objTableData)