tencentcloud-sdk-python-ocr 3.0.1213__tar.gz → 3.0.1236__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.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/tencentcloud/ocr/v20181119/models.py +53 -8
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/tencentcloud/ocr/v20181119/ocr_client.py +8 -2
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1236/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ocr-3.0.1213/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1213 → tencentcloud-sdk-python-ocr-3.0.1236}/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.1236"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ocr SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1594,6 +1594,8 @@ WARN_RESHOOT_CARD翻拍件告警
|
|
|
1594
1594
|
:type SerialNumber: str
|
|
1595
1595
|
:param _RegistrationAuthority: 登记机关
|
|
1596
1596
|
:type RegistrationAuthority: str
|
|
1597
|
+
:param _Electronic: 是否是电子营业执照。0为不是,1为是。
|
|
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
|
|
|
@@ -3832,6 +3844,10 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
|
|
|
3832
3844
|
:type BackPageName: str
|
|
3833
3845
|
:param _BackPageCardCode: 驾驶证副页证号
|
|
3834
3846
|
:type BackPageCardCode: str
|
|
3847
|
+
:param _DriverLicenseType: 驾驶证类型
|
|
3848
|
+
电子驾驶证:Electronic
|
|
3849
|
+
普通驾驶证:Normal
|
|
3850
|
+
:type DriverLicenseType: str
|
|
3835
3851
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3836
3852
|
:type RequestId: str
|
|
3837
3853
|
"""
|
|
@@ -3856,6 +3872,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
|
|
|
3856
3872
|
self._GenerateTime = None
|
|
3857
3873
|
self._BackPageName = None
|
|
3858
3874
|
self._BackPageCardCode = None
|
|
3875
|
+
self._DriverLicenseType = None
|
|
3859
3876
|
self._RequestId = None
|
|
3860
3877
|
|
|
3861
3878
|
@property
|
|
@@ -4026,6 +4043,14 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
|
|
|
4026
4043
|
def BackPageCardCode(self, BackPageCardCode):
|
|
4027
4044
|
self._BackPageCardCode = BackPageCardCode
|
|
4028
4045
|
|
|
4046
|
+
@property
|
|
4047
|
+
def DriverLicenseType(self):
|
|
4048
|
+
return self._DriverLicenseType
|
|
4049
|
+
|
|
4050
|
+
@DriverLicenseType.setter
|
|
4051
|
+
def DriverLicenseType(self, DriverLicenseType):
|
|
4052
|
+
self._DriverLicenseType = DriverLicenseType
|
|
4053
|
+
|
|
4029
4054
|
@property
|
|
4030
4055
|
def RequestId(self):
|
|
4031
4056
|
return self._RequestId
|
|
@@ -4057,6 +4082,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
|
|
|
4057
4082
|
self._GenerateTime = params.get("GenerateTime")
|
|
4058
4083
|
self._BackPageName = params.get("BackPageName")
|
|
4059
4084
|
self._BackPageCardCode = params.get("BackPageCardCode")
|
|
4085
|
+
self._DriverLicenseType = params.get("DriverLicenseType")
|
|
4060
4086
|
self._RequestId = params.get("RequestId")
|
|
4061
4087
|
|
|
4062
4088
|
|
|
@@ -7815,13 +7841,9 @@ class GeneralBasicOCRRequest(AbstractModel):
|
|
|
7815
7841
|
|
|
7816
7842
|
def __init__(self):
|
|
7817
7843
|
r"""
|
|
7818
|
-
:param _ImageBase64: 图片/PDF的 Base64
|
|
7819
|
-
要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
|
7820
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
7844
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
7821
7845
|
:type ImageBase64: str
|
|
7822
|
-
:param _ImageUrl: 图片/PDF的 Url
|
|
7823
|
-
要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
|
7824
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
7846
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
7825
7847
|
:type ImageUrl: str
|
|
7826
7848
|
:param _Scene: 保留字段。
|
|
7827
7849
|
:type Scene: str
|
|
@@ -12022,6 +12044,8 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12022
12044
|
:type Type: str
|
|
12023
12045
|
:param _Profile: RetProfile为True时返回头像字段, Base64编码
|
|
12024
12046
|
:type Profile: str
|
|
12047
|
+
:param _Nationality: 国籍
|
|
12048
|
+
:type Nationality: str
|
|
12025
12049
|
:param _MainlandTravelPermitBackInfos: 背面字段信息
|
|
12026
12050
|
:type MainlandTravelPermitBackInfos: :class:`tencentcloud.ocr.v20181119.models.MainlandTravelPermitBackInfos`
|
|
12027
12051
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -12038,6 +12062,7 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12038
12062
|
self._IssueNumber = None
|
|
12039
12063
|
self._Type = None
|
|
12040
12064
|
self._Profile = None
|
|
12065
|
+
self._Nationality = None
|
|
12041
12066
|
self._MainlandTravelPermitBackInfos = None
|
|
12042
12067
|
self._RequestId = None
|
|
12043
12068
|
|
|
@@ -12129,6 +12154,14 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12129
12154
|
def Profile(self, Profile):
|
|
12130
12155
|
self._Profile = Profile
|
|
12131
12156
|
|
|
12157
|
+
@property
|
|
12158
|
+
def Nationality(self):
|
|
12159
|
+
return self._Nationality
|
|
12160
|
+
|
|
12161
|
+
@Nationality.setter
|
|
12162
|
+
def Nationality(self, Nationality):
|
|
12163
|
+
self._Nationality = Nationality
|
|
12164
|
+
|
|
12132
12165
|
@property
|
|
12133
12166
|
def MainlandTravelPermitBackInfos(self):
|
|
12134
12167
|
return self._MainlandTravelPermitBackInfos
|
|
@@ -12158,6 +12191,7 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12158
12191
|
self._IssueNumber = params.get("IssueNumber")
|
|
12159
12192
|
self._Type = params.get("Type")
|
|
12160
12193
|
self._Profile = params.get("Profile")
|
|
12194
|
+
self._Nationality = params.get("Nationality")
|
|
12161
12195
|
if params.get("MainlandTravelPermitBackInfos") is not None:
|
|
12162
12196
|
self._MainlandTravelPermitBackInfos = MainlandTravelPermitBackInfos()
|
|
12163
12197
|
self._MainlandTravelPermitBackInfos._deserialize(params.get("MainlandTravelPermitBackInfos"))
|
|
@@ -14853,6 +14887,8 @@ class PermitOCRResponse(AbstractModel):
|
|
|
14853
14887
|
:type Birthday: str
|
|
14854
14888
|
:param _PortraitImage: 头像照片的base64
|
|
14855
14889
|
:type PortraitImage: str
|
|
14890
|
+
:param _Type: 返回类型
|
|
14891
|
+
:type Type: str
|
|
14856
14892
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14857
14893
|
:type RequestId: str
|
|
14858
14894
|
"""
|
|
@@ -14865,6 +14901,7 @@ class PermitOCRResponse(AbstractModel):
|
|
|
14865
14901
|
self._IssueAddress = None
|
|
14866
14902
|
self._Birthday = None
|
|
14867
14903
|
self._PortraitImage = None
|
|
14904
|
+
self._Type = None
|
|
14868
14905
|
self._RequestId = None
|
|
14869
14906
|
|
|
14870
14907
|
@property
|
|
@@ -14939,6 +14976,14 @@ class PermitOCRResponse(AbstractModel):
|
|
|
14939
14976
|
def PortraitImage(self, PortraitImage):
|
|
14940
14977
|
self._PortraitImage = PortraitImage
|
|
14941
14978
|
|
|
14979
|
+
@property
|
|
14980
|
+
def Type(self):
|
|
14981
|
+
return self._Type
|
|
14982
|
+
|
|
14983
|
+
@Type.setter
|
|
14984
|
+
def Type(self, Type):
|
|
14985
|
+
self._Type = Type
|
|
14986
|
+
|
|
14942
14987
|
@property
|
|
14943
14988
|
def RequestId(self):
|
|
14944
14989
|
return self._RequestId
|
|
@@ -14958,6 +15003,7 @@ class PermitOCRResponse(AbstractModel):
|
|
|
14958
15003
|
self._IssueAddress = params.get("IssueAddress")
|
|
14959
15004
|
self._Birthday = params.get("Birthday")
|
|
14960
15005
|
self._PortraitImage = params.get("PortraitImage")
|
|
15006
|
+
self._Type = params.get("Type")
|
|
14961
15007
|
self._RequestId = params.get("RequestId")
|
|
14962
15008
|
|
|
14963
15009
|
|
|
@@ -22602,8 +22648,7 @@ class StoreInfo(AbstractModel):
|
|
|
22602
22648
|
|
|
22603
22649
|
def __init__(self):
|
|
22604
22650
|
r"""
|
|
22605
|
-
:param _Name: 识别出的字段名称(关键字)
|
|
22606
|
-
付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
|
|
22651
|
+
:param _Name: 识别出的字段名称(关键字),如商店名称
|
|
22607
22652
|
:type Name: str
|
|
22608
22653
|
:param _Value: 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
|
|
22609
22654
|
:type Value: str
|
|
@@ -255,6 +255,7 @@ class OcrClient(AbstractClient):
|
|
|
255
255
|
|
|
256
256
|
def ClassifyStoreName(self, request):
|
|
257
257
|
"""本接口用于识别门头照分类标签信息
|
|
258
|
+
默认接口请求频率限制:1次/秒
|
|
258
259
|
|
|
259
260
|
:param request: Request instance for ClassifyStoreName.
|
|
260
261
|
:type request: :class:`tencentcloud.ocr.v20181119.models.ClassifyStoreNameRequest`
|
|
@@ -277,7 +278,9 @@ class OcrClient(AbstractClient):
|
|
|
277
278
|
|
|
278
279
|
|
|
279
280
|
def CreateAIFormTask(self, request):
|
|
280
|
-
"""
|
|
281
|
+
"""智慧表单产品已下线,需要下线相关API
|
|
282
|
+
|
|
283
|
+
本接口可创建智能表单录入任务,支持多个识别图片和PDF的URL上传,返回含有识别内容的操作页面URL。
|
|
281
284
|
|
|
282
285
|
智能表单录入产品提供高准确率的表单识别技术和人工核对工具,支持自定义字段,将识别结果自动填入到自定义条目中,并提供人工操作工具,完成整个表单识别过程。适用性强,可对票据、合同、货单等文件的识别,适用于金融、货代、保险、档案等领域。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
|
283
286
|
|
|
@@ -866,7 +869,9 @@ class OcrClient(AbstractClient):
|
|
|
866
869
|
|
|
867
870
|
|
|
868
871
|
def GetTaskState(self, request):
|
|
869
|
-
"""
|
|
872
|
+
"""智慧表单产品已下线,需要下线相关API
|
|
873
|
+
|
|
874
|
+
支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
|
870
875
|
|
|
871
876
|
:param request: Request instance for GetTaskState.
|
|
872
877
|
:type request: :class:`tencentcloud.ocr.v20181119.models.GetTaskStateRequest`
|
|
@@ -1946,6 +1951,7 @@ class OcrClient(AbstractClient):
|
|
|
1946
1951
|
|
|
1947
1952
|
def RecognizeStoreName(self, request):
|
|
1948
1953
|
"""本接口用于识别门头照文字识别结果以及对应分类标签信息
|
|
1954
|
+
默认接口请求频率限制:1次/秒
|
|
1949
1955
|
|
|
1950
1956
|
:param request: Request instance for RecognizeStoreName.
|
|
1951
1957
|
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeStoreNameRequest`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1236
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1213
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|