tencentcloud-sdk-python-ocr 3.0.1220__tar.gz → 3.0.1245__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.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/tencentcloud/ocr/v20181119/models.py +60 -8
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/tencentcloud/ocr/v20181119/ocr_client.py +9 -3
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1245/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ocr-3.0.1220/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1220 → tencentcloud-sdk-python-ocr-3.0.1245}/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.1245"],
|
|
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
|
|
|
@@ -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
|
|
@@ -7829,13 +7843,9 @@ class GeneralBasicOCRRequest(AbstractModel):
|
|
|
7829
7843
|
|
|
7830
7844
|
def __init__(self):
|
|
7831
7845
|
r"""
|
|
7832
|
-
:param _ImageBase64: 图片/PDF的 Base64
|
|
7833
|
-
要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
|
7834
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
7846
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
7835
7847
|
:type ImageBase64: str
|
|
7836
|
-
:param _ImageUrl: 图片/PDF的 Url
|
|
7837
|
-
要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
|
7838
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
7848
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
7839
7849
|
:type ImageUrl: str
|
|
7840
7850
|
:param _Scene: 保留字段。
|
|
7841
7851
|
:type Scene: str
|
|
@@ -11292,6 +11302,15 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
|
11292
11302
|
:type Type: str
|
|
11293
11303
|
:param _PassportRecognizeInfos: 信息区证件内容
|
|
11294
11304
|
:type PassportRecognizeInfos: :class:`tencentcloud.ocr.v20181119.models.PassportRecognizeInfos`
|
|
11305
|
+
:param _WarnCardInfos: 告警码
|
|
11306
|
+
-9101 证件边框不完整告警
|
|
11307
|
+
-9102 证件复印件告警
|
|
11308
|
+
-9103 证件翻拍告警
|
|
11309
|
+
-9104 证件PS告警
|
|
11310
|
+
-9107 证件反光告警
|
|
11311
|
+
-9108 证件模糊告警
|
|
11312
|
+
-9109 告警能力未开通
|
|
11313
|
+
:type WarnCardInfos: list of int
|
|
11295
11314
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11296
11315
|
:type RequestId: str
|
|
11297
11316
|
"""
|
|
@@ -11311,6 +11330,7 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
|
11311
11330
|
self._GivenName = None
|
|
11312
11331
|
self._Type = None
|
|
11313
11332
|
self._PassportRecognizeInfos = None
|
|
11333
|
+
self._WarnCardInfos = None
|
|
11314
11334
|
self._RequestId = None
|
|
11315
11335
|
|
|
11316
11336
|
@property
|
|
@@ -11441,6 +11461,14 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
|
11441
11461
|
def PassportRecognizeInfos(self, PassportRecognizeInfos):
|
|
11442
11462
|
self._PassportRecognizeInfos = PassportRecognizeInfos
|
|
11443
11463
|
|
|
11464
|
+
@property
|
|
11465
|
+
def WarnCardInfos(self):
|
|
11466
|
+
return self._WarnCardInfos
|
|
11467
|
+
|
|
11468
|
+
@WarnCardInfos.setter
|
|
11469
|
+
def WarnCardInfos(self, WarnCardInfos):
|
|
11470
|
+
self._WarnCardInfos = WarnCardInfos
|
|
11471
|
+
|
|
11444
11472
|
@property
|
|
11445
11473
|
def RequestId(self):
|
|
11446
11474
|
return self._RequestId
|
|
@@ -11469,6 +11497,7 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
|
11469
11497
|
if params.get("PassportRecognizeInfos") is not None:
|
|
11470
11498
|
self._PassportRecognizeInfos = PassportRecognizeInfos()
|
|
11471
11499
|
self._PassportRecognizeInfos._deserialize(params.get("PassportRecognizeInfos"))
|
|
11500
|
+
self._WarnCardInfos = params.get("WarnCardInfos")
|
|
11472
11501
|
self._RequestId = params.get("RequestId")
|
|
11473
11502
|
|
|
11474
11503
|
|
|
@@ -12036,6 +12065,8 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12036
12065
|
:type Type: str
|
|
12037
12066
|
:param _Profile: RetProfile为True时返回头像字段, Base64编码
|
|
12038
12067
|
:type Profile: str
|
|
12068
|
+
:param _Nationality: 国籍
|
|
12069
|
+
:type Nationality: str
|
|
12039
12070
|
:param _MainlandTravelPermitBackInfos: 背面字段信息
|
|
12040
12071
|
:type MainlandTravelPermitBackInfos: :class:`tencentcloud.ocr.v20181119.models.MainlandTravelPermitBackInfos`
|
|
12041
12072
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -12052,6 +12083,7 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12052
12083
|
self._IssueNumber = None
|
|
12053
12084
|
self._Type = None
|
|
12054
12085
|
self._Profile = None
|
|
12086
|
+
self._Nationality = None
|
|
12055
12087
|
self._MainlandTravelPermitBackInfos = None
|
|
12056
12088
|
self._RequestId = None
|
|
12057
12089
|
|
|
@@ -12143,6 +12175,14 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12143
12175
|
def Profile(self, Profile):
|
|
12144
12176
|
self._Profile = Profile
|
|
12145
12177
|
|
|
12178
|
+
@property
|
|
12179
|
+
def Nationality(self):
|
|
12180
|
+
return self._Nationality
|
|
12181
|
+
|
|
12182
|
+
@Nationality.setter
|
|
12183
|
+
def Nationality(self, Nationality):
|
|
12184
|
+
self._Nationality = Nationality
|
|
12185
|
+
|
|
12146
12186
|
@property
|
|
12147
12187
|
def MainlandTravelPermitBackInfos(self):
|
|
12148
12188
|
return self._MainlandTravelPermitBackInfos
|
|
@@ -12172,6 +12212,7 @@ class MainlandPermitOCRResponse(AbstractModel):
|
|
|
12172
12212
|
self._IssueNumber = params.get("IssueNumber")
|
|
12173
12213
|
self._Type = params.get("Type")
|
|
12174
12214
|
self._Profile = params.get("Profile")
|
|
12215
|
+
self._Nationality = params.get("Nationality")
|
|
12175
12216
|
if params.get("MainlandTravelPermitBackInfos") is not None:
|
|
12176
12217
|
self._MainlandTravelPermitBackInfos = MainlandTravelPermitBackInfos()
|
|
12177
12218
|
self._MainlandTravelPermitBackInfos._deserialize(params.get("MainlandTravelPermitBackInfos"))
|
|
@@ -14867,6 +14908,8 @@ class PermitOCRResponse(AbstractModel):
|
|
|
14867
14908
|
:type Birthday: str
|
|
14868
14909
|
:param _PortraitImage: 头像照片的base64
|
|
14869
14910
|
:type PortraitImage: str
|
|
14911
|
+
:param _Type: 返回类型
|
|
14912
|
+
:type Type: str
|
|
14870
14913
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14871
14914
|
:type RequestId: str
|
|
14872
14915
|
"""
|
|
@@ -14879,6 +14922,7 @@ class PermitOCRResponse(AbstractModel):
|
|
|
14879
14922
|
self._IssueAddress = None
|
|
14880
14923
|
self._Birthday = None
|
|
14881
14924
|
self._PortraitImage = None
|
|
14925
|
+
self._Type = None
|
|
14882
14926
|
self._RequestId = None
|
|
14883
14927
|
|
|
14884
14928
|
@property
|
|
@@ -14953,6 +14997,14 @@ class PermitOCRResponse(AbstractModel):
|
|
|
14953
14997
|
def PortraitImage(self, PortraitImage):
|
|
14954
14998
|
self._PortraitImage = PortraitImage
|
|
14955
14999
|
|
|
15000
|
+
@property
|
|
15001
|
+
def Type(self):
|
|
15002
|
+
return self._Type
|
|
15003
|
+
|
|
15004
|
+
@Type.setter
|
|
15005
|
+
def Type(self, Type):
|
|
15006
|
+
self._Type = Type
|
|
15007
|
+
|
|
14956
15008
|
@property
|
|
14957
15009
|
def RequestId(self):
|
|
14958
15010
|
return self._RequestId
|
|
@@ -14972,6 +15024,7 @@ class PermitOCRResponse(AbstractModel):
|
|
|
14972
15024
|
self._IssueAddress = params.get("IssueAddress")
|
|
14973
15025
|
self._Birthday = params.get("Birthday")
|
|
14974
15026
|
self._PortraitImage = params.get("PortraitImage")
|
|
15027
|
+
self._Type = params.get("Type")
|
|
14975
15028
|
self._RequestId = params.get("RequestId")
|
|
14976
15029
|
|
|
14977
15030
|
|
|
@@ -22616,8 +22669,7 @@ class StoreInfo(AbstractModel):
|
|
|
22616
22669
|
|
|
22617
22670
|
def __init__(self):
|
|
22618
22671
|
r"""
|
|
22619
|
-
:param _Name: 识别出的字段名称(关键字)
|
|
22620
|
-
付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
|
|
22672
|
+
:param _Name: 识别出的字段名称(关键字),如商店名称
|
|
22621
22673
|
:type Name: str
|
|
22622
22674
|
:param _Value: 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
|
|
22623
22675
|
: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`
|
|
@@ -1755,7 +1760,7 @@ class OcrClient(AbstractClient):
|
|
|
1755
1760
|
def RecognizeIndonesiaIDCardOCR(self, request):
|
|
1756
1761
|
"""印尼身份证识别
|
|
1757
1762
|
|
|
1758
|
-
默认接口请求频率限制:
|
|
1763
|
+
默认接口请求频率限制:5次/秒。
|
|
1759
1764
|
|
|
1760
1765
|
:param request: Request instance for RecognizeIndonesiaIDCardOCR.
|
|
1761
1766
|
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeIndonesiaIDCardOCRRequest`
|
|
@@ -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.1245
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1220
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|