tccli 3.0.1268.1__py2.py3-none-any.whl → 3.0.1269.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 +5 -1
- tccli/services/aiart/aiart_client.py +106 -0
- tccli/services/aiart/v20221229/api.json +275 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/billing/billing_client.py +4 -163
- tccli/services/billing/v20180709/api.json +0 -489
- tccli/services/billing/v20180709/examples.json +0 -24
- tccli/services/cat/v20180409/api.json +3 -1
- tccli/services/cbs/v20170312/api.json +9 -0
- tccli/services/ccc/v20200210/api.json +11 -11
- tccli/services/ccc/v20200210/examples.json +2 -2
- tccli/services/cdb/v20170320/api.json +48 -18
- tccli/services/cfw/v20190904/api.json +30 -30
- tccli/services/ckafka/v20190819/api.json +10 -0
- tccli/services/csip/v20221121/api.json +38 -38
- tccli/services/cwp/cwp_client.py +4 -57
- tccli/services/cwp/v20180228/api.json +0 -184
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +1 -1
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dcdb/dcdb_client.py +122 -16
- tccli/services/dcdb/v20180411/api.json +222 -0
- tccli/services/dcdb/v20180411/examples.json +16 -0
- tccli/services/dlc/v20210125/api.json +145 -26
- tccli/services/dlc/v20210125/examples.json +18 -18
- tccli/services/domain/v20180808/api.json +8 -8
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/es/v20180416/api.json +9 -9
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +5 -5
- tccli/services/faceid/v20180301/examples.json +6 -0
- tccli/services/gme/v20180711/api.json +118 -115
- tccli/services/gme/v20180711/examples.json +6 -6
- tccli/services/hunyuan/v20230901/api.json +9 -0
- tccli/services/iotexplorer/v20190423/api.json +4 -4
- tccli/services/iotexplorer/v20190423/examples.json +5 -5
- tccli/services/keewidb/v20220308/api.json +2 -2
- tccli/services/lcic/v20220817/api.json +177 -177
- tccli/services/lcic/v20220817/examples.json +2 -2
- tccli/services/lighthouse/v20200324/api.json +76 -67
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +31 -0
- tccli/services/lkeap/v20240522/api.json +55 -9
- tccli/services/lkeap/v20240522/examples.json +1 -1
- tccli/services/mna/mna_client.py +106 -0
- tccli/services/mna/v20210119/api.json +246 -0
- tccli/services/mna/v20210119/examples.json +16 -0
- tccli/services/monitor/monitor_client.py +62 -57
- tccli/services/monitor/v20230616/api.json +266 -0
- tccli/services/monitor/v20230616/examples.json +19 -0
- tccli/services/mqtt/mqtt_client.py +489 -12
- tccli/services/mqtt/v20240516/api.json +864 -3
- tccli/services/mqtt/v20240516/examples.json +72 -0
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +246 -1
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/postgres/postgres_client.py +334 -16
- tccli/services/postgres/v20170312/api.json +717 -34
- tccli/services/postgres/v20170312/examples.json +72 -0
- tccli/services/ssl/v20191205/api.json +496 -493
- tccli/services/ssl/v20191205/examples.json +144 -24
- tccli/services/taf/taf_client.py +0 -159
- tccli/services/taf/v20200210/api.json +0 -665
- tccli/services/taf/v20200210/examples.json +0 -24
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/tione/v20211111/api.json +14 -3
- tccli/services/trabbit/__init__.py +4 -0
- tccli/services/trabbit/trabbit_client.py +1691 -0
- tccli/services/trabbit/v20230418/api.json +4773 -0
- tccli/services/trabbit/v20230418/examples.json +237 -0
- tccli/services/trtc/v20190722/api.json +8 -8
- tccli/services/trtc/v20190722/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +0 -450
- tccli/services/vclm/v20240523/examples.json +0 -48
- tccli/services/vclm/vclm_client.py +0 -159
- tccli/services/wedata/v20210820/api.json +211 -33
- tccli/services/wedata/v20210820/examples.json +14 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/RECORD +87 -81
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"ActivateCaCertificate": [
|
4
|
+
{
|
5
|
+
"document": "示例",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActivateCaCertificate\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-g4r4x85z\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\"\n}",
|
7
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"ab925a7a-bac9-4a6c-bf81-af13f9f9db48\"\n }\n}",
|
8
|
+
"title": "示例"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"ActivateDeviceCertificate": [
|
4
12
|
{
|
5
13
|
"document": "示例",
|
@@ -8,6 +16,14 @@
|
|
8
16
|
"title": "示例"
|
9
17
|
}
|
10
18
|
],
|
19
|
+
"ApplyRegistrationCode": [
|
20
|
+
{
|
21
|
+
"document": "示例",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ApplyRegistrationCode\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-jeredv33\"\n}",
|
23
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"InstanceId\": \"mqtt-jeredv33\",\n \"RegistrationCode\": \"bb180052-7df5-4ff3-bda9-9b12fed8bf39\",\n \"RequestId\": \"8251a13b-b8a0-4134-bc43-5b3ab4253f92\"\n }\n}",
|
24
|
+
"title": "示例"
|
25
|
+
}
|
26
|
+
],
|
11
27
|
"CreateAuthorizationPolicy": [
|
12
28
|
{
|
13
29
|
"document": "示例",
|
@@ -64,6 +80,14 @@
|
|
64
80
|
"title": "示例"
|
65
81
|
}
|
66
82
|
],
|
83
|
+
"DeactivateCaCertificate": [
|
84
|
+
{
|
85
|
+
"document": "示例",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeactivateCaCertificate\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-g4r4x85z\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\"\n}",
|
87
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"7ec2bb28-db0c-47a8-99dd-589732de4f58\"\n }\n}",
|
88
|
+
"title": "示例"
|
89
|
+
}
|
90
|
+
],
|
67
91
|
"DeactivateDeviceCertificate": [
|
68
92
|
{
|
69
93
|
"document": "示例",
|
@@ -88,6 +112,14 @@
|
|
88
112
|
"title": "示例"
|
89
113
|
}
|
90
114
|
],
|
115
|
+
"DeleteCaCertificate": [
|
116
|
+
{
|
117
|
+
"document": "示例",
|
118
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCaCertificate\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-g4r4x85z\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\"\n}",
|
119
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"c180b739-df35-41a7-b7d0-796c8b4e9c55\"\n }\n}",
|
120
|
+
"title": "示例"
|
121
|
+
}
|
122
|
+
],
|
91
123
|
"DeleteDeviceCertificate": [
|
92
124
|
{
|
93
125
|
"document": "示例",
|
@@ -150,6 +182,22 @@
|
|
150
182
|
"title": "示例"
|
151
183
|
}
|
152
184
|
],
|
185
|
+
"DescribeCaCertificate": [
|
186
|
+
{
|
187
|
+
"document": "示例",
|
188
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCaCertificate\n<公共请求参数>\n\n{\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\",\n \"InstanceId\": \"mqtt-jbgwp4ae\"\n}",
|
189
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"CaCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIIEvDCCA6SgAwIBAgIUGx4783AhEBJYh6OnIafmbwVSJRMwDQYJKoZIhvcNAQEL\\nBQAwgZIxCzAJBgNVBAYTAmNuMQ0wCwYDVQQIDAR4aWFuMQ0wCwYDVQQHDARodXlp\\nMREwDwYDVQQKDAhqZWhhbnN1bjEWMBQGA1UECwwNdW5pdCBqZWhhbnN1bjEVMBMG\\nA1UEAwwMc3Vuamlhbnhpb25nMSMwIQYJKoZIhvc1UEBwwEaHV5aTERMA8GA1UECgwI\\namVoYW5zdW4xFjAUBgNVB\\n-----END CERTIFICATE-----\\n\",\n \"CaCn\": \"sn\",\n \"CaIssuerCn\": \"cn\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\",\n \"CreatedTime\": 1724050364000,\n \"Format\": \"PEM\",\n \"LastActivationTime\": 1724050364340,\n \"LastInactivationTime\": 0,\n \"NotAfterTime\": 2030344601000,\n \"NotBeforeTime\": 1724052316000,\n \"RequestId\": \"7cb5d884-35a0-4f35-9cca-24c7d748a034\",\n \"Status\": \"ACTIVE\",\n \"UpdateTime\": 1724050364000\n }\n}",
|
190
|
+
"title": "示例"
|
191
|
+
}
|
192
|
+
],
|
193
|
+
"DescribeCaCertificates": [
|
194
|
+
{
|
195
|
+
"document": "示例",
|
196
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCaCertificates\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-mmgej724\"\n}",
|
197
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"Data\": [\n {\n \"CaCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIIEvDCCA6SgAwIBAgIUGx4783AhEBJYh6OnIafmbwVSJRMwDQYJKoZIhvcNAQEL\\n-----END CERTIFICATE-----\",\n \"CaCn\": \"cn\",\n \"CaSn\": \"1b1e3bf3702110125887a3a721a7e66f05522513\",\n \"CreatedTime\": 1719992244000,\n \"Format\": \"PEM\",\n \"Status\": \"ACTIVE\",\n \"UpdateTime\": 1719992244000,\n \"LastInactivationTime\": 1719992244000,\n \"LastActivationTime\": 1719992244000,\n \"VerificationCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIID7TCCAtWgAwIBAgIUDu9opYK5QlQpblTOdU+U1welmRIwDQYJKoZIhvcNAQEL\\n-----END CERTIFICATE-----\"\n }\n ],\n \"RequestId\": \"d03f799b-1244-45d7-9e03-0ceaf8f63fed\"\n }\n}",
|
198
|
+
"title": "示例"
|
199
|
+
}
|
200
|
+
],
|
153
201
|
"DescribeDeviceCertificate": [
|
154
202
|
{
|
155
203
|
"document": "示例",
|
@@ -190,6 +238,14 @@
|
|
190
238
|
"title": "示例"
|
191
239
|
}
|
192
240
|
],
|
241
|
+
"DescribeProductSKUList": [
|
242
|
+
{
|
243
|
+
"document": "示例",
|
244
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProductSKUList\n<公共请求参数>\n\n{}",
|
245
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"MQTTProductSkuList\": [\n {\n \"ClientNumLimit\": 1,\n \"InstanceType\": \"BASIC\",\n \"OnSale\": true,\n \"SkuCode\": \"mqtt_1k\",\n \"TopicNumLimit\": 1,\n \"TpsLimit\": 1\n },\n {\n \"ClientNumLimit\": 1000,\n \"InstanceType\": \"BASIC\",\n \"OnSale\": true,\n \"SkuCode\": \"basic_1k\",\n \"TopicNumLimit\": 25,\n \"TpsLimit\": 1000\n }\n ],\n \"RequestId\": \"2be05982-b125-4259-b965-c487949cd896\",\n \"TotalCount\": 2\n }\n}",
|
246
|
+
"title": "示例"
|
247
|
+
}
|
248
|
+
],
|
193
249
|
"DescribeTopic": [
|
194
250
|
{
|
195
251
|
"document": "示例",
|
@@ -238,6 +294,14 @@
|
|
238
294
|
"title": "示例"
|
239
295
|
}
|
240
296
|
],
|
297
|
+
"ModifyInstanceCertBinding": [
|
298
|
+
{
|
299
|
+
"document": "示例",
|
300
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceCertBinding\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-jeredv33\",\n \"SSLServerCertId\": \"\",\n \"SSLCaCertId\": \"\",\n \"X509Mode\": \"TLS\"\n}",
|
301
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"91843178-a4a3-4ced-b5d9-f679962393c4\"\n }\n}",
|
302
|
+
"title": "示例"
|
303
|
+
}
|
304
|
+
],
|
241
305
|
"ModifyJWKSAuthenticator": [
|
242
306
|
{
|
243
307
|
"document": "示例",
|
@@ -270,6 +334,14 @@
|
|
270
334
|
"title": "示例"
|
271
335
|
}
|
272
336
|
],
|
337
|
+
"RegisterCaCertificate": [
|
338
|
+
{
|
339
|
+
"document": "示例",
|
340
|
+
"input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RegisterCaCertificate\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-g4r4x85z\",\n \"CaCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIIEvDCCA6SgAwIBAgIUGx4783AhEBJYh6OnIafmbwVSJRMwDQYJKoZIhvcNAQEL\\n-----END CERTIFICATE-----\",\n \"VerificationCertificate\": \"-----BEGIN CERTIFICATE-----\\nMIID7TCCAtWgAwIBAgIUDu9opYK5QlQpblTOdU+U1welmRIwDQYJKoZIhvcNAQEL\\n-----END CERTIFICATE-----\"\n}",
|
341
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"RequestId\": \"2773beef-8527-4cc1-9e84-f15d56eaa7d9\"\n }\n}",
|
342
|
+
"title": "示例"
|
343
|
+
}
|
344
|
+
],
|
273
345
|
"RegisterDeviceCertificate": [
|
274
346
|
{
|
275
347
|
"document": "示例",
|
tccli/services/ocr/ocr_client.py
CHANGED
@@ -1629,6 +1629,58 @@ def doGetTaskState(args, parsed_globals):
|
|
1629
1629
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
1630
|
|
1631
1631
|
|
1632
|
+
def doRecognizeGeneralCardWarn(args, parsed_globals):
|
1633
|
+
g_param = parse_global_arg(parsed_globals)
|
1634
|
+
|
1635
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1636
|
+
cred = credential.CVMRoleCredential()
|
1637
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1638
|
+
cred = credential.STSAssumeRoleCredential(
|
1639
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1640
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1641
|
+
)
|
1642
|
+
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):
|
1643
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1644
|
+
else:
|
1645
|
+
cred = credential.Credential(
|
1646
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1647
|
+
)
|
1648
|
+
http_profile = HttpProfile(
|
1649
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1650
|
+
reqMethod="POST",
|
1651
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1652
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1653
|
+
)
|
1654
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1655
|
+
if g_param[OptionsDefine.Language]:
|
1656
|
+
profile.language = g_param[OptionsDefine.Language]
|
1657
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1658
|
+
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
1659
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1660
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1661
|
+
model = models.RecognizeGeneralCardWarnRequest()
|
1662
|
+
model.from_json_string(json.dumps(args))
|
1663
|
+
start_time = time.time()
|
1664
|
+
while True:
|
1665
|
+
rsp = client.RecognizeGeneralCardWarn(model)
|
1666
|
+
result = rsp.to_json_string()
|
1667
|
+
try:
|
1668
|
+
json_obj = json.loads(result)
|
1669
|
+
except TypeError as e:
|
1670
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1671
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1672
|
+
break
|
1673
|
+
cur_time = time.time()
|
1674
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1675
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1676
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1677
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1678
|
+
else:
|
1679
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1680
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1681
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
|
+
|
1683
|
+
|
1632
1684
|
def doFlightInvoiceOCR(args, parsed_globals):
|
1633
1685
|
g_param = parse_global_arg(parsed_globals)
|
1634
1686
|
|
@@ -4635,6 +4687,7 @@ ACTION_MAP = {
|
|
4635
4687
|
"VehicleLicenseOCR": doVehicleLicenseOCR,
|
4636
4688
|
"BizLicenseOCR": doBizLicenseOCR,
|
4637
4689
|
"GetTaskState": doGetTaskState,
|
4690
|
+
"RecognizeGeneralCardWarn": doRecognizeGeneralCardWarn,
|
4638
4691
|
"FlightInvoiceOCR": doFlightInvoiceOCR,
|
4639
4692
|
"RecognizeThaiIDCardOCR": doRecognizeThaiIDCardOCR,
|
4640
4693
|
"TableOCR": doTableOCR,
|
@@ -378,6 +378,13 @@
|
|
378
378
|
"output": "RecognizeFormulaOCRResponse",
|
379
379
|
"status": "online"
|
380
380
|
},
|
381
|
+
"RecognizeGeneralCardWarn": {
|
382
|
+
"document": "支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。",
|
383
|
+
"input": "RecognizeGeneralCardWarnRequest",
|
384
|
+
"name": "通用卡证鉴伪",
|
385
|
+
"output": "RecognizeGeneralCardWarnResponse",
|
386
|
+
"status": "online"
|
387
|
+
},
|
381
388
|
"RecognizeGeneralInvoice": {
|
382
389
|
"document": "本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。\n\n默认接口请求频率限制:5次/秒。\n\n\n支持返回的细项目子票种SubType、子票种中文TypeDescription、以及对应所属大类票种Type 的说明如下列表:\n<table style=\"width:715px\">\n <thead>\n <tr>\n <th style=\"width:200px\">SubType 子票种英文</th>\n <th style=\"width:200px\">TypeDescription子票种中文</th>\n <th >Type 所属大类票种</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td> VatSpecialInvoice</td>\n <td> 增值税专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatCommonInvoice</td>\n <td> 增值税普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicCommonInvoice </td>\n <td> 增值税电子普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoice </td>\n <td> 增值税电子专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceBlockchain</td>\n <td> 区块链电子发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceToll</td>\n <td> 增值税电子普通发票(通行费)</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatSalesList</td>\n <td> 增值税销货清单</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoiceFull</td>\n <td> 电子发票(专用发票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceFull</td>\n <td> 电子发票(普通发票) </td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicFlightTicketFull</td>\n <td> 电子发票(机票行程单)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicTrainTicketFull</td>\n <td> 电子发票(铁路电子客票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> MotorVehicleSaleInvoice </td>\n <td> 机动车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> UsedCarPurchaseInvoice </td>\n <td> 二手车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> VatInvoiceRoll </td>\n <td> 增值税普通发票(卷票) </td>\n <td> 11 </td>\n </tr>\n <tr>\n <td> TaxiTicket </td>\n <td> 出租车发票 </td>\n <td> 0 </td>\n </tr>\n <tr>\n <td> QuotaInvoice </td>\n <td> 定额发票 </td>\n <td> 1 </td>\n </tr>\n <tr>\n <td> TrainTicket </td>\n <td> 火车票 </td>\n <td> 2 </td>\n </tr>\n <tr>\n <td> AirTransport </td>\n <td> 机票行程单 </td>\n <td> 5 </td>\n </tr>\n <tr>\n <td> MachinePrintedInvoice </td>\n <td> 通用机打发票 </td>\n <td> 8 </td>\n </tr>\n <tr>\n <td> BusInvoice </td>\n <td> 汽车票 </td>\n <td> 9 </td>\n </tr>\n <tr>\n <td> ShippingInvoice </td>\n <td> 轮船票 </td>\n <td> 10 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeGeneralBill </td>\n <td> 非税收入通用票据 </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeElectronicBill </td>\n <td> 非税收入一般缴款书(电子) </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> TollInvoice </td>\n <td> 过路过桥费发票 </td>\n <td> 13 </td>\n </tr>\n <tr>\n <td> MedicalOutpatientInvoice </td>\n <td> 医疗门诊收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> MedicalHospitalizedInvoice </td>\n <td> 医疗住院收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> OtherInvoice </td>\n <td> 其他发票 </td>\n <td> -1 </td>\n </tr>\n </tbody>\n </table>",
|
383
390
|
"input": "RecognizeGeneralInvoiceRequest",
|
@@ -1187,7 +1194,7 @@
|
|
1187
1194
|
},
|
1188
1195
|
{
|
1189
1196
|
"disabled": false,
|
1190
|
-
"document": "
|
1197
|
+
"document": "有效截止日期",
|
1191
1198
|
"example": "无",
|
1192
1199
|
"member": "string",
|
1193
1200
|
"name": "DateEnd",
|
@@ -5921,6 +5928,26 @@
|
|
5921
5928
|
"output_required": true,
|
5922
5929
|
"type": "string",
|
5923
5930
|
"value_allowed_null": false
|
5931
|
+
},
|
5932
|
+
{
|
5933
|
+
"disabled": false,
|
5934
|
+
"document": "客票生效日期",
|
5935
|
+
"example": "无",
|
5936
|
+
"member": "string",
|
5937
|
+
"name": "DateStart",
|
5938
|
+
"output_required": true,
|
5939
|
+
"type": "string",
|
5940
|
+
"value_allowed_null": false
|
5941
|
+
},
|
5942
|
+
{
|
5943
|
+
"disabled": false,
|
5944
|
+
"document": "有效截止日期",
|
5945
|
+
"example": "无",
|
5946
|
+
"member": "string",
|
5947
|
+
"name": "DateEnd",
|
5948
|
+
"output_required": true,
|
5949
|
+
"type": "string",
|
5950
|
+
"value_allowed_null": false
|
5924
5951
|
}
|
5925
5952
|
],
|
5926
5953
|
"usage": "out"
|
@@ -6223,6 +6250,42 @@
|
|
6223
6250
|
],
|
6224
6251
|
"type": "object"
|
6225
6252
|
},
|
6253
|
+
"GeneralCardWarnInfo": {
|
6254
|
+
"document": "通用卡证鉴伪告警信息",
|
6255
|
+
"members": [
|
6256
|
+
{
|
6257
|
+
"disabled": false,
|
6258
|
+
"document": "是否存在该告警",
|
6259
|
+
"example": "false",
|
6260
|
+
"member": "bool",
|
6261
|
+
"name": "IsWarn",
|
6262
|
+
"output_required": true,
|
6263
|
+
"type": "bool",
|
6264
|
+
"value_allowed_null": false
|
6265
|
+
},
|
6266
|
+
{
|
6267
|
+
"disabled": false,
|
6268
|
+
"document": "风险程度",
|
6269
|
+
"example": "0.5",
|
6270
|
+
"member": "float",
|
6271
|
+
"name": "RiskConfidence",
|
6272
|
+
"output_required": true,
|
6273
|
+
"type": "float",
|
6274
|
+
"value_allowed_null": false
|
6275
|
+
},
|
6276
|
+
{
|
6277
|
+
"disabled": false,
|
6278
|
+
"document": "告警位置四点坐标",
|
6279
|
+
"example": "无",
|
6280
|
+
"member": "Polygon",
|
6281
|
+
"name": "Polygon",
|
6282
|
+
"output_required": true,
|
6283
|
+
"type": "list",
|
6284
|
+
"value_allowed_null": false
|
6285
|
+
}
|
6286
|
+
],
|
6287
|
+
"usage": "out"
|
6288
|
+
},
|
6226
6289
|
"GeneralEfficientOCRRequest": {
|
6227
6290
|
"document": "GeneralEfficientOCR请求参数结构体",
|
6228
6291
|
"members": [
|
@@ -12180,6 +12243,15 @@
|
|
12180
12243
|
"name": "EnableImageCrop",
|
12181
12244
|
"required": false,
|
12182
12245
|
"type": "bool"
|
12246
|
+
},
|
12247
|
+
{
|
12248
|
+
"disabled": false,
|
12249
|
+
"document": "是否只返回检测框,默认false",
|
12250
|
+
"example": "false",
|
12251
|
+
"member": "bool",
|
12252
|
+
"name": "EnableOnlyDetectBorder",
|
12253
|
+
"required": false,
|
12254
|
+
"type": "bool"
|
12183
12255
|
}
|
12184
12256
|
],
|
12185
12257
|
"type": "object"
|
@@ -13295,6 +13367,139 @@
|
|
13295
13367
|
],
|
13296
13368
|
"type": "object"
|
13297
13369
|
},
|
13370
|
+
"RecognizeGeneralCardWarnRequest": {
|
13371
|
+
"document": "RecognizeGeneralCardWarn请求参数结构体",
|
13372
|
+
"members": [
|
13373
|
+
{
|
13374
|
+
"disabled": false,
|
13375
|
+
"document": "图片链接",
|
13376
|
+
"example": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/card/IDCardOCR/IDCardOCR1.jpg",
|
13377
|
+
"member": "string",
|
13378
|
+
"name": "ImageUrl",
|
13379
|
+
"required": false,
|
13380
|
+
"type": "string"
|
13381
|
+
},
|
13382
|
+
{
|
13383
|
+
"disabled": false,
|
13384
|
+
"document": "图片base64",
|
13385
|
+
"example": "/9j/4AAQSkZJRg.....s97n//2Q==\t",
|
13386
|
+
"member": "string",
|
13387
|
+
"name": "ImageBase64",
|
13388
|
+
"required": false,
|
13389
|
+
"type": "string"
|
13390
|
+
},
|
13391
|
+
{
|
13392
|
+
"disabled": false,
|
13393
|
+
"document": "卡证类型参数,包含以下范围: \nGeneral:通用卡证\nIDCard:身份证 \nPassport:护照 \nBankCard:银行卡\nVehicleLicense:行驶证\nDriverLicense:驾驶证\nBizLicense:营业执照 \nHmtResidentPermit:港澳台居住证\nForeignPermanentResident:外国人永居证\nMainlandPermit:港澳台来往内地通行证",
|
13394
|
+
"example": "General",
|
13395
|
+
"member": "string",
|
13396
|
+
"name": "CardType",
|
13397
|
+
"required": false,
|
13398
|
+
"type": "string"
|
13399
|
+
},
|
13400
|
+
{
|
13401
|
+
"disabled": false,
|
13402
|
+
"document": "是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。",
|
13403
|
+
"example": "false",
|
13404
|
+
"member": "bool",
|
13405
|
+
"name": "IsPdf",
|
13406
|
+
"required": false,
|
13407
|
+
"type": "bool"
|
13408
|
+
},
|
13409
|
+
{
|
13410
|
+
"disabled": false,
|
13411
|
+
"document": "需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。",
|
13412
|
+
"example": "1",
|
13413
|
+
"member": "uint64",
|
13414
|
+
"name": "PdfPageNumber",
|
13415
|
+
"required": false,
|
13416
|
+
"type": "int"
|
13417
|
+
}
|
13418
|
+
],
|
13419
|
+
"type": "object"
|
13420
|
+
},
|
13421
|
+
"RecognizeGeneralCardWarnResponse": {
|
13422
|
+
"document": "RecognizeGeneralCardWarn返回参数结构体",
|
13423
|
+
"members": [
|
13424
|
+
{
|
13425
|
+
"disabled": false,
|
13426
|
+
"document": "卡证类型参数,包含以下范围: \nGeneral:通用卡证\nIDCard:身份证 \nPassport:护照 \nBankCard:银行卡\nVehicleLicense:行驶证\nDriverLicense:驾驶证\nBizLicense:营业执照 \nHmtResidentPermit:港澳台居住证\nForeignPermanentResident:外国人永居证\nMainlandPermit:港澳台来往内地通行证",
|
13427
|
+
"example": "无",
|
13428
|
+
"member": "string",
|
13429
|
+
"name": "CardType",
|
13430
|
+
"output_required": false,
|
13431
|
+
"type": "string",
|
13432
|
+
"value_allowed_null": false
|
13433
|
+
},
|
13434
|
+
{
|
13435
|
+
"disabled": false,
|
13436
|
+
"document": "模糊信息",
|
13437
|
+
"example": "无",
|
13438
|
+
"member": "GeneralCardWarnInfo",
|
13439
|
+
"name": "Blur",
|
13440
|
+
"output_required": false,
|
13441
|
+
"type": "object",
|
13442
|
+
"value_allowed_null": false
|
13443
|
+
},
|
13444
|
+
{
|
13445
|
+
"disabled": false,
|
13446
|
+
"document": "边框不完整信息",
|
13447
|
+
"example": "无",
|
13448
|
+
"member": "GeneralCardWarnInfo",
|
13449
|
+
"name": "BorderIncomplete",
|
13450
|
+
"output_required": false,
|
13451
|
+
"type": "object",
|
13452
|
+
"value_allowed_null": false
|
13453
|
+
},
|
13454
|
+
{
|
13455
|
+
"disabled": false,
|
13456
|
+
"document": "复印件信息",
|
13457
|
+
"example": "无",
|
13458
|
+
"member": "GeneralCardWarnInfo",
|
13459
|
+
"name": "Copy",
|
13460
|
+
"output_required": false,
|
13461
|
+
"type": "object",
|
13462
|
+
"value_allowed_null": false
|
13463
|
+
},
|
13464
|
+
{
|
13465
|
+
"disabled": false,
|
13466
|
+
"document": "ps篡改信息",
|
13467
|
+
"example": "无",
|
13468
|
+
"member": "GeneralCardWarnInfo",
|
13469
|
+
"name": "Ps",
|
13470
|
+
"output_required": false,
|
13471
|
+
"type": "object",
|
13472
|
+
"value_allowed_null": false
|
13473
|
+
},
|
13474
|
+
{
|
13475
|
+
"disabled": false,
|
13476
|
+
"document": "反光信息",
|
13477
|
+
"example": "无",
|
13478
|
+
"member": "GeneralCardWarnInfo",
|
13479
|
+
"name": "Reflection",
|
13480
|
+
"output_required": false,
|
13481
|
+
"type": "object",
|
13482
|
+
"value_allowed_null": false
|
13483
|
+
},
|
13484
|
+
{
|
13485
|
+
"disabled": false,
|
13486
|
+
"document": "翻拍件信息",
|
13487
|
+
"example": "无",
|
13488
|
+
"member": "GeneralCardWarnInfo",
|
13489
|
+
"name": "Reprint",
|
13490
|
+
"output_required": false,
|
13491
|
+
"type": "object",
|
13492
|
+
"value_allowed_null": false
|
13493
|
+
},
|
13494
|
+
{
|
13495
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
13496
|
+
"member": "string",
|
13497
|
+
"name": "RequestId",
|
13498
|
+
"type": "string"
|
13499
|
+
}
|
13500
|
+
],
|
13501
|
+
"type": "object"
|
13502
|
+
},
|
13298
13503
|
"RecognizeGeneralInvoiceRequest": {
|
13299
13504
|
"document": "RecognizeGeneralInvoice请求参数结构体",
|
13300
13505
|
"members": [
|
@@ -20294,6 +20499,46 @@
|
|
20294
20499
|
"output_required": true,
|
20295
20500
|
"type": "string",
|
20296
20501
|
"value_allowed_null": false
|
20502
|
+
},
|
20503
|
+
{
|
20504
|
+
"disabled": false,
|
20505
|
+
"document": "出行人,仅旅客运输服务发票返回",
|
20506
|
+
"example": "无",
|
20507
|
+
"member": "string",
|
20508
|
+
"name": "Traveler",
|
20509
|
+
"output_required": true,
|
20510
|
+
"type": "string",
|
20511
|
+
"value_allowed_null": false
|
20512
|
+
},
|
20513
|
+
{
|
20514
|
+
"disabled": false,
|
20515
|
+
"document": "有效身份证件号,仅旅客运输服务发票返回",
|
20516
|
+
"example": "无",
|
20517
|
+
"member": "string",
|
20518
|
+
"name": "TravelerID",
|
20519
|
+
"output_required": true,
|
20520
|
+
"type": "string",
|
20521
|
+
"value_allowed_null": false
|
20522
|
+
},
|
20523
|
+
{
|
20524
|
+
"disabled": false,
|
20525
|
+
"document": "出行日期,仅旅客运输服务发票返回",
|
20526
|
+
"example": "无",
|
20527
|
+
"member": "string",
|
20528
|
+
"name": "TravelDate",
|
20529
|
+
"output_required": true,
|
20530
|
+
"type": "string",
|
20531
|
+
"value_allowed_null": false
|
20532
|
+
},
|
20533
|
+
{
|
20534
|
+
"disabled": false,
|
20535
|
+
"document": "等级,仅旅客运输服务发票返回",
|
20536
|
+
"example": "无",
|
20537
|
+
"member": "string",
|
20538
|
+
"name": "TravelLevel",
|
20539
|
+
"output_required": true,
|
20540
|
+
"type": "string",
|
20541
|
+
"value_allowed_null": false
|
20297
20542
|
}
|
20298
20543
|
],
|
20299
20544
|
"usage": "out"
|
@@ -474,6 +474,14 @@
|
|
474
474
|
"title": "公式识别调用示例"
|
475
475
|
}
|
476
476
|
],
|
477
|
+
"RecognizeGeneralCardWarn": [
|
478
|
+
{
|
479
|
+
"document": "身份证",
|
480
|
+
"input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RecognizeGeneralCardWarn\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/card/IDCardOCR/IDCardOCR1.jpg\"\n}",
|
481
|
+
"output": "{\n \"Response\": {\n \"Blur\": {\n \"IsWarn\": false,\n \"Polygon\": [],\n \"RiskConfidence\": 0.01\n },\n \"BorderIncomplete\": {\n \"IsWarn\": false,\n \"Polygon\": [],\n \"RiskConfidence\": 0.01\n },\n \"CardType\": \"IDCard\",\n \"Copy\": {\n \"IsWarn\": false,\n \"Polygon\": [],\n \"RiskConfidence\": 0.01\n },\n \"Ps\": {\n \"IsWarn\": true,\n \"Polygon\": [\n {\n \"LeftBottom\": {\n \"X\": 477,\n \"Y\": 494\n },\n \"LeftTop\": {\n \"X\": 477,\n \"Y\": 257\n },\n \"RightBottom\": {\n \"X\": 662,\n \"Y\": 494\n },\n \"RightTop\": {\n \"X\": 662,\n \"Y\": 257\n }\n },\n {\n \"LeftBottom\": {\n \"X\": 309,\n \"Y\": 551\n },\n \"LeftTop\": {\n \"X\": 309,\n \"Y\": 527\n },\n \"RightBottom\": {\n \"X\": 617,\n \"Y\": 551\n },\n \"RightTop\": {\n \"X\": 617,\n \"Y\": 527\n }\n },\n {\n \"LeftBottom\": {\n \"X\": 210,\n \"Y\": 461\n },\n \"LeftTop\": {\n \"X\": 210,\n \"Y\": 403\n },\n \"RightBottom\": {\n \"X\": 417,\n \"Y\": 461\n },\n \"RightTop\": {\n \"X\": 417,\n \"Y\": 403\n }\n },\n {\n \"LeftBottom\": {\n \"X\": 218,\n \"Y\": 284\n },\n \"LeftTop\": {\n \"X\": 218,\n \"Y\": 256\n },\n \"RightBottom\": {\n \"X\": 284,\n \"Y\": 284\n },\n \"RightTop\": {\n \"X\": 284,\n \"Y\": 256\n }\n },\n {\n \"LeftBottom\": {\n \"X\": 216,\n \"Y\": 379\n },\n \"LeftTop\": {\n \"X\": 216,\n \"Y\": 358\n },\n \"RightBottom\": {\n \"X\": 268,\n \"Y\": 379\n },\n \"RightTop\": {\n \"X\": 268,\n \"Y\": 358\n }\n },\n {\n \"LeftBottom\": {\n \"X\": 309,\n \"Y\": 377\n },\n \"LeftTop\": {\n \"X\": 309,\n \"Y\": 356\n },\n \"RightBottom\": {\n \"X\": 326,\n \"Y\": 377\n },\n \"RightTop\": {\n \"X\": 326,\n \"Y\": 356\n }\n },\n {\n \"LeftBottom\": {\n \"X\": 361,\n \"Y\": 378\n },\n \"LeftTop\": {\n \"X\": 361,\n \"Y\": 356\n },\n \"RightBottom\": {\n \"X\": 386,\n \"Y\": 378\n },\n \"RightTop\": {\n \"X\": 386,\n \"Y\": 356\n }\n }\n ],\n \"RiskConfidence\": 0.9318133\n },\n \"Reflection\": {\n \"IsWarn\": false,\n \"Polygon\": [],\n \"RiskConfidence\": 0.01\n },\n \"Reprint\": {\n \"IsWarn\": false,\n \"Polygon\": [],\n \"RiskConfidence\": 0.01\n },\n \"RequestId\": \"b8b73be7-2d64-49c6-8cbc-3b1d2b5f3651\"\n }\n}",
|
482
|
+
"title": "通用卡证ps检测告警"
|
483
|
+
}
|
484
|
+
],
|
477
485
|
"RecognizeGeneralInvoice": [
|
478
486
|
{
|
479
487
|
"document": "通用票据识别(高级版)识别多张票据",
|