tccli 3.0.1098.1__py2.py3-none-any.whl → 3.0.1100.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/cfw/v20190904/DescribeIPStatusList.md +4 -4
- tccli/examples/cls/v20201016/CreateCosRecharge.md +4 -4
- tccli/examples/cls/v20201016/CreateDashboardSubscribe.md +18 -0
- tccli/examples/cls/v20201016/DeleteDashboardSubscribe.md +18 -0
- tccli/examples/cls/v20201016/DescribeDashboardSubscribes.md +18 -0
- tccli/examples/cls/v20201016/ModifyCosRecharge.md +3 -3
- tccli/examples/cls/v20201016/ModifyDashboardSubscribe.md +18 -0
- tccli/examples/cls/v20201016/OpenKafkaConsumer.md +1 -1
- tccli/examples/cls/v20201016/SearchDashboardSubscribe.md +35 -0
- tccli/examples/cynosdb/v20190107/DescribeChangedParamsAfterUpgrade.md +31 -0
- tccli/examples/dlc/v20210125/CreateSparkSessionBatchSQL.md +1 -1
- tccli/examples/domain/v20180808/ModifyTemplate.md +73 -0
- tccli/examples/ess/v20201111/DescribeBatchOrganizationRegistrationUrls.md +27 -0
- tccli/examples/faceid/v20180301/GetFaceIdResult.md +3 -1
- tccli/examples/hunyuan/v20230901/ChatCompletions.md +183 -0
- tccli/examples/hunyuan/v20230901/ChatPro.md +2 -2
- tccli/examples/ims/v20200713/ImageModeration.md +4 -1
- tccli/examples/lke/v20231130/GetEmbedding.md +1 -1
- tccli/examples/lke/v20231130/GetMsgRecord.md +4 -1
- tccli/examples/ocr/v20181119/RecognizeGeneralTextImageWarn.md +83 -0
- tccli/examples/rum/v20210622/CreateWhitelist.md +2 -2
- tccli/examples/rum/v20210622/DescribeRumGroupLog.md +3 -3
- tccli/examples/rum/v20210622/DescribeRumLogExport.md +6 -6
- tccli/examples/rum/v20210622/DescribeRumStatsLogList.md +2 -2
- tccli/examples/teo/v20220901/CreatePlan.md +47 -0
- tccli/examples/teo/v20220901/DescribeRealtimeLogDeliveryTasks.md +42 -21
- tccli/examples/teo/v20220901/DestroyPlan.md +20 -0
- tccli/examples/teo/v20220901/IncreasePlanQuota.md +46 -0
- tccli/examples/teo/v20220901/ModifyPlan.md +21 -0
- tccli/examples/teo/v20220901/RenewPlan.md +23 -0
- tccli/examples/teo/v20220901/UpgradePlan.md +23 -0
- tccli/examples/tione/v20191022/UpdateCodeRepository.md +1 -1
- tccli/examples/tke/v20180525/CheckInstancesUpgradeAble.md +15 -7
- tccli/examples/tke/v20180525/CreateCluster.md +58 -142
- tccli/examples/tke/v20180525/DescribeClusterNodePools.md +1 -0
- tccli/examples/tke/v20180525/GetUpgradeInstanceProgress.md +18 -19
- tccli/examples/tke/v20180525/ModifyClusterAuthenticationOptions.md +3 -0
- tccli/examples/tke/v20180525/ModifyNodePoolInstanceTypes.md +1 -1
- tccli/examples/tms/v20201229/AnswerQuestion.md +21 -0
- tccli/examples/vpc/v20170312/DescribeVpnGatewayRoutes.md +2 -1
- tccli/examples/vpc/v20170312/ModifyVpnGatewayRoutes.md +8 -4
- tccli/services/aiart/v20221229/api.json +5 -5
- tccli/services/ccc/v20200210/api.json +1 -1
- tccli/services/cfs/v20190719/api.json +27 -27
- tccli/services/cfw/v20190904/api.json +5 -5
- tccli/services/cfw/v20190904/examples.json +1 -1
- tccli/services/cloudstudio/v20230508/api.json +13 -4
- tccli/services/cls/cls_client.py +337 -72
- tccli/services/cls/v20201016/api.json +501 -66
- tccli/services/cls/v20201016/examples.json +45 -5
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +120 -2
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dcdb/v20180411/api.json +2 -2
- tccli/services/dlc/v20210125/api.json +14 -4
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/domain/domain_client.py +53 -0
- tccli/services/domain/v20180808/api.json +62 -0
- tccli/services/domain/v20180808/examples.json +8 -0
- tccli/services/dts/v20211206/api.json +1 -1
- tccli/services/ess/ess_client.py +57 -4
- tccli/services/ess/v20201111/api.json +89 -1
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/faceid/v20180301/api.json +21 -1
- tccli/services/faceid/v20180301/examples.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +165 -26
- tccli/services/hunyuan/v20230901/examples.json +33 -1
- tccli/services/ims/v20200713/api.json +13 -0
- tccli/services/ims/v20200713/examples.json +1 -1
- tccli/services/ims/v20201229/api.json +2 -1
- tccli/services/iotvideo/v20211125/api.json +15 -0
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/lke/lke_client.py +114 -8
- tccli/services/lke/v20231130/api.json +492 -0
- tccli/services/lke/v20231130/examples.json +18 -2
- tccli/services/mariadb/v20170312/api.json +2 -2
- tccli/services/monitor/v20180724/api.json +1 -1
- tccli/services/mps/v20190612/api.json +46 -1
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +156 -0
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/rce/v20201103/api.json +9 -9
- tccli/services/rum/v20210622/api.json +37 -35
- tccli/services/rum/v20210622/examples.json +7 -7
- tccli/services/tdmq/v20200217/api.json +6 -6
- tccli/services/teo/teo_client.py +338 -20
- tccli/services/teo/v20220901/api.json +503 -18
- tccli/services/teo/v20220901/examples.json +62 -2
- tccli/services/tione/v20191022/api.json +6 -7
- tccli/services/tione/v20191022/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +2 -0
- tccli/services/tke/v20180525/api.json +77 -93
- tccli/services/tke/v20180525/examples.json +7 -7
- tccli/services/tms/tms_client.py +53 -0
- tccli/services/tms/v20201229/api.json +44 -0
- tccli/services/tms/v20201229/examples.json +8 -0
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/tse/v20201207/api.json +49 -1
- tccli/services/vpc/v20170312/api.json +3 -0
- tccli/services/vpc/v20170312/examples.json +3 -3
- tccli/services/waf/v20180125/api.json +2 -2
- {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/RECORD +109 -92
- {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/license_files/LICENSE +0 -0
@@ -16782,6 +16782,32 @@
|
|
16782
16782
|
],
|
16783
16783
|
"usage": "out"
|
16784
16784
|
},
|
16785
|
+
"LiveStreamRecordResultInfo": {
|
16786
|
+
"document": "直播流录制结果",
|
16787
|
+
"members": [
|
16788
|
+
{
|
16789
|
+
"disabled": false,
|
16790
|
+
"document": "录制是否结束。\n0:录制未结束,返回单个文件结果\n1:录制结束,返回所有录制文件结果\n注意:此字段可能返回 null,表示取不到有效值。",
|
16791
|
+
"example": "0",
|
16792
|
+
"member": "uint64",
|
16793
|
+
"name": "RecordOver",
|
16794
|
+
"output_required": false,
|
16795
|
+
"type": "int",
|
16796
|
+
"value_allowed_null": true
|
16797
|
+
},
|
16798
|
+
{
|
16799
|
+
"disabled": false,
|
16800
|
+
"document": "文件列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
16801
|
+
"example": "无",
|
16802
|
+
"member": "LiveRecordFile",
|
16803
|
+
"name": "FileResults",
|
16804
|
+
"output_required": false,
|
16805
|
+
"type": "list",
|
16806
|
+
"value_allowed_null": true
|
16807
|
+
}
|
16808
|
+
],
|
16809
|
+
"usage": "out"
|
16810
|
+
},
|
16785
16811
|
"LiveStreamTagRecognitionResult": {
|
16786
16812
|
"document": "直播 AI 打点识别结果",
|
16787
16813
|
"members": [
|
@@ -21045,10 +21071,11 @@
|
|
21045
21071
|
"members": [
|
21046
21072
|
{
|
21047
21073
|
"disabled": false,
|
21048
|
-
"document": "直播流处理结果类型,包含:\n<li>AiReviewResult:内容审核结果;</li>\n<li>AiRecognitionResult:内容识别结果;</li>\n<li>ProcessEof:直播流处理结束。</li>",
|
21074
|
+
"document": "直播流处理结果类型,包含:\n<li>AiReviewResult:内容审核结果;</li>\n<li>AiRecognitionResult:内容识别结果;</li>\n<li>LiveRecordResult:直播录制结果;</li>\n<li>ProcessEof:直播流处理结束。</li>",
|
21049
21075
|
"example": "ProcessEof",
|
21050
21076
|
"member": "string",
|
21051
21077
|
"name": "NotificationType",
|
21078
|
+
"output_required": true,
|
21052
21079
|
"type": "string",
|
21053
21080
|
"value_allowed_null": false
|
21054
21081
|
},
|
@@ -21058,6 +21085,7 @@
|
|
21058
21085
|
"example": "xxx",
|
21059
21086
|
"member": "string",
|
21060
21087
|
"name": "TaskId",
|
21088
|
+
"output_required": true,
|
21061
21089
|
"type": "string",
|
21062
21090
|
"value_allowed_null": false
|
21063
21091
|
},
|
@@ -21067,6 +21095,7 @@
|
|
21067
21095
|
"example": "无",
|
21068
21096
|
"member": "LiveStreamProcessErrorInfo",
|
21069
21097
|
"name": "ProcessEofInfo",
|
21098
|
+
"output_required": true,
|
21070
21099
|
"type": "object",
|
21071
21100
|
"value_allowed_null": true
|
21072
21101
|
},
|
@@ -21076,6 +21105,7 @@
|
|
21076
21105
|
"example": "无",
|
21077
21106
|
"member": "LiveStreamAiReviewResultInfo",
|
21078
21107
|
"name": "AiReviewResultInfo",
|
21108
|
+
"output_required": true,
|
21079
21109
|
"type": "object",
|
21080
21110
|
"value_allowed_null": true
|
21081
21111
|
},
|
@@ -21085,6 +21115,7 @@
|
|
21085
21115
|
"example": "无",
|
21086
21116
|
"member": "LiveStreamAiRecognitionResultInfo",
|
21087
21117
|
"name": "AiRecognitionResultInfo",
|
21118
|
+
"output_required": true,
|
21088
21119
|
"type": "object",
|
21089
21120
|
"value_allowed_null": true
|
21090
21121
|
},
|
@@ -21094,6 +21125,7 @@
|
|
21094
21125
|
"example": "无",
|
21095
21126
|
"member": "LiveStreamAiAnalysisResultInfo",
|
21096
21127
|
"name": "AiAnalysisResultInfo",
|
21128
|
+
"output_required": true,
|
21097
21129
|
"type": "object",
|
21098
21130
|
"value_allowed_null": true
|
21099
21131
|
},
|
@@ -21103,6 +21135,17 @@
|
|
21103
21135
|
"example": "无",
|
21104
21136
|
"member": "LiveStreamAiQualityControlResultInfo",
|
21105
21137
|
"name": "AiQualityControlResultInfo",
|
21138
|
+
"output_required": true,
|
21139
|
+
"type": "object",
|
21140
|
+
"value_allowed_null": true
|
21141
|
+
},
|
21142
|
+
{
|
21143
|
+
"disabled": false,
|
21144
|
+
"document": "直播录制结果,当 NotificationType 为 LiveRecordResult 时有效。\n注意:此字段可能返回 null,表示取不到有效值。",
|
21145
|
+
"example": "无",
|
21146
|
+
"member": "LiveStreamRecordResultInfo",
|
21147
|
+
"name": "LiveRecordResultInfo",
|
21148
|
+
"output_required": false,
|
21106
21149
|
"type": "object",
|
21107
21150
|
"value_allowed_null": true
|
21108
21151
|
},
|
@@ -21112,6 +21155,7 @@
|
|
21112
21155
|
"example": "xx",
|
21113
21156
|
"member": "string",
|
21114
21157
|
"name": "SessionId",
|
21158
|
+
"output_required": true,
|
21115
21159
|
"type": "string",
|
21116
21160
|
"value_allowed_null": false
|
21117
21161
|
},
|
@@ -21121,6 +21165,7 @@
|
|
21121
21165
|
"example": "xx",
|
21122
21166
|
"member": "string",
|
21123
21167
|
"name": "SessionContext",
|
21168
|
+
"output_required": true,
|
21124
21169
|
"type": "string",
|
21125
21170
|
"value_allowed_null": false
|
21126
21171
|
},
|
tccli/services/ocr/ocr_client.py
CHANGED
@@ -2357,6 +2357,58 @@ def doHmtResidentPermitOCR(args, parsed_globals):
|
|
2357
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
2358
|
|
2359
2359
|
|
2360
|
+
def doRecognizeGeneralTextImageWarn(args, parsed_globals):
|
2361
|
+
g_param = parse_global_arg(parsed_globals)
|
2362
|
+
|
2363
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2364
|
+
cred = credential.CVMRoleCredential()
|
2365
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2366
|
+
cred = credential.STSAssumeRoleCredential(
|
2367
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2368
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2369
|
+
)
|
2370
|
+
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):
|
2371
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2372
|
+
else:
|
2373
|
+
cred = credential.Credential(
|
2374
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2375
|
+
)
|
2376
|
+
http_profile = HttpProfile(
|
2377
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2378
|
+
reqMethod="POST",
|
2379
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2380
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2381
|
+
)
|
2382
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2383
|
+
if g_param[OptionsDefine.Language]:
|
2384
|
+
profile.language = g_param[OptionsDefine.Language]
|
2385
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2386
|
+
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
2387
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2388
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2389
|
+
model = models.RecognizeGeneralTextImageWarnRequest()
|
2390
|
+
model.from_json_string(json.dumps(args))
|
2391
|
+
start_time = time.time()
|
2392
|
+
while True:
|
2393
|
+
rsp = client.RecognizeGeneralTextImageWarn(model)
|
2394
|
+
result = rsp.to_json_string()
|
2395
|
+
try:
|
2396
|
+
json_obj = json.loads(result)
|
2397
|
+
except TypeError as e:
|
2398
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2399
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2400
|
+
break
|
2401
|
+
cur_time = time.time()
|
2402
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2403
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2404
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2405
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2406
|
+
else:
|
2407
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2408
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2409
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2410
|
+
|
2411
|
+
|
2360
2412
|
def doSmartStructuralOCR(args, parsed_globals):
|
2361
2413
|
g_param = parse_global_arg(parsed_globals)
|
2362
2414
|
|
@@ -4441,6 +4493,7 @@ ACTION_MAP = {
|
|
4441
4493
|
"TableOCR": doTableOCR,
|
4442
4494
|
"EnglishOCR": doEnglishOCR,
|
4443
4495
|
"HmtResidentPermitOCR": doHmtResidentPermitOCR,
|
4496
|
+
"RecognizeGeneralTextImageWarn": doRecognizeGeneralTextImageWarn,
|
4444
4497
|
"SmartStructuralOCR": doSmartStructuralOCR,
|
4445
4498
|
"ArithmeticOCR": doArithmeticOCR,
|
4446
4499
|
"TollInvoiceOCR": doTollInvoiceOCR,
|
@@ -343,6 +343,13 @@
|
|
343
343
|
"output": "RecognizeGeneralInvoiceResponse",
|
344
344
|
"status": "online"
|
345
345
|
},
|
346
|
+
"RecognizeGeneralTextImageWarn": {
|
347
|
+
"document": "本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。\n\n默认接口请求频率限制:10次/秒。",
|
348
|
+
"input": "RecognizeGeneralTextImageWarnRequest",
|
349
|
+
"name": "通用文本图像告警",
|
350
|
+
"output": "RecognizeGeneralTextImageWarnResponse",
|
351
|
+
"status": "online"
|
352
|
+
},
|
346
353
|
"RecognizeHealthCodeOCR": {
|
347
354
|
"document": "本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。\n\n默认接口请求频率限制:10次/秒。",
|
348
355
|
"input": "RecognizeHealthCodeOCRRequest",
|
@@ -5721,6 +5728,42 @@
|
|
5721
5728
|
],
|
5722
5729
|
"usage": "out"
|
5723
5730
|
},
|
5731
|
+
"GeneralWarnInfo": {
|
5732
|
+
"document": "通用告警详情",
|
5733
|
+
"members": [
|
5734
|
+
{
|
5735
|
+
"disabled": false,
|
5736
|
+
"document": "是否存在该告警",
|
5737
|
+
"example": "无",
|
5738
|
+
"member": "bool",
|
5739
|
+
"name": "IsWarn",
|
5740
|
+
"output_required": true,
|
5741
|
+
"type": "bool",
|
5742
|
+
"value_allowed_null": false
|
5743
|
+
},
|
5744
|
+
{
|
5745
|
+
"disabled": false,
|
5746
|
+
"document": "告警位置四点坐标",
|
5747
|
+
"example": "无",
|
5748
|
+
"member": "Polygon",
|
5749
|
+
"name": "Polygon",
|
5750
|
+
"output_required": true,
|
5751
|
+
"type": "list",
|
5752
|
+
"value_allowed_null": false
|
5753
|
+
},
|
5754
|
+
{
|
5755
|
+
"disabled": false,
|
5756
|
+
"document": "特殊判定,支持包括\n\nFinger:由手指导致的不完整,仅在不完整告警中返回",
|
5757
|
+
"example": "无",
|
5758
|
+
"member": "string",
|
5759
|
+
"name": "SpecificMatter",
|
5760
|
+
"output_required": true,
|
5761
|
+
"type": "string",
|
5762
|
+
"value_allowed_null": false
|
5763
|
+
}
|
5764
|
+
],
|
5765
|
+
"usage": "out"
|
5766
|
+
},
|
5724
5767
|
"GetTaskStateRequest": {
|
5725
5768
|
"document": "GetTaskState请求参数结构体",
|
5726
5769
|
"members": [
|
@@ -11320,6 +11363,119 @@
|
|
11320
11363
|
],
|
11321
11364
|
"type": "object"
|
11322
11365
|
},
|
11366
|
+
"RecognizeGeneralTextImageWarnRequest": {
|
11367
|
+
"document": "RecognizeGeneralTextImageWarn请求参数结构体",
|
11368
|
+
"members": [
|
11369
|
+
{
|
11370
|
+
"disabled": false,
|
11371
|
+
"document": "图片的 Url 地址。\n支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。\n支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。\n支持的图片像素:需介于20-10000px之间。\n图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。\n非腾讯云存储的 Url 速度和稳定性可能受一定影响。",
|
11372
|
+
"example": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/docume",
|
11373
|
+
"member": "string",
|
11374
|
+
"name": "ImageUrl",
|
11375
|
+
"required": false,
|
11376
|
+
"type": "string"
|
11377
|
+
},
|
11378
|
+
{
|
11379
|
+
"disabled": false,
|
11380
|
+
"document": "图片的 Base64 值。\n支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。\n支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。\n支持的图片像素:需介于20-10000px之间。\n图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。",
|
11381
|
+
"example": "无",
|
11382
|
+
"member": "string",
|
11383
|
+
"name": "ImageBase64",
|
11384
|
+
"required": false,
|
11385
|
+
"type": "string"
|
11386
|
+
},
|
11387
|
+
{
|
11388
|
+
"disabled": false,
|
11389
|
+
"document": "是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。 示例值:false",
|
11390
|
+
"example": "true",
|
11391
|
+
"member": "bool",
|
11392
|
+
"name": "EnablePdf",
|
11393
|
+
"required": false,
|
11394
|
+
"type": "bool"
|
11395
|
+
},
|
11396
|
+
{
|
11397
|
+
"disabled": false,
|
11398
|
+
"document": "需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。 示例值:1",
|
11399
|
+
"example": "1",
|
11400
|
+
"member": "int64",
|
11401
|
+
"name": "PdfPageNumber",
|
11402
|
+
"required": false,
|
11403
|
+
"type": "int"
|
11404
|
+
},
|
11405
|
+
{
|
11406
|
+
"disabled": false,
|
11407
|
+
"document": "支持的模板类型\n- General 通用告警\n- LicensePlate 车牌告警",
|
11408
|
+
"example": "无",
|
11409
|
+
"member": "string",
|
11410
|
+
"name": "Type",
|
11411
|
+
"required": false,
|
11412
|
+
"type": "string"
|
11413
|
+
}
|
11414
|
+
],
|
11415
|
+
"type": "object"
|
11416
|
+
},
|
11417
|
+
"RecognizeGeneralTextImageWarnResponse": {
|
11418
|
+
"document": "RecognizeGeneralTextImageWarn返回参数结构体",
|
11419
|
+
"members": [
|
11420
|
+
{
|
11421
|
+
"disabled": false,
|
11422
|
+
"document": "复印告警信息",
|
11423
|
+
"example": "无",
|
11424
|
+
"member": "GeneralWarnInfo",
|
11425
|
+
"name": "Copy",
|
11426
|
+
"output_required": true,
|
11427
|
+
"type": "object",
|
11428
|
+
"value_allowed_null": false
|
11429
|
+
},
|
11430
|
+
{
|
11431
|
+
"disabled": false,
|
11432
|
+
"document": "翻拍告警信息",
|
11433
|
+
"example": "无",
|
11434
|
+
"member": "GeneralWarnInfo",
|
11435
|
+
"name": "Reprint",
|
11436
|
+
"output_required": true,
|
11437
|
+
"type": "object",
|
11438
|
+
"value_allowed_null": false
|
11439
|
+
},
|
11440
|
+
{
|
11441
|
+
"disabled": false,
|
11442
|
+
"document": "模糊告警信息",
|
11443
|
+
"example": "无",
|
11444
|
+
"member": "GeneralWarnInfo",
|
11445
|
+
"name": "Blur",
|
11446
|
+
"output_required": true,
|
11447
|
+
"type": "object",
|
11448
|
+
"value_allowed_null": false
|
11449
|
+
},
|
11450
|
+
{
|
11451
|
+
"disabled": false,
|
11452
|
+
"document": "反光告警信息",
|
11453
|
+
"example": "无",
|
11454
|
+
"member": "GeneralWarnInfo",
|
11455
|
+
"name": "Reflection",
|
11456
|
+
"output_required": true,
|
11457
|
+
"type": "object",
|
11458
|
+
"value_allowed_null": false
|
11459
|
+
},
|
11460
|
+
{
|
11461
|
+
"disabled": false,
|
11462
|
+
"document": "边框不完整告警信息",
|
11463
|
+
"example": "无",
|
11464
|
+
"member": "GeneralWarnInfo",
|
11465
|
+
"name": "BorderIncomplete",
|
11466
|
+
"output_required": true,
|
11467
|
+
"type": "object",
|
11468
|
+
"value_allowed_null": false
|
11469
|
+
},
|
11470
|
+
{
|
11471
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11472
|
+
"member": "string",
|
11473
|
+
"name": "RequestId",
|
11474
|
+
"type": "string"
|
11475
|
+
}
|
11476
|
+
],
|
11477
|
+
"type": "object"
|
11478
|
+
},
|
11323
11479
|
"RecognizeHealthCodeOCRRequest": {
|
11324
11480
|
"document": "RecognizeHealthCodeOCR请求参数结构体",
|
11325
11481
|
"members": [
|
@@ -446,6 +446,14 @@
|
|
446
446
|
"title": "通用票据识别(高级版)"
|
447
447
|
}
|
448
448
|
],
|
449
|
+
"RecognizeGeneralTextImageWarn": [
|
450
|
+
{
|
451
|
+
"document": "通用文本图像告警示例",
|
452
|
+
"input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RecognizeGeneralTextImageWarn\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg\"\n}",
|
453
|
+
"output": "{\n \"Response\": {\n \"Blur\": {\n \"IsWarn\": false,\n \"Polygon\": [],\n \"SpecificMatter\": \"\"\n },\n \"BorderIncomplete\": {\n \"IsWarn\": false,\n \"Polygon\": [],\n \"SpecificMatter\": \"\"\n },\n \"Copy\": {\n \"IsWarn\": true,\n \"Polygon\": [\n {\n \"LeftBottom\": {\n \"X\": 0,\n \"Y\": 0\n },\n \"LeftTop\": {\n \"X\": 0,\n \"Y\": 0\n },\n \"RightBottom\": {\n \"X\": 0,\n \"Y\": 0\n },\n \"RightTop\": {\n \"X\": 0,\n \"Y\": 0\n }\n }\n ],\n \"SpecificMatter\": \"\"\n },\n \"Reflection\": {\n \"IsWarn\": false,\n \"Polygon\": [],\n \"SpecificMatter\": \"\"\n },\n \"Reprint\": {\n \"IsWarn\": true,\n \"Polygon\": [\n {\n \"LeftBottom\": {\n \"X\": 0,\n \"Y\": 0\n },\n \"LeftTop\": {\n \"X\": 0,\n \"Y\": 0\n },\n \"RightBottom\": {\n \"X\": 0,\n \"Y\": 0\n },\n \"RightTop\": {\n \"X\": 0,\n \"Y\": 0\n }\n }\n ],\n \"SpecificMatter\": \"\"\n },\n \"RequestId\": \"d8b2bf40-091e-43f1-a075-d98a5c9b2e1e\"\n }\n}",
|
454
|
+
"title": "通用文本图像告警示例代码"
|
455
|
+
}
|
456
|
+
],
|
449
457
|
"RecognizeHealthCodeOCR": [
|
450
458
|
{
|
451
459
|
"document": "健康码识别",
|
@@ -684,41 +684,41 @@
|
|
684
684
|
"members": [
|
685
685
|
{
|
686
686
|
"disabled": false,
|
687
|
-
"document": "
|
688
|
-
"example": "",
|
687
|
+
"document": "错误码,0 表示成功,非0表示失败错误码。\n0:成功\n1:错误\n1002:参数错误\n4300:未开通服务\n4301:后端未创建对应产品\n注意:此字段可能返回 null,表示取不到有效值。",
|
688
|
+
"example": "无",
|
689
689
|
"member": "int64",
|
690
690
|
"name": "Code",
|
691
|
-
"
|
691
|
+
"output_required": true,
|
692
692
|
"type": "int",
|
693
693
|
"value_allowed_null": true
|
694
694
|
},
|
695
695
|
{
|
696
696
|
"disabled": false,
|
697
697
|
"document": "UTF-8编码,出错消息。\n注意:此字段可能返回 null,表示取不到有效值。",
|
698
|
-
"example": "",
|
698
|
+
"example": "无",
|
699
699
|
"member": "string",
|
700
700
|
"name": "Message",
|
701
|
-
"
|
701
|
+
"output_required": true,
|
702
702
|
"type": "string",
|
703
703
|
"value_allowed_null": true
|
704
704
|
},
|
705
705
|
{
|
706
706
|
"disabled": false,
|
707
707
|
"document": "业务详情。\n注意:此字段可能返回 null,表示取不到有效值。",
|
708
|
-
"example": "",
|
708
|
+
"example": "无",
|
709
709
|
"member": "OutputManageMarketingRiskValue",
|
710
710
|
"name": "Value",
|
711
|
-
"
|
711
|
+
"output_required": true,
|
712
712
|
"type": "object",
|
713
713
|
"value_allowed_null": true
|
714
714
|
},
|
715
715
|
{
|
716
716
|
"disabled": false,
|
717
717
|
"document": "控制台显示的req_id。\n注意:此字段可能返回 null,表示取不到有效值。",
|
718
|
-
"example": "",
|
718
|
+
"example": "无",
|
719
719
|
"member": "string",
|
720
720
|
"name": "UUid",
|
721
|
-
"
|
721
|
+
"output_required": true,
|
722
722
|
"type": "string",
|
723
723
|
"value_allowed_null": true
|
724
724
|
}
|