tencentcloud-sdk-python-ocr 3.0.1421__tar.gz → 3.0.1424__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.1424}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/tencentcloud/ocr/v20181119/models.py +42 -24
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1424/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.1424}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1421 → tencentcloud-sdk-python-ocr-3.0.1424}/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.1424,<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(),
|
@@ -12079,15 +12079,9 @@ class HKIDCardOCRRequest(AbstractModel):
|
|
12079
12079
|
:type ReturnHeadImage: bool
|
12080
12080
|
:param _DetectFake: 是否鉴伪。
|
12081
12081
|
:type DetectFake: bool
|
12082
|
-
:param _ImageBase64: 图片的 Base64
|
12083
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
12084
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
12082
|
+
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
|
12085
12083
|
:type ImageBase64: str
|
12086
|
-
:param _ImageUrl: 图片的 Url
|
12087
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
12088
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
12089
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
12090
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
12084
|
+
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
12091
12085
|
:type ImageUrl: str
|
12092
12086
|
"""
|
12093
12087
|
self._ReturnHeadImage = None
|
@@ -12123,9 +12117,7 @@ class HKIDCardOCRRequest(AbstractModel):
|
|
12123
12117
|
|
12124
12118
|
@property
|
12125
12119
|
def ImageBase64(self):
|
12126
|
-
"""图片的 Base64
|
12127
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
12128
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
12120
|
+
"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
|
12129
12121
|
:rtype: str
|
12130
12122
|
"""
|
12131
12123
|
return self._ImageBase64
|
@@ -12136,11 +12128,7 @@ class HKIDCardOCRRequest(AbstractModel):
|
|
12136
12128
|
|
12137
12129
|
@property
|
12138
12130
|
def ImageUrl(self):
|
12139
|
-
"""图片的 Url
|
12140
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
12141
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
12142
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
12143
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
12131
|
+
"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
12144
12132
|
:rtype: str
|
12145
12133
|
"""
|
12146
12134
|
return self._ImageUrl
|
@@ -12201,12 +12189,14 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12201
12189
|
2:真。
|
12202
12190
|
注意:此字段可能返回 null,表示取不到有效值。
|
12203
12191
|
:type FakeDetectResult: int
|
12204
|
-
:param _HeadImage:
|
12192
|
+
:param _HeadImage: Base64编码的证件左侧人像大图
|
12205
12193
|
注意:此字段可能返回 null,表示取不到有效值。
|
12206
12194
|
:type HeadImage: str
|
12207
|
-
:param
|
12208
|
-
|
12209
|
-
|
12195
|
+
:param _SmallHeadImage: Base64编码的证件右侧人像小图
|
12196
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
12197
|
+
:type SmallHeadImage: str
|
12198
|
+
:param _WarningCode: 该字段已废弃, 将固定返回空数组,不建议使用。
|
12199
|
+
This field is deprecated and will always return an empty array. Usage is not recommended.
|
12210
12200
|
:type WarningCode: list of int
|
12211
12201
|
:param _WarnCardInfos: 告警码
|
12212
12202
|
-9101 证件边框不完整告警
|
@@ -12217,6 +12207,8 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12217
12207
|
-9108 证件模糊告警
|
12218
12208
|
-9109 告警能力未开通
|
12219
12209
|
:type WarnCardInfos: list of int
|
12210
|
+
:param _WindowEmbeddedText: 证件透明视窗内的文本信息
|
12211
|
+
:type WindowEmbeddedText: str
|
12220
12212
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12221
12213
|
:type RequestId: str
|
12222
12214
|
"""
|
@@ -12232,8 +12224,10 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12232
12224
|
self._CurrentIssueDate = None
|
12233
12225
|
self._FakeDetectResult = None
|
12234
12226
|
self._HeadImage = None
|
12227
|
+
self._SmallHeadImage = None
|
12235
12228
|
self._WarningCode = None
|
12236
12229
|
self._WarnCardInfos = None
|
12230
|
+
self._WindowEmbeddedText = None
|
12237
12231
|
self._RequestId = None
|
12238
12232
|
|
12239
12233
|
@property
|
@@ -12370,7 +12364,7 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12370
12364
|
|
12371
12365
|
@property
|
12372
12366
|
def HeadImage(self):
|
12373
|
-
"""
|
12367
|
+
"""Base64编码的证件左侧人像大图
|
12374
12368
|
注意:此字段可能返回 null,表示取不到有效值。
|
12375
12369
|
:rtype: str
|
12376
12370
|
"""
|
@@ -12380,13 +12374,24 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12380
12374
|
def HeadImage(self, HeadImage):
|
12381
12375
|
self._HeadImage = HeadImage
|
12382
12376
|
|
12377
|
+
@property
|
12378
|
+
def SmallHeadImage(self):
|
12379
|
+
"""Base64编码的证件右侧人像小图
|
12380
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
12381
|
+
:rtype: str
|
12382
|
+
"""
|
12383
|
+
return self._SmallHeadImage
|
12384
|
+
|
12385
|
+
@SmallHeadImage.setter
|
12386
|
+
def SmallHeadImage(self, SmallHeadImage):
|
12387
|
+
self._SmallHeadImage = SmallHeadImage
|
12388
|
+
|
12383
12389
|
@property
|
12384
12390
|
def WarningCode(self):
|
12385
12391
|
warnings.warn("parameter `WarningCode` is deprecated", DeprecationWarning)
|
12386
12392
|
|
12387
|
-
"""
|
12388
|
-
|
12389
|
-
-9103:证照翻拍告警
|
12393
|
+
"""该字段已废弃, 将固定返回空数组,不建议使用。
|
12394
|
+
This field is deprecated and will always return an empty array. Usage is not recommended.
|
12390
12395
|
:rtype: list of int
|
12391
12396
|
"""
|
12392
12397
|
return self._WarningCode
|
@@ -12415,6 +12420,17 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12415
12420
|
def WarnCardInfos(self, WarnCardInfos):
|
12416
12421
|
self._WarnCardInfos = WarnCardInfos
|
12417
12422
|
|
12423
|
+
@property
|
12424
|
+
def WindowEmbeddedText(self):
|
12425
|
+
"""证件透明视窗内的文本信息
|
12426
|
+
:rtype: str
|
12427
|
+
"""
|
12428
|
+
return self._WindowEmbeddedText
|
12429
|
+
|
12430
|
+
@WindowEmbeddedText.setter
|
12431
|
+
def WindowEmbeddedText(self, WindowEmbeddedText):
|
12432
|
+
self._WindowEmbeddedText = WindowEmbeddedText
|
12433
|
+
|
12418
12434
|
@property
|
12419
12435
|
def RequestId(self):
|
12420
12436
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -12440,8 +12456,10 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12440
12456
|
self._CurrentIssueDate = params.get("CurrentIssueDate")
|
12441
12457
|
self._FakeDetectResult = params.get("FakeDetectResult")
|
12442
12458
|
self._HeadImage = params.get("HeadImage")
|
12459
|
+
self._SmallHeadImage = params.get("SmallHeadImage")
|
12443
12460
|
self._WarningCode = params.get("WarningCode")
|
12444
12461
|
self._WarnCardInfos = params.get("WarnCardInfos")
|
12462
|
+
self._WindowEmbeddedText = params.get("WindowEmbeddedText")
|
12445
12463
|
self._RequestId = params.get("RequestId")
|
12446
12464
|
|
12447
12465
|
|
@@ -0,0 +1 @@
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1424
|
@@ -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
|