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
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
jsonRet | True | expression | jsonRet | Recognition results returned after executing the "Screen Custom Template Recognition Recognition" command, "Image Custom Template Recognition Recognition" command and "PDF Custom Template Recognition Recognition" command |
keyList | True | cascade | [] | 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)