tencentcloud-sdk-python-ocr 3.0.1229__tar.gz → 3.0.1258__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.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/tencentcloud/ocr/v20181119/errorcodes.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/tencentcloud/ocr/v20181119/models.py +52 -15
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/tencentcloud/ocr/v20181119/ocr_client.py +2 -1
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1258/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ocr-3.0.1229/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1229 → tencentcloud-sdk-python-ocr-3.0.1258}/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.1258"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ocr SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -170,7 +170,7 @@ RESOURCENOTFOUND_NOINVOICE = 'ResourceNotFound.NoInvoice'
|
|
|
170
170
|
# 不支持当天发票查询。
|
|
171
171
|
RESOURCENOTFOUND_NOTSUPPORTCURRENTINVOICEQUERY = 'ResourceNotFound.NotSupportCurrentInvoiceQuery'
|
|
172
172
|
|
|
173
|
-
#
|
|
173
|
+
# 账号已欠费。
|
|
174
174
|
RESOURCEUNAVAILABLE_INARREARS = 'ResourceUnavailable.InArrears'
|
|
175
175
|
|
|
176
176
|
# 账号资源包耗尽。
|
|
@@ -1582,11 +1582,11 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
|
1582
1582
|
|
|
1583
1583
|
|
|
1584
1584
|
:type Angle: float
|
|
1585
|
-
:param _NationalEmblem: 是否有国徽。
|
|
1585
|
+
:param _NationalEmblem: 是否有国徽。false为没有,true为有。
|
|
1586
1586
|
:type NationalEmblem: bool
|
|
1587
|
-
:param _QRCode: 是否有二维码。
|
|
1587
|
+
:param _QRCode: 是否有二维码。false为没有,true为有。
|
|
1588
1588
|
:type QRCode: bool
|
|
1589
|
-
:param _Seal: 是否有印章。
|
|
1589
|
+
:param _Seal: 是否有印章。false为没有,true为有。
|
|
1590
1590
|
:type Seal: bool
|
|
1591
1591
|
:param _Title: 标题
|
|
1592
1592
|
:type Title: str
|
|
@@ -1594,6 +1594,8 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
|
1594
1594
|
:type SerialNumber: str
|
|
1595
1595
|
:param _RegistrationAuthority: 登记机关
|
|
1596
1596
|
:type RegistrationAuthority: str
|
|
1597
|
+
:param _Electronic: 是否是电子营业执照。false为没有,true为有。
|
|
1598
|
+
:type Electronic: bool
|
|
1597
1599
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1598
1600
|
:type RequestId: str
|
|
1599
1601
|
"""
|
|
@@ -1618,6 +1620,7 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
|
1618
1620
|
self._Title = None
|
|
1619
1621
|
self._SerialNumber = None
|
|
1620
1622
|
self._RegistrationAuthority = None
|
|
1623
|
+
self._Electronic = None
|
|
1621
1624
|
self._RequestId = None
|
|
1622
1625
|
|
|
1623
1626
|
@property
|
|
@@ -1788,6 +1791,14 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
|
1788
1791
|
def RegistrationAuthority(self, RegistrationAuthority):
|
|
1789
1792
|
self._RegistrationAuthority = RegistrationAuthority
|
|
1790
1793
|
|
|
1794
|
+
@property
|
|
1795
|
+
def Electronic(self):
|
|
1796
|
+
return self._Electronic
|
|
1797
|
+
|
|
1798
|
+
@Electronic.setter
|
|
1799
|
+
def Electronic(self, Electronic):
|
|
1800
|
+
self._Electronic = Electronic
|
|
1801
|
+
|
|
1791
1802
|
@property
|
|
1792
1803
|
def RequestId(self):
|
|
1793
1804
|
return self._RequestId
|
|
@@ -1819,6 +1830,7 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
|
1819
1830
|
self._Title = params.get("Title")
|
|
1820
1831
|
self._SerialNumber = params.get("SerialNumber")
|
|
1821
1832
|
self._RegistrationAuthority = params.get("RegistrationAuthority")
|
|
1833
|
+
self._Electronic = params.get("Electronic")
|
|
1822
1834
|
self._RequestId = params.get("RequestId")
|
|
1823
1835
|
|
|
1824
1836
|
|
|
@@ -2859,6 +2871,8 @@ HmtResidentPermitFront: 港澳台居住证正面
|
|
|
2859
2871
|
HmtResidentPermitBack: 港澳台居住证背面
|
|
2860
2872
|
EstateCert: 不动产证
|
|
2861
2873
|
BizLicense: 营业执照
|
|
2874
|
+
ForeignPermanentResidentFront: 外国人永居证正面识别
|
|
2875
|
+
ForeignPermanentResidentBack: 外国人永居证背面识别
|
|
2862
2876
|
:type DiscernType: list of str
|
|
2863
2877
|
"""
|
|
2864
2878
|
self._ImageBase64 = None
|
|
@@ -11052,6 +11066,7 @@ MyKid 儿童卡
|
|
|
11052
11066
|
-9101 证件边框不完整告警
|
|
11053
11067
|
-9102 证件复印件告警
|
|
11054
11068
|
-9103 证件翻拍告警
|
|
11069
|
+
-9104 证件PS告警
|
|
11055
11070
|
-9107 证件反光告警
|
|
11056
11071
|
-9108 证件模糊告警
|
|
11057
11072
|
-9109 告警能力未开通
|
|
@@ -11288,6 +11303,15 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
|
11288
11303
|
:type Type: str
|
|
11289
11304
|
:param _PassportRecognizeInfos: 信息区证件内容
|
|
11290
11305
|
:type PassportRecognizeInfos: :class:`tencentcloud.ocr.v20181119.models.PassportRecognizeInfos`
|
|
11306
|
+
:param _WarnCardInfos: 告警码
|
|
11307
|
+
-9101 证件边框不完整告警
|
|
11308
|
+
-9102 证件复印件告警
|
|
11309
|
+
-9103 证件翻拍告警
|
|
11310
|
+
-9104 证件PS告警
|
|
11311
|
+
-9107 证件反光告警
|
|
11312
|
+
-9108 证件模糊告警
|
|
11313
|
+
-9109 告警能力未开通
|
|
11314
|
+
:type WarnCardInfos: list of int
|
|
11291
11315
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11292
11316
|
:type RequestId: str
|
|
11293
11317
|
"""
|
|
@@ -11307,6 +11331,7 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
|
11307
11331
|
self._GivenName = None
|
|
11308
11332
|
self._Type = None
|
|
11309
11333
|
self._PassportRecognizeInfos = None
|
|
11334
|
+
self._WarnCardInfos = None
|
|
11310
11335
|
self._RequestId = None
|
|
11311
11336
|
|
|
11312
11337
|
@property
|
|
@@ -11437,6 +11462,14 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
|
11437
11462
|
def PassportRecognizeInfos(self, PassportRecognizeInfos):
|
|
11438
11463
|
self._PassportRecognizeInfos = PassportRecognizeInfos
|
|
11439
11464
|
|
|
11465
|
+
@property
|
|
11466
|
+
def WarnCardInfos(self):
|
|
11467
|
+
return self._WarnCardInfos
|
|
11468
|
+
|
|
11469
|
+
@WarnCardInfos.setter
|
|
11470
|
+
def WarnCardInfos(self, WarnCardInfos):
|
|
11471
|
+
self._WarnCardInfos = WarnCardInfos
|
|
11472
|
+
|
|
11440
11473
|
@property
|
|
11441
11474
|
def RequestId(self):
|
|
11442
11475
|
return self._RequestId
|
|
@@ -11465,6 +11498,7 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
|
11465
11498
|
if params.get("PassportRecognizeInfos") is not None:
|
|
11466
11499
|
self._PassportRecognizeInfos = PassportRecognizeInfos()
|
|
11467
11500
|
self._PassportRecognizeInfos._deserialize(params.get("PassportRecognizeInfos"))
|
|
11501
|
+
self._WarnCardInfos = params.get("WarnCardInfos")
|
|
11468
11502
|
self._RequestId = params.get("RequestId")
|
|
11469
11503
|
|
|
11470
11504
|
|
|
@@ -12032,6 +12066,8 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12032
12066
|
:type Type: str
|
|
12033
12067
|
:param _Profile: RetProfile为True时返回头像字段, Base64编码
|
|
12034
12068
|
:type Profile: str
|
|
12069
|
+
:param _Nationality: 国籍
|
|
12070
|
+
:type Nationality: str
|
|
12035
12071
|
:param _MainlandTravelPermitBackInfos: 背面字段信息
|
|
12036
12072
|
:type MainlandTravelPermitBackInfos: :class:`tencentcloud.ocr.v20181119.models.MainlandTravelPermitBackInfos`
|
|
12037
12073
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -12048,6 +12084,7 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12048
12084
|
self._IssueNumber = None
|
|
12049
12085
|
self._Type = None
|
|
12050
12086
|
self._Profile = None
|
|
12087
|
+
self._Nationality = None
|
|
12051
12088
|
self._MainlandTravelPermitBackInfos = None
|
|
12052
12089
|
self._RequestId = None
|
|
12053
12090
|
|
|
@@ -12139,6 +12176,14 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12139
12176
|
def Profile(self, Profile):
|
|
12140
12177
|
self._Profile = Profile
|
|
12141
12178
|
|
|
12179
|
+
@property
|
|
12180
|
+
def Nationality(self):
|
|
12181
|
+
return self._Nationality
|
|
12182
|
+
|
|
12183
|
+
@Nationality.setter
|
|
12184
|
+
def Nationality(self, Nationality):
|
|
12185
|
+
self._Nationality = Nationality
|
|
12186
|
+
|
|
12142
12187
|
@property
|
|
12143
12188
|
def MainlandTravelPermitBackInfos(self):
|
|
12144
12189
|
return self._MainlandTravelPermitBackInfos
|
|
@@ -12168,6 +12213,7 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12168
12213
|
self._IssueNumber = params.get("IssueNumber")
|
|
12169
12214
|
self._Type = params.get("Type")
|
|
12170
12215
|
self._Profile = params.get("Profile")
|
|
12216
|
+
self._Nationality = params.get("Nationality")
|
|
12171
12217
|
if params.get("MainlandTravelPermitBackInfos") is not None:
|
|
12172
12218
|
self._MainlandTravelPermitBackInfos = MainlandTravelPermitBackInfos()
|
|
12173
12219
|
self._MainlandTravelPermitBackInfos._deserialize(params.get("MainlandTravelPermitBackInfos"))
|
|
@@ -16539,7 +16585,7 @@ class RecognizeEncryptedIDCardOCRRequest(AbstractModel):
|
|
|
16539
16585
|
:param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
|
16540
16586
|
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
16541
16587
|
:type ImageBase64: str
|
|
16542
|
-
:param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3
|
|
16588
|
+
:param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
|
16543
16589
|
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
16544
16590
|
:type ImageUrl: str
|
|
16545
16591
|
:param _CardSide: FRONT:身份证有照片的一面(人像面),
|
|
@@ -22410,18 +22456,9 @@ class SmartStructuralOCRV2Request(AbstractModel):
|
|
|
22410
22456
|
|
|
22411
22457
|
def __init__(self):
|
|
22412
22458
|
r"""
|
|
22413
|
-
:param _ImageUrl: 图片的 Url
|
|
22414
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
22415
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
22416
|
-
支持的图片像素:需介于20-10000px之间。
|
|
22417
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
22418
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
22459
|
+
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
22419
22460
|
:type ImageUrl: str
|
|
22420
|
-
:param _ImageBase64: 图片的 Base64
|
|
22421
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
22422
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
22423
|
-
支持的图片像素:需介于20-10000px之间。
|
|
22424
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
22461
|
+
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
22425
22462
|
:type ImageBase64: str
|
|
22426
22463
|
:param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
|
22427
22464
|
:type IsPdf: bool
|
|
@@ -1166,6 +1166,7 @@ class OcrClient(AbstractClient):
|
|
|
1166
1166
|
|
|
1167
1167
|
def MLIDPassportOCR(self, request):
|
|
1168
1168
|
"""本接口支持中国港澳台地区以及其他国家、地区的护照识别。识别字段包括护照ID、姓名、出生日期、性别、有效期、发行国、国籍、国家地区代码,具备护照人像照片的裁剪功能和翻拍、复印件告警功能。
|
|
1169
|
+
本接口支持地区范围:可机读护照国家。
|
|
1169
1170
|
|
|
1170
1171
|
默认接口请求频率限制:5次/秒。
|
|
1171
1172
|
|
|
@@ -1760,7 +1761,7 @@ class OcrClient(AbstractClient):
|
|
|
1760
1761
|
def RecognizeIndonesiaIDCardOCR(self, request):
|
|
1761
1762
|
"""印尼身份证识别
|
|
1762
1763
|
|
|
1763
|
-
默认接口请求频率限制:
|
|
1764
|
+
默认接口请求频率限制:5次/秒。
|
|
1764
1765
|
|
|
1765
1766
|
:param request: Request instance for RecognizeIndonesiaIDCardOCR.
|
|
1766
1767
|
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeIndonesiaIDCardOCRRequest`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1258
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1229
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|