tencentcloud-sdk-python-ocr 3.0.1418__tar.gz → 3.0.1419__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-ocr might be problematic. Click here for more details.
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/v20181119/models.py +103 -0
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1419/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ocr-3.0.1418/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1419}/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
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1419,<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(),
|
@@ -1974,11 +1974,14 @@ class BizLicenseOCRRequest(AbstractModel):
|
|
1974
1974
|
:type EnableCopyWarn: bool
|
1975
1975
|
:param _EnablePeriodComplete: 是否返回自动拼接的有效期,默认为true
|
1976
1976
|
:type EnablePeriodComplete: bool
|
1977
|
+
:param _EnableBusinessCertificate: 是否支持营业类证件识别(包括营业执照和非营业执照的其他证件),默认为false
|
1978
|
+
:type EnableBusinessCertificate: bool
|
1977
1979
|
"""
|
1978
1980
|
self._ImageBase64 = None
|
1979
1981
|
self._ImageUrl = None
|
1980
1982
|
self._EnableCopyWarn = None
|
1981
1983
|
self._EnablePeriodComplete = None
|
1984
|
+
self._EnableBusinessCertificate = None
|
1982
1985
|
|
1983
1986
|
@property
|
1984
1987
|
def ImageBase64(self):
|
@@ -2031,12 +2034,24 @@ class BizLicenseOCRRequest(AbstractModel):
|
|
2031
2034
|
def EnablePeriodComplete(self, EnablePeriodComplete):
|
2032
2035
|
self._EnablePeriodComplete = EnablePeriodComplete
|
2033
2036
|
|
2037
|
+
@property
|
2038
|
+
def EnableBusinessCertificate(self):
|
2039
|
+
"""是否支持营业类证件识别(包括营业执照和非营业执照的其他证件),默认为false
|
2040
|
+
:rtype: bool
|
2041
|
+
"""
|
2042
|
+
return self._EnableBusinessCertificate
|
2043
|
+
|
2044
|
+
@EnableBusinessCertificate.setter
|
2045
|
+
def EnableBusinessCertificate(self, EnableBusinessCertificate):
|
2046
|
+
self._EnableBusinessCertificate = EnableBusinessCertificate
|
2047
|
+
|
2034
2048
|
|
2035
2049
|
def _deserialize(self, params):
|
2036
2050
|
self._ImageBase64 = params.get("ImageBase64")
|
2037
2051
|
self._ImageUrl = params.get("ImageUrl")
|
2038
2052
|
self._EnableCopyWarn = params.get("EnableCopyWarn")
|
2039
2053
|
self._EnablePeriodComplete = params.get("EnablePeriodComplete")
|
2054
|
+
self._EnableBusinessCertificate = params.get("EnableBusinessCertificate")
|
2040
2055
|
memeber_set = set(params.keys())
|
2041
2056
|
for name, value in vars(self).items():
|
2042
2057
|
property_name = name[1:]
|
@@ -2104,6 +2119,8 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
2104
2119
|
:type RegistrationAuthority: str
|
2105
2120
|
:param _Electronic: 是否是电子营业执照。false为没有,true为有。
|
2106
2121
|
:type Electronic: bool
|
2122
|
+
:param _BusinessCertificate: 非营业执照的营业类证件识别结果,将以结构化形式呈现。
|
2123
|
+
:type BusinessCertificate: list of BusinessCertificateInfo
|
2107
2124
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2108
2125
|
:type RequestId: str
|
2109
2126
|
"""
|
@@ -2129,6 +2146,7 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
2129
2146
|
self._SerialNumber = None
|
2130
2147
|
self._RegistrationAuthority = None
|
2131
2148
|
self._Electronic = None
|
2149
|
+
self._BusinessCertificate = None
|
2132
2150
|
self._RequestId = None
|
2133
2151
|
|
2134
2152
|
@property
|
@@ -2379,6 +2397,17 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
2379
2397
|
def Electronic(self, Electronic):
|
2380
2398
|
self._Electronic = Electronic
|
2381
2399
|
|
2400
|
+
@property
|
2401
|
+
def BusinessCertificate(self):
|
2402
|
+
"""非营业执照的营业类证件识别结果,将以结构化形式呈现。
|
2403
|
+
:rtype: list of BusinessCertificateInfo
|
2404
|
+
"""
|
2405
|
+
return self._BusinessCertificate
|
2406
|
+
|
2407
|
+
@BusinessCertificate.setter
|
2408
|
+
def BusinessCertificate(self, BusinessCertificate):
|
2409
|
+
self._BusinessCertificate = BusinessCertificate
|
2410
|
+
|
2382
2411
|
@property
|
2383
2412
|
def RequestId(self):
|
2384
2413
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -2414,6 +2443,12 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
2414
2443
|
self._SerialNumber = params.get("SerialNumber")
|
2415
2444
|
self._RegistrationAuthority = params.get("RegistrationAuthority")
|
2416
2445
|
self._Electronic = params.get("Electronic")
|
2446
|
+
if params.get("BusinessCertificate") is not None:
|
2447
|
+
self._BusinessCertificate = []
|
2448
|
+
for item in params.get("BusinessCertificate"):
|
2449
|
+
obj = BusinessCertificateInfo()
|
2450
|
+
obj._deserialize(item)
|
2451
|
+
self._BusinessCertificate.append(obj)
|
2417
2452
|
self._RequestId = params.get("RequestId")
|
2418
2453
|
|
2419
2454
|
|
@@ -3211,6 +3246,74 @@ class BusinessCardOCRResponse(AbstractModel):
|
|
3211
3246
|
self._RequestId = params.get("RequestId")
|
3212
3247
|
|
3213
3248
|
|
3249
|
+
class BusinessCertificateInfo(AbstractModel):
|
3250
|
+
"""非营业执照的营业类证件识别结果,将以结构化形式呈现。
|
3251
|
+
|
3252
|
+
"""
|
3253
|
+
|
3254
|
+
def __init__(self):
|
3255
|
+
r"""
|
3256
|
+
:param _Name: 识别出的名称
|
3257
|
+
:type Name: str
|
3258
|
+
:param _Value: 识别出的字段名称对应的值
|
3259
|
+
:type Value: str
|
3260
|
+
:param _Rect: 坐标
|
3261
|
+
:type Rect: :class:`tencentcloud.ocr.v20181119.models.Rect`
|
3262
|
+
"""
|
3263
|
+
self._Name = None
|
3264
|
+
self._Value = None
|
3265
|
+
self._Rect = None
|
3266
|
+
|
3267
|
+
@property
|
3268
|
+
def Name(self):
|
3269
|
+
"""识别出的名称
|
3270
|
+
:rtype: str
|
3271
|
+
"""
|
3272
|
+
return self._Name
|
3273
|
+
|
3274
|
+
@Name.setter
|
3275
|
+
def Name(self, Name):
|
3276
|
+
self._Name = Name
|
3277
|
+
|
3278
|
+
@property
|
3279
|
+
def Value(self):
|
3280
|
+
"""识别出的字段名称对应的值
|
3281
|
+
:rtype: str
|
3282
|
+
"""
|
3283
|
+
return self._Value
|
3284
|
+
|
3285
|
+
@Value.setter
|
3286
|
+
def Value(self, Value):
|
3287
|
+
self._Value = Value
|
3288
|
+
|
3289
|
+
@property
|
3290
|
+
def Rect(self):
|
3291
|
+
"""坐标
|
3292
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.Rect`
|
3293
|
+
"""
|
3294
|
+
return self._Rect
|
3295
|
+
|
3296
|
+
@Rect.setter
|
3297
|
+
def Rect(self, Rect):
|
3298
|
+
self._Rect = Rect
|
3299
|
+
|
3300
|
+
|
3301
|
+
def _deserialize(self, params):
|
3302
|
+
self._Name = params.get("Name")
|
3303
|
+
self._Value = params.get("Value")
|
3304
|
+
if params.get("Rect") is not None:
|
3305
|
+
self._Rect = Rect()
|
3306
|
+
self._Rect._deserialize(params.get("Rect"))
|
3307
|
+
memeber_set = set(params.keys())
|
3308
|
+
for name, value in vars(self).items():
|
3309
|
+
property_name = name[1:]
|
3310
|
+
if property_name in memeber_set:
|
3311
|
+
memeber_set.remove(property_name)
|
3312
|
+
if len(memeber_set) > 0:
|
3313
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3314
|
+
|
3315
|
+
|
3316
|
+
|
3214
3317
|
class CandWord(AbstractModel):
|
3215
3318
|
"""候选字符集(包含候选字Character以及置信度Confidence)
|
3216
3319
|
|
@@ -0,0 +1 @@
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1419
|
@@ -1 +0,0 @@
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1418
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|