tccli 3.0.1409.1__py2.py3-none-any.whl → 3.0.1410.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 CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1409.1'
1
+ __version__ = '3.0.1410.1'
@@ -3070,7 +3070,7 @@
3070
3070
  {
3071
3071
  "disabled": false,
3072
3072
  "document": "返回实例的配置文件相关的信息",
3073
- "example": "[ ]",
3073
+ "example": "",
3074
3074
  "member": "ClusterConfigsInfoFromEMR",
3075
3075
  "name": "ClusterConfList",
3076
3076
  "output_required": true,
@@ -3107,6 +3107,16 @@
3107
3107
  "type": "bool",
3108
3108
  "value_allowed_null": false
3109
3109
  },
3110
+ {
3111
+ "disabled": false,
3112
+ "document": "实例已经存在的jar包列表",
3113
+ "example": "无",
3114
+ "member": "ClusterConfigsInfoFromEMR",
3115
+ "name": "ExistingJarConfList",
3116
+ "output_required": false,
3117
+ "type": "list",
3118
+ "value_allowed_null": false
3119
+ },
3110
3120
  {
3111
3121
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3112
3122
  "member": "string",
@@ -3748,7 +3748,7 @@
3748
3748
  {
3749
3749
  "disabled": false,
3750
3750
  "document": "索引名",
3751
- "example": "[\"test\"]",
3751
+ "example": "[\"abc-abcdefgh\"]",
3752
3752
  "member": "string",
3753
3753
  "name": "IndexNames",
3754
3754
  "required": false,
@@ -3802,7 +3802,7 @@
3802
3802
  {
3803
3803
  "disabled": false,
3804
3804
  "document": "索引空间ID列表",
3805
- "example": "[space-12345]",
3805
+ "example": "[\"space-13489\"]",
3806
3806
  "member": "string",
3807
3807
  "name": "SpaceIds",
3808
3808
  "required": false,
@@ -19532,7 +19532,7 @@
19532
19532
  },
19533
19533
  {
19534
19534
  "disabled": false,
19535
- "document": "录制存储时长。\n单位秒,取值范围: 0 - 1500天。\n0:表示永久存储。",
19535
+ "document": "录制存储时长。\n单位秒,取值范围: 0 - 1500天。\n0:表示永久存储。\n注:此参数只对录制到VOD有效。",
19536
19536
  "example": "800",
19537
19537
  "member": "int64",
19538
19538
  "name": "StorageTime",
@@ -7294,7 +7294,7 @@
7294
7294
  },
7295
7295
  {
7296
7296
  "disabled": false,
7297
- "document": "0-引用 JAR 程序包,1-主程序包,2-引用配置文件,3-Python程序包,4-Python数据文件",
7297
+ "document": "资源版本",
7298
7298
  "example": "1",
7299
7299
  "member": "int64",
7300
7300
  "name": "Version",
@@ -7303,7 +7303,7 @@
7303
7303
  },
7304
7304
  {
7305
7305
  "disabled": false,
7306
- "document": "引用资源类型,例如主资源设置为1,代表main class所在的jar包",
7306
+ "document": "0-引用 JAR 程序包,1-主程序包,2-引用配置文件,3-Python程序包,4-Python数据文件",
7307
7307
  "example": "1",
7308
7308
  "member": "int64",
7309
7309
  "name": "Type",
@@ -693,6 +693,58 @@ def doPermitOCR(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
+ def doQuestionSplitLayoutOCR(args, parsed_globals):
697
+ g_param = parse_global_arg(parsed_globals)
698
+
699
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
700
+ cred = credential.CVMRoleCredential()
701
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
702
+ cred = credential.STSAssumeRoleCredential(
703
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
704
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
705
+ )
706
+ 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):
707
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
708
+ else:
709
+ cred = credential.Credential(
710
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
711
+ )
712
+ http_profile = HttpProfile(
713
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
714
+ reqMethod="POST",
715
+ endpoint=g_param[OptionsDefine.Endpoint],
716
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
717
+ )
718
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
719
+ if g_param[OptionsDefine.Language]:
720
+ profile.language = g_param[OptionsDefine.Language]
721
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
722
+ client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
723
+ client._sdkVersion += ("_CLI_" + __version__)
724
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
+ model = models.QuestionSplitLayoutOCRRequest()
726
+ model.from_json_string(json.dumps(args))
727
+ start_time = time.time()
728
+ while True:
729
+ rsp = client.QuestionSplitLayoutOCR(model)
730
+ result = rsp.to_json_string()
731
+ try:
732
+ json_obj = json.loads(result)
733
+ except TypeError as e:
734
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
735
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
736
+ break
737
+ cur_time = time.time()
738
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
739
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
740
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
741
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
742
+ else:
743
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
744
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
745
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
+
747
+
696
748
  def doBusInvoiceOCR(args, parsed_globals):
697
749
  g_param = parse_global_arg(parsed_globals)
698
750
 
@@ -901,6 +953,58 @@ def doClassifyStoreName(args, parsed_globals):
901
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
954
 
903
955
 
956
+ def doGetOCRResult(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.GetOCRResultRequest()
986
+ model.from_json_string(json.dumps(args))
987
+ start_time = time.time()
988
+ while True:
989
+ rsp = client.GetOCRResult(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
+
904
1008
  def doTaxiInvoiceOCR(args, parsed_globals):
905
1009
  g_param = parse_global_arg(parsed_globals)
906
1010
 
@@ -3553,58 +3657,6 @@ def doMixedInvoiceOCR(args, parsed_globals):
3553
3657
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
3658
 
3555
3659
 
3556
- def doRecognizeHealthCodeOCR(args, parsed_globals):
3557
- g_param = parse_global_arg(parsed_globals)
3558
-
3559
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3560
- cred = credential.CVMRoleCredential()
3561
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3562
- cred = credential.STSAssumeRoleCredential(
3563
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3564
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3565
- )
3566
- 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):
3567
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3568
- else:
3569
- cred = credential.Credential(
3570
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3571
- )
3572
- http_profile = HttpProfile(
3573
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3574
- reqMethod="POST",
3575
- endpoint=g_param[OptionsDefine.Endpoint],
3576
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3577
- )
3578
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3579
- if g_param[OptionsDefine.Language]:
3580
- profile.language = g_param[OptionsDefine.Language]
3581
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3582
- client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
3583
- client._sdkVersion += ("_CLI_" + __version__)
3584
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
3585
- model = models.RecognizeHealthCodeOCRRequest()
3586
- model.from_json_string(json.dumps(args))
3587
- start_time = time.time()
3588
- while True:
3589
- rsp = client.RecognizeHealthCodeOCR(model)
3590
- result = rsp.to_json_string()
3591
- try:
3592
- json_obj = json.loads(result)
3593
- except TypeError as e:
3594
- json_obj = json.loads(result.decode('utf-8')) # python3.3
3595
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3596
- break
3597
- cur_time = time.time()
3598
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3599
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3600
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3601
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3602
- else:
3603
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3604
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3605
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3606
-
3607
-
3608
3660
  def doImageEnhancement(args, parsed_globals):
3609
3661
  g_param = parse_global_arg(parsed_globals)
3610
3662
 
@@ -4437,7 +4489,7 @@ def doCarInvoiceOCR(args, parsed_globals):
4437
4489
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4438
4490
 
4439
4491
 
4440
- def doGetOCRResult(args, parsed_globals):
4492
+ def doRecognizeHealthCodeOCR(args, parsed_globals):
4441
4493
  g_param = parse_global_arg(parsed_globals)
4442
4494
 
4443
4495
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4466,11 +4518,11 @@ def doGetOCRResult(args, parsed_globals):
4466
4518
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
4467
4519
  client._sdkVersion += ("_CLI_" + __version__)
4468
4520
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4469
- model = models.GetOCRResultRequest()
4521
+ model = models.RecognizeHealthCodeOCRRequest()
4470
4522
  model.from_json_string(json.dumps(args))
4471
4523
  start_time = time.time()
4472
4524
  while True:
4473
- rsp = client.GetOCRResult(model)
4525
+ rsp = client.RecognizeHealthCodeOCR(model)
4474
4526
  result = rsp.to_json_string()
4475
4527
  try:
4476
4528
  json_obj = json.loads(result)
@@ -4721,10 +4773,12 @@ ACTION_MAP = {
4721
4773
  "InvoiceGeneralOCR": doInvoiceGeneralOCR,
4722
4774
  "HKIDCardOCR": doHKIDCardOCR,
4723
4775
  "PermitOCR": doPermitOCR,
4776
+ "QuestionSplitLayoutOCR": doQuestionSplitLayoutOCR,
4724
4777
  "BusInvoiceOCR": doBusInvoiceOCR,
4725
4778
  "EnglishOCR": doEnglishOCR,
4726
4779
  "SmartStructuralOCR": doSmartStructuralOCR,
4727
4780
  "ClassifyStoreName": doClassifyStoreName,
4781
+ "GetOCRResult": doGetOCRResult,
4728
4782
  "TaxiInvoiceOCR": doTaxiInvoiceOCR,
4729
4783
  "DescribeExtractDocAgentJob": doDescribeExtractDocAgentJob,
4730
4784
  "RideHailingDriverLicenseOCR": doRideHailingDriverLicenseOCR,
@@ -4776,7 +4830,6 @@ ACTION_MAP = {
4776
4830
  "DriverLicenseOCR": doDriverLicenseOCR,
4777
4831
  "FinanBillOCR": doFinanBillOCR,
4778
4832
  "MixedInvoiceOCR": doMixedInvoiceOCR,
4779
- "RecognizeHealthCodeOCR": doRecognizeHealthCodeOCR,
4780
4833
  "ImageEnhancement": doImageEnhancement,
4781
4834
  "QuestionSplitOCR": doQuestionSplitOCR,
4782
4835
  "MLIDCardOCR": doMLIDCardOCR,
@@ -4793,7 +4846,7 @@ ACTION_MAP = {
4793
4846
  "AdvertiseOCR": doAdvertiseOCR,
4794
4847
  "ResidenceBookletOCR": doResidenceBookletOCR,
4795
4848
  "CarInvoiceOCR": doCarInvoiceOCR,
4796
- "GetOCRResult": doGetOCRResult,
4849
+ "RecognizeHealthCodeOCR": doRecognizeHealthCodeOCR,
4797
4850
  "FormulaOCR": doFormulaOCR,
4798
4851
  "PassportOCR": doPassportOCR,
4799
4852
  "ShipInvoiceOCR": doShipInvoiceOCR,
@@ -357,6 +357,13 @@
357
357
  "output": "QuestionOCRResponse",
358
358
  "status": "online"
359
359
  },
360
+ "QuestionSplitLayoutOCR": {
361
+ "document": "试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框和题目元素的坐标位置。\n\n默认接口请求频率限制:2次/秒。",
362
+ "input": "QuestionSplitLayoutOCRRequest",
363
+ "name": "试卷切题(仅检测)",
364
+ "output": "QuestionSplitLayoutOCRResponse",
365
+ "status": "online"
366
+ },
360
367
  "QuestionSplitOCR": {
361
368
  "document": "试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。\n\n默认接口请求频率限制:2次/秒。",
362
369
  "input": "QuestionSplitOCRRequest",
@@ -12975,6 +12982,88 @@
12975
12982
  ],
12976
12983
  "usage": "out"
12977
12984
  },
12985
+ "QuestionSplitLayoutOCRRequest": {
12986
+ "document": "QuestionSplitLayoutOCR请求参数结构体",
12987
+ "members": [
12988
+ {
12989
+ "disabled": false,
12990
+ "document": "图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。",
12991
+ "example": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/document/SmartStructuralOCR/SmartStructuralPro1.png",
12992
+ "member": "string",
12993
+ "name": "ImageUrl",
12994
+ "required": false,
12995
+ "type": "string"
12996
+ },
12997
+ {
12998
+ "disabled": false,
12999
+ "document": "图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。",
13000
+ "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
13001
+ "member": "string",
13002
+ "name": "ImageBase64",
13003
+ "required": false,
13004
+ "type": "string"
13005
+ },
13006
+ {
13007
+ "disabled": false,
13008
+ "document": "是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。",
13009
+ "example": "true",
13010
+ "member": "bool",
13011
+ "name": "IsPdf",
13012
+ "required": false,
13013
+ "type": "bool"
13014
+ },
13015
+ {
13016
+ "disabled": false,
13017
+ "document": "需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。",
13018
+ "example": "1",
13019
+ "member": "uint64",
13020
+ "name": "PdfPageNumber",
13021
+ "required": false,
13022
+ "type": "int"
13023
+ },
13024
+ {
13025
+ "disabled": false,
13026
+ "document": "是否开启切边增强和弯曲矫正,默认为false不开启",
13027
+ "example": "false",
13028
+ "member": "bool",
13029
+ "name": "EnableImageCrop",
13030
+ "required": false,
13031
+ "type": "bool"
13032
+ },
13033
+ {
13034
+ "disabled": false,
13035
+ "document": "false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中",
13036
+ "example": "false",
13037
+ "member": "bool",
13038
+ "name": "UseNewModel",
13039
+ "required": false,
13040
+ "type": "bool"
13041
+ }
13042
+ ],
13043
+ "type": "object"
13044
+ },
13045
+ "QuestionSplitLayoutOCRResponse": {
13046
+ "document": "QuestionSplitLayoutOCR返回参数结构体",
13047
+ "members": [
13048
+ {
13049
+ "disabled": false,
13050
+ "document": "检测到的文本信息",
13051
+ "example": "无",
13052
+ "member": "QuestionInfo",
13053
+ "name": "QuestionInfo",
13054
+ "output_required": true,
13055
+ "type": "list",
13056
+ "value_allowed_null": false
13057
+ },
13058
+ {
13059
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13060
+ "member": "string",
13061
+ "name": "RequestId",
13062
+ "type": "string"
13063
+ }
13064
+ ],
13065
+ "type": "object"
13066
+ },
12978
13067
  "QuestionSplitOCRRequest": {
12979
13068
  "document": "QuestionSplitOCR请求参数结构体",
12980
13069
  "members": [
@@ -14129,7 +14218,7 @@
14129
14218
  {
14130
14219
  "disabled": false,
14131
14220
  "document": "图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负",
14132
- "example": "0",
14221
+ "example": "0.0",
14133
14222
  "member": "float",
14134
14223
  "name": "Angle",
14135
14224
  "output_required": true,
@@ -456,6 +456,14 @@
456
456
  "title": "试题识别"
457
457
  }
458
458
  ],
459
+ "QuestionSplitLayoutOCR": [
460
+ {
461
+ "document": "试卷切题",
462
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QuestionSplitLayoutOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://qq.com/1.jpg\"\n}",
463
+ "output": "{\n \"Response\": {\n \"QuestionInfo\": [\n {\n \"Angle\": 0,\n \"Height\": 3368,\n \"ImageBase64\": \"\",\n \"OrgHeight\": 3368,\n \"OrgWidth\": 2188,\n \"ResultList\": [\n {\n \"Answer\": [],\n \"Coord\": [\n {\n \"LeftBottom\": {\n \"X\": 197,\n \"Y\": 1508\n },\n \"LeftTop\": {\n \"X\": 197,\n \"Y\": 568\n },\n \"RightBottom\": {\n \"X\": 2019,\n \"Y\": 1508\n },\n \"RightTop\": {\n \"X\": 2019,\n \"Y\": 568\n }\n }\n ],\n \"Figure\": [\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 197,\n \"Y\": 1066\n },\n \"LeftTop\": {\n \"X\": 197,\n \"Y\": 568\n },\n \"RightBottom\": {\n \"X\": 2019,\n \"Y\": 1066\n },\n \"RightTop\": {\n \"X\": 2019,\n \"Y\": 568\n }\n },\n \"GroupType\": \"fill-in-the-blank\",\n \"Index\": 0,\n \"ResultList\": null,\n \"Text\": \"\"\n }\n ],\n \"Option\": [\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 275,\n \"Y\": 1230\n },\n \"LeftTop\": {\n \"X\": 275,\n \"Y\": 1169\n },\n \"RightBottom\": {\n \"X\": 595,\n \"Y\": 1230\n },\n \"RightTop\": {\n \"X\": 595,\n \"Y\": 1169\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 2,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 729,\n \"Y\": 1232\n },\n \"LeftTop\": {\n \"X\": 729,\n \"Y\": 1174\n },\n \"RightBottom\": {\n \"X\": 1083,\n \"Y\": 1232\n },\n \"RightTop\": {\n \"X\": 1083,\n \"Y\": 1174\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 3,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 1218,\n \"Y\": 1230\n },\n \"LeftTop\": {\n \"X\": 1218,\n \"Y\": 1172\n },\n \"RightBottom\": {\n \"X\": 1564,\n \"Y\": 1230\n },\n \"RightTop\": {\n \"X\": 1564,\n \"Y\": 1172\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 4,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 1696,\n \"Y\": 1229\n },\n \"LeftTop\": {\n \"X\": 1696,\n \"Y\": 1169\n },\n \"RightBottom\": {\n \"X\": 2002,\n \"Y\": 1229\n },\n \"RightTop\": {\n \"X\": 2002,\n \"Y\": 1169\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 5,\n \"ResultList\": null,\n \"Text\": \"\"\n }\n ],\n \"Parse\": [],\n \"Question\": [\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 200,\n \"Y\": 1148\n },\n \"LeftTop\": {\n \"X\": 200,\n \"Y\": 1073\n },\n \"RightBottom\": {\n \"X\": 1761,\n \"Y\": 1148\n },\n \"RightTop\": {\n \"X\": 1761,\n \"Y\": 1073\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 1,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 200,\n \"Y\": 1508\n },\n \"LeftTop\": {\n \"X\": 200,\n \"Y\": 1239\n },\n \"RightBottom\": {\n \"X\": 2019,\n \"Y\": 1508\n },\n \"RightTop\": {\n \"X\": 2019,\n \"Y\": 1239\n }\n },\n \"GroupType\": \"fill-in-the-blank\",\n \"Index\": 6,\n \"ResultList\": null,\n \"Text\": \"\"\n }\n ],\n \"Table\": []\n },\n {\n \"Answer\": [],\n \"Coord\": [\n {\n \"LeftBottom\": {\n \"X\": 111,\n \"Y\": 3284\n },\n \"LeftTop\": {\n \"X\": 111,\n \"Y\": 1615\n },\n \"RightBottom\": {\n \"X\": 2030,\n \"Y\": 3284\n },\n \"RightTop\": {\n \"X\": 2030,\n \"Y\": 1615\n }\n }\n ],\n \"Figure\": [\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 1615,\n \"Y\": 2490\n },\n \"LeftTop\": {\n \"X\": 1615,\n \"Y\": 2232\n },\n \"RightBottom\": {\n \"X\": 2030,\n \"Y\": 2490\n },\n \"RightTop\": {\n \"X\": 2030,\n \"Y\": 2232\n }\n },\n \"GroupType\": \"problem-solving\",\n \"Index\": 13,\n \"ResultList\": null,\n \"Text\": \"\"\n }\n ],\n \"Option\": [\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 267,\n \"Y\": 2120\n },\n \"LeftTop\": {\n \"X\": 267,\n \"Y\": 2047\n },\n \"RightBottom\": {\n \"X\": 902,\n \"Y\": 2120\n },\n \"RightTop\": {\n \"X\": 902,\n \"Y\": 2047\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 9,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 1133,\n \"Y\": 2119\n },\n \"LeftTop\": {\n \"X\": 1133,\n \"Y\": 2060\n },\n \"RightBottom\": {\n \"X\": 1963,\n \"Y\": 2119\n },\n \"RightTop\": {\n \"X\": 1963,\n \"Y\": 2060\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 10,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 260,\n \"Y\": 2209\n },\n \"LeftTop\": {\n \"X\": 260,\n \"Y\": 2136\n },\n \"RightBottom\": {\n \"X\": 1085,\n \"Y\": 2209\n },\n \"RightTop\": {\n \"X\": 1085,\n \"Y\": 2136\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 11,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 1133,\n \"Y\": 2207\n },\n \"LeftTop\": {\n \"X\": 1133,\n \"Y\": 2151\n },\n \"RightBottom\": {\n \"X\": 1918,\n \"Y\": 2207\n },\n \"RightTop\": {\n \"X\": 1918,\n \"Y\": 2151\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 12,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 258,\n \"Y\": 2834\n },\n \"LeftTop\": {\n \"X\": 258,\n \"Y\": 2771\n },\n \"RightBottom\": {\n \"X\": 1746,\n \"Y\": 2834\n },\n \"RightTop\": {\n \"X\": 1746,\n \"Y\": 2771\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 15,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 258,\n \"Y\": 2927\n },\n \"LeftTop\": {\n \"X\": 258,\n \"Y\": 2861\n },\n \"RightBottom\": {\n \"X\": 1300,\n \"Y\": 2927\n },\n \"RightTop\": {\n \"X\": 1300,\n \"Y\": 2861\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 16,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 258,\n \"Y\": 3013\n },\n \"LeftTop\": {\n \"X\": 258,\n \"Y\": 2950\n },\n \"RightBottom\": {\n \"X\": 1973,\n \"Y\": 3013\n },\n \"RightTop\": {\n \"X\": 1973,\n \"Y\": 2950\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 17,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 251,\n \"Y\": 3101\n },\n \"LeftTop\": {\n \"X\": 251,\n \"Y\": 3039\n },\n \"RightBottom\": {\n \"X\": 1725,\n \"Y\": 3101\n },\n \"RightTop\": {\n \"X\": 1725,\n \"Y\": 3039\n }\n },\n \"GroupType\": \"multiple-choice\",\n \"Index\": 18,\n \"ResultList\": null,\n \"Text\": \"\"\n }\n ],\n \"Parse\": [],\n \"Question\": [\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 123,\n \"Y\": 1682\n },\n \"LeftTop\": {\n \"X\": 123,\n \"Y\": 1615\n },\n \"RightBottom\": {\n \"X\": 1649,\n \"Y\": 1682\n },\n \"RightTop\": {\n \"X\": 1649,\n \"Y\": 1615\n }\n },\n \"GroupType\": \"problem-solving\",\n \"Index\": 7,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 123,\n \"Y\": 2300\n },\n \"LeftTop\": {\n \"X\": 123,\n \"Y\": 1694\n },\n \"RightBottom\": {\n \"X\": 1948,\n \"Y\": 2300\n },\n \"RightTop\": {\n \"X\": 1948,\n \"Y\": 1694\n }\n },\n \"GroupType\": \"problem-solving\",\n \"Index\": 8,\n \"ResultList\": null,\n \"Text\": \"\"\n },\n {\n \"Coord\": {\n \"LeftBottom\": {\n \"X\": 111,\n \"Y\": 3284\n },\n \"LeftTop\": {\n \"X\": 111,\n \"Y\": 2500\n },\n \"RightBottom\": {\n \"X\": 2026,\n \"Y\": 3284\n },\n \"RightTop\": {\n \"X\": 2026,\n \"Y\": 2500\n }\n },\n \"GroupType\": \"problem-solving\",\n \"Index\": 14,\n \"ResultList\": null,\n \"Text\": \"\"\n }\n ],\n \"Table\": []\n }\n ],\n \"Width\": 2188\n }\n ],\n \"RequestId\": \"7a534f1d-2bb1-4e87-b79a-f8d37d6ab265\"\n }\n}",
464
+ "title": "试卷切题"
465
+ }
466
+ ],
459
467
  "QuestionSplitOCR": [
460
468
  {
461
469
  "document": "",
@@ -11205,6 +11205,16 @@
11205
11205
  "SetExternalSAMLIdentityProviderResponse": {
11206
11206
  "document": "SetExternalSAMLIdentityProvider返回参数结构体",
11207
11207
  "members": [
11208
+ {
11209
+ "disabled": false,
11210
+ "document": "证书ID。",
11211
+ "example": "[\"idp-c-d73bss92ns\"]",
11212
+ "member": "string",
11213
+ "name": "CertificateIds",
11214
+ "output_required": false,
11215
+ "type": "list",
11216
+ "value_allowed_null": false
11217
+ },
11208
11218
  {
11209
11219
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11210
11220
  "member": "string",