tencentcloud-sdk-python-ocr 3.0.1303__tar.gz → 3.0.1305__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.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/tencentcloud/ocr/v20181119/models.py +45 -0
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1305/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ocr-3.0.1303/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1303 → tencentcloud-sdk-python-ocr-3.0.1305}/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.1305"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ocr SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -24483,15 +24483,21 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
|
|
|
24483
24483
|
:param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
|
24484
24484
|
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
24485
24485
|
:type ImageBase64: str
|
|
24486
|
+
:param _BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
24487
|
+
:type BackImageBase64: str
|
|
24486
24488
|
:param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
|
24487
24489
|
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
24488
24490
|
:type ImageUrl: str
|
|
24491
|
+
:param _BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
24492
|
+
:type BackImageUrl: str
|
|
24489
24493
|
:param _CropPortrait: 图片开关。默认为false,不返回泰国身份证头像照片的base64编码。
|
|
24490
24494
|
设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码
|
|
24491
24495
|
:type CropPortrait: bool
|
|
24492
24496
|
"""
|
|
24493
24497
|
self._ImageBase64 = None
|
|
24498
|
+
self._BackImageBase64 = None
|
|
24494
24499
|
self._ImageUrl = None
|
|
24500
|
+
self._BackImageUrl = None
|
|
24495
24501
|
self._CropPortrait = None
|
|
24496
24502
|
|
|
24497
24503
|
@property
|
|
@@ -24506,6 +24512,17 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
|
|
|
24506
24512
|
def ImageBase64(self, ImageBase64):
|
|
24507
24513
|
self._ImageBase64 = ImageBase64
|
|
24508
24514
|
|
|
24515
|
+
@property
|
|
24516
|
+
def BackImageBase64(self):
|
|
24517
|
+
"""卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
24518
|
+
:rtype: str
|
|
24519
|
+
"""
|
|
24520
|
+
return self._BackImageBase64
|
|
24521
|
+
|
|
24522
|
+
@BackImageBase64.setter
|
|
24523
|
+
def BackImageBase64(self, BackImageBase64):
|
|
24524
|
+
self._BackImageBase64 = BackImageBase64
|
|
24525
|
+
|
|
24509
24526
|
@property
|
|
24510
24527
|
def ImageUrl(self):
|
|
24511
24528
|
"""图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
|
@@ -24518,6 +24535,17 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
|
|
|
24518
24535
|
def ImageUrl(self, ImageUrl):
|
|
24519
24536
|
self._ImageUrl = ImageUrl
|
|
24520
24537
|
|
|
24538
|
+
@property
|
|
24539
|
+
def BackImageUrl(self):
|
|
24540
|
+
"""卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
24541
|
+
:rtype: str
|
|
24542
|
+
"""
|
|
24543
|
+
return self._BackImageUrl
|
|
24544
|
+
|
|
24545
|
+
@BackImageUrl.setter
|
|
24546
|
+
def BackImageUrl(self, BackImageUrl):
|
|
24547
|
+
self._BackImageUrl = BackImageUrl
|
|
24548
|
+
|
|
24521
24549
|
@property
|
|
24522
24550
|
def CropPortrait(self):
|
|
24523
24551
|
"""图片开关。默认为false,不返回泰国身份证头像照片的base64编码。
|
|
@@ -24533,7 +24561,9 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
|
|
|
24533
24561
|
|
|
24534
24562
|
def _deserialize(self, params):
|
|
24535
24563
|
self._ImageBase64 = params.get("ImageBase64")
|
|
24564
|
+
self._BackImageBase64 = params.get("BackImageBase64")
|
|
24536
24565
|
self._ImageUrl = params.get("ImageUrl")
|
|
24566
|
+
self._BackImageUrl = params.get("BackImageUrl")
|
|
24537
24567
|
self._CropPortrait = params.get("CropPortrait")
|
|
24538
24568
|
memeber_set = set(params.keys())
|
|
24539
24569
|
for name, value in vars(self).items():
|
|
@@ -24578,6 +24608,8 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
|
|
|
24578
24608
|
:type SerialNumber: str
|
|
24579
24609
|
:param _Address: 地址
|
|
24580
24610
|
:type Address: str
|
|
24611
|
+
:param _LaserID: 背面号码
|
|
24612
|
+
:type LaserID: str
|
|
24581
24613
|
:param _PortraitImage: 证件人像照片抠取
|
|
24582
24614
|
:type PortraitImage: str
|
|
24583
24615
|
:param _WarnCardInfos: 告警码
|
|
@@ -24614,6 +24646,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
|
|
|
24614
24646
|
self._Religion = None
|
|
24615
24647
|
self._SerialNumber = None
|
|
24616
24648
|
self._Address = None
|
|
24649
|
+
self._LaserID = None
|
|
24617
24650
|
self._PortraitImage = None
|
|
24618
24651
|
self._WarnCardInfos = None
|
|
24619
24652
|
self._AdvancedInfo = None
|
|
@@ -24762,6 +24795,17 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
|
|
|
24762
24795
|
def Address(self, Address):
|
|
24763
24796
|
self._Address = Address
|
|
24764
24797
|
|
|
24798
|
+
@property
|
|
24799
|
+
def LaserID(self):
|
|
24800
|
+
"""背面号码
|
|
24801
|
+
:rtype: str
|
|
24802
|
+
"""
|
|
24803
|
+
return self._LaserID
|
|
24804
|
+
|
|
24805
|
+
@LaserID.setter
|
|
24806
|
+
def LaserID(self, LaserID):
|
|
24807
|
+
self._LaserID = LaserID
|
|
24808
|
+
|
|
24765
24809
|
@property
|
|
24766
24810
|
def PortraitImage(self):
|
|
24767
24811
|
"""证件人像照片抠取
|
|
@@ -24835,6 +24879,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
|
|
|
24835
24879
|
self._Religion = params.get("Religion")
|
|
24836
24880
|
self._SerialNumber = params.get("SerialNumber")
|
|
24837
24881
|
self._Address = params.get("Address")
|
|
24882
|
+
self._LaserID = params.get("LaserID")
|
|
24838
24883
|
self._PortraitImage = params.get("PortraitImage")
|
|
24839
24884
|
self._WarnCardInfos = params.get("WarnCardInfos")
|
|
24840
24885
|
self._AdvancedInfo = params.get("AdvancedInfo")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1305
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1303
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|