tencentcloud-sdk-python-ocr 3.1.152__py2.py3-none-any.whl → 3.1.157__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/ocr/v20181119/models.py +342 -52
- tencentcloud/ocr/v20181119/ocr_client.py +24 -1
- tencentcloud/ocr/v20181119/ocr_client_async.py +19 -1
- {tencentcloud_sdk_python_ocr-3.1.152.dist-info → tencentcloud_sdk_python_ocr-3.1.157.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_ocr-3.1.157.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_ocr-3.1.152.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_ocr-3.1.152.dist-info → tencentcloud_sdk_python_ocr-3.1.157.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.1.152.dist-info → tencentcloud_sdk_python_ocr-3.1.157.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -3816,31 +3816,11 @@ class ClassifyDetectOCRRequest(AbstractModel):
|
|
|
3816
3816
|
|
|
3817
3817
|
def __init__(self):
|
|
3818
3818
|
r"""
|
|
3819
|
-
:param _ImageBase64:
|
|
3819
|
+
:param _ImageBase64: <p>图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
3820
3820
|
:type ImageBase64: str
|
|
3821
|
-
:param _ImageUrl:
|
|
3821
|
+
:param _ImageUrl: <p>图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
3822
3822
|
:type ImageUrl: str
|
|
3823
|
-
:param _DiscernType:
|
|
3824
|
-
|
|
3825
|
-
以下是当前支持的类型:
|
|
3826
|
-
IDCardFront: 身份证正面识别
|
|
3827
|
-
IDCardBack: 身份证背面识别
|
|
3828
|
-
Passport: 护照
|
|
3829
|
-
BusinessCard: 名片识别
|
|
3830
|
-
BankCard: 银行卡识别
|
|
3831
|
-
VehicleLicenseFront: 行驶证主页识别
|
|
3832
|
-
VehicleLicenseBack: 行驶证副页识别
|
|
3833
|
-
DriverLicenseFront: 驾驶证主页识别
|
|
3834
|
-
DriverLicenseBack: 驾驶证副页识别
|
|
3835
|
-
PermitFront: 港澳台通行证正面
|
|
3836
|
-
ResidenceBooklet: 户口本资料页
|
|
3837
|
-
MainlandPermitFront: 港澳台来往内地通行证正面
|
|
3838
|
-
HmtResidentPermitFront: 港澳台居住证正面
|
|
3839
|
-
HmtResidentPermitBack: 港澳台居住证背面
|
|
3840
|
-
EstateCert: 不动产证
|
|
3841
|
-
BizLicense: 营业执照
|
|
3842
|
-
ForeignPermanentResidentFront: 外国人永居证正面识别
|
|
3843
|
-
ForeignPermanentResidentBack: 外国人永居证背面识别
|
|
3823
|
+
:param _DiscernType: <p>可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。</p><p>以下是当前支持的类型:<br>IDCardFront: 身份证正面识别<br>IDCardBack: 身份证背面识别<br>Passport: 护照<br>BusinessCard: 名片识别<br>BankCard: 银行卡识别<br>VehicleLicenseFront: 行驶证主页识别<br>VehicleLicenseBack: 行驶证副页识别<br>DriverLicenseFront: 驾驶证主页识别<br>DriverLicenseBack: 驾驶证副页识别<br>PermitFront: 港澳台通行证正面<br>ResidenceBooklet: 户口本资料页<br>MainlandPermitFront: 港澳台来往内地通行证正面<br>HmtResidentPermitFront: 港澳台居住证正面<br>HmtResidentPermitBack: 港澳台居住证背面<br>EstateCert: 不动产证<br>BizLicense: 营业执照<br>ForeignPermanentResidentFront: 外国人永居证正面识别<br>ForeignPermanentResidentBack: 外国人永居证背面识别<br>RoadTransportQualificationCert: 道路运输从业资格证识别<br>RoadTransportPermit: 道路运输证识别</p>
|
|
3844
3824
|
:type DiscernType: list of str
|
|
3845
3825
|
"""
|
|
3846
3826
|
self._ImageBase64 = None
|
|
@@ -3849,7 +3829,7 @@ ForeignPermanentResidentBack: 外国人永居证背面识别
|
|
|
3849
3829
|
|
|
3850
3830
|
@property
|
|
3851
3831
|
def ImageBase64(self):
|
|
3852
|
-
r"""
|
|
3832
|
+
r"""<p>图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
3853
3833
|
:rtype: str
|
|
3854
3834
|
"""
|
|
3855
3835
|
return self._ImageBase64
|
|
@@ -3860,7 +3840,7 @@ ForeignPermanentResidentBack: 外国人永居证背面识别
|
|
|
3860
3840
|
|
|
3861
3841
|
@property
|
|
3862
3842
|
def ImageUrl(self):
|
|
3863
|
-
r"""
|
|
3843
|
+
r"""<p>图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
3864
3844
|
:rtype: str
|
|
3865
3845
|
"""
|
|
3866
3846
|
return self._ImageUrl
|
|
@@ -3871,27 +3851,7 @@ ForeignPermanentResidentBack: 外国人永居证背面识别
|
|
|
3871
3851
|
|
|
3872
3852
|
@property
|
|
3873
3853
|
def DiscernType(self):
|
|
3874
|
-
r"""
|
|
3875
|
-
|
|
3876
|
-
以下是当前支持的类型:
|
|
3877
|
-
IDCardFront: 身份证正面识别
|
|
3878
|
-
IDCardBack: 身份证背面识别
|
|
3879
|
-
Passport: 护照
|
|
3880
|
-
BusinessCard: 名片识别
|
|
3881
|
-
BankCard: 银行卡识别
|
|
3882
|
-
VehicleLicenseFront: 行驶证主页识别
|
|
3883
|
-
VehicleLicenseBack: 行驶证副页识别
|
|
3884
|
-
DriverLicenseFront: 驾驶证主页识别
|
|
3885
|
-
DriverLicenseBack: 驾驶证副页识别
|
|
3886
|
-
PermitFront: 港澳台通行证正面
|
|
3887
|
-
ResidenceBooklet: 户口本资料页
|
|
3888
|
-
MainlandPermitFront: 港澳台来往内地通行证正面
|
|
3889
|
-
HmtResidentPermitFront: 港澳台居住证正面
|
|
3890
|
-
HmtResidentPermitBack: 港澳台居住证背面
|
|
3891
|
-
EstateCert: 不动产证
|
|
3892
|
-
BizLicense: 营业执照
|
|
3893
|
-
ForeignPermanentResidentFront: 外国人永居证正面识别
|
|
3894
|
-
ForeignPermanentResidentBack: 外国人永居证背面识别
|
|
3854
|
+
r"""<p>可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。</p><p>以下是当前支持的类型:<br>IDCardFront: 身份证正面识别<br>IDCardBack: 身份证背面识别<br>Passport: 护照<br>BusinessCard: 名片识别<br>BankCard: 银行卡识别<br>VehicleLicenseFront: 行驶证主页识别<br>VehicleLicenseBack: 行驶证副页识别<br>DriverLicenseFront: 驾驶证主页识别<br>DriverLicenseBack: 驾驶证副页识别<br>PermitFront: 港澳台通行证正面<br>ResidenceBooklet: 户口本资料页<br>MainlandPermitFront: 港澳台来往内地通行证正面<br>HmtResidentPermitFront: 港澳台居住证正面<br>HmtResidentPermitBack: 港澳台居住证背面<br>EstateCert: 不动产证<br>BizLicense: 营业执照<br>ForeignPermanentResidentFront: 外国人永居证正面识别<br>ForeignPermanentResidentBack: 外国人永居证背面识别<br>RoadTransportQualificationCert: 道路运输从业资格证识别<br>RoadTransportPermit: 道路运输证识别</p>
|
|
3895
3855
|
:rtype: list of str
|
|
3896
3856
|
"""
|
|
3897
3857
|
return self._DiscernType
|
|
@@ -3922,7 +3882,7 @@ class ClassifyDetectOCRResponse(AbstractModel):
|
|
|
3922
3882
|
|
|
3923
3883
|
def __init__(self):
|
|
3924
3884
|
r"""
|
|
3925
|
-
:param _ClassifyDetectInfos:
|
|
3885
|
+
:param _ClassifyDetectInfos: <p>智能卡证分类结果。当图片类型不支持分类识别或者识别出的类型不在请求参数DiscernType指定的范围内时,返回结果中的Type字段将为空字符串,Name字段将返回"其它"</p>
|
|
3926
3886
|
:type ClassifyDetectInfos: list of ClassifyDetectInfo
|
|
3927
3887
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3928
3888
|
:type RequestId: str
|
|
@@ -3932,7 +3892,7 @@ class ClassifyDetectOCRResponse(AbstractModel):
|
|
|
3932
3892
|
|
|
3933
3893
|
@property
|
|
3934
3894
|
def ClassifyDetectInfos(self):
|
|
3935
|
-
r"""
|
|
3895
|
+
r"""<p>智能卡证分类结果。当图片类型不支持分类识别或者识别出的类型不在请求参数DiscernType指定的范围内时,返回结果中的Type字段将为空字符串,Name字段将返回"其它"</p>
|
|
3936
3896
|
:rtype: list of ClassifyDetectInfo
|
|
3937
3897
|
"""
|
|
3938
3898
|
return self._ClassifyDetectInfos
|
|
@@ -14658,9 +14618,9 @@ class ItemCoord(AbstractModel):
|
|
|
14658
14618
|
:type X: int
|
|
14659
14619
|
:param _Y: <p>左上角y。</p>
|
|
14660
14620
|
:type Y: int
|
|
14661
|
-
:param _Width: <p>宽width。</p>
|
|
14621
|
+
:param _Width: <p>宽width。</p><p>单位:px</p>
|
|
14662
14622
|
:type Width: int
|
|
14663
|
-
:param _Height: <p>高height。</p>
|
|
14623
|
+
:param _Height: <p>高height。</p><p>单位:px</p>
|
|
14664
14624
|
:type Height: int
|
|
14665
14625
|
"""
|
|
14666
14626
|
self._X = None
|
|
@@ -14692,7 +14652,7 @@ class ItemCoord(AbstractModel):
|
|
|
14692
14652
|
|
|
14693
14653
|
@property
|
|
14694
14654
|
def Width(self):
|
|
14695
|
-
r"""<p>宽width。</p>
|
|
14655
|
+
r"""<p>宽width。</p><p>单位:px</p>
|
|
14696
14656
|
:rtype: int
|
|
14697
14657
|
"""
|
|
14698
14658
|
return self._Width
|
|
@@ -14703,7 +14663,7 @@ class ItemCoord(AbstractModel):
|
|
|
14703
14663
|
|
|
14704
14664
|
@property
|
|
14705
14665
|
def Height(self):
|
|
14706
|
-
r"""<p>高height。</p>
|
|
14666
|
+
r"""<p>高height。</p><p>单位:px</p>
|
|
14707
14667
|
:rtype: int
|
|
14708
14668
|
"""
|
|
14709
14669
|
return self._Height
|
|
@@ -39744,6 +39704,336 @@ class VerifyBizLicenseEnterprise4Response(AbstractModel):
|
|
|
39744
39704
|
self._RequestId = params.get("RequestId")
|
|
39745
39705
|
|
|
39746
39706
|
|
|
39707
|
+
class VerifyGeneralCardWarnRequest(AbstractModel):
|
|
39708
|
+
r"""VerifyGeneralCardWarn请求参数结构体
|
|
39709
|
+
|
|
39710
|
+
"""
|
|
39711
|
+
|
|
39712
|
+
def __init__(self):
|
|
39713
|
+
r"""
|
|
39714
|
+
:param _CardType: <p>卡证类型参数,仅支持传入下列指定值,请按实际情况选择对应卡证类型,目前支持以下类型:<br><strong>身份证件</strong><br>0101 身份证<br>0102 护照<br><strong>经营证照</strong><br>0201 营业执照<br><strong>权属登记</strong><br>0301 行驶证<br><strong>资格许可</strong><br>0401 驾驶证</p>
|
|
39715
|
+
:type CardType: str
|
|
39716
|
+
:param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
|
|
39717
|
+
:type ImageUrl: str
|
|
39718
|
+
:param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
|
|
39719
|
+
:type ImageBase64: str
|
|
39720
|
+
"""
|
|
39721
|
+
self._CardType = None
|
|
39722
|
+
self._ImageUrl = None
|
|
39723
|
+
self._ImageBase64 = None
|
|
39724
|
+
|
|
39725
|
+
@property
|
|
39726
|
+
def CardType(self):
|
|
39727
|
+
r"""<p>卡证类型参数,仅支持传入下列指定值,请按实际情况选择对应卡证类型,目前支持以下类型:<br><strong>身份证件</strong><br>0101 身份证<br>0102 护照<br><strong>经营证照</strong><br>0201 营业执照<br><strong>权属登记</strong><br>0301 行驶证<br><strong>资格许可</strong><br>0401 驾驶证</p>
|
|
39728
|
+
:rtype: str
|
|
39729
|
+
"""
|
|
39730
|
+
return self._CardType
|
|
39731
|
+
|
|
39732
|
+
@CardType.setter
|
|
39733
|
+
def CardType(self, CardType):
|
|
39734
|
+
self._CardType = CardType
|
|
39735
|
+
|
|
39736
|
+
@property
|
|
39737
|
+
def ImageUrl(self):
|
|
39738
|
+
r"""<p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
|
|
39739
|
+
:rtype: str
|
|
39740
|
+
"""
|
|
39741
|
+
return self._ImageUrl
|
|
39742
|
+
|
|
39743
|
+
@ImageUrl.setter
|
|
39744
|
+
def ImageUrl(self, ImageUrl):
|
|
39745
|
+
self._ImageUrl = ImageUrl
|
|
39746
|
+
|
|
39747
|
+
@property
|
|
39748
|
+
def ImageBase64(self):
|
|
39749
|
+
r"""<p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
|
|
39750
|
+
:rtype: str
|
|
39751
|
+
"""
|
|
39752
|
+
return self._ImageBase64
|
|
39753
|
+
|
|
39754
|
+
@ImageBase64.setter
|
|
39755
|
+
def ImageBase64(self, ImageBase64):
|
|
39756
|
+
self._ImageBase64 = ImageBase64
|
|
39757
|
+
|
|
39758
|
+
|
|
39759
|
+
def _deserialize(self, params):
|
|
39760
|
+
self._CardType = params.get("CardType")
|
|
39761
|
+
self._ImageUrl = params.get("ImageUrl")
|
|
39762
|
+
self._ImageBase64 = params.get("ImageBase64")
|
|
39763
|
+
memeber_set = set(params.keys())
|
|
39764
|
+
for name, value in vars(self).items():
|
|
39765
|
+
property_name = name[1:]
|
|
39766
|
+
if property_name in memeber_set:
|
|
39767
|
+
memeber_set.remove(property_name)
|
|
39768
|
+
if len(memeber_set) > 0:
|
|
39769
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
39770
|
+
|
|
39771
|
+
|
|
39772
|
+
|
|
39773
|
+
class VerifyGeneralCardWarnResponse(AbstractModel):
|
|
39774
|
+
r"""VerifyGeneralCardWarn返回参数结构体
|
|
39775
|
+
|
|
39776
|
+
"""
|
|
39777
|
+
|
|
39778
|
+
def __init__(self):
|
|
39779
|
+
r"""
|
|
39780
|
+
:param _Tamper: <p>区域篡改提示</p>
|
|
39781
|
+
:type Tamper: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39782
|
+
:param _Synthesis: <p>AIGC合成提示</p>
|
|
39783
|
+
:type Synthesis: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39784
|
+
:param _Template: <p>模板图片提示</p>
|
|
39785
|
+
:type Template: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39786
|
+
:param _RemakeScreen: <p>屏幕翻拍提示</p>
|
|
39787
|
+
:type RemakeScreen: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39788
|
+
:param _Screenshot: <p>截图提示</p>
|
|
39789
|
+
:type Screenshot: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39790
|
+
:param _Blur: <p>模糊提示</p>
|
|
39791
|
+
:type Blur: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39792
|
+
:param _BorderIncomplete: <p>边框不完整提示</p>
|
|
39793
|
+
:type BorderIncomplete: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39794
|
+
:param _Copy: <p>复印件提示</p>
|
|
39795
|
+
:type Copy: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39796
|
+
:param _Reflection: <p>反光提示</p>
|
|
39797
|
+
:type Reflection: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39798
|
+
:param _Cover: <p>遮挡提示</p>
|
|
39799
|
+
:type Cover: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39800
|
+
:param _Overlap: <p>重叠提示</p>
|
|
39801
|
+
:type Overlap: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39802
|
+
:param _Electron: <p>电子证照提示(目前仅支持电子身份证、电子营业执照识别)</p>
|
|
39803
|
+
:type Electron: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39804
|
+
:param _TextWatermark: <p>文字水印提示</p>
|
|
39805
|
+
:type TextWatermark: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39806
|
+
:param _WatermarkContent: <p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
|
|
39807
|
+
:type WatermarkContent: str
|
|
39808
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39809
|
+
:type RequestId: str
|
|
39810
|
+
"""
|
|
39811
|
+
self._Tamper = None
|
|
39812
|
+
self._Synthesis = None
|
|
39813
|
+
self._Template = None
|
|
39814
|
+
self._RemakeScreen = None
|
|
39815
|
+
self._Screenshot = None
|
|
39816
|
+
self._Blur = None
|
|
39817
|
+
self._BorderIncomplete = None
|
|
39818
|
+
self._Copy = None
|
|
39819
|
+
self._Reflection = None
|
|
39820
|
+
self._Cover = None
|
|
39821
|
+
self._Overlap = None
|
|
39822
|
+
self._Electron = None
|
|
39823
|
+
self._TextWatermark = None
|
|
39824
|
+
self._WatermarkContent = None
|
|
39825
|
+
self._RequestId = None
|
|
39826
|
+
|
|
39827
|
+
@property
|
|
39828
|
+
def Tamper(self):
|
|
39829
|
+
r"""<p>区域篡改提示</p>
|
|
39830
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39831
|
+
"""
|
|
39832
|
+
return self._Tamper
|
|
39833
|
+
|
|
39834
|
+
@Tamper.setter
|
|
39835
|
+
def Tamper(self, Tamper):
|
|
39836
|
+
self._Tamper = Tamper
|
|
39837
|
+
|
|
39838
|
+
@property
|
|
39839
|
+
def Synthesis(self):
|
|
39840
|
+
r"""<p>AIGC合成提示</p>
|
|
39841
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39842
|
+
"""
|
|
39843
|
+
return self._Synthesis
|
|
39844
|
+
|
|
39845
|
+
@Synthesis.setter
|
|
39846
|
+
def Synthesis(self, Synthesis):
|
|
39847
|
+
self._Synthesis = Synthesis
|
|
39848
|
+
|
|
39849
|
+
@property
|
|
39850
|
+
def Template(self):
|
|
39851
|
+
r"""<p>模板图片提示</p>
|
|
39852
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39853
|
+
"""
|
|
39854
|
+
return self._Template
|
|
39855
|
+
|
|
39856
|
+
@Template.setter
|
|
39857
|
+
def Template(self, Template):
|
|
39858
|
+
self._Template = Template
|
|
39859
|
+
|
|
39860
|
+
@property
|
|
39861
|
+
def RemakeScreen(self):
|
|
39862
|
+
r"""<p>屏幕翻拍提示</p>
|
|
39863
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39864
|
+
"""
|
|
39865
|
+
return self._RemakeScreen
|
|
39866
|
+
|
|
39867
|
+
@RemakeScreen.setter
|
|
39868
|
+
def RemakeScreen(self, RemakeScreen):
|
|
39869
|
+
self._RemakeScreen = RemakeScreen
|
|
39870
|
+
|
|
39871
|
+
@property
|
|
39872
|
+
def Screenshot(self):
|
|
39873
|
+
r"""<p>截图提示</p>
|
|
39874
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39875
|
+
"""
|
|
39876
|
+
return self._Screenshot
|
|
39877
|
+
|
|
39878
|
+
@Screenshot.setter
|
|
39879
|
+
def Screenshot(self, Screenshot):
|
|
39880
|
+
self._Screenshot = Screenshot
|
|
39881
|
+
|
|
39882
|
+
@property
|
|
39883
|
+
def Blur(self):
|
|
39884
|
+
r"""<p>模糊提示</p>
|
|
39885
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39886
|
+
"""
|
|
39887
|
+
return self._Blur
|
|
39888
|
+
|
|
39889
|
+
@Blur.setter
|
|
39890
|
+
def Blur(self, Blur):
|
|
39891
|
+
self._Blur = Blur
|
|
39892
|
+
|
|
39893
|
+
@property
|
|
39894
|
+
def BorderIncomplete(self):
|
|
39895
|
+
r"""<p>边框不完整提示</p>
|
|
39896
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39897
|
+
"""
|
|
39898
|
+
return self._BorderIncomplete
|
|
39899
|
+
|
|
39900
|
+
@BorderIncomplete.setter
|
|
39901
|
+
def BorderIncomplete(self, BorderIncomplete):
|
|
39902
|
+
self._BorderIncomplete = BorderIncomplete
|
|
39903
|
+
|
|
39904
|
+
@property
|
|
39905
|
+
def Copy(self):
|
|
39906
|
+
r"""<p>复印件提示</p>
|
|
39907
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39908
|
+
"""
|
|
39909
|
+
return self._Copy
|
|
39910
|
+
|
|
39911
|
+
@Copy.setter
|
|
39912
|
+
def Copy(self, Copy):
|
|
39913
|
+
self._Copy = Copy
|
|
39914
|
+
|
|
39915
|
+
@property
|
|
39916
|
+
def Reflection(self):
|
|
39917
|
+
r"""<p>反光提示</p>
|
|
39918
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39919
|
+
"""
|
|
39920
|
+
return self._Reflection
|
|
39921
|
+
|
|
39922
|
+
@Reflection.setter
|
|
39923
|
+
def Reflection(self, Reflection):
|
|
39924
|
+
self._Reflection = Reflection
|
|
39925
|
+
|
|
39926
|
+
@property
|
|
39927
|
+
def Cover(self):
|
|
39928
|
+
r"""<p>遮挡提示</p>
|
|
39929
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39930
|
+
"""
|
|
39931
|
+
return self._Cover
|
|
39932
|
+
|
|
39933
|
+
@Cover.setter
|
|
39934
|
+
def Cover(self, Cover):
|
|
39935
|
+
self._Cover = Cover
|
|
39936
|
+
|
|
39937
|
+
@property
|
|
39938
|
+
def Overlap(self):
|
|
39939
|
+
r"""<p>重叠提示</p>
|
|
39940
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39941
|
+
"""
|
|
39942
|
+
return self._Overlap
|
|
39943
|
+
|
|
39944
|
+
@Overlap.setter
|
|
39945
|
+
def Overlap(self, Overlap):
|
|
39946
|
+
self._Overlap = Overlap
|
|
39947
|
+
|
|
39948
|
+
@property
|
|
39949
|
+
def Electron(self):
|
|
39950
|
+
r"""<p>电子证照提示(目前仅支持电子身份证、电子营业执照识别)</p>
|
|
39951
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39952
|
+
"""
|
|
39953
|
+
return self._Electron
|
|
39954
|
+
|
|
39955
|
+
@Electron.setter
|
|
39956
|
+
def Electron(self, Electron):
|
|
39957
|
+
self._Electron = Electron
|
|
39958
|
+
|
|
39959
|
+
@property
|
|
39960
|
+
def TextWatermark(self):
|
|
39961
|
+
r"""<p>文字水印提示</p>
|
|
39962
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
39963
|
+
"""
|
|
39964
|
+
return self._TextWatermark
|
|
39965
|
+
|
|
39966
|
+
@TextWatermark.setter
|
|
39967
|
+
def TextWatermark(self, TextWatermark):
|
|
39968
|
+
self._TextWatermark = TextWatermark
|
|
39969
|
+
|
|
39970
|
+
@property
|
|
39971
|
+
def WatermarkContent(self):
|
|
39972
|
+
r"""<p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
|
|
39973
|
+
:rtype: str
|
|
39974
|
+
"""
|
|
39975
|
+
return self._WatermarkContent
|
|
39976
|
+
|
|
39977
|
+
@WatermarkContent.setter
|
|
39978
|
+
def WatermarkContent(self, WatermarkContent):
|
|
39979
|
+
self._WatermarkContent = WatermarkContent
|
|
39980
|
+
|
|
39981
|
+
@property
|
|
39982
|
+
def RequestId(self):
|
|
39983
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
39984
|
+
:rtype: str
|
|
39985
|
+
"""
|
|
39986
|
+
return self._RequestId
|
|
39987
|
+
|
|
39988
|
+
@RequestId.setter
|
|
39989
|
+
def RequestId(self, RequestId):
|
|
39990
|
+
self._RequestId = RequestId
|
|
39991
|
+
|
|
39992
|
+
|
|
39993
|
+
def _deserialize(self, params):
|
|
39994
|
+
if params.get("Tamper") is not None:
|
|
39995
|
+
self._Tamper = GeneralCardWarnInfo()
|
|
39996
|
+
self._Tamper._deserialize(params.get("Tamper"))
|
|
39997
|
+
if params.get("Synthesis") is not None:
|
|
39998
|
+
self._Synthesis = GeneralCardWarnInfo()
|
|
39999
|
+
self._Synthesis._deserialize(params.get("Synthesis"))
|
|
40000
|
+
if params.get("Template") is not None:
|
|
40001
|
+
self._Template = GeneralCardWarnInfo()
|
|
40002
|
+
self._Template._deserialize(params.get("Template"))
|
|
40003
|
+
if params.get("RemakeScreen") is not None:
|
|
40004
|
+
self._RemakeScreen = GeneralCardWarnInfo()
|
|
40005
|
+
self._RemakeScreen._deserialize(params.get("RemakeScreen"))
|
|
40006
|
+
if params.get("Screenshot") is not None:
|
|
40007
|
+
self._Screenshot = GeneralCardWarnInfo()
|
|
40008
|
+
self._Screenshot._deserialize(params.get("Screenshot"))
|
|
40009
|
+
if params.get("Blur") is not None:
|
|
40010
|
+
self._Blur = GeneralCardWarnInfo()
|
|
40011
|
+
self._Blur._deserialize(params.get("Blur"))
|
|
40012
|
+
if params.get("BorderIncomplete") is not None:
|
|
40013
|
+
self._BorderIncomplete = GeneralCardWarnInfo()
|
|
40014
|
+
self._BorderIncomplete._deserialize(params.get("BorderIncomplete"))
|
|
40015
|
+
if params.get("Copy") is not None:
|
|
40016
|
+
self._Copy = GeneralCardWarnInfo()
|
|
40017
|
+
self._Copy._deserialize(params.get("Copy"))
|
|
40018
|
+
if params.get("Reflection") is not None:
|
|
40019
|
+
self._Reflection = GeneralCardWarnInfo()
|
|
40020
|
+
self._Reflection._deserialize(params.get("Reflection"))
|
|
40021
|
+
if params.get("Cover") is not None:
|
|
40022
|
+
self._Cover = GeneralCardWarnInfo()
|
|
40023
|
+
self._Cover._deserialize(params.get("Cover"))
|
|
40024
|
+
if params.get("Overlap") is not None:
|
|
40025
|
+
self._Overlap = GeneralCardWarnInfo()
|
|
40026
|
+
self._Overlap._deserialize(params.get("Overlap"))
|
|
40027
|
+
if params.get("Electron") is not None:
|
|
40028
|
+
self._Electron = GeneralCardWarnInfo()
|
|
40029
|
+
self._Electron._deserialize(params.get("Electron"))
|
|
40030
|
+
if params.get("TextWatermark") is not None:
|
|
40031
|
+
self._TextWatermark = GeneralCardWarnInfo()
|
|
40032
|
+
self._TextWatermark._deserialize(params.get("TextWatermark"))
|
|
40033
|
+
self._WatermarkContent = params.get("WatermarkContent")
|
|
40034
|
+
self._RequestId = params.get("RequestId")
|
|
40035
|
+
|
|
40036
|
+
|
|
39747
40037
|
class VerifyOfdVatInvoiceOCRRequest(AbstractModel):
|
|
39748
40038
|
r"""VerifyOfdVatInvoiceOCR请求参数结构体
|
|
39749
40039
|
|
|
@@ -594,7 +594,7 @@ class OcrClient(AbstractClient):
|
|
|
594
594
|
</tr>
|
|
595
595
|
<tr>
|
|
596
596
|
<td>支持的语言</td>
|
|
597
|
-
<td
|
|
597
|
+
<td>中文、英文、泰语、印尼语、日语、韩语、西班牙语(智利)、西班牙语(墨西哥)、法语、德语、葡萄牙语、葡萄牙语(巴西)、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语、阿拉伯语、维吾尔语、藏语、捷克语、希腊语、希伯来语、克罗地亚语、波兰语、罗马尼亚语、斯洛伐克语、斯洛文尼亚语、土耳其语、保加利亚语、爱沙尼亚语、拉脱维亚语、立陶宛语、乌尔都文、塞尔维亚文、欧西坦文、毛利文、阿尔巴尼亚文、斯瓦希里文、乌兹别克文、乌克兰文、阿巴扎文、南非荷兰文、威尔士文、冰岛文、库尔德文、达尔瓦文、因古什文、拉克文、莱兹甘文、塔巴萨兰文、沙特阿拉伯文、阿瓦尔文、阿迪赫文、印度-古吉拉特语、印度-印地语、印度-孟加拉语、印度-卡纳达语、印度-马拉亚拉姆语、印度-马拉地语、印度-旁遮普语、印度-泰米尔语、印度-泰卢固语、阿塞拜疆语、波斯尼亚语、加泰罗尼亚语、卢森堡语、马耳他语、爱尔兰语、白俄罗斯语、高棉语、他加禄语、普什图语、波斯语、塔吉克斯坦语、尼泊尔语、尼瓦尔语、梵语、马其顿语、柯尔克孜语、车臣语、鞑靼语、加利西亚语、马达加斯加语、老挝、巴什基尔文、马里文、奥塞梯文、布里亚特文、楚瓦什文、萨达里文、马加希文、约鲁巴文、巴利文、博杰普尔文、迈蒂利文、孔卡尼文、比哈尔文</td>
|
|
598
598
|
<td>中文、英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
599
599
|
</tr>
|
|
600
600
|
<tr>
|
|
@@ -2344,6 +2344,29 @@ class OcrClient(AbstractClient):
|
|
|
2344
2344
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2345
2345
|
|
|
2346
2346
|
|
|
2347
|
+
def VerifyGeneralCardWarn(self, request):
|
|
2348
|
+
r"""提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
|
|
2349
|
+
|
|
2350
|
+
:param request: Request instance for VerifyGeneralCardWarn.
|
|
2351
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.VerifyGeneralCardWarnRequest`
|
|
2352
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.VerifyGeneralCardWarnResponse`
|
|
2353
|
+
|
|
2354
|
+
"""
|
|
2355
|
+
try:
|
|
2356
|
+
params = request._serialize()
|
|
2357
|
+
headers = request.headers
|
|
2358
|
+
body = self.call("VerifyGeneralCardWarn", params, headers=headers)
|
|
2359
|
+
response = json.loads(body)
|
|
2360
|
+
model = models.VerifyGeneralCardWarnResponse()
|
|
2361
|
+
model._deserialize(response["Response"])
|
|
2362
|
+
return model
|
|
2363
|
+
except Exception as e:
|
|
2364
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2365
|
+
raise
|
|
2366
|
+
else:
|
|
2367
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2368
|
+
|
|
2369
|
+
|
|
2347
2370
|
def VerifyOfdVatInvoiceOCR(self, request):
|
|
2348
2371
|
r"""本接口支持OFD格式的增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
|
|
2349
2372
|
|
|
@@ -493,7 +493,7 @@ class OcrClient(AbstractClient):
|
|
|
493
493
|
</tr>
|
|
494
494
|
<tr>
|
|
495
495
|
<td>支持的语言</td>
|
|
496
|
-
<td
|
|
496
|
+
<td>中文、英文、泰语、印尼语、日语、韩语、西班牙语(智利)、西班牙语(墨西哥)、法语、德语、葡萄牙语、葡萄牙语(巴西)、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语、阿拉伯语、维吾尔语、藏语、捷克语、希腊语、希伯来语、克罗地亚语、波兰语、罗马尼亚语、斯洛伐克语、斯洛文尼亚语、土耳其语、保加利亚语、爱沙尼亚语、拉脱维亚语、立陶宛语、乌尔都文、塞尔维亚文、欧西坦文、毛利文、阿尔巴尼亚文、斯瓦希里文、乌兹别克文、乌克兰文、阿巴扎文、南非荷兰文、威尔士文、冰岛文、库尔德文、达尔瓦文、因古什文、拉克文、莱兹甘文、塔巴萨兰文、沙特阿拉伯文、阿瓦尔文、阿迪赫文、印度-古吉拉特语、印度-印地语、印度-孟加拉语、印度-卡纳达语、印度-马拉亚拉姆语、印度-马拉地语、印度-旁遮普语、印度-泰米尔语、印度-泰卢固语、阿塞拜疆语、波斯尼亚语、加泰罗尼亚语、卢森堡语、马耳他语、爱尔兰语、白俄罗斯语、高棉语、他加禄语、普什图语、波斯语、塔吉克斯坦语、尼泊尔语、尼瓦尔语、梵语、马其顿语、柯尔克孜语、车臣语、鞑靼语、加利西亚语、马达加斯加语、老挝、巴什基尔文、马里文、奥塞梯文、布里亚特文、楚瓦什文、萨达里文、马加希文、约鲁巴文、巴利文、博杰普尔文、迈蒂利文、孔卡尼文、比哈尔文</td>
|
|
497
497
|
<td>中文、英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
498
498
|
</tr>
|
|
499
499
|
<tr>
|
|
@@ -1978,6 +1978,24 @@ class OcrClient(AbstractClient):
|
|
|
1978
1978
|
|
|
1979
1979
|
return await self.call_and_deserialize(**kwargs)
|
|
1980
1980
|
|
|
1981
|
+
async def VerifyGeneralCardWarn(
|
|
1982
|
+
self,
|
|
1983
|
+
request: models.VerifyGeneralCardWarnRequest,
|
|
1984
|
+
opts: Dict = None,
|
|
1985
|
+
) -> models.VerifyGeneralCardWarnResponse:
|
|
1986
|
+
"""
|
|
1987
|
+
提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
|
|
1988
|
+
"""
|
|
1989
|
+
|
|
1990
|
+
kwargs = {}
|
|
1991
|
+
kwargs["action"] = "VerifyGeneralCardWarn"
|
|
1992
|
+
kwargs["params"] = request._serialize()
|
|
1993
|
+
kwargs["resp_cls"] = models.VerifyGeneralCardWarnResponse
|
|
1994
|
+
kwargs["headers"] = request.headers
|
|
1995
|
+
kwargs["opts"] = opts or {}
|
|
1996
|
+
|
|
1997
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1998
|
+
|
|
1981
1999
|
async def VerifyOfdVatInvoiceOCR(
|
|
1982
2000
|
self,
|
|
1983
2001
|
request: models.VerifyOfdVatInvoiceOCRRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.157
|
|
4
4
|
Summary: Tencent Cloud Ocr SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.157
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=U63FkrJRP7HjC_aWhQCRC4MxxLkVCjY2rI618cSXOY0,630
|
|
2
|
+
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/ocr/v20181119/errorcodes.py,sha256=JIZv0T7mSsIMfQKdQjHDSsF8oW-b9rJTZovBM5qM9xU,7187
|
|
5
|
+
tencentcloud/ocr/v20181119/models.py,sha256=a4cv-IMt712sShKPyhhC48HN7hpJkMtF06dTxS6Cm5s,1367417
|
|
6
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=ZabsztKSo-Wr7q92zk0c73F9LZI-1Aa--SZ1KPQb37Y,115772
|
|
7
|
+
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=t3sEKg7Mebi8piK1TTcVDnNQxVnp0YRil-tPvmtctJ0,92353
|
|
8
|
+
tencentcloud_sdk_python_ocr-3.1.157.dist-info/METADATA,sha256=Z7yqxnlfRX2W_-uQ9YyLz0WcfD3TRnfhyKfWnxK7848,1497
|
|
9
|
+
tencentcloud_sdk_python_ocr-3.1.157.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_ocr-3.1.157.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_ocr-3.1.157.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=qnQ6o-3yofW9uC1gC8G9Hf08QFmwSiDyIdcc9QZFAZI,630
|
|
2
|
-
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/ocr/v20181119/errorcodes.py,sha256=JIZv0T7mSsIMfQKdQjHDSsF8oW-b9rJTZovBM5qM9xU,7187
|
|
5
|
-
tencentcloud/ocr/v20181119/models.py,sha256=qrmwnfs8AZLXsTdPFR1KnrmF1uXhiLpPTII2HEp8oM4,1354492
|
|
6
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=v5WbtJ4tgXqw5nRMa-vuZE2frPFT6dyeH5PX6TcwF64,114359
|
|
7
|
-
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=HphPyFqI9eFwoqFLIja6PKHs7NFAVCzIxSf8CxTE4OQ,91243
|
|
8
|
-
tencentcloud_sdk_python_ocr-3.1.152.dist-info/METADATA,sha256=uhY3nIgw_8UwG_mVrJXddvuyO-mwtfIoz53hbQvwvNA,1497
|
|
9
|
-
tencentcloud_sdk_python_ocr-3.1.152.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_ocr-3.1.152.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_ocr-3.1.152.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|