tencentcloud-sdk-python-ocr 3.0.1428__py2.py3-none-any.whl → 3.0.1429__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-ocr might be problematic. Click here for more details.

tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1428'
17
+ __version__ = '3.0.1429'
@@ -15890,19 +15890,13 @@ class MLIDCardOCRRequest(AbstractModel):
15890
15890
 
15891
15891
  def __init__(self):
15892
15892
  r"""
15893
- :param _ImageBase64: 图片的 Base64 值。
15894
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
15895
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
15893
+ :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
15896
15894
  :type ImageBase64: str
15897
- :param _BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
15895
+ :param _BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
15898
15896
  :type BackImageBase64: str
15899
- :param _ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )
15900
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
15901
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
15902
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
15903
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15897
+ :param _ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15904
15898
  :type ImageUrl: str
15905
- :param _BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15899
+ :param _BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15906
15900
  :type BackImageUrl: str
15907
15901
  :param _RetImage: 是否返回图片,默认false
15908
15902
  :type RetImage: bool
@@ -15915,9 +15909,7 @@ class MLIDCardOCRRequest(AbstractModel):
15915
15909
 
15916
15910
  @property
15917
15911
  def ImageBase64(self):
15918
- """图片的 Base64 值。
15919
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
15920
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
15912
+ """图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
15921
15913
  :rtype: str
15922
15914
  """
15923
15915
  return self._ImageBase64
@@ -15928,7 +15920,7 @@ class MLIDCardOCRRequest(AbstractModel):
15928
15920
 
15929
15921
  @property
15930
15922
  def BackImageBase64(self):
15931
- """卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
15923
+ """卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
15932
15924
  :rtype: str
15933
15925
  """
15934
15926
  return self._BackImageBase64
@@ -15939,11 +15931,7 @@ class MLIDCardOCRRequest(AbstractModel):
15939
15931
 
15940
15932
  @property
15941
15933
  def ImageUrl(self):
15942
- """图片的 Url 地址。( 中国地区之外不支持这个字段 )
15943
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
15944
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
15945
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
15946
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15934
+ """图片的 Url 地址。( 中国地区之外不支持这个字段 )支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15947
15935
  :rtype: str
15948
15936
  """
15949
15937
  return self._ImageUrl
@@ -15954,7 +15942,7 @@ class MLIDCardOCRRequest(AbstractModel):
15954
15942
 
15955
15943
  @property
15956
15944
  def BackImageUrl(self):
15957
- """卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15945
+ """卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15958
15946
  :rtype: str
15959
15947
  """
15960
15948
  return self._BackImageUrl
@@ -16006,21 +15994,11 @@ class MLIDCardOCRResponse(AbstractModel):
16006
15994
  :type Address: str
16007
15995
  :param _Sex: 性别
16008
15996
  :type Sex: str
16009
- :param _Warn: 告警码
16010
- -9103 证照翻拍告警
16011
- -9102 证照复印件告警
16012
- -9106 证件遮挡告警
16013
- -9107 模糊图片告警
15997
+ :param _Warn: 该字段已废弃, 将固定返回空数组,不建议使用。
16014
15998
  :type Warn: list of int
16015
15999
  :param _Image: 证件图片
16016
16000
  :type Image: str
16017
- :param _AdvancedInfo: 此字段为扩展字段。
16018
- 返回字段识别结果的置信度,格式如下
16019
- {
16020
- 字段名:{
16021
- Confidence:0.9999
16022
- }
16023
- }
16001
+ :param _AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
16024
16002
  :type AdvancedInfo: str
16025
16003
  :param _Type: 证件类型
16026
16004
  MyKad 身份证
@@ -16108,11 +16086,7 @@ MyKid 儿童卡
16108
16086
  def Warn(self):
16109
16087
  warnings.warn("parameter `Warn` is deprecated", DeprecationWarning)
16110
16088
 
16111
- """告警码
16112
- -9103 证照翻拍告警
16113
- -9102 证照复印件告警
16114
- -9106 证件遮挡告警
16115
- -9107 模糊图片告警
16089
+ """该字段已废弃, 将固定返回空数组,不建议使用。
16116
16090
  :rtype: list of int
16117
16091
  """
16118
16092
  return self._Warn
@@ -16136,19 +16110,17 @@ MyKid 儿童卡
16136
16110
 
16137
16111
  @property
16138
16112
  def AdvancedInfo(self):
16139
- """此字段为扩展字段。
16140
- 返回字段识别结果的置信度,格式如下
16141
- {
16142
- 字段名:{
16143
- Confidence:0.9999
16144
- }
16145
- }
16113
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
16114
+
16115
+ """该字段已废弃, 将固定返回"1",不建议使用。
16146
16116
  :rtype: str
16147
16117
  """
16148
16118
  return self._AdvancedInfo
16149
16119
 
16150
16120
  @AdvancedInfo.setter
16151
16121
  def AdvancedInfo(self, AdvancedInfo):
16122
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
16123
+
16152
16124
  self._AdvancedInfo = AdvancedInfo
16153
16125
 
16154
16126
  @property
@@ -16243,11 +16215,11 @@ class MLIDPassportOCRRequest(AbstractModel):
16243
16215
 
16244
16216
  def __init__(self):
16245
16217
  r"""
16246
- :param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
16218
+ :param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
16247
16219
  :type ImageBase64: str
16248
16220
  :param _RetImage: 是否返回图片,默认false
16249
16221
  :type RetImage: bool
16250
- :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
16222
+ :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
16251
16223
  :type ImageUrl: str
16252
16224
  """
16253
16225
  self._ImageBase64 = None
@@ -16256,7 +16228,7 @@ class MLIDPassportOCRRequest(AbstractModel):
16256
16228
 
16257
16229
  @property
16258
16230
  def ImageBase64(self):
16259
- """图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
16231
+ """图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
16260
16232
  :rtype: str
16261
16233
  """
16262
16234
  return self._ImageBase64
@@ -16278,7 +16250,7 @@ class MLIDPassportOCRRequest(AbstractModel):
16278
16250
 
16279
16251
  @property
16280
16252
  def ImageUrl(self):
16281
- """图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
16253
+ """图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
16282
16254
  :rtype: str
16283
16255
  """
16284
16256
  return self._ImageUrl
@@ -16323,22 +16295,13 @@ class MLIDPassportOCRResponse(AbstractModel):
16323
16295
  :type IssuingCountry: str
16324
16296
  :param _Nationality: 国家地区代码(机读码区的解析结果)
16325
16297
  :type Nationality: str
16326
- :param _Warn: 告警码:
16327
- -9103 证照翻拍告警
16328
- -9102 证照复印件告警(包括黑白复印件、彩色复印件)
16329
- -9106 证件遮挡告警
16298
+ :param _Warn: 该字段已废弃, 将固定返回空数组,不建议使用。
16299
+
16330
16300
  :type Warn: list of int
16331
16301
  :param _Image: 证件中的人像图片base64
16332
16302
  :type Image: str
16333
- :param _AdvancedInfo: 扩展字段:
16334
- {
16335
- ID:{
16336
- Confidence:0.9999
16337
- },
16338
- Name:{
16339
- Confidence:0.9996
16340
- }
16341
- }
16303
+ :param _AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
16304
+
16342
16305
  :type AdvancedInfo: str
16343
16306
  :param _CodeSet: 最下方第一行 MRZ Code 序列
16344
16307
  :type CodeSet: str
@@ -16464,16 +16427,18 @@ class MLIDPassportOCRResponse(AbstractModel):
16464
16427
 
16465
16428
  @property
16466
16429
  def Warn(self):
16467
- """告警码:
16468
- -9103 证照翻拍告警
16469
- -9102 证照复印件告警(包括黑白复印件、彩色复印件)
16470
- -9106 证件遮挡告警
16430
+ warnings.warn("parameter `Warn` is deprecated", DeprecationWarning)
16431
+
16432
+ """该字段已废弃, 将固定返回空数组,不建议使用。
16433
+
16471
16434
  :rtype: list of int
16472
16435
  """
16473
16436
  return self._Warn
16474
16437
 
16475
16438
  @Warn.setter
16476
16439
  def Warn(self, Warn):
16440
+ warnings.warn("parameter `Warn` is deprecated", DeprecationWarning)
16441
+
16477
16442
  self._Warn = Warn
16478
16443
 
16479
16444
  @property
@@ -16489,21 +16454,18 @@ class MLIDPassportOCRResponse(AbstractModel):
16489
16454
 
16490
16455
  @property
16491
16456
  def AdvancedInfo(self):
16492
- """扩展字段:
16493
- {
16494
- ID:{
16495
- Confidence:0.9999
16496
- },
16497
- Name:{
16498
- Confidence:0.9996
16499
- }
16500
- }
16457
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
16458
+
16459
+ """该字段已废弃, 将固定返回"1",不建议使用。
16460
+
16501
16461
  :rtype: str
16502
16462
  """
16503
16463
  return self._AdvancedInfo
16504
16464
 
16505
16465
  @AdvancedInfo.setter
16506
16466
  def AdvancedInfo(self, AdvancedInfo):
16467
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
16468
+
16507
16469
  self._AdvancedInfo = AdvancedInfo
16508
16470
 
16509
16471
  @property
@@ -26546,15 +26508,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
26546
26508
  -9108 证件模糊告警
26547
26509
  -9109 告警能力未开通
26548
26510
  :type WarnCardInfos: list of int
26549
- :param _AdvancedInfo: 字段置信度:
26550
- {
26551
- "ID": {
26552
- "Confidence": 0.9999
26553
- },
26554
- "ThaiName": {
26555
- "Confidence": 0.9996
26556
- }
26557
- }
26511
+ :param _AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
26558
26512
  :type AdvancedInfo: str
26559
26513
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
26560
26514
  :type RequestId: str
@@ -26762,21 +26716,17 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
26762
26716
 
26763
26717
  @property
26764
26718
  def AdvancedInfo(self):
26765
- """字段置信度:
26766
- {
26767
- "ID": {
26768
- "Confidence": 0.9999
26769
- },
26770
- "ThaiName": {
26771
- "Confidence": 0.9996
26772
- }
26773
- }
26719
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
26720
+
26721
+ """该字段已废弃, 将固定返回"1",不建议使用。
26774
26722
  :rtype: str
26775
26723
  """
26776
26724
  return self._AdvancedInfo
26777
26725
 
26778
26726
  @AdvancedInfo.setter
26779
26727
  def AdvancedInfo(self, AdvancedInfo):
26728
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
26729
+
26780
26730
  self._AdvancedInfo = AdvancedInfo
26781
26731
 
26782
26732
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1428
3
+ Version: 3.0.1429
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.0.1428)
18
+ Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1429)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=NZ0wc3eQDukXCsPkDYPpv1WkHcUEWzUaByQMwnZq2wE,631
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=F14bbQDRi4P9JfBfjuTGaR08iiQkY3d3KcyBwscqAtk,6985
5
+ tencentcloud/ocr/v20181119/models.py,sha256=m1yOb86W1hYDRxQDl01m4iMApPWDoELR6T4XIguxdLo,1371927
6
+ tencentcloud/ocr/v20181119/ocr_client.py,sha256=tkUXYMVJqRJNF-36SRM_O7gM3-nMvfZFZD8KOI-p_yI,122396
7
+ tencentcloud_sdk_python_ocr-3.0.1429.dist-info/METADATA,sha256=EtKlS_EFcn25yWYcF5eIdtAE43N0dfF2s0xDRo4vXvo,1503
8
+ tencentcloud_sdk_python_ocr-3.0.1429.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_ocr-3.0.1429.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_ocr-3.0.1429.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=VJy4KOQbRxxkQmY5wlDh_SeppOd7iu_ynNJpkfkd86g,631
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=F14bbQDRi4P9JfBfjuTGaR08iiQkY3d3KcyBwscqAtk,6985
5
- tencentcloud/ocr/v20181119/models.py,sha256=ug_xzLjg2APfwvuAcJLqDyuBB3oOanEuBmuu6TVWbBc,1371841
6
- tencentcloud/ocr/v20181119/ocr_client.py,sha256=tkUXYMVJqRJNF-36SRM_O7gM3-nMvfZFZD8KOI-p_yI,122396
7
- tencentcloud_sdk_python_ocr-3.0.1428.dist-info/METADATA,sha256=8RZi8aPCvNp_7NvBsCIk-_k0ZzHmlRxuB715X65p6i0,1503
8
- tencentcloud_sdk_python_ocr-3.0.1428.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_ocr-3.0.1428.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_ocr-3.0.1428.dist-info/RECORD,,