tencentcloud-sdk-python-ocr 3.0.1421__tar.gz → 3.0.1428__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.
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud/ocr/v20181119/models.py +59 -24
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1428/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ocr-3.0.1421/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1428}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
@@ -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.0.
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1428,<4.0.0"],
|
12
12
|
version=tencentcloud.__version__,
|
13
13
|
description='Tencent Cloud Ocr SDK for Python',
|
14
14
|
long_description=open('README.rst').read(),
|
@@ -8628,6 +8628,9 @@ HongKongUtilityBill -- 香港水电煤单识别模板
|
|
8628
8628
|
:type OutputParentKey: bool
|
8629
8629
|
:param _ConfigAdvanced: 模版的单个属性配置
|
8630
8630
|
:type ConfigAdvanced: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
|
8631
|
+
:param _OutputLanguage: cn时,添加的key为中文
|
8632
|
+
en时,添加的key为英语
|
8633
|
+
:type OutputLanguage: str
|
8631
8634
|
"""
|
8632
8635
|
self._ImageUrl = None
|
8633
8636
|
self._ImageBase64 = None
|
@@ -8639,6 +8642,7 @@ HongKongUtilityBill -- 香港水电煤单识别模板
|
|
8639
8642
|
self._EnableCoord = None
|
8640
8643
|
self._OutputParentKey = None
|
8641
8644
|
self._ConfigAdvanced = None
|
8645
|
+
self._OutputLanguage = None
|
8642
8646
|
|
8643
8647
|
@property
|
8644
8648
|
def ImageUrl(self):
|
@@ -8769,6 +8773,18 @@ HongKongUtilityBill -- 香港水电煤单识别模板
|
|
8769
8773
|
def ConfigAdvanced(self, ConfigAdvanced):
|
8770
8774
|
self._ConfigAdvanced = ConfigAdvanced
|
8771
8775
|
|
8776
|
+
@property
|
8777
|
+
def OutputLanguage(self):
|
8778
|
+
"""cn时,添加的key为中文
|
8779
|
+
en时,添加的key为英语
|
8780
|
+
:rtype: str
|
8781
|
+
"""
|
8782
|
+
return self._OutputLanguage
|
8783
|
+
|
8784
|
+
@OutputLanguage.setter
|
8785
|
+
def OutputLanguage(self, OutputLanguage):
|
8786
|
+
self._OutputLanguage = OutputLanguage
|
8787
|
+
|
8772
8788
|
|
8773
8789
|
def _deserialize(self, params):
|
8774
8790
|
self._ImageUrl = params.get("ImageUrl")
|
@@ -8783,6 +8799,7 @@ HongKongUtilityBill -- 香港水电煤单识别模板
|
|
8783
8799
|
if params.get("ConfigAdvanced") is not None:
|
8784
8800
|
self._ConfigAdvanced = ConfigAdvanced()
|
8785
8801
|
self._ConfigAdvanced._deserialize(params.get("ConfigAdvanced"))
|
8802
|
+
self._OutputLanguage = params.get("OutputLanguage")
|
8786
8803
|
memeber_set = set(params.keys())
|
8787
8804
|
for name, value in vars(self).items():
|
8788
8805
|
property_name = name[1:]
|
@@ -12079,15 +12096,9 @@ class HKIDCardOCRRequest(AbstractModel):
|
|
12079
12096
|
:type ReturnHeadImage: bool
|
12080
12097
|
:param _DetectFake: 是否鉴伪。
|
12081
12098
|
:type DetectFake: bool
|
12082
|
-
:param _ImageBase64: 图片的 Base64
|
12083
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
12084
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
12099
|
+
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
|
12085
12100
|
:type ImageBase64: str
|
12086
|
-
:param _ImageUrl: 图片的 Url
|
12087
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
12088
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
12089
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
12090
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
12101
|
+
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
12091
12102
|
:type ImageUrl: str
|
12092
12103
|
"""
|
12093
12104
|
self._ReturnHeadImage = None
|
@@ -12123,9 +12134,7 @@ class HKIDCardOCRRequest(AbstractModel):
|
|
12123
12134
|
|
12124
12135
|
@property
|
12125
12136
|
def ImageBase64(self):
|
12126
|
-
"""图片的 Base64
|
12127
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
12128
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
12137
|
+
"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
|
12129
12138
|
:rtype: str
|
12130
12139
|
"""
|
12131
12140
|
return self._ImageBase64
|
@@ -12136,11 +12145,7 @@ class HKIDCardOCRRequest(AbstractModel):
|
|
12136
12145
|
|
12137
12146
|
@property
|
12138
12147
|
def ImageUrl(self):
|
12139
|
-
"""图片的 Url
|
12140
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
12141
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
12142
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
12143
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
12148
|
+
"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
12144
12149
|
:rtype: str
|
12145
12150
|
"""
|
12146
12151
|
return self._ImageUrl
|
@@ -12201,12 +12206,14 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12201
12206
|
2:真。
|
12202
12207
|
注意:此字段可能返回 null,表示取不到有效值。
|
12203
12208
|
:type FakeDetectResult: int
|
12204
|
-
:param _HeadImage:
|
12209
|
+
:param _HeadImage: Base64编码的证件左侧人像大图
|
12205
12210
|
注意:此字段可能返回 null,表示取不到有效值。
|
12206
12211
|
:type HeadImage: str
|
12207
|
-
:param
|
12208
|
-
|
12209
|
-
|
12212
|
+
:param _SmallHeadImage: Base64编码的证件右侧人像小图
|
12213
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
12214
|
+
:type SmallHeadImage: str
|
12215
|
+
:param _WarningCode: 该字段已废弃, 将固定返回空数组,不建议使用。
|
12216
|
+
This field is deprecated and will always return an empty array. Usage is not recommended.
|
12210
12217
|
:type WarningCode: list of int
|
12211
12218
|
:param _WarnCardInfos: 告警码
|
12212
12219
|
-9101 证件边框不完整告警
|
@@ -12217,6 +12224,8 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12217
12224
|
-9108 证件模糊告警
|
12218
12225
|
-9109 告警能力未开通
|
12219
12226
|
:type WarnCardInfos: list of int
|
12227
|
+
:param _WindowEmbeddedText: 证件透明视窗内的文本信息
|
12228
|
+
:type WindowEmbeddedText: str
|
12220
12229
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12221
12230
|
:type RequestId: str
|
12222
12231
|
"""
|
@@ -12232,8 +12241,10 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12232
12241
|
self._CurrentIssueDate = None
|
12233
12242
|
self._FakeDetectResult = None
|
12234
12243
|
self._HeadImage = None
|
12244
|
+
self._SmallHeadImage = None
|
12235
12245
|
self._WarningCode = None
|
12236
12246
|
self._WarnCardInfos = None
|
12247
|
+
self._WindowEmbeddedText = None
|
12237
12248
|
self._RequestId = None
|
12238
12249
|
|
12239
12250
|
@property
|
@@ -12370,7 +12381,7 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12370
12381
|
|
12371
12382
|
@property
|
12372
12383
|
def HeadImage(self):
|
12373
|
-
"""
|
12384
|
+
"""Base64编码的证件左侧人像大图
|
12374
12385
|
注意:此字段可能返回 null,表示取不到有效值。
|
12375
12386
|
:rtype: str
|
12376
12387
|
"""
|
@@ -12380,13 +12391,24 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12380
12391
|
def HeadImage(self, HeadImage):
|
12381
12392
|
self._HeadImage = HeadImage
|
12382
12393
|
|
12394
|
+
@property
|
12395
|
+
def SmallHeadImage(self):
|
12396
|
+
"""Base64编码的证件右侧人像小图
|
12397
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
12398
|
+
:rtype: str
|
12399
|
+
"""
|
12400
|
+
return self._SmallHeadImage
|
12401
|
+
|
12402
|
+
@SmallHeadImage.setter
|
12403
|
+
def SmallHeadImage(self, SmallHeadImage):
|
12404
|
+
self._SmallHeadImage = SmallHeadImage
|
12405
|
+
|
12383
12406
|
@property
|
12384
12407
|
def WarningCode(self):
|
12385
12408
|
warnings.warn("parameter `WarningCode` is deprecated", DeprecationWarning)
|
12386
12409
|
|
12387
|
-
"""
|
12388
|
-
|
12389
|
-
-9103:证照翻拍告警
|
12410
|
+
"""该字段已废弃, 将固定返回空数组,不建议使用。
|
12411
|
+
This field is deprecated and will always return an empty array. Usage is not recommended.
|
12390
12412
|
:rtype: list of int
|
12391
12413
|
"""
|
12392
12414
|
return self._WarningCode
|
@@ -12415,6 +12437,17 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12415
12437
|
def WarnCardInfos(self, WarnCardInfos):
|
12416
12438
|
self._WarnCardInfos = WarnCardInfos
|
12417
12439
|
|
12440
|
+
@property
|
12441
|
+
def WindowEmbeddedText(self):
|
12442
|
+
"""证件透明视窗内的文本信息
|
12443
|
+
:rtype: str
|
12444
|
+
"""
|
12445
|
+
return self._WindowEmbeddedText
|
12446
|
+
|
12447
|
+
@WindowEmbeddedText.setter
|
12448
|
+
def WindowEmbeddedText(self, WindowEmbeddedText):
|
12449
|
+
self._WindowEmbeddedText = WindowEmbeddedText
|
12450
|
+
|
12418
12451
|
@property
|
12419
12452
|
def RequestId(self):
|
12420
12453
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -12440,8 +12473,10 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12440
12473
|
self._CurrentIssueDate = params.get("CurrentIssueDate")
|
12441
12474
|
self._FakeDetectResult = params.get("FakeDetectResult")
|
12442
12475
|
self._HeadImage = params.get("HeadImage")
|
12476
|
+
self._SmallHeadImage = params.get("SmallHeadImage")
|
12443
12477
|
self._WarningCode = params.get("WarningCode")
|
12444
12478
|
self._WarnCardInfos = params.get("WarnCardInfos")
|
12479
|
+
self._WindowEmbeddedText = params.get("WindowEmbeddedText")
|
12445
12480
|
self._RequestId = params.get("RequestId")
|
12446
12481
|
|
12447
12482
|
|
@@ -0,0 +1 @@
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1428
|
@@ -1 +0,0 @@
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1421
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|