tencentcloud-sdk-python-ocr 3.0.1436__py2.py3-none-any.whl → 3.0.1438__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 +1 -1
- tencentcloud/ocr/v20181119/models.py +88 -2
- {tencentcloud_sdk_python_ocr-3.0.1436.dist-info → tencentcloud_sdk_python_ocr-3.0.1438.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_ocr-3.0.1438.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_ocr-3.0.1436.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_ocr-3.0.1436.dist-info → tencentcloud_sdk_python_ocr-3.0.1438.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.0.1436.dist-info → tencentcloud_sdk_python_ocr-3.0.1438.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -11899,11 +11899,14 @@ class GetOCRResultResponse(AbstractModel):
|
|
11899
11899
|
:type Type: str
|
11900
11900
|
:param _OCRResult: ocr结果
|
11901
11901
|
:type OCRResult: :class:`tencentcloud.ocr.v20181119.models.OCRResult`
|
11902
|
+
:param _RequestIdInfos: requestid 信息
|
11903
|
+
:type RequestIdInfos: list of RequestIdInfo
|
11902
11904
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11903
11905
|
:type RequestId: str
|
11904
11906
|
"""
|
11905
11907
|
self._Type = None
|
11906
11908
|
self._OCRResult = None
|
11909
|
+
self._RequestIdInfos = None
|
11907
11910
|
self._RequestId = None
|
11908
11911
|
|
11909
11912
|
@property
|
@@ -11928,6 +11931,17 @@ class GetOCRResultResponse(AbstractModel):
|
|
11928
11931
|
def OCRResult(self, OCRResult):
|
11929
11932
|
self._OCRResult = OCRResult
|
11930
11933
|
|
11934
|
+
@property
|
11935
|
+
def RequestIdInfos(self):
|
11936
|
+
"""requestid 信息
|
11937
|
+
:rtype: list of RequestIdInfo
|
11938
|
+
"""
|
11939
|
+
return self._RequestIdInfos
|
11940
|
+
|
11941
|
+
@RequestIdInfos.setter
|
11942
|
+
def RequestIdInfos(self, RequestIdInfos):
|
11943
|
+
self._RequestIdInfos = RequestIdInfos
|
11944
|
+
|
11931
11945
|
@property
|
11932
11946
|
def RequestId(self):
|
11933
11947
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -11945,6 +11959,12 @@ class GetOCRResultResponse(AbstractModel):
|
|
11945
11959
|
if params.get("OCRResult") is not None:
|
11946
11960
|
self._OCRResult = OCRResult()
|
11947
11961
|
self._OCRResult._deserialize(params.get("OCRResult"))
|
11962
|
+
if params.get("RequestIdInfos") is not None:
|
11963
|
+
self._RequestIdInfos = []
|
11964
|
+
for item in params.get("RequestIdInfos"):
|
11965
|
+
obj = RequestIdInfo()
|
11966
|
+
obj._deserialize(item)
|
11967
|
+
self._RequestIdInfos.append(obj)
|
11948
11968
|
self._RequestId = params.get("RequestId")
|
11949
11969
|
|
11950
11970
|
|
@@ -12213,7 +12233,7 @@ class HKIDCardOCRResponse(AbstractModel):
|
|
12213
12233
|
注意:此字段可能返回 null,表示取不到有效值。
|
12214
12234
|
:type SmallHeadImage: str
|
12215
12235
|
:param _WarningCode: 该字段已废弃, 将固定返回空数组,不建议使用。
|
12216
|
-
|
12236
|
+
|
12217
12237
|
:type WarningCode: list of int
|
12218
12238
|
:param _WarnCardInfos: 告警码
|
12219
12239
|
-9101 证件边框不完整告警
|
@@ -12408,7 +12428,7 @@ This field is deprecated and will always return an empty array. Usage is not rec
|
|
12408
12428
|
warnings.warn("parameter `WarningCode` is deprecated", DeprecationWarning)
|
12409
12429
|
|
12410
12430
|
"""该字段已废弃, 将固定返回空数组,不建议使用。
|
12411
|
-
|
12431
|
+
|
12412
12432
|
:rtype: list of int
|
12413
12433
|
"""
|
12414
12434
|
return self._WarningCode
|
@@ -27584,6 +27604,72 @@ Others 其他位置
|
|
27584
27604
|
|
27585
27605
|
|
27586
27606
|
|
27607
|
+
class RequestIdInfo(AbstractModel):
|
27608
|
+
"""请求 id 信息
|
27609
|
+
|
27610
|
+
"""
|
27611
|
+
|
27612
|
+
def __init__(self):
|
27613
|
+
r"""
|
27614
|
+
:param _ApiRequestId: 请求 api 的 requestid
|
27615
|
+
:type ApiRequestId: str
|
27616
|
+
:param _ApiErrorCode: 请求 api 的错误码
|
27617
|
+
:type ApiErrorCode: str
|
27618
|
+
:param _WarnCodes: 告警码
|
27619
|
+
:type WarnCodes: list of int
|
27620
|
+
"""
|
27621
|
+
self._ApiRequestId = None
|
27622
|
+
self._ApiErrorCode = None
|
27623
|
+
self._WarnCodes = None
|
27624
|
+
|
27625
|
+
@property
|
27626
|
+
def ApiRequestId(self):
|
27627
|
+
"""请求 api 的 requestid
|
27628
|
+
:rtype: str
|
27629
|
+
"""
|
27630
|
+
return self._ApiRequestId
|
27631
|
+
|
27632
|
+
@ApiRequestId.setter
|
27633
|
+
def ApiRequestId(self, ApiRequestId):
|
27634
|
+
self._ApiRequestId = ApiRequestId
|
27635
|
+
|
27636
|
+
@property
|
27637
|
+
def ApiErrorCode(self):
|
27638
|
+
"""请求 api 的错误码
|
27639
|
+
:rtype: str
|
27640
|
+
"""
|
27641
|
+
return self._ApiErrorCode
|
27642
|
+
|
27643
|
+
@ApiErrorCode.setter
|
27644
|
+
def ApiErrorCode(self, ApiErrorCode):
|
27645
|
+
self._ApiErrorCode = ApiErrorCode
|
27646
|
+
|
27647
|
+
@property
|
27648
|
+
def WarnCodes(self):
|
27649
|
+
"""告警码
|
27650
|
+
:rtype: list of int
|
27651
|
+
"""
|
27652
|
+
return self._WarnCodes
|
27653
|
+
|
27654
|
+
@WarnCodes.setter
|
27655
|
+
def WarnCodes(self, WarnCodes):
|
27656
|
+
self._WarnCodes = WarnCodes
|
27657
|
+
|
27658
|
+
|
27659
|
+
def _deserialize(self, params):
|
27660
|
+
self._ApiRequestId = params.get("ApiRequestId")
|
27661
|
+
self._ApiErrorCode = params.get("ApiErrorCode")
|
27662
|
+
self._WarnCodes = params.get("WarnCodes")
|
27663
|
+
memeber_set = set(params.keys())
|
27664
|
+
for name, value in vars(self).items():
|
27665
|
+
property_name = name[1:]
|
27666
|
+
if property_name in memeber_set:
|
27667
|
+
memeber_set.remove(property_name)
|
27668
|
+
if len(memeber_set) > 0:
|
27669
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
27670
|
+
|
27671
|
+
|
27672
|
+
|
27587
27673
|
class ResidenceBookletOCRRequest(AbstractModel):
|
27588
27674
|
"""ResidenceBookletOCR请求参数结构体
|
27589
27675
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1438
|
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.
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1438)
|
19
19
|
|
20
20
|
============================
|
21
21
|
Tencent Cloud SDK for Python
|
@@ -0,0 +1,10 @@
|
|
1
|
+
tencentcloud/__init__.py,sha256=L9ZWJfKuTSRkkepyZo_LE4xEIrV3t8FJ4Mq0rSjpuP0,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=_lSP58lyhycpyQ8jt7di77_Ev6l2smj0_cLXlauZDK0,1382890
|
6
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=D9rJ5NROJ6i0WjWIUXD0CvY_NTYq74un_lPz_o3DcKQ,123525
|
7
|
+
tencentcloud_sdk_python_ocr-3.0.1438.dist-info/METADATA,sha256=8ChXFrc4BkdFuhmHxoGZNyPce-MWHer4Vy48XzVyI1A,1503
|
8
|
+
tencentcloud_sdk_python_ocr-3.0.1438.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
+
tencentcloud_sdk_python_ocr-3.0.1438.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
+
tencentcloud_sdk_python_ocr-3.0.1438.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
tencentcloud/__init__.py,sha256=yGylr5YIhnByBsGQsKQ7Efv97DKtKNa3248OOHO20Iw,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=Z8B7k5N5b6wYSqz2SsQQ_w_Bw1a5a9QMlJsmSEROOz4,1380640
|
6
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=D9rJ5NROJ6i0WjWIUXD0CvY_NTYq74un_lPz_o3DcKQ,123525
|
7
|
-
tencentcloud_sdk_python_ocr-3.0.1436.dist-info/METADATA,sha256=7UqgxTXpbYpQLVdiUN6fLVz2RsxY_ud2mrftvC1KEiM,1503
|
8
|
-
tencentcloud_sdk_python_ocr-3.0.1436.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
-
tencentcloud_sdk_python_ocr-3.0.1436.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
-
tencentcloud_sdk_python_ocr-3.0.1436.dist-info/RECORD,,
|
File without changes
|
File without changes
|