tccli 3.0.1388.1__py2.py3-none-any.whl → 3.0.1390.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/ai3d/ai3d_client.py +106 -0
- tccli/services/ai3d/v20250513/api.json +172 -0
- tccli/services/ai3d/v20250513/examples.json +16 -0
- tccli/services/batch/v20170312/api.json +3 -3
- tccli/services/batch/v20170312/examples.json +3 -3
- tccli/services/bi/v20220105/api.json +8 -8
- tccli/services/bi/v20220105/examples.json +4 -4
- tccli/services/cam/v20190116/api.json +11 -1
- tccli/services/ccc/v20200210/api.json +10 -10
- tccli/services/cdb/v20170320/api.json +40 -2
- tccli/services/cdc/v20201214/api.json +1 -1
- tccli/services/cdc/v20201214/examples.json +2 -2
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/cdz/v20221123/api.json +1 -1
- tccli/services/chc/v20230418/api.json +69 -1
- tccli/services/ckafka/v20190819/api.json +141 -124
- tccli/services/ckafka/v20190819/examples.json +8 -8
- tccli/services/cloudapp/cloudapp_client.py +53 -0
- tccli/services/cloudapp/v20220530/api.json +68 -0
- tccli/services/cloudapp/v20220530/examples.json +14 -0
- tccli/services/cls/cls_client.py +167 -8
- tccli/services/cls/v20201016/api.json +373 -6
- tccli/services/cls/v20201016/examples.json +25 -1
- tccli/services/ctem/v20231128/api.json +40 -0
- tccli/services/dc/v20180410/api.json +26 -6
- tccli/services/dts/v20211206/api.json +21 -21
- tccli/services/dts/v20211206/examples.json +2 -2
- tccli/services/emr/v20190103/api.json +172 -11
- tccli/services/es/v20180416/api.json +4 -4
- tccli/services/es/v20250101/api.json +218 -13
- tccli/services/ess/v20201111/api.json +175 -5
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +21 -3
- tccli/services/gme/gme_client.py +509 -32
- tccli/services/gme/v20180711/api.json +1179 -53
- tccli/services/gme/v20180711/examples.json +72 -0
- tccli/services/hunyuan/v20230901/api.json +18 -0
- tccli/services/igtm/v20231024/api.json +3 -3
- tccli/services/ioa/v20220601/api.json +44 -8
- tccli/services/ioa/v20220601/examples.json +4 -4
- tccli/services/iotexplorer/iotexplorer_client.py +432 -8
- tccli/services/iotexplorer/v20190423/api.json +990 -36
- tccli/services/iotexplorer/v20190423/examples.json +65 -1
- tccli/services/lighthouse/lighthouse_client.py +53 -0
- tccli/services/lighthouse/v20200324/api.json +246 -35
- tccli/services/lighthouse/v20200324/examples.json +8 -0
- tccli/services/live/v20180801/api.json +3 -3
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +18 -0
- tccli/services/lowcode/lowcode_client.py +163 -4
- tccli/services/lowcode/v20210108/api.json +1373 -96
- tccli/services/lowcode/v20210108/examples.json +24 -0
- tccli/services/mps/v20190612/api.json +804 -47
- tccli/services/mqtt/v20240516/api.json +89 -0
- tccli/services/ocr/ocr_client.py +114 -8
- tccli/services/ocr/v20181119/api.json +225 -0
- tccli/services/ocr/v20181119/examples.json +28 -0
- tccli/services/sqlserver/v20180328/api.json +4 -4
- tccli/services/tcbr/v20220217/api.json +51 -0
- tccli/services/tdai/__init__.py +4 -0
- tccli/services/tdai/tdai_client.py +1108 -0
- tccli/services/tdai/v20250717/api.json +1930 -0
- tccli/services/tdai/v20250717/examples.json +149 -0
- tccli/services/teo/teo_client.py +53 -0
- tccli/services/teo/v20220901/api.json +111 -3
- tccli/services/teo/v20220901/examples.json +8 -0
- tccli/services/thpc/v20230321/api.json +1 -1
- tccli/services/thpc/v20230321/examples.json +2 -2
- tccli/services/tione/v20211111/api.json +9 -9
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/tsf/v20180326/api.json +2 -2
- tccli/services/tts/v20190823/api.json +11 -11
- tccli/services/vpc/v20170312/api.json +37 -7
- tccli/services/vpc/v20170312/examples.json +7 -7
- tccli/services/vtc/v20240223/api.json +3 -1
- tccli/services/vtc/v20240223/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +6 -6
- tccli/services/wsa/v20250508/api.json +2 -2
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/RECORD +85 -81
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1388.1.dist-info → tccli-3.0.1390.1.dist-info}/license_files/LICENSE +0 -0
@@ -3346,6 +3346,26 @@
|
|
3346
3346
|
"type": "int",
|
3347
3347
|
"value_allowed_null": false
|
3348
3348
|
},
|
3349
|
+
{
|
3350
|
+
"disabled": false,
|
3351
|
+
"document": "topic前缀最大层级",
|
3352
|
+
"example": "3",
|
3353
|
+
"member": "int64",
|
3354
|
+
"name": "TopicPrefixSlashLimit",
|
3355
|
+
"output_required": false,
|
3356
|
+
"type": "int",
|
3357
|
+
"value_allowed_null": false
|
3358
|
+
},
|
3359
|
+
{
|
3360
|
+
"disabled": false,
|
3361
|
+
"document": "单客户端发送消息限速,单位 条/秒",
|
3362
|
+
"example": "10",
|
3363
|
+
"member": "int64",
|
3364
|
+
"name": "MessageRate",
|
3365
|
+
"output_required": false,
|
3366
|
+
"type": "int",
|
3367
|
+
"value_allowed_null": false
|
3368
|
+
},
|
3349
3369
|
{
|
3350
3370
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3351
3371
|
"member": "string",
|
@@ -3525,6 +3545,66 @@
|
|
3525
3545
|
"type": "string",
|
3526
3546
|
"value_allowed_null": false
|
3527
3547
|
},
|
3548
|
+
{
|
3549
|
+
"disabled": false,
|
3550
|
+
"document": "内容类型(MQTT5)\n含义:指示消息载荷的内容类型,使用标准的 MIME 类型格式。这帮助接收方正确解析和处理消息内容。\n示例:\napplication/json:表示载荷是 JSON 格式的数据。\ntext/plain:表示载荷是纯文本。\napplication/octet-stream:表示载荷是二进制数据。",
|
3551
|
+
"example": "application/json",
|
3552
|
+
"member": "string",
|
3553
|
+
"name": "ContentType",
|
3554
|
+
"output_required": false,
|
3555
|
+
"type": "string",
|
3556
|
+
"value_allowed_null": false
|
3557
|
+
},
|
3558
|
+
{
|
3559
|
+
"disabled": false,
|
3560
|
+
"document": "载荷格式指示符(MQTT5)\n含义:指示载荷的格式,是一个布尔值。0表示未指定格式(二进制),1表示 UTF-8 编码的字符串。\n示例:\n值为0:当载荷是二进制数据,如图片、音频等。\n值为1:当载荷是 UTF-8 编码的文本,如 JSON 字符串、XML 等。",
|
3561
|
+
"example": "0",
|
3562
|
+
"member": "int64",
|
3563
|
+
"name": "PayloadFormatIndicator",
|
3564
|
+
"output_required": false,
|
3565
|
+
"type": "int",
|
3566
|
+
"value_allowed_null": false
|
3567
|
+
},
|
3568
|
+
{
|
3569
|
+
"disabled": false,
|
3570
|
+
"document": "消息过期间隔(MQTT5)\n含义:指定消息在被丢弃前的有效时间(秒)。如果消息在过期前未能送达,则会被 MQTT 服务器丢弃。\n示例:\n值为60:表示消息在发布后的 60 秒内有效,过期后未送达则被丢弃。\n值为0:表示消息不过期,永久有效(直到被接收或会话结束)。",
|
3571
|
+
"example": "60",
|
3572
|
+
"member": "int64",
|
3573
|
+
"name": "MessageExpiryInterval",
|
3574
|
+
"output_required": false,
|
3575
|
+
"type": "int",
|
3576
|
+
"value_allowed_null": false
|
3577
|
+
},
|
3578
|
+
{
|
3579
|
+
"disabled": false,
|
3580
|
+
"document": "响应主题(MQTT5)\n含义:指定一个主题,用于请求 - 响应模式中的响应消息。发送方可以指定接收方应该将响应发送到哪个主题。\n示例:\n发送方发布请求到主题devices/device1/commands,并设置ResponseTopic为devices/device1/responses。\n接收方处理请求后,将响应发布到devices/device1/responses主题。",
|
3581
|
+
"example": "home/room1",
|
3582
|
+
"member": "string",
|
3583
|
+
"name": "ResponseTopic",
|
3584
|
+
"output_required": false,
|
3585
|
+
"type": "string",
|
3586
|
+
"value_allowed_null": false
|
3587
|
+
},
|
3588
|
+
{
|
3589
|
+
"disabled": false,
|
3590
|
+
"document": "关联数据(MQTT5)\n含义:用于关联请求和响应的标识符,通常是一个字节数组。在请求 - 响应模式中,发送方设置此值,接收方在响应中包含相同的值,以便发送方识别响应对应的请求。\n示例:\n发送方生成一个唯一 ID(如 UUID 的字节数组)作为CorrelationData,附加到请求消息中。\n接收方在响应消息中包含相同的CorrelationData,发送方通过比较此值来匹配响应和请求。",
|
3591
|
+
"example": "uuid",
|
3592
|
+
"member": "string",
|
3593
|
+
"name": "CorrelationData",
|
3594
|
+
"output_required": false,
|
3595
|
+
"type": "string",
|
3596
|
+
"value_allowed_null": false
|
3597
|
+
},
|
3598
|
+
{
|
3599
|
+
"disabled": false,
|
3600
|
+
"document": "订阅标识符(MQTT5)\n含义:为订阅分配的唯一标识符,用于标识客户端的特定订阅。当服务器向客户端发送消息时,可以包含此标识符,帮助客户端识别消息对应的订阅。\n示例:\n客户端订阅主题devices/+/temperature,并设置SubscriptionIdentifier为123。\n当服务器向客户端发送此主题的消息时,会在消息中包含SubscriptionIdentifier: 123,客户端可以根据此值知道消息是通过哪个订阅接收的。",
|
3601
|
+
"example": "subs-1",
|
3602
|
+
"member": "string",
|
3603
|
+
"name": "SubscriptionIdentifier",
|
3604
|
+
"output_required": false,
|
3605
|
+
"type": "string",
|
3606
|
+
"value_allowed_null": false
|
3607
|
+
},
|
3528
3608
|
{
|
3529
3609
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3530
3610
|
"member": "string",
|
@@ -5576,6 +5656,15 @@
|
|
5576
5656
|
"name": "X509Mode",
|
5577
5657
|
"required": false,
|
5578
5658
|
"type": "string"
|
5659
|
+
},
|
5660
|
+
{
|
5661
|
+
"disabled": false,
|
5662
|
+
"document": "单客户端消息收发限速单位 条/秒",
|
5663
|
+
"example": "10",
|
5664
|
+
"member": "int64",
|
5665
|
+
"name": "MessageRate",
|
5666
|
+
"required": false,
|
5667
|
+
"type": "int"
|
5579
5668
|
}
|
5580
5669
|
],
|
5581
5670
|
"type": "object"
|
tccli/services/ocr/ocr_client.py
CHANGED
@@ -953,6 +953,58 @@ def doTaxiInvoiceOCR(args, parsed_globals):
|
|
953
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
954
|
|
955
955
|
|
956
|
+
def doDescribeExtractDocAgentJob(args, parsed_globals):
|
957
|
+
g_param = parse_global_arg(parsed_globals)
|
958
|
+
|
959
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
960
|
+
cred = credential.CVMRoleCredential()
|
961
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
962
|
+
cred = credential.STSAssumeRoleCredential(
|
963
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
964
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
965
|
+
)
|
966
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
967
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
968
|
+
else:
|
969
|
+
cred = credential.Credential(
|
970
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
971
|
+
)
|
972
|
+
http_profile = HttpProfile(
|
973
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
974
|
+
reqMethod="POST",
|
975
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
976
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
977
|
+
)
|
978
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
979
|
+
if g_param[OptionsDefine.Language]:
|
980
|
+
profile.language = g_param[OptionsDefine.Language]
|
981
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
982
|
+
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
983
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
984
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
985
|
+
model = models.DescribeExtractDocAgentJobRequest()
|
986
|
+
model.from_json_string(json.dumps(args))
|
987
|
+
start_time = time.time()
|
988
|
+
while True:
|
989
|
+
rsp = client.DescribeExtractDocAgentJob(model)
|
990
|
+
result = rsp.to_json_string()
|
991
|
+
try:
|
992
|
+
json_obj = json.loads(result)
|
993
|
+
except TypeError as e:
|
994
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
995
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
996
|
+
break
|
997
|
+
cur_time = time.time()
|
998
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
999
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1000
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1001
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1002
|
+
else:
|
1003
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1004
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1005
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1006
|
+
|
1007
|
+
|
956
1008
|
def doRideHailingDriverLicenseOCR(args, parsed_globals):
|
957
1009
|
g_param = parse_global_arg(parsed_globals)
|
958
1010
|
|
@@ -3137,7 +3189,7 @@ def doBankSlipOCR(args, parsed_globals):
|
|
3137
3189
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3138
3190
|
|
3139
3191
|
|
3140
|
-
def
|
3192
|
+
def doVehicleRegCertOCR(args, parsed_globals):
|
3141
3193
|
g_param = parse_global_arg(parsed_globals)
|
3142
3194
|
|
3143
3195
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3166,11 +3218,11 @@ def doResidenceBookletOCR(args, parsed_globals):
|
|
3166
3218
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
3167
3219
|
client._sdkVersion += ("_CLI_" + __version__)
|
3168
3220
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3169
|
-
model = models.
|
3221
|
+
model = models.VehicleRegCertOCRRequest()
|
3170
3222
|
model.from_json_string(json.dumps(args))
|
3171
3223
|
start_time = time.time()
|
3172
3224
|
while True:
|
3173
|
-
rsp = client.
|
3225
|
+
rsp = client.VehicleRegCertOCR(model)
|
3174
3226
|
result = rsp.to_json_string()
|
3175
3227
|
try:
|
3176
3228
|
json_obj = json.loads(result)
|
@@ -3241,6 +3293,58 @@ def doRecognizeTravelCardOCR(args, parsed_globals):
|
|
3241
3293
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3242
3294
|
|
3243
3295
|
|
3296
|
+
def doSubmitExtractDocAgentJob(args, parsed_globals):
|
3297
|
+
g_param = parse_global_arg(parsed_globals)
|
3298
|
+
|
3299
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3300
|
+
cred = credential.CVMRoleCredential()
|
3301
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3302
|
+
cred = credential.STSAssumeRoleCredential(
|
3303
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3304
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3305
|
+
)
|
3306
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
3307
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3308
|
+
else:
|
3309
|
+
cred = credential.Credential(
|
3310
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3311
|
+
)
|
3312
|
+
http_profile = HttpProfile(
|
3313
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3314
|
+
reqMethod="POST",
|
3315
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3316
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3317
|
+
)
|
3318
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3319
|
+
if g_param[OptionsDefine.Language]:
|
3320
|
+
profile.language = g_param[OptionsDefine.Language]
|
3321
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3322
|
+
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
3323
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3324
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3325
|
+
model = models.SubmitExtractDocAgentJobRequest()
|
3326
|
+
model.from_json_string(json.dumps(args))
|
3327
|
+
start_time = time.time()
|
3328
|
+
while True:
|
3329
|
+
rsp = client.SubmitExtractDocAgentJob(model)
|
3330
|
+
result = rsp.to_json_string()
|
3331
|
+
try:
|
3332
|
+
json_obj = json.loads(result)
|
3333
|
+
except TypeError as e:
|
3334
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3335
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3336
|
+
break
|
3337
|
+
cur_time = time.time()
|
3338
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3339
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3340
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3341
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3342
|
+
else:
|
3343
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3344
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3345
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3346
|
+
|
3347
|
+
|
3244
3348
|
def doVerifyOfdVatInvoiceOCR(args, parsed_globals):
|
3245
3349
|
g_param = parse_global_arg(parsed_globals)
|
3246
3350
|
|
@@ -4229,7 +4333,7 @@ def doAdvertiseOCR(args, parsed_globals):
|
|
4229
4333
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4230
4334
|
|
4231
4335
|
|
4232
|
-
def
|
4336
|
+
def doResidenceBookletOCR(args, parsed_globals):
|
4233
4337
|
g_param = parse_global_arg(parsed_globals)
|
4234
4338
|
|
4235
4339
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4258,11 +4362,11 @@ def doVehicleRegCertOCR(args, parsed_globals):
|
|
4258
4362
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
4259
4363
|
client._sdkVersion += ("_CLI_" + __version__)
|
4260
4364
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4261
|
-
model = models.
|
4365
|
+
model = models.ResidenceBookletOCRRequest()
|
4262
4366
|
model.from_json_string(json.dumps(args))
|
4263
4367
|
start_time = time.time()
|
4264
4368
|
while True:
|
4265
|
-
rsp = client.
|
4369
|
+
rsp = client.ResidenceBookletOCR(model)
|
4266
4370
|
result = rsp.to_json_string()
|
4267
4371
|
try:
|
4268
4372
|
json_obj = json.loads(result)
|
@@ -4622,6 +4726,7 @@ ACTION_MAP = {
|
|
4622
4726
|
"SmartStructuralOCR": doSmartStructuralOCR,
|
4623
4727
|
"ClassifyStoreName": doClassifyStoreName,
|
4624
4728
|
"TaxiInvoiceOCR": doTaxiInvoiceOCR,
|
4729
|
+
"DescribeExtractDocAgentJob": doDescribeExtractDocAgentJob,
|
4625
4730
|
"RideHailingDriverLicenseOCR": doRideHailingDriverLicenseOCR,
|
4626
4731
|
"DutyPaidProofOCR": doDutyPaidProofOCR,
|
4627
4732
|
"MainlandPermitOCR": doMainlandPermitOCR,
|
@@ -4664,8 +4769,9 @@ ACTION_MAP = {
|
|
4664
4769
|
"RecognizeFormulaOCR": doRecognizeFormulaOCR,
|
4665
4770
|
"SealOCR": doSealOCR,
|
4666
4771
|
"BankSlipOCR": doBankSlipOCR,
|
4667
|
-
"
|
4772
|
+
"VehicleRegCertOCR": doVehicleRegCertOCR,
|
4668
4773
|
"RecognizeTravelCardOCR": doRecognizeTravelCardOCR,
|
4774
|
+
"SubmitExtractDocAgentJob": doSubmitExtractDocAgentJob,
|
4669
4775
|
"VerifyOfdVatInvoiceOCR": doVerifyOfdVatInvoiceOCR,
|
4670
4776
|
"DriverLicenseOCR": doDriverLicenseOCR,
|
4671
4777
|
"FinanBillOCR": doFinanBillOCR,
|
@@ -4685,7 +4791,7 @@ ACTION_MAP = {
|
|
4685
4791
|
"ExtractDocMulti": doExtractDocMulti,
|
4686
4792
|
"GeneralEfficientOCR": doGeneralEfficientOCR,
|
4687
4793
|
"AdvertiseOCR": doAdvertiseOCR,
|
4688
|
-
"
|
4794
|
+
"ResidenceBookletOCR": doResidenceBookletOCR,
|
4689
4795
|
"CarInvoiceOCR": doCarInvoiceOCR,
|
4690
4796
|
"GetOCRResult": doGetOCRResult,
|
4691
4797
|
"FormulaOCR": doFormulaOCR,
|
@@ -70,6 +70,13 @@
|
|
70
70
|
"output": "ClassifyStoreNameResponse",
|
71
71
|
"status": "online"
|
72
72
|
},
|
73
|
+
"DescribeExtractDocAgentJob": {
|
74
|
+
"document": "用于查询文档处理任务。文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。",
|
75
|
+
"input": "DescribeExtractDocAgentJobRequest",
|
76
|
+
"name": "查询文档抽取Agent任务",
|
77
|
+
"output": "DescribeExtractDocAgentJobResponse",
|
78
|
+
"status": "online"
|
79
|
+
},
|
73
80
|
"DriverLicenseOCR": {
|
74
81
|
"document": "本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。\n\n驾驶证主页:包括证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限、发证单位\n\n驾驶证副页:包括证号、姓名、档案编号、记录。\n\n另外,本接口还支持复印件、翻拍告警功能。同时支持识别交管12123 APP发放的电子驾驶证正页。\n\n电子驾驶证正页:包括证号、姓名、性别、国籍、出生日期、初次领证日期、准驾车型、有效期开始时间、有效期截止时间、档案编号、状态、累积记分。\n\n默认接口请求频率限制:10次/秒。",
|
75
82
|
"input": "DriverLicenseOCRRequest",
|
@@ -525,6 +532,13 @@
|
|
525
532
|
"output": "SmartStructuralOCRResponse",
|
526
533
|
"status": "online"
|
527
534
|
},
|
535
|
+
"SubmitExtractDocAgentJob": {
|
536
|
+
"document": "文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。",
|
537
|
+
"input": "SubmitExtractDocAgentJobRequest",
|
538
|
+
"name": "提交文档抽取Agent任务",
|
539
|
+
"output": "SubmitExtractDocAgentJobResponse",
|
540
|
+
"status": "online"
|
541
|
+
},
|
528
542
|
"TableOCR": {
|
529
543
|
"document": "<b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href=\"https://cloud.tencent.com/document/product/866/49525\">新版表格识别</a>。</b>\n\n本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。\n\n默认接口请求频率限制:10次/秒。",
|
530
544
|
"input": "TableOCRRequest",
|
@@ -3062,6 +3076,93 @@
|
|
3062
3076
|
],
|
3063
3077
|
"usage": "out"
|
3064
3078
|
},
|
3079
|
+
"DescribeExtractDocAgentJobRequest": {
|
3080
|
+
"document": "DescribeExtractDocAgentJob请求参数结构体",
|
3081
|
+
"members": [
|
3082
|
+
{
|
3083
|
+
"disabled": false,
|
3084
|
+
"document": "任务唯一ID。由服务端生成。",
|
3085
|
+
"example": "1334797167793684480",
|
3086
|
+
"member": "string",
|
3087
|
+
"name": "JobId",
|
3088
|
+
"required": false,
|
3089
|
+
"type": "string"
|
3090
|
+
}
|
3091
|
+
],
|
3092
|
+
"type": "object"
|
3093
|
+
},
|
3094
|
+
"DescribeExtractDocAgentJobResponse": {
|
3095
|
+
"document": "DescribeExtractDocAgentJob返回参数结构体",
|
3096
|
+
"members": [
|
3097
|
+
{
|
3098
|
+
"disabled": false,
|
3099
|
+
"document": "图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。",
|
3100
|
+
"example": "1.0",
|
3101
|
+
"member": "float",
|
3102
|
+
"name": "Angle",
|
3103
|
+
"output_required": false,
|
3104
|
+
"type": "float",
|
3105
|
+
"value_allowed_null": false
|
3106
|
+
},
|
3107
|
+
{
|
3108
|
+
"disabled": false,
|
3109
|
+
"document": "配置结构化文本信息。",
|
3110
|
+
"example": "无",
|
3111
|
+
"member": "GroupInfo",
|
3112
|
+
"name": "StructuralList",
|
3113
|
+
"output_required": false,
|
3114
|
+
"type": "list",
|
3115
|
+
"value_allowed_null": false
|
3116
|
+
},
|
3117
|
+
{
|
3118
|
+
"disabled": false,
|
3119
|
+
"document": "任务执行错误码。当任务状态不为 FAIL 时,该值为\"\"。",
|
3120
|
+
"example": "FailedOperation.PDFParseFailed",
|
3121
|
+
"member": "string",
|
3122
|
+
"name": "ErrorCode",
|
3123
|
+
"output_required": false,
|
3124
|
+
"type": "string",
|
3125
|
+
"value_allowed_null": false
|
3126
|
+
},
|
3127
|
+
{
|
3128
|
+
"disabled": false,
|
3129
|
+
"document": "任务执行错误信息。当任务状态不为 FAIL 时,该值为\"\"。",
|
3130
|
+
"example": "PDF解析失败。",
|
3131
|
+
"member": "string",
|
3132
|
+
"name": "ErrorMessage",
|
3133
|
+
"output_required": false,
|
3134
|
+
"type": "string",
|
3135
|
+
"value_allowed_null": false
|
3136
|
+
},
|
3137
|
+
{
|
3138
|
+
"disabled": false,
|
3139
|
+
"document": "任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功",
|
3140
|
+
"example": "DONE",
|
3141
|
+
"member": "string",
|
3142
|
+
"name": "JobStatus",
|
3143
|
+
"output_required": false,
|
3144
|
+
"type": "string",
|
3145
|
+
"value_allowed_null": false
|
3146
|
+
},
|
3147
|
+
{
|
3148
|
+
"disabled": false,
|
3149
|
+
"document": "思考过程",
|
3150
|
+
"example": "在本次任务中,首先,我们需要从文档中提取车型字段。接着,我定位到文档中所有类型为kv的段落。最终,找到了文档中最相关的kv信息",
|
3151
|
+
"member": "string",
|
3152
|
+
"name": "ThoughtContent",
|
3153
|
+
"output_required": false,
|
3154
|
+
"type": "string",
|
3155
|
+
"value_allowed_null": false
|
3156
|
+
},
|
3157
|
+
{
|
3158
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3159
|
+
"member": "string",
|
3160
|
+
"name": "RequestId",
|
3161
|
+
"type": "string"
|
3162
|
+
}
|
3163
|
+
],
|
3164
|
+
"type": "object"
|
3165
|
+
},
|
3065
3166
|
"DetailInformationOfAirTicketTupleList": {
|
3066
3167
|
"document": "机票详细信息元组",
|
3067
3168
|
"members": [
|
@@ -8923,6 +9024,39 @@
|
|
8923
9024
|
],
|
8924
9025
|
"usage": "out"
|
8925
9026
|
},
|
9027
|
+
"ItemNames": {
|
9028
|
+
"document": "自定义抽取需要的字段名称、字段类型、字段提示词。",
|
9029
|
+
"members": [
|
9030
|
+
{
|
9031
|
+
"disabled": false,
|
9032
|
+
"document": "自定义抽取功能需返回的字段名称。",
|
9033
|
+
"example": "姓名",
|
9034
|
+
"member": "string",
|
9035
|
+
"name": "KeyName",
|
9036
|
+
"required": false,
|
9037
|
+
"type": "string"
|
9038
|
+
},
|
9039
|
+
{
|
9040
|
+
"disabled": false,
|
9041
|
+
"document": "默认 0;0表示kv对 1表示 表格字段。\n",
|
9042
|
+
"example": "0",
|
9043
|
+
"member": "int64",
|
9044
|
+
"name": "KeyType",
|
9045
|
+
"required": false,
|
9046
|
+
"type": "int"
|
9047
|
+
},
|
9048
|
+
{
|
9049
|
+
"disabled": false,
|
9050
|
+
"document": "抽取字段的描述内容。\n",
|
9051
|
+
"example": "提示词",
|
9052
|
+
"member": "string",
|
9053
|
+
"name": "KeyPrompt",
|
9054
|
+
"required": false,
|
9055
|
+
"type": "string"
|
9056
|
+
}
|
9057
|
+
],
|
9058
|
+
"usage": "in"
|
9059
|
+
},
|
8926
9060
|
"ItemPolygonInfo": {
|
8927
9061
|
"document": "发票字段坐标信息。包括字段英文名称、字段值所在位置的四点坐标、字段所属行号,具体内容请点击左侧链接。",
|
8928
9062
|
"members": [
|
@@ -17438,6 +17572,97 @@
|
|
17438
17572
|
],
|
17439
17573
|
"usage": "out"
|
17440
17574
|
},
|
17575
|
+
"SubmitExtractDocAgentJobRequest": {
|
17576
|
+
"document": "SubmitExtractDocAgentJob请求参数结构体",
|
17577
|
+
"members": [
|
17578
|
+
{
|
17579
|
+
"disabled": false,
|
17580
|
+
"document": "图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF、WORD、EXCEL格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。",
|
17581
|
+
"example": "/9j/4AAQSkZJRg.....s97n//2Q==\t",
|
17582
|
+
"member": "string",
|
17583
|
+
"name": "ImageBase64",
|
17584
|
+
"required": false,
|
17585
|
+
"type": "string"
|
17586
|
+
},
|
17587
|
+
{
|
17588
|
+
"disabled": false,
|
17589
|
+
"document": "图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF、WORD、EXCEL格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。",
|
17590
|
+
"example": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/***/fakeurl.jpg",
|
17591
|
+
"member": "string",
|
17592
|
+
"name": "ImageUrl",
|
17593
|
+
"required": false,
|
17594
|
+
"type": "string"
|
17595
|
+
},
|
17596
|
+
{
|
17597
|
+
"disabled": true,
|
17598
|
+
"document": "需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。",
|
17599
|
+
"example": "1",
|
17600
|
+
"member": "int64",
|
17601
|
+
"name": "PdfPageNumber",
|
17602
|
+
"required": false,
|
17603
|
+
"type": "int"
|
17604
|
+
},
|
17605
|
+
{
|
17606
|
+
"disabled": false,
|
17607
|
+
"document": "自定义抽取需要的字段名称、字段类型、字段提示词。",
|
17608
|
+
"example": "无",
|
17609
|
+
"member": "ItemNames",
|
17610
|
+
"name": "ItemNames",
|
17611
|
+
"required": false,
|
17612
|
+
"type": "list"
|
17613
|
+
},
|
17614
|
+
{
|
17615
|
+
"disabled": false,
|
17616
|
+
"document": "是否需要返回坐标,默认false。",
|
17617
|
+
"example": "false",
|
17618
|
+
"member": "bool",
|
17619
|
+
"name": "EnableCoord",
|
17620
|
+
"required": false,
|
17621
|
+
"type": "bool"
|
17622
|
+
},
|
17623
|
+
{
|
17624
|
+
"disabled": false,
|
17625
|
+
"document": "起始页",
|
17626
|
+
"example": "1",
|
17627
|
+
"member": "uint64",
|
17628
|
+
"name": "FileStartPageNumber",
|
17629
|
+
"required": false,
|
17630
|
+
"type": "int"
|
17631
|
+
},
|
17632
|
+
{
|
17633
|
+
"disabled": false,
|
17634
|
+
"document": "结束页",
|
17635
|
+
"example": "1",
|
17636
|
+
"member": "uint64",
|
17637
|
+
"name": "FileEndPageNumber",
|
17638
|
+
"required": false,
|
17639
|
+
"type": "int"
|
17640
|
+
}
|
17641
|
+
],
|
17642
|
+
"type": "object"
|
17643
|
+
},
|
17644
|
+
"SubmitExtractDocAgentJobResponse": {
|
17645
|
+
"document": "SubmitExtractDocAgentJob返回参数结构体",
|
17646
|
+
"members": [
|
17647
|
+
{
|
17648
|
+
"disabled": false,
|
17649
|
+
"document": "任务唯一ID。由服务端生成。",
|
17650
|
+
"example": "1334797167793684480",
|
17651
|
+
"member": "string",
|
17652
|
+
"name": "JobId",
|
17653
|
+
"output_required": false,
|
17654
|
+
"type": "string",
|
17655
|
+
"value_allowed_null": false
|
17656
|
+
},
|
17657
|
+
{
|
17658
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
17659
|
+
"member": "string",
|
17660
|
+
"name": "RequestId",
|
17661
|
+
"type": "string"
|
17662
|
+
}
|
17663
|
+
],
|
17664
|
+
"type": "object"
|
17665
|
+
},
|
17441
17666
|
"TableCell": {
|
17442
17667
|
"document": "单元格数据",
|
17443
17668
|
"members": [
|
@@ -80,6 +80,20 @@
|
|
80
80
|
"title": "门头照分类示例"
|
81
81
|
}
|
82
82
|
],
|
83
|
+
"DescribeExtractDocAgentJob": [
|
84
|
+
{
|
85
|
+
"document": "调用失败示例",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExtractDocAgentJob\n<公共请求参数>\n\n{\n \"JobId\": \"1334797167793684480\"\n}",
|
87
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.InvalidParameterValueLimit\",\n \"Message\": \"JobId不存在。\"\n },\n \"RequestId\": \"b4074f5b-6773-4702-a4b1-bc719f9ce09b\"\n }\n}",
|
88
|
+
"title": "调用失败示例"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"document": "调用成功示例",
|
92
|
+
"input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExtractDocAgentJob\n<公共请求参数>\n\n{\n \"JobId\": \"1337322230114697216\"\n}",
|
93
|
+
"output": "{\n \"Response\": {\n \"Angle\": 359.989990234375,\n \"ErrorCode\": \"\",\n \"ErrorMessage\": \"\",\n \"JobStatus\": \"DONE\",\n \"RequestId\": \"a959eecb-1cb5-4f6e-a3c6-cf00a6e27ad9\",\n \"StructuralList\": [\n {\n \"Groups\": [\n {\n \"Lines\": [\n {\n \"Key\": {\n \"AutoName\": \"开航日\",\n \"ConfigName\": \"\"\n },\n \"Value\": {\n \"AutoContent\": \"2024-03-25\",\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 581,\n \"Y\": 332\n },\n \"LeftTop\": {\n \"X\": 581,\n \"Y\": 310\n },\n \"RightBottom\": {\n \"X\": 678,\n \"Y\": 332\n },\n \"RightTop\": {\n \"X\": 678,\n \"Y\": 310\n }\n }\n }\n }\n ]\n }\n ]\n },\n {\n \"Groups\": [\n {\n \"Lines\": [\n {\n \"Key\": {\n \"AutoName\": \"项目\",\n \"ConfigName\": \"\"\n },\n \"Value\": {\n \"AutoContent\": \"舱单费\",\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 91,\n \"Y\": 451\n },\n \"LeftTop\": {\n \"X\": 91,\n \"Y\": 427\n },\n \"RightBottom\": {\n \"X\": 147,\n \"Y\": 451\n },\n \"RightTop\": {\n \"X\": 147,\n \"Y\": 427\n }\n }\n }\n },\n {\n \"Key\": {\n \"AutoName\": \"费用名称\",\n \"ConfigName\": \"\"\n },\n \"Value\": {\n \"AutoContent\": \"150.00\",\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 304,\n \"Y\": 450\n },\n \"LeftTop\": {\n \"X\": 304,\n \"Y\": 427\n },\n \"RightBottom\": {\n \"X\": 364,\n \"Y\": 450\n },\n \"RightTop\": {\n \"X\": 364,\n \"Y\": 427\n }\n }\n }\n },\n {\n \"Key\": {\n \"AutoName\": \"美金\",\n \"ConfigName\": \"\"\n },\n \"Value\": {\n \"AutoContent\": \"0.00\",\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 570,\n \"Y\": 450\n },\n \"LeftTop\": {\n \"X\": 570,\n \"Y\": 427\n },\n \"RightBottom\": {\n \"X\": 608,\n \"Y\": 450\n },\n \"RightTop\": {\n \"X\": 608,\n \"Y\": 427\n }\n }\n }\n },\n {\n \"Key\": {\n \"AutoName\": \"欧元\",\n \"ConfigName\": \"\"\n },\n \"Value\": {\n \"AutoContent\": \"0.00\",\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 797,\n \"Y\": 450\n },\n \"LeftTop\": {\n \"X\": 797,\n \"Y\": 427\n },\n \"RightBottom\": {\n \"X\": 835,\n \"Y\": 450\n },\n \"RightTop\": {\n \"X\": 835,\n \"Y\": 427\n }\n }\n }\n }\n ]\n },\n {\n \"Lines\": [\n {\n \"Key\": {\n \"AutoName\": \"项目\",\n \"ConfigName\": \"\"\n },\n \"Value\": {\n \"AutoContent\": \"海运费\",\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 91,\n \"Y\": 478\n },\n \"LeftTop\": {\n \"X\": 91,\n \"Y\": 456\n },\n \"RightBottom\": {\n \"X\": 147,\n \"Y\": 478\n },\n \"RightTop\": {\n \"X\": 147,\n \"Y\": 456\n }\n }\n }\n },\n {\n \"Key\": {\n \"AutoName\": \"费用名称\",\n \"ConfigName\": \"\"\n },\n \"Value\": {\n \"AutoContent\": \"12,300.00\",\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 570,\n \"Y\": 477\n },\n \"LeftTop\": {\n \"X\": 570,\n \"Y\": 454\n },\n \"RightBottom\": {\n \"X\": 654,\n \"Y\": 477\n },\n \"RightTop\": {\n \"X\": 654,\n \"Y\": 454\n }\n }\n }\n },\n {\n \"Key\": {\n \"AutoName\": \"美金\",\n \"ConfigName\": \"\"\n },\n \"Value\": {\n \"AutoContent\": \"0.00\",\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 797,\n \"Y\": 477\n },\n \"LeftTop\": {\n \"X\": 797,\n \"Y\": 453\n },\n \"RightBottom\": {\n \"X\": 835,\n \"Y\": 477\n },\n \"RightTop\": {\n \"X\": 835,\n \"Y\": 453\n }\n }\n }\n },\n {\n \"Key\": {\n \"AutoName\": \"欧元\",\n \"ConfigName\": \"\"\n },\n \"Value\": {\n \"AutoContent\": \"0.00\",\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 797,\n \"Y\": 477\n },\n \"LeftTop\": {\n \"X\": 797,\n \"Y\": 453\n },\n \"RightBottom\": {\n \"X\": 835,\n \"Y\": 477\n },\n \"RightTop\": {\n \"X\": 835,\n \"Y\": 453\n }\n }\n }\n }\n ]\n }\n ]\n }\n ]\n }\n}",
|
94
|
+
"title": "调用成功示例"
|
95
|
+
}
|
96
|
+
],
|
83
97
|
"DriverLicenseOCR": [
|
84
98
|
{
|
85
99
|
"document": "驾驶证主页识别示例 ",
|
@@ -642,6 +656,20 @@
|
|
642
656
|
"title": "智能结构化识别"
|
643
657
|
}
|
644
658
|
],
|
659
|
+
"SubmitExtractDocAgentJob": [
|
660
|
+
{
|
661
|
+
"document": "调用成功示例",
|
662
|
+
"input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitExtractDocAgentJob\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/***/fakeurl.jpg\",\n \"ItemNames\": [\n {\n \"KeyName\": \"车辆牌号\",\n \"KeyPrompt\": \"车辆牌号\"\n },\n {\n \"KeyName\": \"卸货地点\"\n },\n {\n \"KeyName\": \"铅封号\"\n }\n ]\n}",
|
663
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"1337031538243026944\",\n \"RequestId\": \"03ceea30-689d-4897-b3f6-719105213526\"\n }\n}",
|
664
|
+
"title": "调用成功示例"
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"document": "调用成功示例2",
|
668
|
+
"input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitExtractDocAgentJob\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/***/fakeurl.jpg\",\n \"ItemNames\": [\n {\n \"KeyName\": \"项目\",\n \"KeyType\": 1\n },\n {\n \"KeyName\": \"费用名称\",\n \"KeyType\": 1,\n \"KeyPrompt\": \"相近词:人民币\"\n },\n {\n \"KeyName\": \"美金\",\n \"KeyType\": 1\n },\n {\n \"KeyName\": \"欧元\",\n \"KeyType\": 1\n },\n {\n \"KeyName\": \"开航日\",\n \"KeyType\": 0\n }\n ]\n}",
|
669
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"1337322230114697216\",\n \"RequestId\": \"2659e485-d475-471f-9efa-c94f3f7a8e11\"\n }\n}",
|
670
|
+
"title": "调用成功示例2"
|
671
|
+
}
|
672
|
+
],
|
645
673
|
"TableOCR": [
|
646
674
|
{
|
647
675
|
"document": "表格识别示例代码",
|