tencentcloud-sdk-python-ocr 3.1.48__tar.gz → 3.1.51__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.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/setup.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud/ocr/v20181119/models.py +78 -353
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud/ocr/v20181119/ocr_client.py +3 -28
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud/ocr/v20181119/ocr_client_async.py +3 -23
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ocr-3.1.51/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ocr-3.1.48/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/README.rst +0 -0
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.48 → tencentcloud_sdk_python_ocr-3.1.51}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
|
@@ -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.51
|
|
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.51
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -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.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.51,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ocr SDK for Python',
|
|
@@ -14609,38 +14609,21 @@ class IDCardOCRRequest(AbstractModel):
|
|
|
14609
14609
|
|
|
14610
14610
|
def __init__(self):
|
|
14611
14611
|
r"""
|
|
14612
|
-
:param _ImageBase64:
|
|
14612
|
+
:param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
14613
14613
|
:type ImageBase64: str
|
|
14614
|
-
:param _ImageUrl:
|
|
14614
|
+
:param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
|
|
14615
14615
|
:type ImageUrl: str
|
|
14616
|
-
:param _CardSide: FRONT
|
|
14617
|
-
BACK:身份证有国徽的一面(国徽面),
|
|
14618
|
-
该参数如果不填,将为您自动判断身份证正反面。
|
|
14616
|
+
:param _CardSide: <p>FRONT:身份证有照片的一面(人像面),<br>BACK:身份证有国徽的一面(国徽面),<br>该参数如果不填,将为您自动判断身份证正反面。</p>
|
|
14619
14617
|
:type CardSide: str
|
|
14620
|
-
:param _Config:
|
|
14621
|
-
CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
|
|
14622
|
-
CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
|
|
14623
|
-
CopyWarn,复印件告警
|
|
14624
|
-
BorderCheckWarn,边框不完整和框内遮挡告警
|
|
14625
|
-
ReshootWarn,屏幕翻拍告警
|
|
14626
|
-
DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
|
|
14627
|
-
TempIdWarn,临时身份证告警
|
|
14628
|
-
InvalidDateWarn,身份证有效日期不合法告警
|
|
14629
|
-
Quality,图片质量分数(评价图片的模糊程度)
|
|
14630
|
-
MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
|
|
14631
|
-
ReflectWarn,是否开启反光检测
|
|
14632
|
-
SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
|
|
14633
|
-
API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
|
|
14618
|
+
:param _Config: <p>以下可选字段均为bool 类型,默认false:<br>CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)<br>CropPortrait,人像照片裁剪(自动抠取身份证头像区域)<br>CopyWarn,复印件告警<br>BorderCheckWarn,边框不完整和框内遮挡告警<br>ReshootWarn,屏幕翻拍告警<br>DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证、水印告警)<br>TempIdWarn,临时身份证告警<br>InvalidDateWarn,身份证有效日期不合法告警<br>Quality,图片质量分数(评价图片的模糊程度)<br>MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)<br>ReflectWarn,是否开启反光检测<br>SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})<br>API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}</p>
|
|
14634
14619
|
:type Config: str
|
|
14635
|
-
:param _EnableRecognitionRectify:
|
|
14620
|
+
:param _EnableRecognitionRectify: <p>默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。</p>
|
|
14636
14621
|
:type EnableRecognitionRectify: bool
|
|
14637
|
-
:param _EnableReflectDetail:
|
|
14638
|
-
|
|
14639
|
-
此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
|
|
14622
|
+
:param _EnableReflectDetail: <p>默认值为false。</p><p>此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。</p>
|
|
14640
14623
|
:type EnableReflectDetail: bool
|
|
14641
|
-
:param _EnableDateVerify:
|
|
14624
|
+
:param _EnableDateVerify: <p>用于控制是否开启日期校验,默认值为true,打开会进行日期校验。</p>
|
|
14642
14625
|
:type EnableDateVerify: bool
|
|
14643
|
-
:param _CardWarnType: Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic
|
|
14626
|
+
:param _CardWarnType: <p>Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic</p>
|
|
14644
14627
|
:type CardWarnType: str
|
|
14645
14628
|
"""
|
|
14646
14629
|
self._ImageBase64 = None
|
|
@@ -14654,7 +14637,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
14654
14637
|
|
|
14655
14638
|
@property
|
|
14656
14639
|
def ImageBase64(self):
|
|
14657
|
-
r"""
|
|
14640
|
+
r"""<p>图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
14658
14641
|
:rtype: str
|
|
14659
14642
|
"""
|
|
14660
14643
|
return self._ImageBase64
|
|
@@ -14665,7 +14648,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
14665
14648
|
|
|
14666
14649
|
@property
|
|
14667
14650
|
def ImageUrl(self):
|
|
14668
|
-
r"""
|
|
14651
|
+
r"""<p>图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
|
|
14669
14652
|
:rtype: str
|
|
14670
14653
|
"""
|
|
14671
14654
|
return self._ImageUrl
|
|
@@ -14676,9 +14659,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
14676
14659
|
|
|
14677
14660
|
@property
|
|
14678
14661
|
def CardSide(self):
|
|
14679
|
-
r"""FRONT
|
|
14680
|
-
BACK:身份证有国徽的一面(国徽面),
|
|
14681
|
-
该参数如果不填,将为您自动判断身份证正反面。
|
|
14662
|
+
r"""<p>FRONT:身份证有照片的一面(人像面),<br>BACK:身份证有国徽的一面(国徽面),<br>该参数如果不填,将为您自动判断身份证正反面。</p>
|
|
14682
14663
|
:rtype: str
|
|
14683
14664
|
"""
|
|
14684
14665
|
return self._CardSide
|
|
@@ -14689,20 +14670,7 @@ BACK:身份证有国徽的一面(国徽面),
|
|
|
14689
14670
|
|
|
14690
14671
|
@property
|
|
14691
14672
|
def Config(self):
|
|
14692
|
-
r"""
|
|
14693
|
-
CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
|
|
14694
|
-
CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
|
|
14695
|
-
CopyWarn,复印件告警
|
|
14696
|
-
BorderCheckWarn,边框不完整和框内遮挡告警
|
|
14697
|
-
ReshootWarn,屏幕翻拍告警
|
|
14698
|
-
DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
|
|
14699
|
-
TempIdWarn,临时身份证告警
|
|
14700
|
-
InvalidDateWarn,身份证有效日期不合法告警
|
|
14701
|
-
Quality,图片质量分数(评价图片的模糊程度)
|
|
14702
|
-
MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
|
|
14703
|
-
ReflectWarn,是否开启反光检测
|
|
14704
|
-
SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
|
|
14705
|
-
API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
|
|
14673
|
+
r"""<p>以下可选字段均为bool 类型,默认false:<br>CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)<br>CropPortrait,人像照片裁剪(自动抠取身份证头像区域)<br>CopyWarn,复印件告警<br>BorderCheckWarn,边框不完整和框内遮挡告警<br>ReshootWarn,屏幕翻拍告警<br>DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证、水印告警)<br>TempIdWarn,临时身份证告警<br>InvalidDateWarn,身份证有效日期不合法告警<br>Quality,图片质量分数(评价图片的模糊程度)<br>MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)<br>ReflectWarn,是否开启反光检测<br>SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})<br>API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}</p>
|
|
14706
14674
|
:rtype: str
|
|
14707
14675
|
"""
|
|
14708
14676
|
return self._Config
|
|
@@ -14713,7 +14681,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
14713
14681
|
|
|
14714
14682
|
@property
|
|
14715
14683
|
def EnableRecognitionRectify(self):
|
|
14716
|
-
r"""
|
|
14684
|
+
r"""<p>默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。</p>
|
|
14717
14685
|
:rtype: bool
|
|
14718
14686
|
"""
|
|
14719
14687
|
return self._EnableRecognitionRectify
|
|
@@ -14724,9 +14692,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
14724
14692
|
|
|
14725
14693
|
@property
|
|
14726
14694
|
def EnableReflectDetail(self):
|
|
14727
|
-
r"""
|
|
14728
|
-
|
|
14729
|
-
此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
|
|
14695
|
+
r"""<p>默认值为false。</p><p>此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。</p>
|
|
14730
14696
|
:rtype: bool
|
|
14731
14697
|
"""
|
|
14732
14698
|
return self._EnableReflectDetail
|
|
@@ -14739,7 +14705,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
14739
14705
|
def EnableDateVerify(self):
|
|
14740
14706
|
warnings.warn("parameter `EnableDateVerify` is deprecated", DeprecationWarning)
|
|
14741
14707
|
|
|
14742
|
-
r"""
|
|
14708
|
+
r"""<p>用于控制是否开启日期校验,默认值为true,打开会进行日期校验。</p>
|
|
14743
14709
|
:rtype: bool
|
|
14744
14710
|
"""
|
|
14745
14711
|
return self._EnableDateVerify
|
|
@@ -14752,7 +14718,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
14752
14718
|
|
|
14753
14719
|
@property
|
|
14754
14720
|
def CardWarnType(self):
|
|
14755
|
-
r"""Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic
|
|
14721
|
+
r"""<p>Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic</p>
|
|
14756
14722
|
:rtype: str
|
|
14757
14723
|
"""
|
|
14758
14724
|
return self._CardWarnType
|
|
@@ -14788,40 +14754,25 @@ class IDCardOCRResponse(AbstractModel):
|
|
|
14788
14754
|
|
|
14789
14755
|
def __init__(self):
|
|
14790
14756
|
r"""
|
|
14791
|
-
:param _Name:
|
|
14757
|
+
:param _Name: <p>姓名(人像面)</p>
|
|
14792
14758
|
:type Name: str
|
|
14793
|
-
:param _Sex:
|
|
14759
|
+
:param _Sex: <p>性别(人像面)</p>
|
|
14794
14760
|
:type Sex: str
|
|
14795
|
-
:param _Nation:
|
|
14761
|
+
:param _Nation: <p>民族(人像面)</p>
|
|
14796
14762
|
:type Nation: str
|
|
14797
|
-
:param _Birth:
|
|
14763
|
+
:param _Birth: <p>出生日期(人像面)</p>
|
|
14798
14764
|
:type Birth: str
|
|
14799
|
-
:param _Address:
|
|
14765
|
+
:param _Address: <p>地址(人像面)</p>
|
|
14800
14766
|
:type Address: str
|
|
14801
|
-
:param _IdNum:
|
|
14767
|
+
:param _IdNum: <p>身份证号(人像面)</p>
|
|
14802
14768
|
:type IdNum: str
|
|
14803
|
-
:param _Authority:
|
|
14769
|
+
:param _Authority: <p>发证机关(国徽面)</p>
|
|
14804
14770
|
:type Authority: str
|
|
14805
|
-
:param _ValidDate:
|
|
14771
|
+
:param _ValidDate: <p>证件有效期(国徽面)</p>
|
|
14806
14772
|
:type ValidDate: str
|
|
14807
|
-
:param _AdvancedInfo:
|
|
14808
|
-
IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
|
|
14809
|
-
Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
|
|
14810
|
-
Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
|
|
14811
|
-
BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
|
|
14812
|
-
WarnInfos,告警信息,Code 告警码列表和释义:
|
|
14813
|
-
-9100 身份证有效日期不合法告警,
|
|
14814
|
-
-9101 身份证边框不完整告警,
|
|
14815
|
-
-9102 身份证复印件告警(黑白及彩色复印件),
|
|
14816
|
-
-9108 身份证复印件告警(仅黑白复印件),
|
|
14817
|
-
-9103 身份证翻拍告警,
|
|
14818
|
-
-9105 身份证框内遮挡告警,
|
|
14819
|
-
-9104 临时身份证告警,
|
|
14820
|
-
-9106 身份证疑似存在PS痕迹告警,
|
|
14821
|
-
-9107 身份证反光告警,
|
|
14822
|
-
-9110 电子身份证告警
|
|
14773
|
+
:param _AdvancedInfo: <p>扩展信息,不请求则不返回,具体输入参考示例3和示例4。<br>IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;<br>Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;<br>Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);<br>BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);<br>WarnInfos,告警信息,Code 告警码列表和释义:<br>-9100 身份证有效日期不合法告警,<br>-9101 身份证边框不完整告警,<br>-9102 身份证复印件告警(黑白及彩色复印件),<br>-9108 身份证复印件告警(仅黑白复印件),<br>-9103 身份证翻拍告警,<br>-9105 身份证框内遮挡告警,<br>-9104 临时身份证告警,<br>-9106 身份证疑似存在PS痕迹告警,<br>-9107 身份证反光告警,<br>-9110 电子身份证告警,<br>-9111 水印告警(仅CardWarnType参数为Advanced时)</p>
|
|
14823
14774
|
:type AdvancedInfo: str
|
|
14824
|
-
:param _ReflectDetailInfos:
|
|
14775
|
+
:param _ReflectDetailInfos: <p>反光点覆盖区域详情结果,具体内容请点击左侧链接</p>
|
|
14825
14776
|
:type ReflectDetailInfos: list of ReflectDetailInfo
|
|
14826
14777
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14827
14778
|
:type RequestId: str
|
|
@@ -14840,7 +14791,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14840
14791
|
|
|
14841
14792
|
@property
|
|
14842
14793
|
def Name(self):
|
|
14843
|
-
r"""
|
|
14794
|
+
r"""<p>姓名(人像面)</p>
|
|
14844
14795
|
:rtype: str
|
|
14845
14796
|
"""
|
|
14846
14797
|
return self._Name
|
|
@@ -14851,7 +14802,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14851
14802
|
|
|
14852
14803
|
@property
|
|
14853
14804
|
def Sex(self):
|
|
14854
|
-
r"""
|
|
14805
|
+
r"""<p>性别(人像面)</p>
|
|
14855
14806
|
:rtype: str
|
|
14856
14807
|
"""
|
|
14857
14808
|
return self._Sex
|
|
@@ -14862,7 +14813,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14862
14813
|
|
|
14863
14814
|
@property
|
|
14864
14815
|
def Nation(self):
|
|
14865
|
-
r"""
|
|
14816
|
+
r"""<p>民族(人像面)</p>
|
|
14866
14817
|
:rtype: str
|
|
14867
14818
|
"""
|
|
14868
14819
|
return self._Nation
|
|
@@ -14873,7 +14824,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14873
14824
|
|
|
14874
14825
|
@property
|
|
14875
14826
|
def Birth(self):
|
|
14876
|
-
r"""
|
|
14827
|
+
r"""<p>出生日期(人像面)</p>
|
|
14877
14828
|
:rtype: str
|
|
14878
14829
|
"""
|
|
14879
14830
|
return self._Birth
|
|
@@ -14884,7 +14835,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14884
14835
|
|
|
14885
14836
|
@property
|
|
14886
14837
|
def Address(self):
|
|
14887
|
-
r"""
|
|
14838
|
+
r"""<p>地址(人像面)</p>
|
|
14888
14839
|
:rtype: str
|
|
14889
14840
|
"""
|
|
14890
14841
|
return self._Address
|
|
@@ -14895,7 +14846,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14895
14846
|
|
|
14896
14847
|
@property
|
|
14897
14848
|
def IdNum(self):
|
|
14898
|
-
r"""
|
|
14849
|
+
r"""<p>身份证号(人像面)</p>
|
|
14899
14850
|
:rtype: str
|
|
14900
14851
|
"""
|
|
14901
14852
|
return self._IdNum
|
|
@@ -14906,7 +14857,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14906
14857
|
|
|
14907
14858
|
@property
|
|
14908
14859
|
def Authority(self):
|
|
14909
|
-
r"""
|
|
14860
|
+
r"""<p>发证机关(国徽面)</p>
|
|
14910
14861
|
:rtype: str
|
|
14911
14862
|
"""
|
|
14912
14863
|
return self._Authority
|
|
@@ -14917,7 +14868,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14917
14868
|
|
|
14918
14869
|
@property
|
|
14919
14870
|
def ValidDate(self):
|
|
14920
|
-
r"""
|
|
14871
|
+
r"""<p>证件有效期(国徽面)</p>
|
|
14921
14872
|
:rtype: str
|
|
14922
14873
|
"""
|
|
14923
14874
|
return self._ValidDate
|
|
@@ -14928,22 +14879,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14928
14879
|
|
|
14929
14880
|
@property
|
|
14930
14881
|
def AdvancedInfo(self):
|
|
14931
|
-
r"""
|
|
14932
|
-
IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
|
|
14933
|
-
Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
|
|
14934
|
-
Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
|
|
14935
|
-
BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
|
|
14936
|
-
WarnInfos,告警信息,Code 告警码列表和释义:
|
|
14937
|
-
-9100 身份证有效日期不合法告警,
|
|
14938
|
-
-9101 身份证边框不完整告警,
|
|
14939
|
-
-9102 身份证复印件告警(黑白及彩色复印件),
|
|
14940
|
-
-9108 身份证复印件告警(仅黑白复印件),
|
|
14941
|
-
-9103 身份证翻拍告警,
|
|
14942
|
-
-9105 身份证框内遮挡告警,
|
|
14943
|
-
-9104 临时身份证告警,
|
|
14944
|
-
-9106 身份证疑似存在PS痕迹告警,
|
|
14945
|
-
-9107 身份证反光告警,
|
|
14946
|
-
-9110 电子身份证告警
|
|
14882
|
+
r"""<p>扩展信息,不请求则不返回,具体输入参考示例3和示例4。<br>IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;<br>Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;<br>Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);<br>BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);<br>WarnInfos,告警信息,Code 告警码列表和释义:<br>-9100 身份证有效日期不合法告警,<br>-9101 身份证边框不完整告警,<br>-9102 身份证复印件告警(黑白及彩色复印件),<br>-9108 身份证复印件告警(仅黑白复印件),<br>-9103 身份证翻拍告警,<br>-9105 身份证框内遮挡告警,<br>-9104 临时身份证告警,<br>-9106 身份证疑似存在PS痕迹告警,<br>-9107 身份证反光告警,<br>-9110 电子身份证告警,<br>-9111 水印告警(仅CardWarnType参数为Advanced时)</p>
|
|
14947
14883
|
:rtype: str
|
|
14948
14884
|
"""
|
|
14949
14885
|
return self._AdvancedInfo
|
|
@@ -14954,7 +14890,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
14954
14890
|
|
|
14955
14891
|
@property
|
|
14956
14892
|
def ReflectDetailInfos(self):
|
|
14957
|
-
r"""
|
|
14893
|
+
r"""<p>反光点覆盖区域详情结果,具体内容请点击左侧链接</p>
|
|
14958
14894
|
:rtype: list of ReflectDetailInfo
|
|
14959
14895
|
"""
|
|
14960
14896
|
return self._ReflectDetailInfos
|
|
@@ -24778,40 +24714,23 @@ class RecognizeEncryptedIDCardOCRRequest(AbstractModel):
|
|
|
24778
24714
|
|
|
24779
24715
|
def __init__(self):
|
|
24780
24716
|
r"""
|
|
24781
|
-
:param _EncryptedBody:
|
|
24717
|
+
:param _EncryptedBody: <p>请求体被加密后的密文(Base64编码),本接口只支持加密传输</p>
|
|
24782
24718
|
:type EncryptedBody: str
|
|
24783
|
-
:param _Encryption:
|
|
24719
|
+
:param _Encryption: <p>敏感数据加密信息。对传入信息有加密需求的用户可使用此参数,详情请点击左侧链接。</p>
|
|
24784
24720
|
:type Encryption: :class:`tencentcloud.ocr.v20181119.models.Encryption`
|
|
24785
|
-
:param _ImageBase64:
|
|
24721
|
+
:param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
24786
24722
|
:type ImageBase64: str
|
|
24787
|
-
:param _ImageUrl:
|
|
24723
|
+
:param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
|
|
24788
24724
|
:type ImageUrl: str
|
|
24789
|
-
:param _CardSide: FRONT
|
|
24790
|
-
BACK:身份证有国徽的一面(国徽面),
|
|
24791
|
-
该参数如果不填,将为您自动判断身份证正反面。
|
|
24725
|
+
:param _CardSide: <p>FRONT:身份证有照片的一面(人像面),<br>BACK:身份证有国徽的一面(国徽面),<br>该参数如果不填,将为您自动判断身份证正反面。</p>
|
|
24792
24726
|
:type CardSide: str
|
|
24793
|
-
:param _Config:
|
|
24794
|
-
CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
|
|
24795
|
-
CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
|
|
24796
|
-
CopyWarn,复印件告警
|
|
24797
|
-
BorderCheckWarn,边框不完整和框内遮挡告警
|
|
24798
|
-
ReshootWarn,屏幕翻拍告警
|
|
24799
|
-
DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
|
|
24800
|
-
TempIdWarn,临时身份证告警
|
|
24801
|
-
InvalidDateWarn,身份证有效日期不合法告警
|
|
24802
|
-
Quality,图片质量分数(评价图片的模糊程度)
|
|
24803
|
-
MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
|
|
24804
|
-
ReflectWarn,是否开启反光检测
|
|
24805
|
-
SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
|
|
24806
|
-
API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
|
|
24727
|
+
:param _Config: <p>以下可选字段均为bool 类型,默认false:<br>CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)<br>CropPortrait,人像照片裁剪(自动抠取身份证头像区域)<br>CopyWarn,复印件告警<br>BorderCheckWarn,边框不完整和框内遮挡告警<br>ReshootWarn,屏幕翻拍告警<br>DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证、水印告警)<br>TempIdWarn,临时身份证告警<br>InvalidDateWarn,身份证有效日期不合法告警<br>Quality,图片质量分数(评价图片的模糊程度)<br>MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)<br>ReflectWarn,是否开启反光检测<br>SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})<br>API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}</p>
|
|
24807
24728
|
:type Config: str
|
|
24808
|
-
:param _EnableRecognitionRectify:
|
|
24729
|
+
:param _EnableRecognitionRectify: <p>默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。</p>
|
|
24809
24730
|
:type EnableRecognitionRectify: bool
|
|
24810
|
-
:param _EnableReflectDetail:
|
|
24811
|
-
|
|
24812
|
-
此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
|
|
24731
|
+
:param _EnableReflectDetail: <p>默认值为false。</p><p>此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。</p>
|
|
24813
24732
|
:type EnableReflectDetail: bool
|
|
24814
|
-
:param _CardWarnType: Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic
|
|
24733
|
+
:param _CardWarnType: <p>Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic</p>
|
|
24815
24734
|
:type CardWarnType: str
|
|
24816
24735
|
"""
|
|
24817
24736
|
self._EncryptedBody = None
|
|
@@ -24826,7 +24745,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
24826
24745
|
|
|
24827
24746
|
@property
|
|
24828
24747
|
def EncryptedBody(self):
|
|
24829
|
-
r"""
|
|
24748
|
+
r"""<p>请求体被加密后的密文(Base64编码),本接口只支持加密传输</p>
|
|
24830
24749
|
:rtype: str
|
|
24831
24750
|
"""
|
|
24832
24751
|
return self._EncryptedBody
|
|
@@ -24837,7 +24756,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
24837
24756
|
|
|
24838
24757
|
@property
|
|
24839
24758
|
def Encryption(self):
|
|
24840
|
-
r"""
|
|
24759
|
+
r"""<p>敏感数据加密信息。对传入信息有加密需求的用户可使用此参数,详情请点击左侧链接。</p>
|
|
24841
24760
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.Encryption`
|
|
24842
24761
|
"""
|
|
24843
24762
|
return self._Encryption
|
|
@@ -24848,7 +24767,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
24848
24767
|
|
|
24849
24768
|
@property
|
|
24850
24769
|
def ImageBase64(self):
|
|
24851
|
-
r"""
|
|
24770
|
+
r"""<p>图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
24852
24771
|
:rtype: str
|
|
24853
24772
|
"""
|
|
24854
24773
|
return self._ImageBase64
|
|
@@ -24859,7 +24778,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
24859
24778
|
|
|
24860
24779
|
@property
|
|
24861
24780
|
def ImageUrl(self):
|
|
24862
|
-
r"""
|
|
24781
|
+
r"""<p>图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
|
|
24863
24782
|
:rtype: str
|
|
24864
24783
|
"""
|
|
24865
24784
|
return self._ImageUrl
|
|
@@ -24870,9 +24789,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
24870
24789
|
|
|
24871
24790
|
@property
|
|
24872
24791
|
def CardSide(self):
|
|
24873
|
-
r"""FRONT
|
|
24874
|
-
BACK:身份证有国徽的一面(国徽面),
|
|
24875
|
-
该参数如果不填,将为您自动判断身份证正反面。
|
|
24792
|
+
r"""<p>FRONT:身份证有照片的一面(人像面),<br>BACK:身份证有国徽的一面(国徽面),<br>该参数如果不填,将为您自动判断身份证正反面。</p>
|
|
24876
24793
|
:rtype: str
|
|
24877
24794
|
"""
|
|
24878
24795
|
return self._CardSide
|
|
@@ -24883,20 +24800,7 @@ BACK:身份证有国徽的一面(国徽面),
|
|
|
24883
24800
|
|
|
24884
24801
|
@property
|
|
24885
24802
|
def Config(self):
|
|
24886
|
-
r"""
|
|
24887
|
-
CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
|
|
24888
|
-
CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
|
|
24889
|
-
CopyWarn,复印件告警
|
|
24890
|
-
BorderCheckWarn,边框不完整和框内遮挡告警
|
|
24891
|
-
ReshootWarn,屏幕翻拍告警
|
|
24892
|
-
DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
|
|
24893
|
-
TempIdWarn,临时身份证告警
|
|
24894
|
-
InvalidDateWarn,身份证有效日期不合法告警
|
|
24895
|
-
Quality,图片质量分数(评价图片的模糊程度)
|
|
24896
|
-
MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
|
|
24897
|
-
ReflectWarn,是否开启反光检测
|
|
24898
|
-
SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
|
|
24899
|
-
API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
|
|
24803
|
+
r"""<p>以下可选字段均为bool 类型,默认false:<br>CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)<br>CropPortrait,人像照片裁剪(自动抠取身份证头像区域)<br>CopyWarn,复印件告警<br>BorderCheckWarn,边框不完整和框内遮挡告警<br>ReshootWarn,屏幕翻拍告警<br>DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证、水印告警)<br>TempIdWarn,临时身份证告警<br>InvalidDateWarn,身份证有效日期不合法告警<br>Quality,图片质量分数(评价图片的模糊程度)<br>MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)<br>ReflectWarn,是否开启反光检测<br>SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})<br>API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}</p>
|
|
24900
24804
|
:rtype: str
|
|
24901
24805
|
"""
|
|
24902
24806
|
return self._Config
|
|
@@ -24907,7 +24811,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
24907
24811
|
|
|
24908
24812
|
@property
|
|
24909
24813
|
def EnableRecognitionRectify(self):
|
|
24910
|
-
r"""
|
|
24814
|
+
r"""<p>默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。</p>
|
|
24911
24815
|
:rtype: bool
|
|
24912
24816
|
"""
|
|
24913
24817
|
return self._EnableRecognitionRectify
|
|
@@ -24918,9 +24822,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
24918
24822
|
|
|
24919
24823
|
@property
|
|
24920
24824
|
def EnableReflectDetail(self):
|
|
24921
|
-
r"""
|
|
24922
|
-
|
|
24923
|
-
此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
|
|
24825
|
+
r"""<p>默认值为false。</p><p>此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。</p>
|
|
24924
24826
|
:rtype: bool
|
|
24925
24827
|
"""
|
|
24926
24828
|
return self._EnableReflectDetail
|
|
@@ -24931,7 +24833,7 @@ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait"
|
|
|
24931
24833
|
|
|
24932
24834
|
@property
|
|
24933
24835
|
def CardWarnType(self):
|
|
24934
|
-
r"""Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic
|
|
24836
|
+
r"""<p>Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic</p>
|
|
24935
24837
|
:rtype: str
|
|
24936
24838
|
"""
|
|
24937
24839
|
return self._CardWarnType
|
|
@@ -24970,44 +24872,29 @@ class RecognizeEncryptedIDCardOCRResponse(AbstractModel):
|
|
|
24970
24872
|
|
|
24971
24873
|
def __init__(self):
|
|
24972
24874
|
r"""
|
|
24973
|
-
:param _Name:
|
|
24875
|
+
:param _Name: <p>姓名(人像面)</p>
|
|
24974
24876
|
:type Name: str
|
|
24975
|
-
:param _Sex:
|
|
24877
|
+
:param _Sex: <p>性别(人像面)</p>
|
|
24976
24878
|
:type Sex: str
|
|
24977
|
-
:param _Nation:
|
|
24879
|
+
:param _Nation: <p>民族(人像面)</p>
|
|
24978
24880
|
:type Nation: str
|
|
24979
|
-
:param _Birth:
|
|
24881
|
+
:param _Birth: <p>出生日期(人像面)</p>
|
|
24980
24882
|
:type Birth: str
|
|
24981
|
-
:param _Address:
|
|
24883
|
+
:param _Address: <p>地址(人像面)</p>
|
|
24982
24884
|
:type Address: str
|
|
24983
|
-
:param _IdNum:
|
|
24885
|
+
:param _IdNum: <p>身份证号(人像面)</p>
|
|
24984
24886
|
:type IdNum: str
|
|
24985
|
-
:param _Authority:
|
|
24887
|
+
:param _Authority: <p>发证机关(国徽面)</p>
|
|
24986
24888
|
:type Authority: str
|
|
24987
|
-
:param _ValidDate:
|
|
24889
|
+
:param _ValidDate: <p>证件有效期(国徽面)</p>
|
|
24988
24890
|
:type ValidDate: str
|
|
24989
|
-
:param _AdvancedInfo:
|
|
24990
|
-
IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
|
|
24991
|
-
Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
|
|
24992
|
-
Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
|
|
24993
|
-
BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
|
|
24994
|
-
WarnInfos,告警信息,Code 告警码列表和释义:
|
|
24995
|
-
-9100 身份证有效日期不合法告警,
|
|
24996
|
-
-9101 身份证边框不完整告警,
|
|
24997
|
-
-9102 身份证复印件告警(黑白及彩色复印件),
|
|
24998
|
-
-9108 身份证复印件告警(仅黑白复印件),
|
|
24999
|
-
-9103 身份证翻拍告警,
|
|
25000
|
-
-9105 身份证框内遮挡告警,
|
|
25001
|
-
-9104 临时身份证告警,
|
|
25002
|
-
-9106 身份证疑似存在PS痕迹告警,
|
|
25003
|
-
-9107 身份证反光告警,
|
|
25004
|
-
-9110 电子身份证告警
|
|
24891
|
+
:param _AdvancedInfo: <p>扩展信息,不请求则不返回,具体输入参考示例3和示例4。<br>IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;<br>Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;<br>Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);<br>BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);<br>WarnInfos,告警信息,Code 告警码列表和释义:<br>-9100 身份证有效日期不合法告警,<br>-9101 身份证边框不完整告警,<br>-9102 身份证复印件告警(黑白及彩色复印件),<br>-9108 身份证复印件告警(仅黑白复印件),<br>-9103 身份证翻拍告警,<br>-9105 身份证框内遮挡告警,<br>-9104 临时身份证告警,<br>-9106 身份证疑似存在PS痕迹告警,<br>-9107 身份证反光告警,<br>-9110 电子身份证告警,<br>-9111 水印告警(仅CardWarnType参数为Advanced时),</p>
|
|
25005
24892
|
:type AdvancedInfo: str
|
|
25006
|
-
:param _ReflectDetailInfos:
|
|
24893
|
+
:param _ReflectDetailInfos: <p>反光点覆盖区域详情结果,具体内容请点击左侧链接</p>
|
|
25007
24894
|
:type ReflectDetailInfos: list of ReflectDetailInfo
|
|
25008
|
-
:param _EncryptedBody:
|
|
24895
|
+
:param _EncryptedBody: <p>加密后的数据(Base64编码)</p>
|
|
25009
24896
|
:type EncryptedBody: str
|
|
25010
|
-
:param _Encryption:
|
|
24897
|
+
:param _Encryption: <p>敏感数据加密信息</p>
|
|
25011
24898
|
:type Encryption: :class:`tencentcloud.ocr.v20181119.models.Encryption`
|
|
25012
24899
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25013
24900
|
:type RequestId: str
|
|
@@ -25028,7 +24915,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25028
24915
|
|
|
25029
24916
|
@property
|
|
25030
24917
|
def Name(self):
|
|
25031
|
-
r"""
|
|
24918
|
+
r"""<p>姓名(人像面)</p>
|
|
25032
24919
|
:rtype: str
|
|
25033
24920
|
"""
|
|
25034
24921
|
return self._Name
|
|
@@ -25039,7 +24926,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25039
24926
|
|
|
25040
24927
|
@property
|
|
25041
24928
|
def Sex(self):
|
|
25042
|
-
r"""
|
|
24929
|
+
r"""<p>性别(人像面)</p>
|
|
25043
24930
|
:rtype: str
|
|
25044
24931
|
"""
|
|
25045
24932
|
return self._Sex
|
|
@@ -25050,7 +24937,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25050
24937
|
|
|
25051
24938
|
@property
|
|
25052
24939
|
def Nation(self):
|
|
25053
|
-
r"""
|
|
24940
|
+
r"""<p>民族(人像面)</p>
|
|
25054
24941
|
:rtype: str
|
|
25055
24942
|
"""
|
|
25056
24943
|
return self._Nation
|
|
@@ -25061,7 +24948,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25061
24948
|
|
|
25062
24949
|
@property
|
|
25063
24950
|
def Birth(self):
|
|
25064
|
-
r"""
|
|
24951
|
+
r"""<p>出生日期(人像面)</p>
|
|
25065
24952
|
:rtype: str
|
|
25066
24953
|
"""
|
|
25067
24954
|
return self._Birth
|
|
@@ -25072,7 +24959,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25072
24959
|
|
|
25073
24960
|
@property
|
|
25074
24961
|
def Address(self):
|
|
25075
|
-
r"""
|
|
24962
|
+
r"""<p>地址(人像面)</p>
|
|
25076
24963
|
:rtype: str
|
|
25077
24964
|
"""
|
|
25078
24965
|
return self._Address
|
|
@@ -25083,7 +24970,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25083
24970
|
|
|
25084
24971
|
@property
|
|
25085
24972
|
def IdNum(self):
|
|
25086
|
-
r"""
|
|
24973
|
+
r"""<p>身份证号(人像面)</p>
|
|
25087
24974
|
:rtype: str
|
|
25088
24975
|
"""
|
|
25089
24976
|
return self._IdNum
|
|
@@ -25094,7 +24981,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25094
24981
|
|
|
25095
24982
|
@property
|
|
25096
24983
|
def Authority(self):
|
|
25097
|
-
r"""
|
|
24984
|
+
r"""<p>发证机关(国徽面)</p>
|
|
25098
24985
|
:rtype: str
|
|
25099
24986
|
"""
|
|
25100
24987
|
return self._Authority
|
|
@@ -25105,7 +24992,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25105
24992
|
|
|
25106
24993
|
@property
|
|
25107
24994
|
def ValidDate(self):
|
|
25108
|
-
r"""
|
|
24995
|
+
r"""<p>证件有效期(国徽面)</p>
|
|
25109
24996
|
:rtype: str
|
|
25110
24997
|
"""
|
|
25111
24998
|
return self._ValidDate
|
|
@@ -25116,22 +25003,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25116
25003
|
|
|
25117
25004
|
@property
|
|
25118
25005
|
def AdvancedInfo(self):
|
|
25119
|
-
r"""
|
|
25120
|
-
IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
|
|
25121
|
-
Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
|
|
25122
|
-
Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
|
|
25123
|
-
BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
|
|
25124
|
-
WarnInfos,告警信息,Code 告警码列表和释义:
|
|
25125
|
-
-9100 身份证有效日期不合法告警,
|
|
25126
|
-
-9101 身份证边框不完整告警,
|
|
25127
|
-
-9102 身份证复印件告警(黑白及彩色复印件),
|
|
25128
|
-
-9108 身份证复印件告警(仅黑白复印件),
|
|
25129
|
-
-9103 身份证翻拍告警,
|
|
25130
|
-
-9105 身份证框内遮挡告警,
|
|
25131
|
-
-9104 临时身份证告警,
|
|
25132
|
-
-9106 身份证疑似存在PS痕迹告警,
|
|
25133
|
-
-9107 身份证反光告警,
|
|
25134
|
-
-9110 电子身份证告警
|
|
25006
|
+
r"""<p>扩展信息,不请求则不返回,具体输入参考示例3和示例4。<br>IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;<br>Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;<br>Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);<br>BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);<br>WarnInfos,告警信息,Code 告警码列表和释义:<br>-9100 身份证有效日期不合法告警,<br>-9101 身份证边框不完整告警,<br>-9102 身份证复印件告警(黑白及彩色复印件),<br>-9108 身份证复印件告警(仅黑白复印件),<br>-9103 身份证翻拍告警,<br>-9105 身份证框内遮挡告警,<br>-9104 临时身份证告警,<br>-9106 身份证疑似存在PS痕迹告警,<br>-9107 身份证反光告警,<br>-9110 电子身份证告警,<br>-9111 水印告警(仅CardWarnType参数为Advanced时),</p>
|
|
25135
25007
|
:rtype: str
|
|
25136
25008
|
"""
|
|
25137
25009
|
return self._AdvancedInfo
|
|
@@ -25142,7 +25014,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25142
25014
|
|
|
25143
25015
|
@property
|
|
25144
25016
|
def ReflectDetailInfos(self):
|
|
25145
|
-
r"""
|
|
25017
|
+
r"""<p>反光点覆盖区域详情结果,具体内容请点击左侧链接</p>
|
|
25146
25018
|
:rtype: list of ReflectDetailInfo
|
|
25147
25019
|
"""
|
|
25148
25020
|
return self._ReflectDetailInfos
|
|
@@ -25153,7 +25025,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25153
25025
|
|
|
25154
25026
|
@property
|
|
25155
25027
|
def EncryptedBody(self):
|
|
25156
|
-
r"""
|
|
25028
|
+
r"""<p>加密后的数据(Base64编码)</p>
|
|
25157
25029
|
:rtype: str
|
|
25158
25030
|
"""
|
|
25159
25031
|
return self._EncryptedBody
|
|
@@ -25164,7 +25036,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
25164
25036
|
|
|
25165
25037
|
@property
|
|
25166
25038
|
def Encryption(self):
|
|
25167
|
-
r"""
|
|
25039
|
+
r"""<p>敏感数据加密信息</p>
|
|
25168
25040
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.Encryption`
|
|
25169
25041
|
"""
|
|
25170
25042
|
return self._Encryption
|
|
@@ -26862,153 +26734,6 @@ class RecognizeTableAccurateOCRResponse(AbstractModel):
|
|
|
26862
26734
|
self._RequestId = params.get("RequestId")
|
|
26863
26735
|
|
|
26864
26736
|
|
|
26865
|
-
class RecognizeTableMultiOCRRequest(AbstractModel):
|
|
26866
|
-
r"""RecognizeTableMultiOCR请求参数结构体
|
|
26867
|
-
|
|
26868
|
-
"""
|
|
26869
|
-
|
|
26870
|
-
def __init__(self):
|
|
26871
|
-
r"""
|
|
26872
|
-
:param _ImageBase64: 图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
26873
|
-
:type ImageBase64: str
|
|
26874
|
-
:param _ImageUrl: 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
26875
|
-
:type ImageUrl: str
|
|
26876
|
-
:param _PdfStartPageNumber: 文档的起始页码。 当传入文件是PDF型时,用来指定识别的起始页码,识别的页码包含当前值。
|
|
26877
|
-
:type PdfStartPageNumber: int
|
|
26878
|
-
:param _PdfEndPageNumber: 文档的结束页码。 当传入文件是PDF类型时,用来指定识别的结束页码,识别的页码包含当前值。单次调用最多支持识别3页内容,即PdfEndPageNumber-PdfStartPageNumber需要不大于3。
|
|
26879
|
-
:type PdfEndPageNumber: int
|
|
26880
|
-
:param _DataFormat: 配置选项,支持配置输出数据格式。
|
|
26881
|
-
|
|
26882
|
-
* **Mdbase64** 返回 base64 编码的 markdown 格式文本。
|
|
26883
|
-
* **Excelbase64** 返回 base64 编码的 excel 文件。
|
|
26884
|
-
:type DataFormat: str
|
|
26885
|
-
"""
|
|
26886
|
-
self._ImageBase64 = None
|
|
26887
|
-
self._ImageUrl = None
|
|
26888
|
-
self._PdfStartPageNumber = None
|
|
26889
|
-
self._PdfEndPageNumber = None
|
|
26890
|
-
self._DataFormat = None
|
|
26891
|
-
|
|
26892
|
-
@property
|
|
26893
|
-
def ImageBase64(self):
|
|
26894
|
-
r"""图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
26895
|
-
:rtype: str
|
|
26896
|
-
"""
|
|
26897
|
-
return self._ImageBase64
|
|
26898
|
-
|
|
26899
|
-
@ImageBase64.setter
|
|
26900
|
-
def ImageBase64(self, ImageBase64):
|
|
26901
|
-
self._ImageBase64 = ImageBase64
|
|
26902
|
-
|
|
26903
|
-
@property
|
|
26904
|
-
def ImageUrl(self):
|
|
26905
|
-
r"""图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
26906
|
-
:rtype: str
|
|
26907
|
-
"""
|
|
26908
|
-
return self._ImageUrl
|
|
26909
|
-
|
|
26910
|
-
@ImageUrl.setter
|
|
26911
|
-
def ImageUrl(self, ImageUrl):
|
|
26912
|
-
self._ImageUrl = ImageUrl
|
|
26913
|
-
|
|
26914
|
-
@property
|
|
26915
|
-
def PdfStartPageNumber(self):
|
|
26916
|
-
r"""文档的起始页码。 当传入文件是PDF型时,用来指定识别的起始页码,识别的页码包含当前值。
|
|
26917
|
-
:rtype: int
|
|
26918
|
-
"""
|
|
26919
|
-
return self._PdfStartPageNumber
|
|
26920
|
-
|
|
26921
|
-
@PdfStartPageNumber.setter
|
|
26922
|
-
def PdfStartPageNumber(self, PdfStartPageNumber):
|
|
26923
|
-
self._PdfStartPageNumber = PdfStartPageNumber
|
|
26924
|
-
|
|
26925
|
-
@property
|
|
26926
|
-
def PdfEndPageNumber(self):
|
|
26927
|
-
r"""文档的结束页码。 当传入文件是PDF类型时,用来指定识别的结束页码,识别的页码包含当前值。单次调用最多支持识别3页内容,即PdfEndPageNumber-PdfStartPageNumber需要不大于3。
|
|
26928
|
-
:rtype: int
|
|
26929
|
-
"""
|
|
26930
|
-
return self._PdfEndPageNumber
|
|
26931
|
-
|
|
26932
|
-
@PdfEndPageNumber.setter
|
|
26933
|
-
def PdfEndPageNumber(self, PdfEndPageNumber):
|
|
26934
|
-
self._PdfEndPageNumber = PdfEndPageNumber
|
|
26935
|
-
|
|
26936
|
-
@property
|
|
26937
|
-
def DataFormat(self):
|
|
26938
|
-
r"""配置选项,支持配置输出数据格式。
|
|
26939
|
-
|
|
26940
|
-
* **Mdbase64** 返回 base64 编码的 markdown 格式文本。
|
|
26941
|
-
* **Excelbase64** 返回 base64 编码的 excel 文件。
|
|
26942
|
-
:rtype: str
|
|
26943
|
-
"""
|
|
26944
|
-
return self._DataFormat
|
|
26945
|
-
|
|
26946
|
-
@DataFormat.setter
|
|
26947
|
-
def DataFormat(self, DataFormat):
|
|
26948
|
-
self._DataFormat = DataFormat
|
|
26949
|
-
|
|
26950
|
-
|
|
26951
|
-
def _deserialize(self, params):
|
|
26952
|
-
self._ImageBase64 = params.get("ImageBase64")
|
|
26953
|
-
self._ImageUrl = params.get("ImageUrl")
|
|
26954
|
-
self._PdfStartPageNumber = params.get("PdfStartPageNumber")
|
|
26955
|
-
self._PdfEndPageNumber = params.get("PdfEndPageNumber")
|
|
26956
|
-
self._DataFormat = params.get("DataFormat")
|
|
26957
|
-
memeber_set = set(params.keys())
|
|
26958
|
-
for name, value in vars(self).items():
|
|
26959
|
-
property_name = name[1:]
|
|
26960
|
-
if property_name in memeber_set:
|
|
26961
|
-
memeber_set.remove(property_name)
|
|
26962
|
-
if len(memeber_set) > 0:
|
|
26963
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
26964
|
-
|
|
26965
|
-
|
|
26966
|
-
|
|
26967
|
-
class RecognizeTableMultiOCRResponse(AbstractModel):
|
|
26968
|
-
r"""RecognizeTableMultiOCR返回参数结构体
|
|
26969
|
-
|
|
26970
|
-
"""
|
|
26971
|
-
|
|
26972
|
-
def __init__(self):
|
|
26973
|
-
r"""
|
|
26974
|
-
:param _DataBase64: Base64 编码后的 Excel 数据或 Markdown 数据。 注意:此字段可能返回空,表示取不到有效值。
|
|
26975
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
26976
|
-
:type DataBase64: str
|
|
26977
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
26978
|
-
:type RequestId: str
|
|
26979
|
-
"""
|
|
26980
|
-
self._DataBase64 = None
|
|
26981
|
-
self._RequestId = None
|
|
26982
|
-
|
|
26983
|
-
@property
|
|
26984
|
-
def DataBase64(self):
|
|
26985
|
-
r"""Base64 编码后的 Excel 数据或 Markdown 数据。 注意:此字段可能返回空,表示取不到有效值。
|
|
26986
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
26987
|
-
:rtype: str
|
|
26988
|
-
"""
|
|
26989
|
-
return self._DataBase64
|
|
26990
|
-
|
|
26991
|
-
@DataBase64.setter
|
|
26992
|
-
def DataBase64(self, DataBase64):
|
|
26993
|
-
self._DataBase64 = DataBase64
|
|
26994
|
-
|
|
26995
|
-
@property
|
|
26996
|
-
def RequestId(self):
|
|
26997
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
26998
|
-
:rtype: str
|
|
26999
|
-
"""
|
|
27000
|
-
return self._RequestId
|
|
27001
|
-
|
|
27002
|
-
@RequestId.setter
|
|
27003
|
-
def RequestId(self, RequestId):
|
|
27004
|
-
self._RequestId = RequestId
|
|
27005
|
-
|
|
27006
|
-
|
|
27007
|
-
def _deserialize(self, params):
|
|
27008
|
-
self._DataBase64 = params.get("DataBase64")
|
|
27009
|
-
self._RequestId = params.get("RequestId")
|
|
27010
|
-
|
|
27011
|
-
|
|
27012
26737
|
class RecognizeTableOCRRequest(AbstractModel):
|
|
27013
26738
|
r"""RecognizeTableOCR请求参数结构体
|
|
27014
26739
|
|
|
@@ -277,7 +277,7 @@ class OcrClient(AbstractClient):
|
|
|
277
277
|
|
|
278
278
|
|
|
279
279
|
def DescribeExtractDocAgentJob(self, request):
|
|
280
|
-
r"""
|
|
280
|
+
r"""模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
281
281
|
|
|
282
282
|
:param request: Request instance for DescribeExtractDocAgentJob.
|
|
283
283
|
:type request: :class:`tencentcloud.ocr.v20181119.models.DescribeExtractDocAgentJobRequest`
|
|
@@ -509,7 +509,7 @@ class OcrClient(AbstractClient):
|
|
|
509
509
|
|
|
510
510
|
|
|
511
511
|
def ExtractDocAgent(self, request):
|
|
512
|
-
r"""
|
|
512
|
+
r"""模型参数更小,速度更快。推荐场景:实时性要求高(30s以内)并且样本输入输出token2000以内,建议用实时模型。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
513
513
|
|
|
514
514
|
:param request: Request instance for ExtractDocAgent.
|
|
515
515
|
:type request: :class:`tencentcloud.ocr.v20181119.models.ExtractDocAgentRequest`
|
|
@@ -2112,31 +2112,6 @@ class OcrClient(AbstractClient):
|
|
|
2112
2112
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2113
2113
|
|
|
2114
2114
|
|
|
2115
|
-
def RecognizeTableMultiOCR(self, request):
|
|
2116
|
-
r"""基于MLLM(多模态大语言模型)的表格识别能力,针对复杂表格的算法识别效果更佳,适配财务报表识别场景,并可输出直接对接业务系统的Excel数据。
|
|
2117
|
-
|
|
2118
|
-
默认接口请求频率限制:1次/秒。
|
|
2119
|
-
|
|
2120
|
-
:param request: Request instance for RecognizeTableMultiOCR.
|
|
2121
|
-
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeTableMultiOCRRequest`
|
|
2122
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeTableMultiOCRResponse`
|
|
2123
|
-
|
|
2124
|
-
"""
|
|
2125
|
-
try:
|
|
2126
|
-
params = request._serialize()
|
|
2127
|
-
headers = request.headers
|
|
2128
|
-
body = self.call("RecognizeTableMultiOCR", params, headers=headers)
|
|
2129
|
-
response = json.loads(body)
|
|
2130
|
-
model = models.RecognizeTableMultiOCRResponse()
|
|
2131
|
-
model._deserialize(response["Response"])
|
|
2132
|
-
return model
|
|
2133
|
-
except Exception as e:
|
|
2134
|
-
if isinstance(e, TencentCloudSDKException):
|
|
2135
|
-
raise
|
|
2136
|
-
else:
|
|
2137
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
2115
|
def RecognizeTableOCR(self, request):
|
|
2141
2116
|
r"""本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。
|
|
2142
2117
|
|
|
@@ -2394,7 +2369,7 @@ class OcrClient(AbstractClient):
|
|
|
2394
2369
|
|
|
2395
2370
|
|
|
2396
2371
|
def SubmitExtractDocAgentJob(self, request):
|
|
2397
|
-
r"""
|
|
2372
|
+
r"""模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
2398
2373
|
|
|
2399
2374
|
:param request: Request instance for SubmitExtractDocAgentJob.
|
|
2400
2375
|
:type request: :class:`tencentcloud.ocr.v20181119.models.SubmitExtractDocAgentJobRequest`
|
|
@@ -231,7 +231,7 @@ class OcrClient(AbstractClient):
|
|
|
231
231
|
opts: Dict = None,
|
|
232
232
|
) -> models.DescribeExtractDocAgentJobResponse:
|
|
233
233
|
"""
|
|
234
|
-
|
|
234
|
+
模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
235
235
|
"""
|
|
236
236
|
|
|
237
237
|
kwargs = {}
|
|
@@ -418,7 +418,7 @@ class OcrClient(AbstractClient):
|
|
|
418
418
|
opts: Dict = None,
|
|
419
419
|
) -> models.ExtractDocAgentResponse:
|
|
420
420
|
"""
|
|
421
|
-
|
|
421
|
+
模型参数更小,速度更快。推荐场景:实时性要求高(30s以内)并且样本输入输出token2000以内,建议用实时模型。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
422
422
|
"""
|
|
423
423
|
|
|
424
424
|
kwargs = {}
|
|
@@ -1791,26 +1791,6 @@ class OcrClient(AbstractClient):
|
|
|
1791
1791
|
|
|
1792
1792
|
return await self.call_and_deserialize(**kwargs)
|
|
1793
1793
|
|
|
1794
|
-
async def RecognizeTableMultiOCR(
|
|
1795
|
-
self,
|
|
1796
|
-
request: models.RecognizeTableMultiOCRRequest,
|
|
1797
|
-
opts: Dict = None,
|
|
1798
|
-
) -> models.RecognizeTableMultiOCRResponse:
|
|
1799
|
-
"""
|
|
1800
|
-
基于MLLM(多模态大语言模型)的表格识别能力,针对复杂表格的算法识别效果更佳,适配财务报表识别场景,并可输出直接对接业务系统的Excel数据。
|
|
1801
|
-
|
|
1802
|
-
默认接口请求频率限制:1次/秒。
|
|
1803
|
-
"""
|
|
1804
|
-
|
|
1805
|
-
kwargs = {}
|
|
1806
|
-
kwargs["action"] = "RecognizeTableMultiOCR"
|
|
1807
|
-
kwargs["params"] = request._serialize()
|
|
1808
|
-
kwargs["resp_cls"] = models.RecognizeTableMultiOCRResponse
|
|
1809
|
-
kwargs["headers"] = request.headers
|
|
1810
|
-
kwargs["opts"] = opts or {}
|
|
1811
|
-
|
|
1812
|
-
return await self.call_and_deserialize(**kwargs)
|
|
1813
|
-
|
|
1814
1794
|
async def RecognizeTableOCR(
|
|
1815
1795
|
self,
|
|
1816
1796
|
request: models.RecognizeTableOCRRequest,
|
|
@@ -2023,7 +2003,7 @@ class OcrClient(AbstractClient):
|
|
|
2023
2003
|
opts: Dict = None,
|
|
2024
2004
|
) -> models.SubmitExtractDocAgentJobResponse:
|
|
2025
2005
|
"""
|
|
2026
|
-
|
|
2006
|
+
模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
2027
2007
|
"""
|
|
2028
2008
|
|
|
2029
2009
|
kwargs = {}
|
|
@@ -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.51
|
|
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.51
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.51
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.48
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|