Get-Card-Type
Command Description
Get card type in general card recognition results
Command Prototype
sRet = Mage.ExtractCardType(jsonRet)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
jsonRet | True | expression | jsonRet | Use the variable output to the "Screen Customer Template", "Image Card OCR" command, such as the "PDF Custom Template" command, you need to use the value of traverse an array |
return
sRet,The variable used to save the output of the command.
Demo
Dim jsonRet={"ai_function" : "ocr_card","msg_id" : "13c26ea253363b8529ad72d90aa114e0","page_number" : 1,"result" : {"image_angle" : 0,"img_id" : "c7pa5npr8eh8o888obp0","items" : [],"rotated_image_height" : 842,"rotated_image_width" : 594,"type" : 20,"type_description" : "其它","type_key" : "other"}} // Test数据
TracePrint "--------------------Certificate Type--------------------"
// --------------------------------------------------------
// 【Remarks】The type of the card obtained
// Input parameters:
// jsonRet--card identification result
// Output parameters:
// sRet--the variable to which the output of the function call is saved
// Command prototype: sRet = Mage.ExtractCardType(jsonRet)
// --------------------------------------------------------
sRet = Mage.ExtractCardType (jsonRet)