tencentcloud-sdk-python-ocr 3.1.183__py2.py3-none-any.whl → 3.1.187__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 +49 -4
- {tencentcloud_sdk_python_ocr-3.1.183.dist-info → tencentcloud_sdk_python_ocr-3.1.187.dist-info}/METADATA +2 -2
- {tencentcloud_sdk_python_ocr-3.1.183.dist-info → tencentcloud_sdk_python_ocr-3.1.187.dist-info}/RECORD +6 -6
- {tencentcloud_sdk_python_ocr-3.1.183.dist-info → tencentcloud_sdk_python_ocr-3.1.187.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.1.183.dist-info → tencentcloud_sdk_python_ocr-3.1.187.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -3807,7 +3807,7 @@ class ClassifyDetectOCRRequest(AbstractModel):
|
|
|
3807
3807
|
:type ImageBase64: str
|
|
3808
3808
|
:param _ImageUrl: <p>图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
3809
3809
|
:type ImageUrl: str
|
|
3810
|
-
: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:
|
|
3810
|
+
: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: 道路运输证识别<br>BirthCert 出生证明<br>MarriageCert 结婚证</p>
|
|
3811
3811
|
:type DiscernType: list of str
|
|
3812
3812
|
"""
|
|
3813
3813
|
self._ImageBase64 = None
|
|
@@ -3838,7 +3838,7 @@ class ClassifyDetectOCRRequest(AbstractModel):
|
|
|
3838
3838
|
|
|
3839
3839
|
@property
|
|
3840
3840
|
def DiscernType(self):
|
|
3841
|
-
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:
|
|
3841
|
+
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: 道路运输证识别<br>BirthCert 出生证明<br>MarriageCert 结婚证</p>
|
|
3842
3842
|
:rtype: list of str
|
|
3843
3843
|
"""
|
|
3844
3844
|
return self._DiscernType
|
|
@@ -19059,7 +19059,7 @@ class MultimodalDocParseRequest(AbstractModel):
|
|
|
19059
19059
|
r"""
|
|
19060
19060
|
:param _FileUrl: <p>文件的 Url 地址,支持FileType参数对应的文件格式及大小。文件下载时间不超过3秒。文件存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
19061
19061
|
:type FileUrl: str
|
|
19062
|
-
:param _FileType: <p>支持解析的文件类型。</p><p>1:PDF 文档;</p><p>2:Word 文档(.doc / .docx);</p><p>3:PPT 演示文稿(.ppt / .pptx);</p><p>4:Excel 表格(.xls / .xlsx);</p><p>5:Markdown 文档(.md);</p><p>6:纯文本文件(.txt);</p><p>7:图片文件(.png / .jpg / .jpeg 等);</p><p>8:WPS 文档;</p><p
|
|
19062
|
+
:param _FileType: <p>支持解析的文件类型。</p><p>1:PDF 文档;</p><p>2:Word 文档(.doc / .docx);</p><p>3:PPT 演示文稿(.ppt / .pptx);</p><p>4:Excel 表格(.xls / .xlsx);</p><p>5:Markdown 文档(.md);</p><p>6:纯文本文件(.txt);</p><p>7:图片文件(.png / .jpg / .jpeg 等);</p><p>8:WPS 文档;</p><p>支持的文件大小:</p><p>PDF/WORD/PPT支持150M且300页以内、EXCEL支持10M以内、TXT支持10M以内、图片文件支持30M以内。</p><p></p><p>默认值:1</p>
|
|
19063
19063
|
:type FileType: int
|
|
19064
19064
|
:param _ResultType: <p>输出格式。</p><p>1:json格式</p><p>2:markdown格式</p><p>3:xml格式</p><p>9:json+markdown+xml格式</p><p></p><p>默认值:9</p>
|
|
19065
19065
|
:type ResultType: int
|
|
@@ -19090,7 +19090,7 @@ class MultimodalDocParseRequest(AbstractModel):
|
|
|
19090
19090
|
|
|
19091
19091
|
@property
|
|
19092
19092
|
def FileType(self):
|
|
19093
|
-
r"""<p>支持解析的文件类型。</p><p>1:PDF 文档;</p><p>2:Word 文档(.doc / .docx);</p><p>3:PPT 演示文稿(.ppt / .pptx);</p><p>4:Excel 表格(.xls / .xlsx);</p><p>5:Markdown 文档(.md);</p><p>6:纯文本文件(.txt);</p><p>7:图片文件(.png / .jpg / .jpeg 等);</p><p>8:WPS 文档;</p><p
|
|
19093
|
+
r"""<p>支持解析的文件类型。</p><p>1:PDF 文档;</p><p>2:Word 文档(.doc / .docx);</p><p>3:PPT 演示文稿(.ppt / .pptx);</p><p>4:Excel 表格(.xls / .xlsx);</p><p>5:Markdown 文档(.md);</p><p>6:纯文本文件(.txt);</p><p>7:图片文件(.png / .jpg / .jpeg 等);</p><p>8:WPS 文档;</p><p>支持的文件大小:</p><p>PDF/WORD/PPT支持150M且300页以内、EXCEL支持10M以内、TXT支持10M以内、图片文件支持30M以内。</p><p></p><p>默认值:1</p>
|
|
19094
19094
|
:rtype: int
|
|
19095
19095
|
"""
|
|
19096
19096
|
return self._FileType
|
|
@@ -41571,6 +41571,10 @@ class VerifyScenePhotoRequest(AbstractModel):
|
|
|
41571
41571
|
r"""
|
|
41572
41572
|
:param _Scene: <p>场景类型参数,如果场景无法细分请选用该大类的第一个子类,目前支持以下类型:<br><strong>经营场所照</strong><br>0101 门头照<br>0102 店内照<br>0103 流动经营照 </p><p><strong>车牌业务照</strong><br>0201 车牌</p>
|
|
41573
41573
|
:type Scene: str
|
|
41574
|
+
:param _Mode: <p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按1次调用计费。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持推理,支持屏幕翻拍提示。每次调用按1次调用计费。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按2次调用计费。</p>
|
|
41575
|
+
:type Mode: str
|
|
41576
|
+
:param _VideoUrl: <p>视频的 Url 地址。格式支持:xxxxxx。要求视频不超过 100M。建议视频时长不小于1s。</p>
|
|
41577
|
+
:type VideoUrl: str
|
|
41574
41578
|
:param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
|
|
41575
41579
|
:type ImageUrl: str
|
|
41576
41580
|
:param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
|
|
@@ -41579,12 +41583,17 @@ class VerifyScenePhotoRequest(AbstractModel):
|
|
|
41579
41583
|
:type ReasoningPrompt: str
|
|
41580
41584
|
:param _ReasoningConfig: <p>推理输出配置。当 ReasoningPrompt 传入时建议同步传入,未传入时使用默认配置(OutputMode=enum, EnumValues=["true","false"], EnableImageInput=true)。</p>
|
|
41581
41585
|
:type ReasoningConfig: :class:`tencentcloud.ocr.v20181119.models.ReasoningConfig`
|
|
41586
|
+
:param _IgnoreWatermarkCategories: <p>水印提示排除类型,选择出参“水印提示”排除掉的水印类型,不传的话即代表任意水印都会提示。<br>PhoneCam:手机相机水印<br>WatermarkCam:水印相机水印</p>
|
|
41587
|
+
:type IgnoreWatermarkCategories: list of str
|
|
41582
41588
|
"""
|
|
41583
41589
|
self._Scene = None
|
|
41590
|
+
self._Mode = None
|
|
41591
|
+
self._VideoUrl = None
|
|
41584
41592
|
self._ImageUrl = None
|
|
41585
41593
|
self._ImageBase64 = None
|
|
41586
41594
|
self._ReasoningPrompt = None
|
|
41587
41595
|
self._ReasoningConfig = None
|
|
41596
|
+
self._IgnoreWatermarkCategories = None
|
|
41588
41597
|
|
|
41589
41598
|
@property
|
|
41590
41599
|
def Scene(self):
|
|
@@ -41597,6 +41606,28 @@ class VerifyScenePhotoRequest(AbstractModel):
|
|
|
41597
41606
|
def Scene(self, Scene):
|
|
41598
41607
|
self._Scene = Scene
|
|
41599
41608
|
|
|
41609
|
+
@property
|
|
41610
|
+
def Mode(self):
|
|
41611
|
+
r"""<p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按1次调用计费。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持推理,支持屏幕翻拍提示。每次调用按1次调用计费。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按2次调用计费。</p>
|
|
41612
|
+
:rtype: str
|
|
41613
|
+
"""
|
|
41614
|
+
return self._Mode
|
|
41615
|
+
|
|
41616
|
+
@Mode.setter
|
|
41617
|
+
def Mode(self, Mode):
|
|
41618
|
+
self._Mode = Mode
|
|
41619
|
+
|
|
41620
|
+
@property
|
|
41621
|
+
def VideoUrl(self):
|
|
41622
|
+
r"""<p>视频的 Url 地址。格式支持:xxxxxx。要求视频不超过 100M。建议视频时长不小于1s。</p>
|
|
41623
|
+
:rtype: str
|
|
41624
|
+
"""
|
|
41625
|
+
return self._VideoUrl
|
|
41626
|
+
|
|
41627
|
+
@VideoUrl.setter
|
|
41628
|
+
def VideoUrl(self, VideoUrl):
|
|
41629
|
+
self._VideoUrl = VideoUrl
|
|
41630
|
+
|
|
41600
41631
|
@property
|
|
41601
41632
|
def ImageUrl(self):
|
|
41602
41633
|
r"""<p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
|
|
@@ -41641,15 +41672,29 @@ class VerifyScenePhotoRequest(AbstractModel):
|
|
|
41641
41672
|
def ReasoningConfig(self, ReasoningConfig):
|
|
41642
41673
|
self._ReasoningConfig = ReasoningConfig
|
|
41643
41674
|
|
|
41675
|
+
@property
|
|
41676
|
+
def IgnoreWatermarkCategories(self):
|
|
41677
|
+
r"""<p>水印提示排除类型,选择出参“水印提示”排除掉的水印类型,不传的话即代表任意水印都会提示。<br>PhoneCam:手机相机水印<br>WatermarkCam:水印相机水印</p>
|
|
41678
|
+
:rtype: list of str
|
|
41679
|
+
"""
|
|
41680
|
+
return self._IgnoreWatermarkCategories
|
|
41681
|
+
|
|
41682
|
+
@IgnoreWatermarkCategories.setter
|
|
41683
|
+
def IgnoreWatermarkCategories(self, IgnoreWatermarkCategories):
|
|
41684
|
+
self._IgnoreWatermarkCategories = IgnoreWatermarkCategories
|
|
41685
|
+
|
|
41644
41686
|
|
|
41645
41687
|
def _deserialize(self, params):
|
|
41646
41688
|
self._Scene = params.get("Scene")
|
|
41689
|
+
self._Mode = params.get("Mode")
|
|
41690
|
+
self._VideoUrl = params.get("VideoUrl")
|
|
41647
41691
|
self._ImageUrl = params.get("ImageUrl")
|
|
41648
41692
|
self._ImageBase64 = params.get("ImageBase64")
|
|
41649
41693
|
self._ReasoningPrompt = params.get("ReasoningPrompt")
|
|
41650
41694
|
if params.get("ReasoningConfig") is not None:
|
|
41651
41695
|
self._ReasoningConfig = ReasoningConfig()
|
|
41652
41696
|
self._ReasoningConfig._deserialize(params.get("ReasoningConfig"))
|
|
41697
|
+
self._IgnoreWatermarkCategories = params.get("IgnoreWatermarkCategories")
|
|
41653
41698
|
memeber_set = set(params.keys())
|
|
41654
41699
|
for name, value in vars(self).items():
|
|
41655
41700
|
property_name = name[1:]
|
|
@@ -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.187
|
|
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.187
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=
|
|
1
|
+
tencentcloud/__init__.py,sha256=uWiN7ACj-CNw3hEA9PbzCsQd6pUlW1gZk9dzOxp_KNI,630
|
|
2
2
|
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
tencentcloud/ocr/v20181119/errorcodes.py,sha256=S5g9j2BB_ybf3WEduIGN-G5AXoJVZaB9mGGpCcFCWgY,7279
|
|
5
|
-
tencentcloud/ocr/v20181119/models.py,sha256=
|
|
5
|
+
tencentcloud/ocr/v20181119/models.py,sha256=JZb4LnAt44lV5dPsZjoeYt1RD-u6tC5w8FOvx5t6J1I,1426237
|
|
6
6
|
tencentcloud/ocr/v20181119/ocr_client.py,sha256=-0GARSmRBSPeJKhH3hlkLlAaxYFfc_9ugGgbfo0-v9s,114809
|
|
7
7
|
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=20D-8cFRcE9kLjycd0HO5Fn2E0Do3TAZxDwF-FAJTdc,90780
|
|
8
|
-
tencentcloud_sdk_python_ocr-3.1.
|
|
9
|
-
tencentcloud_sdk_python_ocr-3.1.
|
|
10
|
-
tencentcloud_sdk_python_ocr-3.1.
|
|
11
|
-
tencentcloud_sdk_python_ocr-3.1.
|
|
8
|
+
tencentcloud_sdk_python_ocr-3.1.187.dist-info/METADATA,sha256=Q_b7USjc-0Gjo6RHlOhEeY9fZqgbHkjyN_oc6RxiGkw,1497
|
|
9
|
+
tencentcloud_sdk_python_ocr-3.1.187.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_ocr-3.1.187.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_ocr-3.1.187.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|