tencentcloud-sdk-python-ocr 3.1.115__py2.py3-none-any.whl → 3.1.122__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ocr/v20181119/models.py +55 -262
- tencentcloud/ocr/v20181119/ocr_client.py +0 -24
- tencentcloud/ocr/v20181119/ocr_client_async.py +0 -19
- {tencentcloud_sdk_python_ocr-3.1.115.dist-info → tencentcloud_sdk_python_ocr-3.1.122.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_ocr-3.1.122.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_ocr-3.1.115.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_ocr-3.1.115.dist-info → tencentcloud_sdk_python_ocr-3.1.122.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.1.115.dist-info → tencentcloud_sdk_python_ocr-3.1.122.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -15272,19 +15272,22 @@ class ItemInfo(AbstractModel):
|
|
|
15272
15272
|
|
|
15273
15273
|
def __init__(self):
|
|
15274
15274
|
r"""
|
|
15275
|
-
:param _Key: key
|
|
15275
|
+
:param _Key: <p>key信息组</p>
|
|
15276
15276
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15277
15277
|
:type Key: :class:`tencentcloud.ocr.v20181119.models.Key`
|
|
15278
|
-
:param _Value: Value
|
|
15278
|
+
:param _Value: <p>Value信息组</p>
|
|
15279
15279
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15280
15280
|
:type Value: :class:`tencentcloud.ocr.v20181119.models.Value`
|
|
15281
|
+
:param _AuditResult: <p>返回这个字段是否比对审核通过</p><p>默认值:false</p>
|
|
15282
|
+
:type AuditResult: bool
|
|
15281
15283
|
"""
|
|
15282
15284
|
self._Key = None
|
|
15283
15285
|
self._Value = None
|
|
15286
|
+
self._AuditResult = None
|
|
15284
15287
|
|
|
15285
15288
|
@property
|
|
15286
15289
|
def Key(self):
|
|
15287
|
-
r"""key
|
|
15290
|
+
r"""<p>key信息组</p>
|
|
15288
15291
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15289
15292
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.Key`
|
|
15290
15293
|
"""
|
|
@@ -15296,7 +15299,7 @@ class ItemInfo(AbstractModel):
|
|
|
15296
15299
|
|
|
15297
15300
|
@property
|
|
15298
15301
|
def Value(self):
|
|
15299
|
-
r"""Value
|
|
15302
|
+
r"""<p>Value信息组</p>
|
|
15300
15303
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15301
15304
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.Value`
|
|
15302
15305
|
"""
|
|
@@ -15306,6 +15309,17 @@ class ItemInfo(AbstractModel):
|
|
|
15306
15309
|
def Value(self, Value):
|
|
15307
15310
|
self._Value = Value
|
|
15308
15311
|
|
|
15312
|
+
@property
|
|
15313
|
+
def AuditResult(self):
|
|
15314
|
+
r"""<p>返回这个字段是否比对审核通过</p><p>默认值:false</p>
|
|
15315
|
+
:rtype: bool
|
|
15316
|
+
"""
|
|
15317
|
+
return self._AuditResult
|
|
15318
|
+
|
|
15319
|
+
@AuditResult.setter
|
|
15320
|
+
def AuditResult(self, AuditResult):
|
|
15321
|
+
self._AuditResult = AuditResult
|
|
15322
|
+
|
|
15309
15323
|
|
|
15310
15324
|
def _deserialize(self, params):
|
|
15311
15325
|
if params.get("Key") is not None:
|
|
@@ -15314,6 +15328,7 @@ class ItemInfo(AbstractModel):
|
|
|
15314
15328
|
if params.get("Value") is not None:
|
|
15315
15329
|
self._Value = Value()
|
|
15316
15330
|
self._Value._deserialize(params.get("Value"))
|
|
15331
|
+
self._AuditResult = params.get("AuditResult")
|
|
15317
15332
|
memeber_set = set(params.keys())
|
|
15318
15333
|
for name, value in vars(self).items():
|
|
15319
15334
|
property_name = name[1:]
|
|
@@ -15331,22 +15346,26 @@ class ItemNames(AbstractModel):
|
|
|
15331
15346
|
|
|
15332
15347
|
def __init__(self):
|
|
15333
15348
|
r"""
|
|
15334
|
-
:param _KeyName:
|
|
15349
|
+
:param _KeyName: <p>自定义抽取功能需返回的字段名称。</p>
|
|
15335
15350
|
:type KeyName: str
|
|
15336
|
-
:param _KeyType:
|
|
15337
|
-
|
|
15351
|
+
:param _KeyType: <p>默认 0;0表示kv对 1表示 表格字段。</p>
|
|
15338
15352
|
:type KeyType: int
|
|
15339
|
-
:param _KeyPrompt:
|
|
15340
|
-
|
|
15353
|
+
:param _KeyPrompt: <p>抽取字段的描述内容。</p>
|
|
15341
15354
|
:type KeyPrompt: str
|
|
15355
|
+
:param _KeyExpectedValue: <p>自定义字段对应期望的值内容(这个一般需要对字段审核比对才需要输入)。</p>
|
|
15356
|
+
:type KeyExpectedValue: str
|
|
15357
|
+
:param _KeyAuditPrompt: <p>自定义字段审核比对的规则prompt。</p><p>比如keyname是姓名,KeyExpectedValue 张三,KeyAuditPrompt设置为“字符需要完全匹配则审核返回正确”/“字符匹配90%就审核返回正确”</p>
|
|
15358
|
+
:type KeyAuditPrompt: str
|
|
15342
15359
|
"""
|
|
15343
15360
|
self._KeyName = None
|
|
15344
15361
|
self._KeyType = None
|
|
15345
15362
|
self._KeyPrompt = None
|
|
15363
|
+
self._KeyExpectedValue = None
|
|
15364
|
+
self._KeyAuditPrompt = None
|
|
15346
15365
|
|
|
15347
15366
|
@property
|
|
15348
15367
|
def KeyName(self):
|
|
15349
|
-
r"""
|
|
15368
|
+
r"""<p>自定义抽取功能需返回的字段名称。</p>
|
|
15350
15369
|
:rtype: str
|
|
15351
15370
|
"""
|
|
15352
15371
|
return self._KeyName
|
|
@@ -15357,8 +15376,7 @@ class ItemNames(AbstractModel):
|
|
|
15357
15376
|
|
|
15358
15377
|
@property
|
|
15359
15378
|
def KeyType(self):
|
|
15360
|
-
r"""
|
|
15361
|
-
|
|
15379
|
+
r"""<p>默认 0;0表示kv对 1表示 表格字段。</p>
|
|
15362
15380
|
:rtype: int
|
|
15363
15381
|
"""
|
|
15364
15382
|
return self._KeyType
|
|
@@ -15369,8 +15387,7 @@ class ItemNames(AbstractModel):
|
|
|
15369
15387
|
|
|
15370
15388
|
@property
|
|
15371
15389
|
def KeyPrompt(self):
|
|
15372
|
-
r"""
|
|
15373
|
-
|
|
15390
|
+
r"""<p>抽取字段的描述内容。</p>
|
|
15374
15391
|
:rtype: str
|
|
15375
15392
|
"""
|
|
15376
15393
|
return self._KeyPrompt
|
|
@@ -15379,11 +15396,35 @@ class ItemNames(AbstractModel):
|
|
|
15379
15396
|
def KeyPrompt(self, KeyPrompt):
|
|
15380
15397
|
self._KeyPrompt = KeyPrompt
|
|
15381
15398
|
|
|
15399
|
+
@property
|
|
15400
|
+
def KeyExpectedValue(self):
|
|
15401
|
+
r"""<p>自定义字段对应期望的值内容(这个一般需要对字段审核比对才需要输入)。</p>
|
|
15402
|
+
:rtype: str
|
|
15403
|
+
"""
|
|
15404
|
+
return self._KeyExpectedValue
|
|
15405
|
+
|
|
15406
|
+
@KeyExpectedValue.setter
|
|
15407
|
+
def KeyExpectedValue(self, KeyExpectedValue):
|
|
15408
|
+
self._KeyExpectedValue = KeyExpectedValue
|
|
15409
|
+
|
|
15410
|
+
@property
|
|
15411
|
+
def KeyAuditPrompt(self):
|
|
15412
|
+
r"""<p>自定义字段审核比对的规则prompt。</p><p>比如keyname是姓名,KeyExpectedValue 张三,KeyAuditPrompt设置为“字符需要完全匹配则审核返回正确”/“字符匹配90%就审核返回正确”</p>
|
|
15413
|
+
:rtype: str
|
|
15414
|
+
"""
|
|
15415
|
+
return self._KeyAuditPrompt
|
|
15416
|
+
|
|
15417
|
+
@KeyAuditPrompt.setter
|
|
15418
|
+
def KeyAuditPrompt(self, KeyAuditPrompt):
|
|
15419
|
+
self._KeyAuditPrompt = KeyAuditPrompt
|
|
15420
|
+
|
|
15382
15421
|
|
|
15383
15422
|
def _deserialize(self, params):
|
|
15384
15423
|
self._KeyName = params.get("KeyName")
|
|
15385
15424
|
self._KeyType = params.get("KeyType")
|
|
15386
15425
|
self._KeyPrompt = params.get("KeyPrompt")
|
|
15426
|
+
self._KeyExpectedValue = params.get("KeyExpectedValue")
|
|
15427
|
+
self._KeyAuditPrompt = params.get("KeyAuditPrompt")
|
|
15387
15428
|
memeber_set = set(params.keys())
|
|
15388
15429
|
for name, value in vars(self).items():
|
|
15389
15430
|
property_name = name[1:]
|
|
@@ -23612,254 +23653,6 @@ class RecognizeAgentResponse(AbstractModel):
|
|
|
23612
23653
|
self._RequestId = params.get("RequestId")
|
|
23613
23654
|
|
|
23614
23655
|
|
|
23615
|
-
class RecognizeContainerOCRRequest(AbstractModel):
|
|
23616
|
-
r"""RecognizeContainerOCR请求参数结构体
|
|
23617
|
-
|
|
23618
|
-
"""
|
|
23619
|
-
|
|
23620
|
-
def __init__(self):
|
|
23621
|
-
r"""
|
|
23622
|
-
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
23623
|
-
:type ImageBase64: str
|
|
23624
|
-
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
23625
|
-
:type ImageUrl: str
|
|
23626
|
-
"""
|
|
23627
|
-
self._ImageBase64 = None
|
|
23628
|
-
self._ImageUrl = None
|
|
23629
|
-
|
|
23630
|
-
@property
|
|
23631
|
-
def ImageBase64(self):
|
|
23632
|
-
r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
23633
|
-
:rtype: str
|
|
23634
|
-
"""
|
|
23635
|
-
return self._ImageBase64
|
|
23636
|
-
|
|
23637
|
-
@ImageBase64.setter
|
|
23638
|
-
def ImageBase64(self, ImageBase64):
|
|
23639
|
-
self._ImageBase64 = ImageBase64
|
|
23640
|
-
|
|
23641
|
-
@property
|
|
23642
|
-
def ImageUrl(self):
|
|
23643
|
-
r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
23644
|
-
:rtype: str
|
|
23645
|
-
"""
|
|
23646
|
-
return self._ImageUrl
|
|
23647
|
-
|
|
23648
|
-
@ImageUrl.setter
|
|
23649
|
-
def ImageUrl(self, ImageUrl):
|
|
23650
|
-
self._ImageUrl = ImageUrl
|
|
23651
|
-
|
|
23652
|
-
|
|
23653
|
-
def _deserialize(self, params):
|
|
23654
|
-
self._ImageBase64 = params.get("ImageBase64")
|
|
23655
|
-
self._ImageUrl = params.get("ImageUrl")
|
|
23656
|
-
memeber_set = set(params.keys())
|
|
23657
|
-
for name, value in vars(self).items():
|
|
23658
|
-
property_name = name[1:]
|
|
23659
|
-
if property_name in memeber_set:
|
|
23660
|
-
memeber_set.remove(property_name)
|
|
23661
|
-
if len(memeber_set) > 0:
|
|
23662
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23663
|
-
|
|
23664
|
-
|
|
23665
|
-
|
|
23666
|
-
class RecognizeContainerOCRResponse(AbstractModel):
|
|
23667
|
-
r"""RecognizeContainerOCR返回参数结构体
|
|
23668
|
-
|
|
23669
|
-
"""
|
|
23670
|
-
|
|
23671
|
-
def __init__(self):
|
|
23672
|
-
r"""
|
|
23673
|
-
:param _ContainerId: 集装箱箱号
|
|
23674
|
-
:type ContainerId: str
|
|
23675
|
-
:param _ContainerType: 集装箱类型
|
|
23676
|
-
:type ContainerType: str
|
|
23677
|
-
:param _GrossKG: 集装箱总重量,单位:千克(KG)
|
|
23678
|
-
:type GrossKG: str
|
|
23679
|
-
:param _GrossLB: 集装箱总重量,单位:磅(LB)
|
|
23680
|
-
:type GrossLB: str
|
|
23681
|
-
:param _PayloadKG: 集装箱有效承重,单位:千克(KG)
|
|
23682
|
-
:type PayloadKG: str
|
|
23683
|
-
:param _PayloadLB: 集装箱有效承重,单位:磅(LB)
|
|
23684
|
-
:type PayloadLB: str
|
|
23685
|
-
:param _CapacityM3: 集装箱容量,单位:立方米
|
|
23686
|
-
:type CapacityM3: str
|
|
23687
|
-
:param _CapacityFT3: 集装箱容量,单位:立英尺
|
|
23688
|
-
:type CapacityFT3: str
|
|
23689
|
-
:param _Warn: 告警码
|
|
23690
|
-
-9926 集装箱箱号不完整或者不清晰
|
|
23691
|
-
-9927 集装箱类型不完整或者不清晰
|
|
23692
|
-
:type Warn: list of int
|
|
23693
|
-
:param _TareKG: 集装箱自身重量,单位:千克(KG)
|
|
23694
|
-
:type TareKG: str
|
|
23695
|
-
:param _TareLB: 集装箱自身重量,单位:磅(LB)
|
|
23696
|
-
:type TareLB: str
|
|
23697
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23698
|
-
:type RequestId: str
|
|
23699
|
-
"""
|
|
23700
|
-
self._ContainerId = None
|
|
23701
|
-
self._ContainerType = None
|
|
23702
|
-
self._GrossKG = None
|
|
23703
|
-
self._GrossLB = None
|
|
23704
|
-
self._PayloadKG = None
|
|
23705
|
-
self._PayloadLB = None
|
|
23706
|
-
self._CapacityM3 = None
|
|
23707
|
-
self._CapacityFT3 = None
|
|
23708
|
-
self._Warn = None
|
|
23709
|
-
self._TareKG = None
|
|
23710
|
-
self._TareLB = None
|
|
23711
|
-
self._RequestId = None
|
|
23712
|
-
|
|
23713
|
-
@property
|
|
23714
|
-
def ContainerId(self):
|
|
23715
|
-
r"""集装箱箱号
|
|
23716
|
-
:rtype: str
|
|
23717
|
-
"""
|
|
23718
|
-
return self._ContainerId
|
|
23719
|
-
|
|
23720
|
-
@ContainerId.setter
|
|
23721
|
-
def ContainerId(self, ContainerId):
|
|
23722
|
-
self._ContainerId = ContainerId
|
|
23723
|
-
|
|
23724
|
-
@property
|
|
23725
|
-
def ContainerType(self):
|
|
23726
|
-
r"""集装箱类型
|
|
23727
|
-
:rtype: str
|
|
23728
|
-
"""
|
|
23729
|
-
return self._ContainerType
|
|
23730
|
-
|
|
23731
|
-
@ContainerType.setter
|
|
23732
|
-
def ContainerType(self, ContainerType):
|
|
23733
|
-
self._ContainerType = ContainerType
|
|
23734
|
-
|
|
23735
|
-
@property
|
|
23736
|
-
def GrossKG(self):
|
|
23737
|
-
r"""集装箱总重量,单位:千克(KG)
|
|
23738
|
-
:rtype: str
|
|
23739
|
-
"""
|
|
23740
|
-
return self._GrossKG
|
|
23741
|
-
|
|
23742
|
-
@GrossKG.setter
|
|
23743
|
-
def GrossKG(self, GrossKG):
|
|
23744
|
-
self._GrossKG = GrossKG
|
|
23745
|
-
|
|
23746
|
-
@property
|
|
23747
|
-
def GrossLB(self):
|
|
23748
|
-
r"""集装箱总重量,单位:磅(LB)
|
|
23749
|
-
:rtype: str
|
|
23750
|
-
"""
|
|
23751
|
-
return self._GrossLB
|
|
23752
|
-
|
|
23753
|
-
@GrossLB.setter
|
|
23754
|
-
def GrossLB(self, GrossLB):
|
|
23755
|
-
self._GrossLB = GrossLB
|
|
23756
|
-
|
|
23757
|
-
@property
|
|
23758
|
-
def PayloadKG(self):
|
|
23759
|
-
r"""集装箱有效承重,单位:千克(KG)
|
|
23760
|
-
:rtype: str
|
|
23761
|
-
"""
|
|
23762
|
-
return self._PayloadKG
|
|
23763
|
-
|
|
23764
|
-
@PayloadKG.setter
|
|
23765
|
-
def PayloadKG(self, PayloadKG):
|
|
23766
|
-
self._PayloadKG = PayloadKG
|
|
23767
|
-
|
|
23768
|
-
@property
|
|
23769
|
-
def PayloadLB(self):
|
|
23770
|
-
r"""集装箱有效承重,单位:磅(LB)
|
|
23771
|
-
:rtype: str
|
|
23772
|
-
"""
|
|
23773
|
-
return self._PayloadLB
|
|
23774
|
-
|
|
23775
|
-
@PayloadLB.setter
|
|
23776
|
-
def PayloadLB(self, PayloadLB):
|
|
23777
|
-
self._PayloadLB = PayloadLB
|
|
23778
|
-
|
|
23779
|
-
@property
|
|
23780
|
-
def CapacityM3(self):
|
|
23781
|
-
r"""集装箱容量,单位:立方米
|
|
23782
|
-
:rtype: str
|
|
23783
|
-
"""
|
|
23784
|
-
return self._CapacityM3
|
|
23785
|
-
|
|
23786
|
-
@CapacityM3.setter
|
|
23787
|
-
def CapacityM3(self, CapacityM3):
|
|
23788
|
-
self._CapacityM3 = CapacityM3
|
|
23789
|
-
|
|
23790
|
-
@property
|
|
23791
|
-
def CapacityFT3(self):
|
|
23792
|
-
r"""集装箱容量,单位:立英尺
|
|
23793
|
-
:rtype: str
|
|
23794
|
-
"""
|
|
23795
|
-
return self._CapacityFT3
|
|
23796
|
-
|
|
23797
|
-
@CapacityFT3.setter
|
|
23798
|
-
def CapacityFT3(self, CapacityFT3):
|
|
23799
|
-
self._CapacityFT3 = CapacityFT3
|
|
23800
|
-
|
|
23801
|
-
@property
|
|
23802
|
-
def Warn(self):
|
|
23803
|
-
r"""告警码
|
|
23804
|
-
-9926 集装箱箱号不完整或者不清晰
|
|
23805
|
-
-9927 集装箱类型不完整或者不清晰
|
|
23806
|
-
:rtype: list of int
|
|
23807
|
-
"""
|
|
23808
|
-
return self._Warn
|
|
23809
|
-
|
|
23810
|
-
@Warn.setter
|
|
23811
|
-
def Warn(self, Warn):
|
|
23812
|
-
self._Warn = Warn
|
|
23813
|
-
|
|
23814
|
-
@property
|
|
23815
|
-
def TareKG(self):
|
|
23816
|
-
r"""集装箱自身重量,单位:千克(KG)
|
|
23817
|
-
:rtype: str
|
|
23818
|
-
"""
|
|
23819
|
-
return self._TareKG
|
|
23820
|
-
|
|
23821
|
-
@TareKG.setter
|
|
23822
|
-
def TareKG(self, TareKG):
|
|
23823
|
-
self._TareKG = TareKG
|
|
23824
|
-
|
|
23825
|
-
@property
|
|
23826
|
-
def TareLB(self):
|
|
23827
|
-
r"""集装箱自身重量,单位:磅(LB)
|
|
23828
|
-
:rtype: str
|
|
23829
|
-
"""
|
|
23830
|
-
return self._TareLB
|
|
23831
|
-
|
|
23832
|
-
@TareLB.setter
|
|
23833
|
-
def TareLB(self, TareLB):
|
|
23834
|
-
self._TareLB = TareLB
|
|
23835
|
-
|
|
23836
|
-
@property
|
|
23837
|
-
def RequestId(self):
|
|
23838
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23839
|
-
:rtype: str
|
|
23840
|
-
"""
|
|
23841
|
-
return self._RequestId
|
|
23842
|
-
|
|
23843
|
-
@RequestId.setter
|
|
23844
|
-
def RequestId(self, RequestId):
|
|
23845
|
-
self._RequestId = RequestId
|
|
23846
|
-
|
|
23847
|
-
|
|
23848
|
-
def _deserialize(self, params):
|
|
23849
|
-
self._ContainerId = params.get("ContainerId")
|
|
23850
|
-
self._ContainerType = params.get("ContainerType")
|
|
23851
|
-
self._GrossKG = params.get("GrossKG")
|
|
23852
|
-
self._GrossLB = params.get("GrossLB")
|
|
23853
|
-
self._PayloadKG = params.get("PayloadKG")
|
|
23854
|
-
self._PayloadLB = params.get("PayloadLB")
|
|
23855
|
-
self._CapacityM3 = params.get("CapacityM3")
|
|
23856
|
-
self._CapacityFT3 = params.get("CapacityFT3")
|
|
23857
|
-
self._Warn = params.get("Warn")
|
|
23858
|
-
self._TareKG = params.get("TareKG")
|
|
23859
|
-
self._TareLB = params.get("TareLB")
|
|
23860
|
-
self._RequestId = params.get("RequestId")
|
|
23861
|
-
|
|
23862
|
-
|
|
23863
23656
|
class RecognizeEncryptedIDCardOCRRequest(AbstractModel):
|
|
23864
23657
|
r"""RecognizeEncryptedIDCardOCR请求参数结构体
|
|
23865
23658
|
|
|
@@ -1448,30 +1448,6 @@ class OcrClient(AbstractClient):
|
|
|
1448
1448
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1449
1449
|
|
|
1450
1450
|
|
|
1451
|
-
def RecognizeContainerOCR(self, request):
|
|
1452
|
-
r"""本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
|
1453
|
-
默认接口请求频率限制:5次/秒。
|
|
1454
|
-
|
|
1455
|
-
:param request: Request instance for RecognizeContainerOCR.
|
|
1456
|
-
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeContainerOCRRequest`
|
|
1457
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeContainerOCRResponse`
|
|
1458
|
-
|
|
1459
|
-
"""
|
|
1460
|
-
try:
|
|
1461
|
-
params = request._serialize()
|
|
1462
|
-
headers = request.headers
|
|
1463
|
-
body = self.call("RecognizeContainerOCR", params, headers=headers)
|
|
1464
|
-
response = json.loads(body)
|
|
1465
|
-
model = models.RecognizeContainerOCRResponse()
|
|
1466
|
-
model._deserialize(response["Response"])
|
|
1467
|
-
return model
|
|
1468
|
-
except Exception as e:
|
|
1469
|
-
if isinstance(e, TencentCloudSDKException):
|
|
1470
|
-
raise
|
|
1471
|
-
else:
|
|
1472
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
1451
|
def RecognizeEncryptedIDCardOCR(self, request):
|
|
1476
1452
|
r"""身份证识别(安全加密版)接口实现了数据加密传输,能够有效防止个人身份证隐私信息不被窃取泄露。
|
|
1477
1453
|
|
|
@@ -1207,25 +1207,6 @@ class OcrClient(AbstractClient):
|
|
|
1207
1207
|
|
|
1208
1208
|
return await self.call_and_deserialize(**kwargs)
|
|
1209
1209
|
|
|
1210
|
-
async def RecognizeContainerOCR(
|
|
1211
|
-
self,
|
|
1212
|
-
request: models.RecognizeContainerOCRRequest,
|
|
1213
|
-
opts: Dict = None,
|
|
1214
|
-
) -> models.RecognizeContainerOCRResponse:
|
|
1215
|
-
"""
|
|
1216
|
-
本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
|
1217
|
-
默认接口请求频率限制:5次/秒。
|
|
1218
|
-
"""
|
|
1219
|
-
|
|
1220
|
-
kwargs = {}
|
|
1221
|
-
kwargs["action"] = "RecognizeContainerOCR"
|
|
1222
|
-
kwargs["params"] = request._serialize()
|
|
1223
|
-
kwargs["resp_cls"] = models.RecognizeContainerOCRResponse
|
|
1224
|
-
kwargs["headers"] = request.headers
|
|
1225
|
-
kwargs["opts"] = opts or {}
|
|
1226
|
-
|
|
1227
|
-
return await self.call_and_deserialize(**kwargs)
|
|
1228
|
-
|
|
1229
1210
|
async def RecognizeEncryptedIDCardOCR(
|
|
1230
1211
|
self,
|
|
1231
1212
|
request: models.RecognizeEncryptedIDCardOCRRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.122
|
|
4
4
|
Summary: Tencent Cloud Ocr SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.122
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=uTxxoRVVv97MRNri6S5c_vlq8hJq4kjsTzeTl-ZB6PI,630
|
|
2
|
+
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/ocr/v20181119/errorcodes.py,sha256=JIZv0T7mSsIMfQKdQjHDSsF8oW-b9rJTZovBM5qM9xU,7187
|
|
5
|
+
tencentcloud/ocr/v20181119/models.py,sha256=Li3zG4Ob_3o7Tr1noLzW6AMKnYHnJ_oJ5wooL_yqfeA,1368833
|
|
6
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=C6ThbnmcEVzyOqxL0csQ-sRSkxNGzglI1LYsx6zPj2U,116333
|
|
7
|
+
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=Ap4anHnmWhn1EhpRml3VBIxx3Q-evgJDDN-eTFNABjA,92643
|
|
8
|
+
tencentcloud_sdk_python_ocr-3.1.122.dist-info/METADATA,sha256=ANpUE5xL0rmouJjBUVQlbELM0GF5yrBXHY4ITdjsVh0,1497
|
|
9
|
+
tencentcloud_sdk_python_ocr-3.1.122.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_ocr-3.1.122.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_ocr-3.1.122.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=NLKGfZ01nECbgVZ2UR5IeQwtLc7bAyQ-t4lQgJuG0ls,630
|
|
2
|
-
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/ocr/v20181119/errorcodes.py,sha256=JIZv0T7mSsIMfQKdQjHDSsF8oW-b9rJTZovBM5qM9xU,7187
|
|
5
|
-
tencentcloud/ocr/v20181119/models.py,sha256=DYyZzUQCy7Dbh2aURw9K80j6ypDrg8D-ajCS9GD8nkY,1375029
|
|
6
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=xKmcM2lavQqA7OGuAW5lLsZcBc98Lp5vrBeqqsKLD0s,117475
|
|
7
|
-
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=wZE8kNNhaI-QaUex5iNBavyzorXbuVS3SiN_1RaC1g8,93482
|
|
8
|
-
tencentcloud_sdk_python_ocr-3.1.115.dist-info/METADATA,sha256=O6MC_AFQ9kO1Y9jGS9VhLr0v8Dijdo3ElcEP1D8pfN0,1497
|
|
9
|
-
tencentcloud_sdk_python_ocr-3.1.115.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_ocr-3.1.115.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_ocr-3.1.115.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|