Skip to main content
Version: v6.5.0

Obtain the table recognition results of the template

Command Description

Retrieve table content from the specified template recognition results

Command Prototype

arrayRet = Mage.ExtractOCRTemplateTableInfo(jsonRet,keyList)

Command parameter

parametermandatorytypedefault valueInstructions
jsonRetTrueexpressionjsonRetRecognition results returned after executing the "Screen Custom Template Recognition Recognition" command, "Image Custom Template Recognition Recognition" command and "PDF Custom Template Recognition Recognition" command
keyListTruecascade[]Select 'Template Name' through cascading

Return result

ArrayRet, Assign the result of running the command to this variable.

Run instance

/**************************Get Template Table Recognition Result**************************
Command prototype:
arrayRet = Mage.ExtractOCRTemplateTableInfo(jsonRet, keyList)
Input parameters:
jsonRet -- Template recognition result. Note: The recognition result returned after executing the "Screen Custom Template Recognition" command, "Image Custom Template Recognition" command, and "PDF Custom Template Recognition" command.
keyList -- Template name. Note: Select the "template name" in a cascading way.
Output parameters:
arrayRet -- The variable where the output of the function call is saved.
Notes:
None
******************************************************************/

Dim arrayRet = ""
arrayRet = Mage.ExtractOCRTemplateTableInfo(jsonRet,[])
TracePrint(arrayRet)