tencentcloud-sdk-python-ocr 3.1.115__tar.gz → 3.1.121__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud/ocr/v20181119/models.py +0 -248
  5. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud/ocr/v20181119/ocr_client.py +0 -24
  6. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud/ocr/v20181119/ocr_client_async.py +0 -19
  7. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_ocr-3.1.121/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_ocr-3.1.115/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/README.rst +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.115 → tencentcloud_sdk_python_ocr-3.1.121}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.115
3
+ Version: 3.1.121
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.115
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.121
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-ocr',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.115,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.121,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Ocr SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.115'
17
+ __version__ = '3.1.121'
@@ -23612,254 +23612,6 @@ class RecognizeAgentResponse(AbstractModel):
23612
23612
  self._RequestId = params.get("RequestId")
23613
23613
 
23614
23614
 
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
23615
  class RecognizeEncryptedIDCardOCRRequest(AbstractModel):
23864
23616
  r"""RecognizeEncryptedIDCardOCR请求参数结构体
23865
23617
 
@@ -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.115
3
+ Version: 3.1.121
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.115
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.121
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.121
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.115