tencentcloud-sdk-python-ocr 3.1.206__tar.gz → 3.1.207__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.206 → tencentcloud_sdk_python_ocr-3.1.207}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/setup.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud/ocr/v20181119/models.py +539 -24
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud/ocr/v20181119/ocr_client.py +28 -5
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud/ocr/v20181119/ocr_client_async.py +23 -5
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ocr-3.1.207/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ocr-3.1.206/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/README.rst +0 -0
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.206 → tencentcloud_sdk_python_ocr-3.1.207}/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.207
|
|
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.207
|
|
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.207,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ocr SDK for Python',
|
|
@@ -1123,9 +1123,9 @@ class AnswerElement(AbstractModel):
|
|
|
1123
1123
|
r"""
|
|
1124
1124
|
:param _IsCorrect: <p>答案是否正确</p>
|
|
1125
1125
|
:type IsCorrect: bool
|
|
1126
|
-
:param _AnswerAnalysis: <p
|
|
1126
|
+
:param _AnswerAnalysis: <p>【批改 API 专属特性】<br>当ModelType= yuanbao_correction_model,该字段返回空。通过ResultList. AnswerAnalysis返回题目维度答案解析<br>当ModelType= youtu_correction_model,返回答案维度答案解析</p>
|
|
1127
1127
|
:type AnswerAnalysis: str
|
|
1128
|
-
:param _RightAnswer: <p
|
|
1128
|
+
:param _RightAnswer: <p>返回正确答案内容。为提升速度算式批改场景默认不输出正确答案</p>
|
|
1129
1129
|
:type RightAnswer: str
|
|
1130
1130
|
"""
|
|
1131
1131
|
self._IsCorrect = None
|
|
@@ -1145,7 +1145,7 @@ class AnswerElement(AbstractModel):
|
|
|
1145
1145
|
|
|
1146
1146
|
@property
|
|
1147
1147
|
def AnswerAnalysis(self):
|
|
1148
|
-
r"""<p
|
|
1148
|
+
r"""<p>【批改 API 专属特性】<br>当ModelType= yuanbao_correction_model,该字段返回空。通过ResultList. AnswerAnalysis返回题目维度答案解析<br>当ModelType= youtu_correction_model,返回答案维度答案解析</p>
|
|
1149
1149
|
:rtype: str
|
|
1150
1150
|
"""
|
|
1151
1151
|
return self._AnswerAnalysis
|
|
@@ -1156,7 +1156,7 @@ class AnswerElement(AbstractModel):
|
|
|
1156
1156
|
|
|
1157
1157
|
@property
|
|
1158
1158
|
def RightAnswer(self):
|
|
1159
|
-
r"""<p
|
|
1159
|
+
r"""<p>返回正确答案内容。为提升速度算式批改场景默认不输出正确答案</p>
|
|
1160
1160
|
:rtype: str
|
|
1161
1161
|
"""
|
|
1162
1162
|
return self._RightAnswer
|
|
@@ -1537,6 +1537,327 @@ class ArithmeticOCRResponse(AbstractModel):
|
|
|
1537
1537
|
self._RequestId = params.get("RequestId")
|
|
1538
1538
|
|
|
1539
1539
|
|
|
1540
|
+
class AuditMaterialAgentRequest(AbstractModel):
|
|
1541
|
+
r"""AuditMaterialAgent请求参数结构体
|
|
1542
|
+
|
|
1543
|
+
"""
|
|
1544
|
+
|
|
1545
|
+
def __init__(self):
|
|
1546
|
+
r"""
|
|
1547
|
+
:param _AgentType: <p>资料审核Agent类型,不同类型包含不同的输入、输出参数,提供不同的审核能力。</p><p>枚举值:</p><ul><li>StorePicAudit: 商户照片审核</li></ul>
|
|
1548
|
+
:type AgentType: str
|
|
1549
|
+
:param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
|
|
1550
|
+
:type ImageUrl: str
|
|
1551
|
+
:param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
|
|
1552
|
+
:type ImageBase64: str
|
|
1553
|
+
:param _NeedSceneType: <p>商户照片分类是否输出具体场景标签。注:开启后耗时会增加。 支持该入参的资料审核Agent类型:StorePicAudit</p>
|
|
1554
|
+
:type NeedSceneType: bool
|
|
1555
|
+
:param _StoreInfoHint: <p>商户名称信息,辅助判断具体场景标签。注:仅SceneType配置为true时支持。 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1556
|
+
:type StoreInfoHint: str
|
|
1557
|
+
:param _IgnoreWatermarkCategories: <p>水印提示排除类型,选择出参“水印提示”排除掉的水印类型,不传的话即代表任意水印都会提示。<br>PhoneCam:手机相机水印<br>WatermarkCam:水印相机水印</p>
|
|
1558
|
+
:type IgnoreWatermarkCategories: list of str
|
|
1559
|
+
"""
|
|
1560
|
+
self._AgentType = None
|
|
1561
|
+
self._ImageUrl = None
|
|
1562
|
+
self._ImageBase64 = None
|
|
1563
|
+
self._NeedSceneType = None
|
|
1564
|
+
self._StoreInfoHint = None
|
|
1565
|
+
self._IgnoreWatermarkCategories = None
|
|
1566
|
+
|
|
1567
|
+
@property
|
|
1568
|
+
def AgentType(self):
|
|
1569
|
+
r"""<p>资料审核Agent类型,不同类型包含不同的输入、输出参数,提供不同的审核能力。</p><p>枚举值:</p><ul><li>StorePicAudit: 商户照片审核</li></ul>
|
|
1570
|
+
:rtype: str
|
|
1571
|
+
"""
|
|
1572
|
+
return self._AgentType
|
|
1573
|
+
|
|
1574
|
+
@AgentType.setter
|
|
1575
|
+
def AgentType(self, AgentType):
|
|
1576
|
+
self._AgentType = AgentType
|
|
1577
|
+
|
|
1578
|
+
@property
|
|
1579
|
+
def ImageUrl(self):
|
|
1580
|
+
r"""<p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
|
|
1581
|
+
:rtype: str
|
|
1582
|
+
"""
|
|
1583
|
+
return self._ImageUrl
|
|
1584
|
+
|
|
1585
|
+
@ImageUrl.setter
|
|
1586
|
+
def ImageUrl(self, ImageUrl):
|
|
1587
|
+
self._ImageUrl = ImageUrl
|
|
1588
|
+
|
|
1589
|
+
@property
|
|
1590
|
+
def ImageBase64(self):
|
|
1591
|
+
r"""<p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
|
|
1592
|
+
:rtype: str
|
|
1593
|
+
"""
|
|
1594
|
+
return self._ImageBase64
|
|
1595
|
+
|
|
1596
|
+
@ImageBase64.setter
|
|
1597
|
+
def ImageBase64(self, ImageBase64):
|
|
1598
|
+
self._ImageBase64 = ImageBase64
|
|
1599
|
+
|
|
1600
|
+
@property
|
|
1601
|
+
def NeedSceneType(self):
|
|
1602
|
+
r"""<p>商户照片分类是否输出具体场景标签。注:开启后耗时会增加。 支持该入参的资料审核Agent类型:StorePicAudit</p>
|
|
1603
|
+
:rtype: bool
|
|
1604
|
+
"""
|
|
1605
|
+
return self._NeedSceneType
|
|
1606
|
+
|
|
1607
|
+
@NeedSceneType.setter
|
|
1608
|
+
def NeedSceneType(self, NeedSceneType):
|
|
1609
|
+
self._NeedSceneType = NeedSceneType
|
|
1610
|
+
|
|
1611
|
+
@property
|
|
1612
|
+
def StoreInfoHint(self):
|
|
1613
|
+
r"""<p>商户名称信息,辅助判断具体场景标签。注:仅SceneType配置为true时支持。 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1614
|
+
:rtype: str
|
|
1615
|
+
"""
|
|
1616
|
+
return self._StoreInfoHint
|
|
1617
|
+
|
|
1618
|
+
@StoreInfoHint.setter
|
|
1619
|
+
def StoreInfoHint(self, StoreInfoHint):
|
|
1620
|
+
self._StoreInfoHint = StoreInfoHint
|
|
1621
|
+
|
|
1622
|
+
@property
|
|
1623
|
+
def IgnoreWatermarkCategories(self):
|
|
1624
|
+
r"""<p>水印提示排除类型,选择出参“水印提示”排除掉的水印类型,不传的话即代表任意水印都会提示。<br>PhoneCam:手机相机水印<br>WatermarkCam:水印相机水印</p>
|
|
1625
|
+
:rtype: list of str
|
|
1626
|
+
"""
|
|
1627
|
+
return self._IgnoreWatermarkCategories
|
|
1628
|
+
|
|
1629
|
+
@IgnoreWatermarkCategories.setter
|
|
1630
|
+
def IgnoreWatermarkCategories(self, IgnoreWatermarkCategories):
|
|
1631
|
+
self._IgnoreWatermarkCategories = IgnoreWatermarkCategories
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
def _deserialize(self, params):
|
|
1635
|
+
self._AgentType = params.get("AgentType")
|
|
1636
|
+
self._ImageUrl = params.get("ImageUrl")
|
|
1637
|
+
self._ImageBase64 = params.get("ImageBase64")
|
|
1638
|
+
self._NeedSceneType = params.get("NeedSceneType")
|
|
1639
|
+
self._StoreInfoHint = params.get("StoreInfoHint")
|
|
1640
|
+
self._IgnoreWatermarkCategories = params.get("IgnoreWatermarkCategories")
|
|
1641
|
+
memeber_set = set(params.keys())
|
|
1642
|
+
for name, value in vars(self).items():
|
|
1643
|
+
property_name = name[1:]
|
|
1644
|
+
if property_name in memeber_set:
|
|
1645
|
+
memeber_set.remove(property_name)
|
|
1646
|
+
if len(memeber_set) > 0:
|
|
1647
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
class AuditMaterialAgentResponse(AbstractModel):
|
|
1652
|
+
r"""AuditMaterialAgent返回参数结构体
|
|
1653
|
+
|
|
1654
|
+
"""
|
|
1655
|
+
|
|
1656
|
+
def __init__(self):
|
|
1657
|
+
r"""
|
|
1658
|
+
:param _StoreLabel: <p>商户照片类型 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1659
|
+
:type StoreLabel: list of str
|
|
1660
|
+
:param _SceneType: <p>商户照片分类具体场景标签,输出3个最匹配的场景, 注:仅SceneType配置为true时支持。 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1661
|
+
:type SceneType: str
|
|
1662
|
+
:param _StoreInfo: <p>商户门头名称 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1663
|
+
:type StoreInfo: list of StoreInfo
|
|
1664
|
+
:param _Angle: <p>图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1665
|
+
:type Angle: float
|
|
1666
|
+
:param _Tamper: <p>区域篡改提示</p>
|
|
1667
|
+
:type Tamper: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1668
|
+
:param _Synthesis: <p>AIGC合成提示</p>
|
|
1669
|
+
:type Synthesis: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1670
|
+
:param _RemakeScreen: <p>屏幕翻拍提示</p>
|
|
1671
|
+
:type RemakeScreen: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1672
|
+
:param _Screenshot: <p>截图提示</p>
|
|
1673
|
+
:type Screenshot: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1674
|
+
:param _TextWatermark: <p>文字水印提示</p>
|
|
1675
|
+
:type TextWatermark: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1676
|
+
:param _WatermarkContent: <p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
|
|
1677
|
+
:type WatermarkContent: str
|
|
1678
|
+
:param _Template: <p>模板图片提示</p>
|
|
1679
|
+
:type Template: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1680
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1681
|
+
:type RequestId: str
|
|
1682
|
+
"""
|
|
1683
|
+
self._StoreLabel = None
|
|
1684
|
+
self._SceneType = None
|
|
1685
|
+
self._StoreInfo = None
|
|
1686
|
+
self._Angle = None
|
|
1687
|
+
self._Tamper = None
|
|
1688
|
+
self._Synthesis = None
|
|
1689
|
+
self._RemakeScreen = None
|
|
1690
|
+
self._Screenshot = None
|
|
1691
|
+
self._TextWatermark = None
|
|
1692
|
+
self._WatermarkContent = None
|
|
1693
|
+
self._Template = None
|
|
1694
|
+
self._RequestId = None
|
|
1695
|
+
|
|
1696
|
+
@property
|
|
1697
|
+
def StoreLabel(self):
|
|
1698
|
+
r"""<p>商户照片类型 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1699
|
+
:rtype: list of str
|
|
1700
|
+
"""
|
|
1701
|
+
return self._StoreLabel
|
|
1702
|
+
|
|
1703
|
+
@StoreLabel.setter
|
|
1704
|
+
def StoreLabel(self, StoreLabel):
|
|
1705
|
+
self._StoreLabel = StoreLabel
|
|
1706
|
+
|
|
1707
|
+
@property
|
|
1708
|
+
def SceneType(self):
|
|
1709
|
+
r"""<p>商户照片分类具体场景标签,输出3个最匹配的场景, 注:仅SceneType配置为true时支持。 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1710
|
+
:rtype: str
|
|
1711
|
+
"""
|
|
1712
|
+
return self._SceneType
|
|
1713
|
+
|
|
1714
|
+
@SceneType.setter
|
|
1715
|
+
def SceneType(self, SceneType):
|
|
1716
|
+
self._SceneType = SceneType
|
|
1717
|
+
|
|
1718
|
+
@property
|
|
1719
|
+
def StoreInfo(self):
|
|
1720
|
+
r"""<p>商户门头名称 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1721
|
+
:rtype: list of StoreInfo
|
|
1722
|
+
"""
|
|
1723
|
+
return self._StoreInfo
|
|
1724
|
+
|
|
1725
|
+
@StoreInfo.setter
|
|
1726
|
+
def StoreInfo(self, StoreInfo):
|
|
1727
|
+
self._StoreInfo = StoreInfo
|
|
1728
|
+
|
|
1729
|
+
@property
|
|
1730
|
+
def Angle(self):
|
|
1731
|
+
r"""<p>图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负 支持该出参的资料审核Agent类型:StorePicAudit</p>
|
|
1732
|
+
:rtype: float
|
|
1733
|
+
"""
|
|
1734
|
+
return self._Angle
|
|
1735
|
+
|
|
1736
|
+
@Angle.setter
|
|
1737
|
+
def Angle(self, Angle):
|
|
1738
|
+
self._Angle = Angle
|
|
1739
|
+
|
|
1740
|
+
@property
|
|
1741
|
+
def Tamper(self):
|
|
1742
|
+
r"""<p>区域篡改提示</p>
|
|
1743
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1744
|
+
"""
|
|
1745
|
+
return self._Tamper
|
|
1746
|
+
|
|
1747
|
+
@Tamper.setter
|
|
1748
|
+
def Tamper(self, Tamper):
|
|
1749
|
+
self._Tamper = Tamper
|
|
1750
|
+
|
|
1751
|
+
@property
|
|
1752
|
+
def Synthesis(self):
|
|
1753
|
+
r"""<p>AIGC合成提示</p>
|
|
1754
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1755
|
+
"""
|
|
1756
|
+
return self._Synthesis
|
|
1757
|
+
|
|
1758
|
+
@Synthesis.setter
|
|
1759
|
+
def Synthesis(self, Synthesis):
|
|
1760
|
+
self._Synthesis = Synthesis
|
|
1761
|
+
|
|
1762
|
+
@property
|
|
1763
|
+
def RemakeScreen(self):
|
|
1764
|
+
r"""<p>屏幕翻拍提示</p>
|
|
1765
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1766
|
+
"""
|
|
1767
|
+
return self._RemakeScreen
|
|
1768
|
+
|
|
1769
|
+
@RemakeScreen.setter
|
|
1770
|
+
def RemakeScreen(self, RemakeScreen):
|
|
1771
|
+
self._RemakeScreen = RemakeScreen
|
|
1772
|
+
|
|
1773
|
+
@property
|
|
1774
|
+
def Screenshot(self):
|
|
1775
|
+
r"""<p>截图提示</p>
|
|
1776
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1777
|
+
"""
|
|
1778
|
+
return self._Screenshot
|
|
1779
|
+
|
|
1780
|
+
@Screenshot.setter
|
|
1781
|
+
def Screenshot(self, Screenshot):
|
|
1782
|
+
self._Screenshot = Screenshot
|
|
1783
|
+
|
|
1784
|
+
@property
|
|
1785
|
+
def TextWatermark(self):
|
|
1786
|
+
r"""<p>文字水印提示</p>
|
|
1787
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1788
|
+
"""
|
|
1789
|
+
return self._TextWatermark
|
|
1790
|
+
|
|
1791
|
+
@TextWatermark.setter
|
|
1792
|
+
def TextWatermark(self, TextWatermark):
|
|
1793
|
+
self._TextWatermark = TextWatermark
|
|
1794
|
+
|
|
1795
|
+
@property
|
|
1796
|
+
def WatermarkContent(self):
|
|
1797
|
+
r"""<p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
|
|
1798
|
+
:rtype: str
|
|
1799
|
+
"""
|
|
1800
|
+
return self._WatermarkContent
|
|
1801
|
+
|
|
1802
|
+
@WatermarkContent.setter
|
|
1803
|
+
def WatermarkContent(self, WatermarkContent):
|
|
1804
|
+
self._WatermarkContent = WatermarkContent
|
|
1805
|
+
|
|
1806
|
+
@property
|
|
1807
|
+
def Template(self):
|
|
1808
|
+
r"""<p>模板图片提示</p>
|
|
1809
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
|
|
1810
|
+
"""
|
|
1811
|
+
return self._Template
|
|
1812
|
+
|
|
1813
|
+
@Template.setter
|
|
1814
|
+
def Template(self, Template):
|
|
1815
|
+
self._Template = Template
|
|
1816
|
+
|
|
1817
|
+
@property
|
|
1818
|
+
def RequestId(self):
|
|
1819
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1820
|
+
:rtype: str
|
|
1821
|
+
"""
|
|
1822
|
+
return self._RequestId
|
|
1823
|
+
|
|
1824
|
+
@RequestId.setter
|
|
1825
|
+
def RequestId(self, RequestId):
|
|
1826
|
+
self._RequestId = RequestId
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
def _deserialize(self, params):
|
|
1830
|
+
self._StoreLabel = params.get("StoreLabel")
|
|
1831
|
+
self._SceneType = params.get("SceneType")
|
|
1832
|
+
if params.get("StoreInfo") is not None:
|
|
1833
|
+
self._StoreInfo = []
|
|
1834
|
+
for item in params.get("StoreInfo"):
|
|
1835
|
+
obj = StoreInfo()
|
|
1836
|
+
obj._deserialize(item)
|
|
1837
|
+
self._StoreInfo.append(obj)
|
|
1838
|
+
self._Angle = params.get("Angle")
|
|
1839
|
+
if params.get("Tamper") is not None:
|
|
1840
|
+
self._Tamper = SceneWarnInfo()
|
|
1841
|
+
self._Tamper._deserialize(params.get("Tamper"))
|
|
1842
|
+
if params.get("Synthesis") is not None:
|
|
1843
|
+
self._Synthesis = SceneWarnInfo()
|
|
1844
|
+
self._Synthesis._deserialize(params.get("Synthesis"))
|
|
1845
|
+
if params.get("RemakeScreen") is not None:
|
|
1846
|
+
self._RemakeScreen = SceneWarnInfo()
|
|
1847
|
+
self._RemakeScreen._deserialize(params.get("RemakeScreen"))
|
|
1848
|
+
if params.get("Screenshot") is not None:
|
|
1849
|
+
self._Screenshot = SceneWarnInfo()
|
|
1850
|
+
self._Screenshot._deserialize(params.get("Screenshot"))
|
|
1851
|
+
if params.get("TextWatermark") is not None:
|
|
1852
|
+
self._TextWatermark = SceneWarnInfo()
|
|
1853
|
+
self._TextWatermark._deserialize(params.get("TextWatermark"))
|
|
1854
|
+
self._WatermarkContent = params.get("WatermarkContent")
|
|
1855
|
+
if params.get("Template") is not None:
|
|
1856
|
+
self._Template = SceneWarnInfo()
|
|
1857
|
+
self._Template._deserialize(params.get("Template"))
|
|
1858
|
+
self._RequestId = params.get("RequestId")
|
|
1859
|
+
|
|
1860
|
+
|
|
1540
1861
|
class BankCardOCRRequest(AbstractModel):
|
|
1541
1862
|
r"""BankCardOCR请求参数结构体
|
|
1542
1863
|
|
|
@@ -5012,6 +5333,12 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
|
|
|
5012
5333
|
:type ErrorMessage: str
|
|
5013
5334
|
:param _JobStatus: <p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功</p>
|
|
5014
5335
|
:type JobStatus: str
|
|
5336
|
+
:param _QuestionInfo: <p>支持题目结构化、批改场景的结构。AgentType为1、2都按照这个结构返回</p>
|
|
5337
|
+
:type QuestionInfo: list of QuestionInfo
|
|
5338
|
+
:param _AgentResultJson: <p>定制的json结构字符串,主要用于快速定制输出的agent输出结构。推荐用于POC场景</p>
|
|
5339
|
+
:type AgentResultJson: str
|
|
5340
|
+
:param _ThoughtContent: <p>扩展字段</p>
|
|
5341
|
+
:type ThoughtContent: str
|
|
5015
5342
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5016
5343
|
:type RequestId: str
|
|
5017
5344
|
"""
|
|
@@ -5020,6 +5347,9 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
|
|
|
5020
5347
|
self._ErrorCode = None
|
|
5021
5348
|
self._ErrorMessage = None
|
|
5022
5349
|
self._JobStatus = None
|
|
5350
|
+
self._QuestionInfo = None
|
|
5351
|
+
self._AgentResultJson = None
|
|
5352
|
+
self._ThoughtContent = None
|
|
5023
5353
|
self._RequestId = None
|
|
5024
5354
|
|
|
5025
5355
|
@property
|
|
@@ -5077,6 +5407,39 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
|
|
|
5077
5407
|
def JobStatus(self, JobStatus):
|
|
5078
5408
|
self._JobStatus = JobStatus
|
|
5079
5409
|
|
|
5410
|
+
@property
|
|
5411
|
+
def QuestionInfo(self):
|
|
5412
|
+
r"""<p>支持题目结构化、批改场景的结构。AgentType为1、2都按照这个结构返回</p>
|
|
5413
|
+
:rtype: list of QuestionInfo
|
|
5414
|
+
"""
|
|
5415
|
+
return self._QuestionInfo
|
|
5416
|
+
|
|
5417
|
+
@QuestionInfo.setter
|
|
5418
|
+
def QuestionInfo(self, QuestionInfo):
|
|
5419
|
+
self._QuestionInfo = QuestionInfo
|
|
5420
|
+
|
|
5421
|
+
@property
|
|
5422
|
+
def AgentResultJson(self):
|
|
5423
|
+
r"""<p>定制的json结构字符串,主要用于快速定制输出的agent输出结构。推荐用于POC场景</p>
|
|
5424
|
+
:rtype: str
|
|
5425
|
+
"""
|
|
5426
|
+
return self._AgentResultJson
|
|
5427
|
+
|
|
5428
|
+
@AgentResultJson.setter
|
|
5429
|
+
def AgentResultJson(self, AgentResultJson):
|
|
5430
|
+
self._AgentResultJson = AgentResultJson
|
|
5431
|
+
|
|
5432
|
+
@property
|
|
5433
|
+
def ThoughtContent(self):
|
|
5434
|
+
r"""<p>扩展字段</p>
|
|
5435
|
+
:rtype: str
|
|
5436
|
+
"""
|
|
5437
|
+
return self._ThoughtContent
|
|
5438
|
+
|
|
5439
|
+
@ThoughtContent.setter
|
|
5440
|
+
def ThoughtContent(self, ThoughtContent):
|
|
5441
|
+
self._ThoughtContent = ThoughtContent
|
|
5442
|
+
|
|
5080
5443
|
@property
|
|
5081
5444
|
def RequestId(self):
|
|
5082
5445
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -5100,6 +5463,14 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
|
|
|
5100
5463
|
self._ErrorCode = params.get("ErrorCode")
|
|
5101
5464
|
self._ErrorMessage = params.get("ErrorMessage")
|
|
5102
5465
|
self._JobStatus = params.get("JobStatus")
|
|
5466
|
+
if params.get("QuestionInfo") is not None:
|
|
5467
|
+
self._QuestionInfo = []
|
|
5468
|
+
for item in params.get("QuestionInfo"):
|
|
5469
|
+
obj = QuestionInfo()
|
|
5470
|
+
obj._deserialize(item)
|
|
5471
|
+
self._QuestionInfo.append(obj)
|
|
5472
|
+
self._AgentResultJson = params.get("AgentResultJson")
|
|
5473
|
+
self._ThoughtContent = params.get("ThoughtContent")
|
|
5103
5474
|
self._RequestId = params.get("RequestId")
|
|
5104
5475
|
|
|
5105
5476
|
|
|
@@ -5389,6 +5760,8 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5389
5760
|
|
|
5390
5761
|
@property
|
|
5391
5762
|
def MarkInfos(self):
|
|
5763
|
+
warnings.warn("parameter `MarkInfos` is deprecated", DeprecationWarning)
|
|
5764
|
+
|
|
5392
5765
|
r"""<p>试题批改信息 (该字段后续废弃,使用QuestionInfo兼容多页批改场景)</p>
|
|
5393
5766
|
:rtype: list of MarkInfo
|
|
5394
5767
|
"""
|
|
@@ -5396,6 +5769,8 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5396
5769
|
|
|
5397
5770
|
@MarkInfos.setter
|
|
5398
5771
|
def MarkInfos(self, MarkInfos):
|
|
5772
|
+
warnings.warn("parameter `MarkInfos` is deprecated", DeprecationWarning)
|
|
5773
|
+
|
|
5399
5774
|
self._MarkInfos = MarkInfos
|
|
5400
5775
|
|
|
5401
5776
|
@property
|
|
@@ -22022,13 +22397,13 @@ class Polygon(AbstractModel):
|
|
|
22022
22397
|
|
|
22023
22398
|
def __init__(self):
|
|
22024
22399
|
r"""
|
|
22025
|
-
:param _LeftTop:
|
|
22400
|
+
:param _LeftTop: <p>左上顶点坐标</p>
|
|
22026
22401
|
:type LeftTop: :class:`tencentcloud.ocr.v20181119.models.Coord`
|
|
22027
|
-
:param _RightTop:
|
|
22402
|
+
:param _RightTop: <p>右上顶点坐标</p>
|
|
22028
22403
|
:type RightTop: :class:`tencentcloud.ocr.v20181119.models.Coord`
|
|
22029
|
-
:param _RightBottom:
|
|
22404
|
+
:param _RightBottom: <p>右下顶点坐标</p>
|
|
22030
22405
|
:type RightBottom: :class:`tencentcloud.ocr.v20181119.models.Coord`
|
|
22031
|
-
:param _LeftBottom:
|
|
22406
|
+
:param _LeftBottom: <p>左下顶点坐标</p>
|
|
22032
22407
|
:type LeftBottom: :class:`tencentcloud.ocr.v20181119.models.Coord`
|
|
22033
22408
|
"""
|
|
22034
22409
|
self._LeftTop = None
|
|
@@ -22038,7 +22413,7 @@ class Polygon(AbstractModel):
|
|
|
22038
22413
|
|
|
22039
22414
|
@property
|
|
22040
22415
|
def LeftTop(self):
|
|
22041
|
-
r"""
|
|
22416
|
+
r"""<p>左上顶点坐标</p>
|
|
22042
22417
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.Coord`
|
|
22043
22418
|
"""
|
|
22044
22419
|
return self._LeftTop
|
|
@@ -22049,7 +22424,7 @@ class Polygon(AbstractModel):
|
|
|
22049
22424
|
|
|
22050
22425
|
@property
|
|
22051
22426
|
def RightTop(self):
|
|
22052
|
-
r"""
|
|
22427
|
+
r"""<p>右上顶点坐标</p>
|
|
22053
22428
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.Coord`
|
|
22054
22429
|
"""
|
|
22055
22430
|
return self._RightTop
|
|
@@ -22060,7 +22435,7 @@ class Polygon(AbstractModel):
|
|
|
22060
22435
|
|
|
22061
22436
|
@property
|
|
22062
22437
|
def RightBottom(self):
|
|
22063
|
-
r"""
|
|
22438
|
+
r"""<p>右下顶点坐标</p>
|
|
22064
22439
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.Coord`
|
|
22065
22440
|
"""
|
|
22066
22441
|
return self._RightBottom
|
|
@@ -22071,7 +22446,7 @@ class Polygon(AbstractModel):
|
|
|
22071
22446
|
|
|
22072
22447
|
@property
|
|
22073
22448
|
def LeftBottom(self):
|
|
22074
|
-
r"""
|
|
22449
|
+
r"""<p>左下顶点坐标</p>
|
|
22075
22450
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.Coord`
|
|
22076
22451
|
"""
|
|
22077
22452
|
return self._LeftBottom
|
|
@@ -23092,10 +23467,14 @@ class QuestionInfo(AbstractModel):
|
|
|
23092
23467
|
:type OrgHeight: int
|
|
23093
23468
|
:param _OrgWidth: <p>输入图片宽度</p><p>单位:px</p>
|
|
23094
23469
|
:type OrgWidth: int
|
|
23095
|
-
:param _ImageBase64: <p
|
|
23470
|
+
:param _ImageBase64: <p>废弃字段</p>
|
|
23096
23471
|
:type ImageBase64: str
|
|
23097
23472
|
:param _ReturnImageUrl: <p>预处理后的图片URL,如果开启了图像切边矫正,后续的坐标都是基于当前图片返回的坐标</p>
|
|
23098
23473
|
:type ReturnImageUrl: str
|
|
23474
|
+
:param _ClassName: <p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model 时生效。其他模型类型不支持该能力。</p>
|
|
23475
|
+
:type ClassName: str
|
|
23476
|
+
:param _PageIndex: <p>文档所在页</p>
|
|
23477
|
+
:type PageIndex: int
|
|
23099
23478
|
"""
|
|
23100
23479
|
self._Angle = None
|
|
23101
23480
|
self._Height = None
|
|
@@ -23105,6 +23484,8 @@ class QuestionInfo(AbstractModel):
|
|
|
23105
23484
|
self._OrgWidth = None
|
|
23106
23485
|
self._ImageBase64 = None
|
|
23107
23486
|
self._ReturnImageUrl = None
|
|
23487
|
+
self._ClassName = None
|
|
23488
|
+
self._PageIndex = None
|
|
23108
23489
|
|
|
23109
23490
|
@property
|
|
23110
23491
|
def Angle(self):
|
|
@@ -23175,7 +23556,7 @@ class QuestionInfo(AbstractModel):
|
|
|
23175
23556
|
|
|
23176
23557
|
@property
|
|
23177
23558
|
def ImageBase64(self):
|
|
23178
|
-
r"""<p
|
|
23559
|
+
r"""<p>废弃字段</p>
|
|
23179
23560
|
:rtype: str
|
|
23180
23561
|
"""
|
|
23181
23562
|
return self._ImageBase64
|
|
@@ -23195,6 +23576,28 @@ class QuestionInfo(AbstractModel):
|
|
|
23195
23576
|
def ReturnImageUrl(self, ReturnImageUrl):
|
|
23196
23577
|
self._ReturnImageUrl = ReturnImageUrl
|
|
23197
23578
|
|
|
23579
|
+
@property
|
|
23580
|
+
def ClassName(self):
|
|
23581
|
+
r"""<p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model 时生效。其他模型类型不支持该能力。</p>
|
|
23582
|
+
:rtype: str
|
|
23583
|
+
"""
|
|
23584
|
+
return self._ClassName
|
|
23585
|
+
|
|
23586
|
+
@ClassName.setter
|
|
23587
|
+
def ClassName(self, ClassName):
|
|
23588
|
+
self._ClassName = ClassName
|
|
23589
|
+
|
|
23590
|
+
@property
|
|
23591
|
+
def PageIndex(self):
|
|
23592
|
+
r"""<p>文档所在页</p>
|
|
23593
|
+
:rtype: int
|
|
23594
|
+
"""
|
|
23595
|
+
return self._PageIndex
|
|
23596
|
+
|
|
23597
|
+
@PageIndex.setter
|
|
23598
|
+
def PageIndex(self, PageIndex):
|
|
23599
|
+
self._PageIndex = PageIndex
|
|
23600
|
+
|
|
23198
23601
|
|
|
23199
23602
|
def _deserialize(self, params):
|
|
23200
23603
|
self._Angle = params.get("Angle")
|
|
@@ -23210,6 +23613,8 @@ class QuestionInfo(AbstractModel):
|
|
|
23210
23613
|
self._OrgWidth = params.get("OrgWidth")
|
|
23211
23614
|
self._ImageBase64 = params.get("ImageBase64")
|
|
23212
23615
|
self._ReturnImageUrl = params.get("ReturnImageUrl")
|
|
23616
|
+
self._ClassName = params.get("ClassName")
|
|
23617
|
+
self._PageIndex = params.get("PageIndex")
|
|
23213
23618
|
memeber_set = set(params.keys())
|
|
23214
23619
|
for name, value in vars(self).items():
|
|
23215
23620
|
property_name = name[1:]
|
|
@@ -28393,14 +28798,18 @@ class ResultList(AbstractModel):
|
|
|
28393
28798
|
:param _Coord: <p>整题的坐标,多页单题跨页/单页单题跨栏场景下,存在一道题有多个坐标</p>
|
|
28394
28799
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
28395
28800
|
:type Coord: list of Polygon
|
|
28396
|
-
:param _CoordPageIndex: <p
|
|
28801
|
+
:param _CoordPageIndex: <p>单题跨栏/跨页场景下:配合CoordPageIndex一起使用,支持多坐标显示在不同页,按顺序对齐</p><p>默认值:[]</p>
|
|
28397
28802
|
:type CoordPageIndex: list of int
|
|
28398
|
-
:param _RightAnswer: <p
|
|
28803
|
+
:param _RightAnswer: <p>【批改 API 专属特性】返回步骤批改场景下的正确答案内容</p>
|
|
28399
28804
|
:type RightAnswer: str
|
|
28400
28805
|
:param _Subject: <p>学科(如语文、数学、英语)</p>
|
|
28401
28806
|
:type Subject: str
|
|
28402
28807
|
:param _KnowledgePoints: <p>返回题目的知识点内容</p>
|
|
28403
28808
|
:type KnowledgePoints: list of str
|
|
28809
|
+
:param _AnswerAnalysis: <p>【批改 API 专属特性】<br>当ModelType= yuanbao_correction_model,通过该字段返回题目维度的答案解析<br>当ModelType= youtu_correction_model,该字段返回空,通过AnswerElement. AnswerAnalysis返回答案维度答案解析</p>
|
|
28810
|
+
:type AnswerAnalysis: str
|
|
28811
|
+
:param _Grade: <p>年级:小学/初中/高中</p>
|
|
28812
|
+
:type Grade: str
|
|
28404
28813
|
"""
|
|
28405
28814
|
self._Question = None
|
|
28406
28815
|
self._Option = None
|
|
@@ -28413,6 +28822,8 @@ class ResultList(AbstractModel):
|
|
|
28413
28822
|
self._RightAnswer = None
|
|
28414
28823
|
self._Subject = None
|
|
28415
28824
|
self._KnowledgePoints = None
|
|
28825
|
+
self._AnswerAnalysis = None
|
|
28826
|
+
self._Grade = None
|
|
28416
28827
|
|
|
28417
28828
|
@property
|
|
28418
28829
|
def Question(self):
|
|
@@ -28499,7 +28910,7 @@ class ResultList(AbstractModel):
|
|
|
28499
28910
|
|
|
28500
28911
|
@property
|
|
28501
28912
|
def CoordPageIndex(self):
|
|
28502
|
-
r"""<p
|
|
28913
|
+
r"""<p>单题跨栏/跨页场景下:配合CoordPageIndex一起使用,支持多坐标显示在不同页,按顺序对齐</p><p>默认值:[]</p>
|
|
28503
28914
|
:rtype: list of int
|
|
28504
28915
|
"""
|
|
28505
28916
|
return self._CoordPageIndex
|
|
@@ -28510,7 +28921,7 @@ class ResultList(AbstractModel):
|
|
|
28510
28921
|
|
|
28511
28922
|
@property
|
|
28512
28923
|
def RightAnswer(self):
|
|
28513
|
-
r"""<p
|
|
28924
|
+
r"""<p>【批改 API 专属特性】返回步骤批改场景下的正确答案内容</p>
|
|
28514
28925
|
:rtype: str
|
|
28515
28926
|
"""
|
|
28516
28927
|
return self._RightAnswer
|
|
@@ -28541,6 +28952,28 @@ class ResultList(AbstractModel):
|
|
|
28541
28952
|
def KnowledgePoints(self, KnowledgePoints):
|
|
28542
28953
|
self._KnowledgePoints = KnowledgePoints
|
|
28543
28954
|
|
|
28955
|
+
@property
|
|
28956
|
+
def AnswerAnalysis(self):
|
|
28957
|
+
r"""<p>【批改 API 专属特性】<br>当ModelType= yuanbao_correction_model,通过该字段返回题目维度的答案解析<br>当ModelType= youtu_correction_model,该字段返回空,通过AnswerElement. AnswerAnalysis返回答案维度答案解析</p>
|
|
28958
|
+
:rtype: str
|
|
28959
|
+
"""
|
|
28960
|
+
return self._AnswerAnalysis
|
|
28961
|
+
|
|
28962
|
+
@AnswerAnalysis.setter
|
|
28963
|
+
def AnswerAnalysis(self, AnswerAnalysis):
|
|
28964
|
+
self._AnswerAnalysis = AnswerAnalysis
|
|
28965
|
+
|
|
28966
|
+
@property
|
|
28967
|
+
def Grade(self):
|
|
28968
|
+
r"""<p>年级:小学/初中/高中</p>
|
|
28969
|
+
:rtype: str
|
|
28970
|
+
"""
|
|
28971
|
+
return self._Grade
|
|
28972
|
+
|
|
28973
|
+
@Grade.setter
|
|
28974
|
+
def Grade(self, Grade):
|
|
28975
|
+
self._Grade = Grade
|
|
28976
|
+
|
|
28544
28977
|
|
|
28545
28978
|
def _deserialize(self, params):
|
|
28546
28979
|
if params.get("Question") is not None:
|
|
@@ -28589,6 +29022,8 @@ class ResultList(AbstractModel):
|
|
|
28589
29022
|
self._RightAnswer = params.get("RightAnswer")
|
|
28590
29023
|
self._Subject = params.get("Subject")
|
|
28591
29024
|
self._KnowledgePoints = params.get("KnowledgePoints")
|
|
29025
|
+
self._AnswerAnalysis = params.get("AnswerAnalysis")
|
|
29026
|
+
self._Grade = params.get("Grade")
|
|
28592
29027
|
memeber_set = set(params.keys())
|
|
28593
29028
|
for name, value in vars(self).items():
|
|
28594
29029
|
property_name = name[1:]
|
|
@@ -31067,6 +31502,8 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
|
|
|
31067
31502
|
:type ModelConfig: str
|
|
31068
31503
|
:param _AgentType: <p>agent支持的类型枚举,不同类型输出结果不一样,默认为0</p><p>0:表示标准抽取Agent</p><p>1:表示合同协议分类+抽取+审核Agent</p>
|
|
31069
31504
|
:type AgentType: int
|
|
31505
|
+
:param _QuestionConfigMap: <p>输出配置扩展,当key对应为1表示开启配置开关。</p>
|
|
31506
|
+
:type QuestionConfigMap: str
|
|
31070
31507
|
"""
|
|
31071
31508
|
self._ImageBase64 = None
|
|
31072
31509
|
self._ImageUrl = None
|
|
@@ -31077,6 +31514,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
|
|
|
31077
31514
|
self._FileEndPageNumber = None
|
|
31078
31515
|
self._ModelConfig = None
|
|
31079
31516
|
self._AgentType = None
|
|
31517
|
+
self._QuestionConfigMap = None
|
|
31080
31518
|
|
|
31081
31519
|
@property
|
|
31082
31520
|
def ImageBase64(self):
|
|
@@ -31181,6 +31619,17 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
|
|
|
31181
31619
|
def AgentType(self, AgentType):
|
|
31182
31620
|
self._AgentType = AgentType
|
|
31183
31621
|
|
|
31622
|
+
@property
|
|
31623
|
+
def QuestionConfigMap(self):
|
|
31624
|
+
r"""<p>输出配置扩展,当key对应为1表示开启配置开关。</p>
|
|
31625
|
+
:rtype: str
|
|
31626
|
+
"""
|
|
31627
|
+
return self._QuestionConfigMap
|
|
31628
|
+
|
|
31629
|
+
@QuestionConfigMap.setter
|
|
31630
|
+
def QuestionConfigMap(self, QuestionConfigMap):
|
|
31631
|
+
self._QuestionConfigMap = QuestionConfigMap
|
|
31632
|
+
|
|
31184
31633
|
|
|
31185
31634
|
def _deserialize(self, params):
|
|
31186
31635
|
self._ImageBase64 = params.get("ImageBase64")
|
|
@@ -31197,6 +31646,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
|
|
|
31197
31646
|
self._FileEndPageNumber = params.get("FileEndPageNumber")
|
|
31198
31647
|
self._ModelConfig = params.get("ModelConfig")
|
|
31199
31648
|
self._AgentType = params.get("AgentType")
|
|
31649
|
+
self._QuestionConfigMap = params.get("QuestionConfigMap")
|
|
31200
31650
|
memeber_set = set(params.keys())
|
|
31201
31651
|
for name, value in vars(self).items():
|
|
31202
31652
|
property_name = name[1:]
|
|
@@ -31265,11 +31715,17 @@ class SubmitMarkEssayAgentJobRequest(AbstractModel):
|
|
|
31265
31715
|
:type PdfPageNumber: int
|
|
31266
31716
|
:param _QuestionConfigMap: <p>批改信息输出配置,当key对应为1表示开启配置开关。 当key为StructureAndContent value为1 表示SentenceSuggest返回篇章结构和内容信息,默认只返回词汇、语句</p>
|
|
31267
31717
|
:type QuestionConfigMap: str
|
|
31718
|
+
:param _AgentType: <p>agent支持的类型枚举,不同类型输出结果不一样,默认为0</p><p>0:表示中英文作文批改Agent</p><p>1:表示教辅试卷题库拆录Agent(支持拆录含解析与答案的教辅(解析、答案可与正文分置首尾,或与试题混排)、多页成套标准答案试卷及带有手写批注痕迹的试题)</p>
|
|
31719
|
+
:type AgentType: int
|
|
31720
|
+
:param _PageRange: <p>需要识别的页码范围(目前只有AgentType=1支持),单次调用最多支持100页。 参数格式:1-10 示例值:1-2</p>
|
|
31721
|
+
:type PageRange: str
|
|
31268
31722
|
"""
|
|
31269
31723
|
self._ImageBase64List = None
|
|
31270
31724
|
self._ImageUrlList = None
|
|
31271
31725
|
self._PdfPageNumber = None
|
|
31272
31726
|
self._QuestionConfigMap = None
|
|
31727
|
+
self._AgentType = None
|
|
31728
|
+
self._PageRange = None
|
|
31273
31729
|
|
|
31274
31730
|
@property
|
|
31275
31731
|
def ImageBase64List(self):
|
|
@@ -31295,6 +31751,8 @@ class SubmitMarkEssayAgentJobRequest(AbstractModel):
|
|
|
31295
31751
|
|
|
31296
31752
|
@property
|
|
31297
31753
|
def PdfPageNumber(self):
|
|
31754
|
+
warnings.warn("parameter `PdfPageNumber` is deprecated", DeprecationWarning)
|
|
31755
|
+
|
|
31298
31756
|
r"""<p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。 示例值:1</p>
|
|
31299
31757
|
:rtype: int
|
|
31300
31758
|
"""
|
|
@@ -31302,6 +31760,8 @@ class SubmitMarkEssayAgentJobRequest(AbstractModel):
|
|
|
31302
31760
|
|
|
31303
31761
|
@PdfPageNumber.setter
|
|
31304
31762
|
def PdfPageNumber(self, PdfPageNumber):
|
|
31763
|
+
warnings.warn("parameter `PdfPageNumber` is deprecated", DeprecationWarning)
|
|
31764
|
+
|
|
31305
31765
|
self._PdfPageNumber = PdfPageNumber
|
|
31306
31766
|
|
|
31307
31767
|
@property
|
|
@@ -31315,12 +31775,36 @@ class SubmitMarkEssayAgentJobRequest(AbstractModel):
|
|
|
31315
31775
|
def QuestionConfigMap(self, QuestionConfigMap):
|
|
31316
31776
|
self._QuestionConfigMap = QuestionConfigMap
|
|
31317
31777
|
|
|
31778
|
+
@property
|
|
31779
|
+
def AgentType(self):
|
|
31780
|
+
r"""<p>agent支持的类型枚举,不同类型输出结果不一样,默认为0</p><p>0:表示中英文作文批改Agent</p><p>1:表示教辅试卷题库拆录Agent(支持拆录含解析与答案的教辅(解析、答案可与正文分置首尾,或与试题混排)、多页成套标准答案试卷及带有手写批注痕迹的试题)</p>
|
|
31781
|
+
:rtype: int
|
|
31782
|
+
"""
|
|
31783
|
+
return self._AgentType
|
|
31784
|
+
|
|
31785
|
+
@AgentType.setter
|
|
31786
|
+
def AgentType(self, AgentType):
|
|
31787
|
+
self._AgentType = AgentType
|
|
31788
|
+
|
|
31789
|
+
@property
|
|
31790
|
+
def PageRange(self):
|
|
31791
|
+
r"""<p>需要识别的页码范围(目前只有AgentType=1支持),单次调用最多支持100页。 参数格式:1-10 示例值:1-2</p>
|
|
31792
|
+
:rtype: str
|
|
31793
|
+
"""
|
|
31794
|
+
return self._PageRange
|
|
31795
|
+
|
|
31796
|
+
@PageRange.setter
|
|
31797
|
+
def PageRange(self, PageRange):
|
|
31798
|
+
self._PageRange = PageRange
|
|
31799
|
+
|
|
31318
31800
|
|
|
31319
31801
|
def _deserialize(self, params):
|
|
31320
31802
|
self._ImageBase64List = params.get("ImageBase64List")
|
|
31321
31803
|
self._ImageUrlList = params.get("ImageUrlList")
|
|
31322
31804
|
self._PdfPageNumber = params.get("PdfPageNumber")
|
|
31323
31805
|
self._QuestionConfigMap = params.get("QuestionConfigMap")
|
|
31806
|
+
self._AgentType = params.get("AgentType")
|
|
31807
|
+
self._PageRange = params.get("PageRange")
|
|
31324
31808
|
memeber_set = set(params.keys())
|
|
31325
31809
|
for name, value in vars(self).items():
|
|
31326
31810
|
property_name = name[1:]
|
|
@@ -31575,7 +32059,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
31575
32059
|
:type BoolSingleQuestion: bool
|
|
31576
32060
|
:param _EnableDeepThink: <p>默认false 表示关闭深度思考 true 表示打开深度思考,更深层次推理分析,速度更慢</p>
|
|
31577
32061
|
:type EnableDeepThink: bool
|
|
31578
|
-
:param _QuestionConfigMap: <p
|
|
32062
|
+
:param _QuestionConfigMap: <p>题目信息输出配置(默认快速模式只输出题目外层题目边框坐标、批改答案、手写答案坐标、答案分析、正确答案)</p><p>当key为QuickGradingEnabled value为false表示关闭快速模式(速度会变慢),新增输出手写作答、题干、插图坐标<br>当key为StepCorrection value为true表示启用步骤级批改(速度会变慢);</p>
|
|
31579
32063
|
:type QuestionConfigMap: str
|
|
31580
32064
|
:param _ReferenceAnswer: <p>【废弃字段】</p>
|
|
31581
32065
|
:type ReferenceAnswer: str
|
|
@@ -31589,6 +32073,8 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
31589
32073
|
:type AnswerAssistMap: str
|
|
31590
32074
|
:param _EnableImageCrop: <p>是否开启切边、弯曲矫正、方向矫正,开启则批改之前先做图片前处理,图片url地址返回在查询接口的QuestionInfo-> ReturnImageUrl中,默认为false不开启</p>
|
|
31591
32075
|
:type EnableImageCrop: bool
|
|
32076
|
+
:param _ModelType: <p>批改模型选择</p><p>枚举值:</p><ul><li>yuanbao_correction_model: 快速批改模型平均耗时8s。针对单题跨栏、多栏(≥2栏)排版及子题数超过 30 道的复杂算式场景,耗时约为快速批改模式的 2 倍+。</li><li>youtu_correction_model: 深度批改模型平均耗时12-30s。全场景支持,精度更高。</li></ul><p>默认值:yuanbao_correction_model</p>
|
|
32077
|
+
:type ModelType: str
|
|
31592
32078
|
"""
|
|
31593
32079
|
self._ImageBase64 = None
|
|
31594
32080
|
self._ImageUrl = None
|
|
@@ -31602,6 +32088,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
31602
32088
|
self._AssistMarkType = None
|
|
31603
32089
|
self._AnswerAssistMap = None
|
|
31604
32090
|
self._EnableImageCrop = None
|
|
32091
|
+
self._ModelType = None
|
|
31605
32092
|
|
|
31606
32093
|
@property
|
|
31607
32094
|
def ImageBase64(self):
|
|
@@ -31668,7 +32155,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
31668
32155
|
|
|
31669
32156
|
@property
|
|
31670
32157
|
def QuestionConfigMap(self):
|
|
31671
|
-
r"""<p
|
|
32158
|
+
r"""<p>题目信息输出配置(默认快速模式只输出题目外层题目边框坐标、批改答案、手写答案坐标、答案分析、正确答案)</p><p>当key为QuickGradingEnabled value为false表示关闭快速模式(速度会变慢),新增输出手写作答、题干、插图坐标<br>当key为StepCorrection value为true表示启用步骤级批改(速度会变慢);</p>
|
|
31672
32159
|
:rtype: str
|
|
31673
32160
|
"""
|
|
31674
32161
|
return self._QuestionConfigMap
|
|
@@ -31679,6 +32166,8 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
31679
32166
|
|
|
31680
32167
|
@property
|
|
31681
32168
|
def ReferenceAnswer(self):
|
|
32169
|
+
warnings.warn("parameter `ReferenceAnswer` is deprecated", DeprecationWarning)
|
|
32170
|
+
|
|
31682
32171
|
r"""<p>【废弃字段】</p>
|
|
31683
32172
|
:rtype: str
|
|
31684
32173
|
"""
|
|
@@ -31686,6 +32175,8 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
31686
32175
|
|
|
31687
32176
|
@ReferenceAnswer.setter
|
|
31688
32177
|
def ReferenceAnswer(self, ReferenceAnswer):
|
|
32178
|
+
warnings.warn("parameter `ReferenceAnswer` is deprecated", DeprecationWarning)
|
|
32179
|
+
|
|
31689
32180
|
self._ReferenceAnswer = ReferenceAnswer
|
|
31690
32181
|
|
|
31691
32182
|
@property
|
|
@@ -31743,6 +32234,17 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
31743
32234
|
def EnableImageCrop(self, EnableImageCrop):
|
|
31744
32235
|
self._EnableImageCrop = EnableImageCrop
|
|
31745
32236
|
|
|
32237
|
+
@property
|
|
32238
|
+
def ModelType(self):
|
|
32239
|
+
r"""<p>批改模型选择</p><p>枚举值:</p><ul><li>yuanbao_correction_model: 快速批改模型平均耗时8s。针对单题跨栏、多栏(≥2栏)排版及子题数超过 30 道的复杂算式场景,耗时约为快速批改模式的 2 倍+。</li><li>youtu_correction_model: 深度批改模型平均耗时12-30s。全场景支持,精度更高。</li></ul><p>默认值:yuanbao_correction_model</p>
|
|
32240
|
+
:rtype: str
|
|
32241
|
+
"""
|
|
32242
|
+
return self._ModelType
|
|
32243
|
+
|
|
32244
|
+
@ModelType.setter
|
|
32245
|
+
def ModelType(self, ModelType):
|
|
32246
|
+
self._ModelType = ModelType
|
|
32247
|
+
|
|
31746
32248
|
|
|
31747
32249
|
def _deserialize(self, params):
|
|
31748
32250
|
self._ImageBase64 = params.get("ImageBase64")
|
|
@@ -31757,6 +32259,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
31757
32259
|
self._AssistMarkType = params.get("AssistMarkType")
|
|
31758
32260
|
self._AnswerAssistMap = params.get("AnswerAssistMap")
|
|
31759
32261
|
self._EnableImageCrop = params.get("EnableImageCrop")
|
|
32262
|
+
self._ModelType = params.get("ModelType")
|
|
31760
32263
|
memeber_set = set(params.keys())
|
|
31761
32264
|
for name, value in vars(self).items():
|
|
31762
32265
|
property_name = name[1:]
|
|
@@ -31776,9 +32279,9 @@ class SubmitQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
31776
32279
|
r"""
|
|
31777
32280
|
:param _JobId: <p>任务唯一ID。由服务端生成.</p>
|
|
31778
32281
|
:type JobId: str
|
|
31779
|
-
:param _QuestionInfo: <p
|
|
32282
|
+
:param _QuestionInfo: <p>【废弃字段】</p>
|
|
31780
32283
|
:type QuestionInfo: list of QuestionInfo
|
|
31781
|
-
:param _QuestionCount: <p
|
|
32284
|
+
:param _QuestionCount: <p>【废弃字段】</p>
|
|
31782
32285
|
:type QuestionCount: str
|
|
31783
32286
|
:param _OriginalImageUrl: <p>【废弃字段】</p>
|
|
31784
32287
|
:type OriginalImageUrl: str
|
|
@@ -31804,28 +32307,38 @@ class SubmitQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
31804
32307
|
|
|
31805
32308
|
@property
|
|
31806
32309
|
def QuestionInfo(self):
|
|
31807
|
-
|
|
32310
|
+
warnings.warn("parameter `QuestionInfo` is deprecated", DeprecationWarning)
|
|
32311
|
+
|
|
32312
|
+
r"""<p>【废弃字段】</p>
|
|
31808
32313
|
:rtype: list of QuestionInfo
|
|
31809
32314
|
"""
|
|
31810
32315
|
return self._QuestionInfo
|
|
31811
32316
|
|
|
31812
32317
|
@QuestionInfo.setter
|
|
31813
32318
|
def QuestionInfo(self, QuestionInfo):
|
|
32319
|
+
warnings.warn("parameter `QuestionInfo` is deprecated", DeprecationWarning)
|
|
32320
|
+
|
|
31814
32321
|
self._QuestionInfo = QuestionInfo
|
|
31815
32322
|
|
|
31816
32323
|
@property
|
|
31817
32324
|
def QuestionCount(self):
|
|
31818
|
-
|
|
32325
|
+
warnings.warn("parameter `QuestionCount` is deprecated", DeprecationWarning)
|
|
32326
|
+
|
|
32327
|
+
r"""<p>【废弃字段】</p>
|
|
31819
32328
|
:rtype: str
|
|
31820
32329
|
"""
|
|
31821
32330
|
return self._QuestionCount
|
|
31822
32331
|
|
|
31823
32332
|
@QuestionCount.setter
|
|
31824
32333
|
def QuestionCount(self, QuestionCount):
|
|
32334
|
+
warnings.warn("parameter `QuestionCount` is deprecated", DeprecationWarning)
|
|
32335
|
+
|
|
31825
32336
|
self._QuestionCount = QuestionCount
|
|
31826
32337
|
|
|
31827
32338
|
@property
|
|
31828
32339
|
def OriginalImageUrl(self):
|
|
32340
|
+
warnings.warn("parameter `OriginalImageUrl` is deprecated", DeprecationWarning)
|
|
32341
|
+
|
|
31829
32342
|
r"""<p>【废弃字段】</p>
|
|
31830
32343
|
:rtype: str
|
|
31831
32344
|
"""
|
|
@@ -31833,6 +32346,8 @@ class SubmitQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
31833
32346
|
|
|
31834
32347
|
@OriginalImageUrl.setter
|
|
31835
32348
|
def OriginalImageUrl(self, OriginalImageUrl):
|
|
32349
|
+
warnings.warn("parameter `OriginalImageUrl` is deprecated", DeprecationWarning)
|
|
32350
|
+
|
|
31836
32351
|
self._OriginalImageUrl = OriginalImageUrl
|
|
31837
32352
|
|
|
31838
32353
|
@property
|
|
@@ -76,6 +76,29 @@ class OcrClient(AbstractClient):
|
|
|
76
76
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
77
77
|
|
|
78
78
|
|
|
79
|
+
def AuditMaterialAgent(self, request):
|
|
80
|
+
r"""针对业务流程中的卡证图片、场景图片等资料,提供分类、识别、比对、鉴伪等综合审核能力,可应用于商户审核、信贷审核等业务流程。一期先实现商户照片审核Agent,未来支持更多类型。
|
|
81
|
+
|
|
82
|
+
:param request: Request instance for AuditMaterialAgent.
|
|
83
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.AuditMaterialAgentRequest`
|
|
84
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.AuditMaterialAgentResponse`
|
|
85
|
+
|
|
86
|
+
"""
|
|
87
|
+
try:
|
|
88
|
+
params = request._serialize()
|
|
89
|
+
headers = request.headers
|
|
90
|
+
body = self.call("AuditMaterialAgent", params, headers=headers)
|
|
91
|
+
response = json.loads(body)
|
|
92
|
+
model = models.AuditMaterialAgentResponse()
|
|
93
|
+
model._deserialize(response["Response"])
|
|
94
|
+
return model
|
|
95
|
+
except Exception as e:
|
|
96
|
+
if isinstance(e, TencentCloudSDKException):
|
|
97
|
+
raise
|
|
98
|
+
else:
|
|
99
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
100
|
+
|
|
101
|
+
|
|
79
102
|
def BankCardOCR(self, request):
|
|
80
103
|
r"""本接口支持对中国大陆主流银行卡正反面关键字段的检测与识别,包括卡号、卡类型、卡名字、银行信息、有效期。支持竖排异形卡识别、多角度旋转图片识别。支持对复印件、翻拍件、边框遮挡的银行卡进行告警,可应用于各种银行卡信息有效性校验场景,如金融行业身份认证、第三方支付绑卡等场景。
|
|
81
104
|
|
|
@@ -299,7 +322,7 @@ class OcrClient(AbstractClient):
|
|
|
299
322
|
|
|
300
323
|
|
|
301
324
|
def DescribeMarkEssayAgentJob(self, request):
|
|
302
|
-
r"""
|
|
325
|
+
r"""用于智能教育SuperAgent查询任务。基于业界领先的千亿参数多模态大模型,本智能教育SuperAgent提供全场景端到端的精准服务。系统内置涵盖**中文/英文作文批改**、**教辅试卷题库拆录**等核心Agent,并支持快速定制专属教育场景Agent,全面赋能教学与测评环节。
|
|
303
326
|
|
|
304
327
|
默认接口请求并发限制:2次/分钟。
|
|
305
328
|
|
|
@@ -324,7 +347,7 @@ class OcrClient(AbstractClient):
|
|
|
324
347
|
|
|
325
348
|
|
|
326
349
|
def DescribeMultimodalDocParseJob(self, request):
|
|
327
|
-
r"""用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob
|
|
350
|
+
r"""用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用。
|
|
328
351
|
|
|
329
352
|
创建任务接口文档地址[:https://cloud.tencent.com/document/product/866/139312](https://cloud.tencent.com/document/product/866/139312)
|
|
330
353
|
|
|
@@ -1355,7 +1378,7 @@ class OcrClient(AbstractClient):
|
|
|
1355
1378
|
|
|
1356
1379
|
def QueryEnterpriseBasicInfo(self, request):
|
|
1357
1380
|
r"""提供查询企业基本信息的能力。输入企业名称或统一社会信用代码,返回企业名称、统一社会信用代码、法定代表人、登记机关、经营期限、经营状态、经营范围、注册地址、主体类型、成立日期、核准日期、行政区划等企业登记信息。部分出参可能为空或无法查得,具体以实际查询结果为准。
|
|
1358
|
-
|
|
1381
|
+
重要提醒:使用本产品需要符合真实企业、真实业务场景、真实用户授权的要求,请[填写登记表申请开通服务](https://cloud.tencent.com/apply/p/du5vwoxm3fw)。
|
|
1359
1382
|
|
|
1360
1383
|
:param request: Request instance for QueryEnterpriseBasicInfo.
|
|
1361
1384
|
:type request: :class:`tencentcloud.ocr.v20181119.models.QueryEnterpriseBasicInfoRequest`
|
|
@@ -2159,7 +2182,7 @@ class OcrClient(AbstractClient):
|
|
|
2159
2182
|
|
|
2160
2183
|
|
|
2161
2184
|
def SubmitMarkEssayAgentJob(self, request):
|
|
2162
|
-
r"""
|
|
2185
|
+
r"""用于智能教育SuperAgent提交任务。基于业界领先的千亿参数多模态大模型,本智能教育SuperAgent提供全场景端到端的精准服务。系统内置涵盖**中文/英文作文批改**、**教辅试卷题库拆录**等核心Agent,并支持快速定制专属教育场景Agent,全面赋能教学与测评环节。
|
|
2163
2186
|
|
|
2164
2187
|
默认接口请求并发限制:2次/分钟。
|
|
2165
2188
|
|
|
@@ -2184,7 +2207,7 @@ class OcrClient(AbstractClient):
|
|
|
2184
2207
|
|
|
2185
2208
|
|
|
2186
2209
|
def SubmitMultimodalDocParseJob(self, request):
|
|
2187
|
-
r"""本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob
|
|
2210
|
+
r"""本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用。
|
|
2188
2211
|
|
|
2189
2212
|
查询任务接口文档地址[:https://cloud.tencent.com/document/product/866/139313](https://cloud.tencent.com/document/product/866/139313)
|
|
2190
2213
|
|
|
@@ -65,6 +65,24 @@ class OcrClient(AbstractClient):
|
|
|
65
65
|
|
|
66
66
|
return await self.call_and_deserialize(**kwargs)
|
|
67
67
|
|
|
68
|
+
async def AuditMaterialAgent(
|
|
69
|
+
self,
|
|
70
|
+
request: models.AuditMaterialAgentRequest,
|
|
71
|
+
opts: Dict = None,
|
|
72
|
+
) -> models.AuditMaterialAgentResponse:
|
|
73
|
+
"""
|
|
74
|
+
针对业务流程中的卡证图片、场景图片等资料,提供分类、识别、比对、鉴伪等综合审核能力,可应用于商户审核、信贷审核等业务流程。一期先实现商户照片审核Agent,未来支持更多类型。
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
kwargs = {}
|
|
78
|
+
kwargs["action"] = "AuditMaterialAgent"
|
|
79
|
+
kwargs["params"] = request._serialize()
|
|
80
|
+
kwargs["resp_cls"] = models.AuditMaterialAgentResponse
|
|
81
|
+
kwargs["headers"] = request.headers
|
|
82
|
+
kwargs["opts"] = opts or {}
|
|
83
|
+
|
|
84
|
+
return await self.call_and_deserialize(**kwargs)
|
|
85
|
+
|
|
68
86
|
async def BankCardOCR(
|
|
69
87
|
self,
|
|
70
88
|
request: models.BankCardOCRRequest,
|
|
@@ -248,7 +266,7 @@ class OcrClient(AbstractClient):
|
|
|
248
266
|
opts: Dict = None,
|
|
249
267
|
) -> models.DescribeMarkEssayAgentJobResponse:
|
|
250
268
|
"""
|
|
251
|
-
|
|
269
|
+
用于智能教育SuperAgent查询任务。基于业界领先的千亿参数多模态大模型,本智能教育SuperAgent提供全场景端到端的精准服务。系统内置涵盖**中文/英文作文批改**、**教辅试卷题库拆录**等核心Agent,并支持快速定制专属教育场景Agent,全面赋能教学与测评环节。
|
|
252
270
|
|
|
253
271
|
默认接口请求并发限制:2次/分钟。
|
|
254
272
|
"""
|
|
@@ -268,7 +286,7 @@ class OcrClient(AbstractClient):
|
|
|
268
286
|
opts: Dict = None,
|
|
269
287
|
) -> models.DescribeMultimodalDocParseJobResponse:
|
|
270
288
|
"""
|
|
271
|
-
用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob
|
|
289
|
+
用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用。
|
|
272
290
|
|
|
273
291
|
创建任务接口文档地址[:https://cloud.tencent.com/document/product/866/139312](https://cloud.tencent.com/document/product/866/139312)
|
|
274
292
|
|
|
@@ -1129,7 +1147,7 @@ class OcrClient(AbstractClient):
|
|
|
1129
1147
|
) -> models.QueryEnterpriseBasicInfoResponse:
|
|
1130
1148
|
"""
|
|
1131
1149
|
提供查询企业基本信息的能力。输入企业名称或统一社会信用代码,返回企业名称、统一社会信用代码、法定代表人、登记机关、经营期限、经营状态、经营范围、注册地址、主体类型、成立日期、核准日期、行政区划等企业登记信息。部分出参可能为空或无法查得,具体以实际查询结果为准。
|
|
1132
|
-
|
|
1150
|
+
重要提醒:使用本产品需要符合真实企业、真实业务场景、真实用户授权的要求,请[填写登记表申请开通服务](https://cloud.tencent.com/apply/p/du5vwoxm3fw)。
|
|
1133
1151
|
"""
|
|
1134
1152
|
|
|
1135
1153
|
kwargs = {}
|
|
@@ -1823,7 +1841,7 @@ class OcrClient(AbstractClient):
|
|
|
1823
1841
|
opts: Dict = None,
|
|
1824
1842
|
) -> models.SubmitMarkEssayAgentJobResponse:
|
|
1825
1843
|
"""
|
|
1826
|
-
|
|
1844
|
+
用于智能教育SuperAgent提交任务。基于业界领先的千亿参数多模态大模型,本智能教育SuperAgent提供全场景端到端的精准服务。系统内置涵盖**中文/英文作文批改**、**教辅试卷题库拆录**等核心Agent,并支持快速定制专属教育场景Agent,全面赋能教学与测评环节。
|
|
1827
1845
|
|
|
1828
1846
|
默认接口请求并发限制:2次/分钟。
|
|
1829
1847
|
"""
|
|
@@ -1843,7 +1861,7 @@ class OcrClient(AbstractClient):
|
|
|
1843
1861
|
opts: Dict = None,
|
|
1844
1862
|
) -> models.SubmitMultimodalDocParseJobResponse:
|
|
1845
1863
|
"""
|
|
1846
|
-
本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob
|
|
1864
|
+
本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用。
|
|
1847
1865
|
|
|
1848
1866
|
查询任务接口文档地址[:https://cloud.tencent.com/document/product/866/139313](https://cloud.tencent.com/document/product/866/139313)
|
|
1849
1867
|
|
|
@@ -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.207
|
|
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.207
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.207
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.206
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|