tencentcloud-sdk-python-ocr 3.1.184__tar.gz → 3.1.188__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud/ocr/v20181119/models.py +583 -24
  5. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud/ocr/v20181119/ocr_client.py +79 -0
  6. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud/ocr/v20181119/ocr_client_async.py +64 -0
  7. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_ocr-3.1.188/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_ocr-3.1.184/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/README.rst +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.184 → tencentcloud_sdk_python_ocr-3.1.188}/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.184
3
+ Version: 3.1.188
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.184
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.188
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.184,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.188,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Ocr SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.184'
17
+ __version__ = '3.1.188'
@@ -5048,6 +5048,180 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
5048
5048
  self._RequestId = params.get("RequestId")
5049
5049
 
5050
5050
 
5051
+ class DescribeMultimodalDocParseJobRequest(AbstractModel):
5052
+ r"""DescribeMultimodalDocParseJob请求参数结构体
5053
+
5054
+ """
5055
+
5056
+ def __init__(self):
5057
+ r"""
5058
+ :param _TaskId: <p>解析任务ID。由创建任务接口返回。</p>
5059
+ :type TaskId: str
5060
+ """
5061
+ self._TaskId = None
5062
+
5063
+ @property
5064
+ def TaskId(self):
5065
+ r"""<p>解析任务ID。由创建任务接口返回。</p>
5066
+ :rtype: str
5067
+ """
5068
+ return self._TaskId
5069
+
5070
+ @TaskId.setter
5071
+ def TaskId(self, TaskId):
5072
+ self._TaskId = TaskId
5073
+
5074
+
5075
+ def _deserialize(self, params):
5076
+ self._TaskId = params.get("TaskId")
5077
+ memeber_set = set(params.keys())
5078
+ for name, value in vars(self).items():
5079
+ property_name = name[1:]
5080
+ if property_name in memeber_set:
5081
+ memeber_set.remove(property_name)
5082
+ if len(memeber_set) > 0:
5083
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5084
+
5085
+
5086
+
5087
+ class DescribeMultimodalDocParseJobResponse(AbstractModel):
5088
+ r"""DescribeMultimodalDocParseJob返回参数结构体
5089
+
5090
+ """
5091
+
5092
+ def __init__(self):
5093
+ r"""
5094
+ :param _Status: <p>任务状态。取值:</p><ul><li>Created:已创建,等待处理</li><li>Processing:处理中</li><li>Success:成功</li><li>Failed:失败</li><li>Unknown:未知</li></ul>
5095
+ :type Status: str
5096
+ :param _ErrorCode: <p>任务执行错误码。当任务状态不为 Failed 时,该值为“”。</p>
5097
+ :type ErrorCode: str
5098
+ :param _ErrorMessage: <p>任务执行错误信息。当任务状态不为 Failed 时,该值为“”。</p>
5099
+ :type ErrorMessage: str
5100
+ :param _ResultUrl: <p>结果的临时下载地址。文件类型为 zip 压缩包,下载链接有效期 30 分钟。压缩包内包含 <em>.md、</em>.json 以及 images 文件夹。仅当任务状态为 Success 时返回该字段。</p>
5101
+ :type ResultUrl: str
5102
+ :param _FailedPages: <p>解析失败的页码列表。仅当任务状态为 Success 时返回该字段。</p>
5103
+ :type FailedPages: list of ReconstructDocumentFailedPage
5104
+ :param _SuccessPageNum: <p>解析成功页数。</p>
5105
+ :type SuccessPageNum: int
5106
+ :param _FailPageNum: <p>解析失败页数。</p>
5107
+ :type FailPageNum: int
5108
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5109
+ :type RequestId: str
5110
+ """
5111
+ self._Status = None
5112
+ self._ErrorCode = None
5113
+ self._ErrorMessage = None
5114
+ self._ResultUrl = None
5115
+ self._FailedPages = None
5116
+ self._SuccessPageNum = None
5117
+ self._FailPageNum = None
5118
+ self._RequestId = None
5119
+
5120
+ @property
5121
+ def Status(self):
5122
+ r"""<p>任务状态。取值:</p><ul><li>Created:已创建,等待处理</li><li>Processing:处理中</li><li>Success:成功</li><li>Failed:失败</li><li>Unknown:未知</li></ul>
5123
+ :rtype: str
5124
+ """
5125
+ return self._Status
5126
+
5127
+ @Status.setter
5128
+ def Status(self, Status):
5129
+ self._Status = Status
5130
+
5131
+ @property
5132
+ def ErrorCode(self):
5133
+ r"""<p>任务执行错误码。当任务状态不为 Failed 时,该值为“”。</p>
5134
+ :rtype: str
5135
+ """
5136
+ return self._ErrorCode
5137
+
5138
+ @ErrorCode.setter
5139
+ def ErrorCode(self, ErrorCode):
5140
+ self._ErrorCode = ErrorCode
5141
+
5142
+ @property
5143
+ def ErrorMessage(self):
5144
+ r"""<p>任务执行错误信息。当任务状态不为 Failed 时,该值为“”。</p>
5145
+ :rtype: str
5146
+ """
5147
+ return self._ErrorMessage
5148
+
5149
+ @ErrorMessage.setter
5150
+ def ErrorMessage(self, ErrorMessage):
5151
+ self._ErrorMessage = ErrorMessage
5152
+
5153
+ @property
5154
+ def ResultUrl(self):
5155
+ r"""<p>结果的临时下载地址。文件类型为 zip 压缩包,下载链接有效期 30 分钟。压缩包内包含 <em>.md、</em>.json 以及 images 文件夹。仅当任务状态为 Success 时返回该字段。</p>
5156
+ :rtype: str
5157
+ """
5158
+ return self._ResultUrl
5159
+
5160
+ @ResultUrl.setter
5161
+ def ResultUrl(self, ResultUrl):
5162
+ self._ResultUrl = ResultUrl
5163
+
5164
+ @property
5165
+ def FailedPages(self):
5166
+ r"""<p>解析失败的页码列表。仅当任务状态为 Success 时返回该字段。</p>
5167
+ :rtype: list of ReconstructDocumentFailedPage
5168
+ """
5169
+ return self._FailedPages
5170
+
5171
+ @FailedPages.setter
5172
+ def FailedPages(self, FailedPages):
5173
+ self._FailedPages = FailedPages
5174
+
5175
+ @property
5176
+ def SuccessPageNum(self):
5177
+ r"""<p>解析成功页数。</p>
5178
+ :rtype: int
5179
+ """
5180
+ return self._SuccessPageNum
5181
+
5182
+ @SuccessPageNum.setter
5183
+ def SuccessPageNum(self, SuccessPageNum):
5184
+ self._SuccessPageNum = SuccessPageNum
5185
+
5186
+ @property
5187
+ def FailPageNum(self):
5188
+ r"""<p>解析失败页数。</p>
5189
+ :rtype: int
5190
+ """
5191
+ return self._FailPageNum
5192
+
5193
+ @FailPageNum.setter
5194
+ def FailPageNum(self, FailPageNum):
5195
+ self._FailPageNum = FailPageNum
5196
+
5197
+ @property
5198
+ def RequestId(self):
5199
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5200
+ :rtype: str
5201
+ """
5202
+ return self._RequestId
5203
+
5204
+ @RequestId.setter
5205
+ def RequestId(self, RequestId):
5206
+ self._RequestId = RequestId
5207
+
5208
+
5209
+ def _deserialize(self, params):
5210
+ self._Status = params.get("Status")
5211
+ self._ErrorCode = params.get("ErrorCode")
5212
+ self._ErrorMessage = params.get("ErrorMessage")
5213
+ self._ResultUrl = params.get("ResultUrl")
5214
+ if params.get("FailedPages") is not None:
5215
+ self._FailedPages = []
5216
+ for item in params.get("FailedPages"):
5217
+ obj = ReconstructDocumentFailedPage()
5218
+ obj._deserialize(item)
5219
+ self._FailedPages.append(obj)
5220
+ self._SuccessPageNum = params.get("SuccessPageNum")
5221
+ self._FailPageNum = params.get("FailPageNum")
5222
+ self._RequestId = params.get("RequestId")
5223
+
5224
+
5051
5225
  class DescribeQuestionMarkAgentJobRequest(AbstractModel):
5052
5226
  r"""DescribeQuestionMarkAgentJob请求参数结构体
5053
5227
 
@@ -19059,7 +19233,7 @@ class MultimodalDocParseRequest(AbstractModel):
19059
19233
  r"""
19060
19234
  :param _FileUrl: <p>文件的 Url 地址,支持FileType参数对应的文件格式及大小。文件下载时间不超过3秒。文件存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
19061
19235
  :type FileUrl: str
19062
- :param _FileType: <p>支持解析的文件类型。</p><p>1:PDF 文档;</p><p>2:Word 文档(.doc / .docx);</p><p>3:PPT 演示文稿(.ppt / .pptx);</p><p>4:Excel 表格(.xls / .xlsx);</p><p>5:Markdown 文档(.md);</p><p>6:纯文本文件(.txt);</p><p>7:图片文件(.png / .jpg / .jpeg 等);</p><p>8:WPS 文档;</p><p>0:未知文件类型。</p><p></p><p>支持的文件大小:</p><p>PDF/WORD/PPT支持150M且300页以内、EXCEL支持10M以内、TXT支持10M以内、图片文件支持70M以内。</p><p></p><p>默认值:1</p>
19236
+ :param _FileType: <p>支持解析的文件类型。</p><p>1:PDF 文档;</p><p>2:Word 文档(.doc / .docx);</p><p>3:PPT 演示文稿(.ppt / .pptx);</p><p>4:Excel 表格(.xls / .xlsx);</p><p>5:Markdown 文档(.md);</p><p>6:纯文本文件(.txt);</p><p>7:图片文件(.png / .jpg / .jpeg 等);</p><p>8:WPS 文档;</p><p>支持的文件大小:</p><p>PDF/WORD/PPT支持150M且300页以内、EXCEL支持10M以内、TXT支持10M以内、图片文件支持30M以内。</p><p></p><p>默认值:1</p>
19063
19237
  :type FileType: int
19064
19238
  :param _ResultType: <p>输出格式。</p><p>1:json格式</p><p>2:markdown格式</p><p>3:xml格式</p><p>9:json+markdown+xml格式</p><p></p><p>默认值:9</p>
19065
19239
  :type ResultType: int
@@ -19090,7 +19264,7 @@ class MultimodalDocParseRequest(AbstractModel):
19090
19264
 
19091
19265
  @property
19092
19266
  def FileType(self):
19093
- r"""<p>支持解析的文件类型。</p><p>1:PDF 文档;</p><p>2:Word 文档(.doc / .docx);</p><p>3:PPT 演示文稿(.ppt / .pptx);</p><p>4:Excel 表格(.xls / .xlsx);</p><p>5:Markdown 文档(.md);</p><p>6:纯文本文件(.txt);</p><p>7:图片文件(.png / .jpg / .jpeg 等);</p><p>8:WPS 文档;</p><p>0:未知文件类型。</p><p></p><p>支持的文件大小:</p><p>PDF/WORD/PPT支持150M且300页以内、EXCEL支持10M以内、TXT支持10M以内、图片文件支持70M以内。</p><p></p><p>默认值:1</p>
19267
+ r"""<p>支持解析的文件类型。</p><p>1:PDF 文档;</p><p>2:Word 文档(.doc / .docx);</p><p>3:PPT 演示文稿(.ppt / .pptx);</p><p>4:Excel 表格(.xls / .xlsx);</p><p>5:Markdown 文档(.md);</p><p>6:纯文本文件(.txt);</p><p>7:图片文件(.png / .jpg / .jpeg 等);</p><p>8:WPS 文档;</p><p>支持的文件大小:</p><p>PDF/WORD/PPT支持150M且300页以内、EXCEL支持10M以内、TXT支持10M以内、图片文件支持30M以内。</p><p></p><p>默认值:1</p>
19094
19268
  :rtype: int
19095
19269
  """
19096
19270
  return self._FileType
@@ -23074,13 +23248,13 @@ class ReasoningConfig(AbstractModel):
23074
23248
 
23075
23249
  def __init__(self):
23076
23250
  r"""
23077
- :param _OutputMode: <p>实际使用的推理输出模式:enum 或 string。</p>
23251
+ :param _OutputMode: <p>推理输出模式。可选值:enum(枚举值输出)、string(自由文本输出)。<br>enum:VLM 必须从 EnumValues 中选择一个值输出,适用于二值判断或分类决策。<br>string:VLM 输出自由文本,适用于需要自然语言解释的场景。</p>
23078
23252
  :type OutputMode: str
23079
- :param _EnumValues: <p>枚举值集合,仅在 OutputMode=enum 时生效。 VLM 输出必须精确命中此集合中的某个值。</p>
23253
+ :param _EnumValues: <p>枚举值集合,仅在 OutputMode=enum 时生效,设置后VLM推理结果必须精确命中此集合中的某个值,否则会返回“输出偏离枚举值”,Prompt中的指令应与枚举值匹配。</p>
23080
23254
  :type EnumValues: list of str
23081
- :param _MaxLength: <p>文本输出最大长度,仅在 OutputMode=string 时生效。</p><p>取值范围:[1, 500]</p><p>默认值:200</p>
23255
+ :param _MaxLength: <p>文本输出最大长度,仅在 OutputMode=string 时生效。</p><p>取值范围:[1, 500]</p>
23082
23256
  :type MaxLength: int
23083
- :param _EnableImageInput: <p>是否在推理调用时向 VLM 传入原图进行多模态理解。 true(默认):VLM 同时接收原图和渲染后的 Prompt,具备多模态理解能力,可直接&quot;看&quot;图片内容进行推理。 false:不传入原图,仅以渲染后的 Prompt(含变量注入值)进行纯文本推理。适用于推理逻辑完全基于结构化出参字段(如水印文字、置信度比较等)的场景,可降低推理延迟和计费成本。 建议:当 ReasoningPrompt 中未涉及&quot;观察图片&quot;、&quot;直接看图&quot;等多模态指令,且推理规则完全基于 ${变量名} 引用的文字结果时,可设为 false 以优化性能。</p>
23257
+ :param _EnableImageInput: <p>是否在推理时向 VLM 传入原图进行多模态理解,不传入时默认为true。<br>true:VLM 同时接收原图和渲染后的 Prompt,具备多模态理解能力,可直接&quot;看&quot;图片内容进行推理。<br>false:不传入原图,仅以渲染后的 Prompt(含变量注入值)进行纯文本推理,适用于推理逻辑完全基于结构化出参字段(如水印文字、置信度比较等)的场景。<br>建议:当 ReasoningPrompt 中未涉及&quot;观察图片&quot;、&quot;分析图片&quot;等多模态指令,推理规则完全基于 ${变量名} 引用的文字结果时,可设为 false 以获得更低的延迟。</p>
23084
23258
  :type EnableImageInput: bool
23085
23259
  """
23086
23260
  self._OutputMode = None
@@ -23090,7 +23264,7 @@ class ReasoningConfig(AbstractModel):
23090
23264
 
23091
23265
  @property
23092
23266
  def OutputMode(self):
23093
- r"""<p>实际使用的推理输出模式:enum 或 string。</p>
23267
+ r"""<p>推理输出模式。可选值:enum(枚举值输出)、string(自由文本输出)。<br>enum:VLM 必须从 EnumValues 中选择一个值输出,适用于二值判断或分类决策。<br>string:VLM 输出自由文本,适用于需要自然语言解释的场景。</p>
23094
23268
  :rtype: str
23095
23269
  """
23096
23270
  return self._OutputMode
@@ -23101,7 +23275,7 @@ class ReasoningConfig(AbstractModel):
23101
23275
 
23102
23276
  @property
23103
23277
  def EnumValues(self):
23104
- r"""<p>枚举值集合,仅在 OutputMode=enum 时生效。 VLM 输出必须精确命中此集合中的某个值。</p>
23278
+ r"""<p>枚举值集合,仅在 OutputMode=enum 时生效,设置后VLM推理结果必须精确命中此集合中的某个值,否则会返回“输出偏离枚举值”,Prompt中的指令应与枚举值匹配。</p>
23105
23279
  :rtype: list of str
23106
23280
  """
23107
23281
  return self._EnumValues
@@ -23112,7 +23286,7 @@ class ReasoningConfig(AbstractModel):
23112
23286
 
23113
23287
  @property
23114
23288
  def MaxLength(self):
23115
- r"""<p>文本输出最大长度,仅在 OutputMode=string 时生效。</p><p>取值范围:[1, 500]</p><p>默认值:200</p>
23289
+ r"""<p>文本输出最大长度,仅在 OutputMode=string 时生效。</p><p>取值范围:[1, 500]</p>
23116
23290
  :rtype: int
23117
23291
  """
23118
23292
  return self._MaxLength
@@ -23123,7 +23297,7 @@ class ReasoningConfig(AbstractModel):
23123
23297
 
23124
23298
  @property
23125
23299
  def EnableImageInput(self):
23126
- r"""<p>是否在推理调用时向 VLM 传入原图进行多模态理解。 true(默认):VLM 同时接收原图和渲染后的 Prompt,具备多模态理解能力,可直接&quot;看&quot;图片内容进行推理。 false:不传入原图,仅以渲染后的 Prompt(含变量注入值)进行纯文本推理。适用于推理逻辑完全基于结构化出参字段(如水印文字、置信度比较等)的场景,可降低推理延迟和计费成本。 建议:当 ReasoningPrompt 中未涉及&quot;观察图片&quot;、&quot;直接看图&quot;等多模态指令,且推理规则完全基于 ${变量名} 引用的文字结果时,可设为 false 以优化性能。</p>
23300
+ r"""<p>是否在推理时向 VLM 传入原图进行多模态理解,不传入时默认为true。<br>true:VLM 同时接收原图和渲染后的 Prompt,具备多模态理解能力,可直接&quot;看&quot;图片内容进行推理。<br>false:不传入原图,仅以渲染后的 Prompt(含变量注入值)进行纯文本推理,适用于推理逻辑完全基于结构化出参字段(如水印文字、置信度比较等)的场景。<br>建议:当 ReasoningPrompt 中未涉及&quot;观察图片&quot;、&quot;分析图片&quot;等多模态指令,推理规则完全基于 ${变量名} 引用的文字结果时,可设为 false 以获得更低的延迟。</p>
23127
23301
  :rtype: bool
23128
23302
  """
23129
23303
  return self._EnableImageInput
@@ -23157,13 +23331,13 @@ class ReasoningResult(AbstractModel):
23157
23331
  r"""
23158
23332
  :param _OutputMode: <p>实际使用的推理输出模式:enum 或 string。</p>
23159
23333
  :type OutputMode: str
23160
- :param _EnumValue: <p>枚举模式下的推理结果值。当 OutputMode=enum 时返回,必定命中请求中 EnumValues 的某个值。 若 VLM 输出无法匹配任何枚举值,则返回 <strong>UNCERTAIN</strong>。</p>
23334
+ :param _EnumValue: <p>枚举模式下的推理结果值。当 OutputMode=enum 时返回,取值对应请求中配置的 EnumValues。</p>
23161
23335
  :type EnumValue: str
23162
- :param _TextValue: <p>文本模式下的推理结果值。当 OutputMode=string 时返回。 若 VLM 无法得出结论,则返回 <strong>UNCERTAIN</strong>。</p>
23336
+ :param _TextValue: <p>文本模式下的推理结果值。当 OutputMode=string 时返回,以文本形式描述推理结论。</p>
23163
23337
  :type TextValue: str
23164
- :param _RawOutput: <p>VLM 原始输出文本(未经过结构化校验)。</p>
23338
+ :param _RawOutput: <p>VLM 原始输出文本(未经过结构化校验)。该字段仅用于调试,生产环境可忽略。</p>
23165
23339
  :type RawOutput: str
23166
- :param _RenderedPrompt: <p>变量替换后的实际 Prompt(脱敏后)。</p>
23340
+ :param _RenderedPrompt: <p>变量替换后的用户 Prompt 文本。该字段仅用于调试,生产环境可忽略。</p>
23167
23341
  :type RenderedPrompt: str
23168
23342
  """
23169
23343
  self._OutputMode = None
@@ -23185,7 +23359,7 @@ class ReasoningResult(AbstractModel):
23185
23359
 
23186
23360
  @property
23187
23361
  def EnumValue(self):
23188
- r"""<p>枚举模式下的推理结果值。当 OutputMode=enum 时返回,必定命中请求中 EnumValues 的某个值。 若 VLM 输出无法匹配任何枚举值,则返回 <strong>UNCERTAIN</strong>。</p>
23362
+ r"""<p>枚举模式下的推理结果值。当 OutputMode=enum 时返回,取值对应请求中配置的 EnumValues。</p>
23189
23363
  :rtype: str
23190
23364
  """
23191
23365
  return self._EnumValue
@@ -23196,7 +23370,7 @@ class ReasoningResult(AbstractModel):
23196
23370
 
23197
23371
  @property
23198
23372
  def TextValue(self):
23199
- r"""<p>文本模式下的推理结果值。当 OutputMode=string 时返回。 若 VLM 无法得出结论,则返回 <strong>UNCERTAIN</strong>。</p>
23373
+ r"""<p>文本模式下的推理结果值。当 OutputMode=string 时返回,以文本形式描述推理结论。</p>
23200
23374
  :rtype: str
23201
23375
  """
23202
23376
  return self._TextValue
@@ -23207,7 +23381,7 @@ class ReasoningResult(AbstractModel):
23207
23381
 
23208
23382
  @property
23209
23383
  def RawOutput(self):
23210
- r"""<p>VLM 原始输出文本(未经过结构化校验)。</p>
23384
+ r"""<p>VLM 原始输出文本(未经过结构化校验)。该字段仅用于调试,生产环境可忽略。</p>
23211
23385
  :rtype: str
23212
23386
  """
23213
23387
  return self._RawOutput
@@ -23218,7 +23392,7 @@ class ReasoningResult(AbstractModel):
23218
23392
 
23219
23393
  @property
23220
23394
  def RenderedPrompt(self):
23221
- r"""<p>变量替换后的实际 Prompt(脱敏后)。</p>
23395
+ r"""<p>变量替换后的用户 Prompt 文本。该字段仅用于调试,生产环境可忽略。</p>
23222
23396
  :rtype: str
23223
23397
  """
23224
23398
  return self._RenderedPrompt
@@ -26095,6 +26269,42 @@ class RecognizeValidIDCardOCRResponse(AbstractModel):
26095
26269
  self._RequestId = params.get("RequestId")
26096
26270
 
26097
26271
 
26272
+ class ReconstructDocumentFailedPage(AbstractModel):
26273
+ r"""解析失败的页数
26274
+
26275
+ """
26276
+
26277
+ def __init__(self):
26278
+ r"""
26279
+ :param _PageNumber: <p>解析失败页数。</p>
26280
+ :type PageNumber: int
26281
+ """
26282
+ self._PageNumber = None
26283
+
26284
+ @property
26285
+ def PageNumber(self):
26286
+ r"""<p>解析失败页数。</p>
26287
+ :rtype: int
26288
+ """
26289
+ return self._PageNumber
26290
+
26291
+ @PageNumber.setter
26292
+ def PageNumber(self, PageNumber):
26293
+ self._PageNumber = PageNumber
26294
+
26295
+
26296
+ def _deserialize(self, params):
26297
+ self._PageNumber = params.get("PageNumber")
26298
+ memeber_set = set(params.keys())
26299
+ for name, value in vars(self).items():
26300
+ property_name = name[1:]
26301
+ if property_name in memeber_set:
26302
+ memeber_set.remove(property_name)
26303
+ if len(memeber_set) > 0:
26304
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
26305
+
26306
+
26307
+
26098
26308
  class Rect(AbstractModel):
26099
26309
  r"""矩形坐标
26100
26310
 
@@ -26373,6 +26583,57 @@ class RequestIdInfo(AbstractModel):
26373
26583
 
26374
26584
 
26375
26585
 
26586
+ class RerankResult(AbstractModel):
26587
+ r"""重排序结果
26588
+
26589
+ """
26590
+
26591
+ def __init__(self):
26592
+ r"""
26593
+ :param _Index: 文档在输入 Docs 列表中的索引,从 0 开始,用于回溯原文档。
26594
+ :type Index: int
26595
+ :param _Score: 文档与查询内容的相关性得分,数值越大越相关。
26596
+ :type Score: float
26597
+ """
26598
+ self._Index = None
26599
+ self._Score = None
26600
+
26601
+ @property
26602
+ def Index(self):
26603
+ r"""文档在输入 Docs 列表中的索引,从 0 开始,用于回溯原文档。
26604
+ :rtype: int
26605
+ """
26606
+ return self._Index
26607
+
26608
+ @Index.setter
26609
+ def Index(self, Index):
26610
+ self._Index = Index
26611
+
26612
+ @property
26613
+ def Score(self):
26614
+ r"""文档与查询内容的相关性得分,数值越大越相关。
26615
+ :rtype: float
26616
+ """
26617
+ return self._Score
26618
+
26619
+ @Score.setter
26620
+ def Score(self, Score):
26621
+ self._Score = Score
26622
+
26623
+
26624
+ def _deserialize(self, params):
26625
+ self._Index = params.get("Index")
26626
+ self._Score = params.get("Score")
26627
+ memeber_set = set(params.keys())
26628
+ for name, value in vars(self).items():
26629
+ property_name = name[1:]
26630
+ if property_name in memeber_set:
26631
+ memeber_set.remove(property_name)
26632
+ if len(memeber_set) > 0:
26633
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
26634
+
26635
+
26636
+
26376
26637
  class ResidenceBookletOCRRequest(AbstractModel):
26377
26638
  r"""ResidenceBookletOCR请求参数结构体
26378
26639
 
@@ -27625,6 +27886,120 @@ class RideHailingTransportLicenseOCRResponse(AbstractModel):
27625
27886
  self._RequestId = params.get("RequestId")
27626
27887
 
27627
27888
 
27889
+ class RunRerankRequest(AbstractModel):
27890
+ r"""RunRerank请求参数结构体
27891
+
27892
+ """
27893
+
27894
+ def __init__(self):
27895
+ r"""
27896
+ :param _Model: <p>选择模型。<br>0:Rerank-2b<br>1:Rerank-0.6b</p>
27897
+ :type Model: str
27898
+ :param _Query: <p>查询内容。用于匹配的query,即用户检索意图。</p>
27899
+ :type Query: str
27900
+ :param _Docs: <p>文档内容列表。</p>
27901
+ :type Docs: list of str
27902
+ """
27903
+ self._Model = None
27904
+ self._Query = None
27905
+ self._Docs = None
27906
+
27907
+ @property
27908
+ def Model(self):
27909
+ r"""<p>选择模型。<br>0:Rerank-2b<br>1:Rerank-0.6b</p>
27910
+ :rtype: str
27911
+ """
27912
+ return self._Model
27913
+
27914
+ @Model.setter
27915
+ def Model(self, Model):
27916
+ self._Model = Model
27917
+
27918
+ @property
27919
+ def Query(self):
27920
+ r"""<p>查询内容。用于匹配的query,即用户检索意图。</p>
27921
+ :rtype: str
27922
+ """
27923
+ return self._Query
27924
+
27925
+ @Query.setter
27926
+ def Query(self, Query):
27927
+ self._Query = Query
27928
+
27929
+ @property
27930
+ def Docs(self):
27931
+ r"""<p>文档内容列表。</p>
27932
+ :rtype: list of str
27933
+ """
27934
+ return self._Docs
27935
+
27936
+ @Docs.setter
27937
+ def Docs(self, Docs):
27938
+ self._Docs = Docs
27939
+
27940
+
27941
+ def _deserialize(self, params):
27942
+ self._Model = params.get("Model")
27943
+ self._Query = params.get("Query")
27944
+ self._Docs = params.get("Docs")
27945
+ memeber_set = set(params.keys())
27946
+ for name, value in vars(self).items():
27947
+ property_name = name[1:]
27948
+ if property_name in memeber_set:
27949
+ memeber_set.remove(property_name)
27950
+ if len(memeber_set) > 0:
27951
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
27952
+
27953
+
27954
+
27955
+ class RunRerankResponse(AbstractModel):
27956
+ r"""RunRerank返回参数结构体
27957
+
27958
+ """
27959
+
27960
+ def __init__(self):
27961
+ r"""
27962
+ :param _Results: <p>重排序后的结果列表,按相关性得分从高到低排列。</p>
27963
+ :type Results: list of RerankResult
27964
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
27965
+ :type RequestId: str
27966
+ """
27967
+ self._Results = None
27968
+ self._RequestId = None
27969
+
27970
+ @property
27971
+ def Results(self):
27972
+ r"""<p>重排序后的结果列表,按相关性得分从高到低排列。</p>
27973
+ :rtype: list of RerankResult
27974
+ """
27975
+ return self._Results
27976
+
27977
+ @Results.setter
27978
+ def Results(self, Results):
27979
+ self._Results = Results
27980
+
27981
+ @property
27982
+ def RequestId(self):
27983
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
27984
+ :rtype: str
27985
+ """
27986
+ return self._RequestId
27987
+
27988
+ @RequestId.setter
27989
+ def RequestId(self, RequestId):
27990
+ self._RequestId = RequestId
27991
+
27992
+
27993
+ def _deserialize(self, params):
27994
+ if params.get("Results") is not None:
27995
+ self._Results = []
27996
+ for item in params.get("Results"):
27997
+ obj = RerankResult()
27998
+ obj._deserialize(item)
27999
+ self._Results.append(obj)
28000
+ self._RequestId = params.get("RequestId")
28001
+
28002
+
27628
28003
  class SaleInventory(AbstractModel):
27629
28004
  r"""销货清单
27630
28005
 
@@ -29948,6 +30323,190 @@ class SubmitMarkEssayAgentJobResponse(AbstractModel):
29948
30323
  self._RequestId = params.get("RequestId")
29949
30324
 
29950
30325
 
30326
+ class SubmitMultimodalDocParseJobRequest(AbstractModel):
30327
+ r"""SubmitMultimodalDocParseJob请求参数结构体
30328
+
30329
+ """
30330
+
30331
+ def __init__(self):
30332
+ r"""
30333
+ :param _FileType: <p>支持解析的文件类型。取值:</p><ul><li>1:PDF 文档</li><li>2:Word 文档(.doc/.docx)</li><li>3:PPT 演示文稿(.ppt/.pptx)</li><li>4:Excel 表格(.xls/.xlsx)</li><li>5:Markdown 文档(.md)</li><li>6:纯文本文件(.txt)</li><li>7:图片文件(.png/.jpg/.jpeg 等)</li><li>8:WPS 文档<br>支持的文件大小:PDF/WORD/PPT 支持 150M 且 300 页。</li></ul>
30334
+ :type FileType: int
30335
+ :param _FileUrl: <p>文件的 Url 地址,支持 FileType 参数对应的文件格式及大小。文件下载时间不超过 3 秒。文件存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
30336
+ :type FileUrl: str
30337
+ :param _FileBase64: <p>文件的 Base64 值。支持 FileType 参数对应的文件格式,支持的文件大小不超过 8M。文件下载时间不超过 3 秒。<br>文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。</p>
30338
+ :type FileBase64: str
30339
+ :param _ResultType: <p>输出格式。<br>1:json格式<br>2:markdown格式<br>3:xml格式<br>9:json+markdown+xml格式</p>
30340
+ :type ResultType: int
30341
+ :param _EnableSubImg: <p>是否开启子图提取,默认为 false。</p>
30342
+ :type EnableSubImg: bool
30343
+ :param _FileStartPageNumber: <p>文档的起始页码。用来指定识别的起始页码,识别的页码包含当前值,不填时默认从文档第一页开始解析。本参数与 FileEndPageNumber 可分开填写,也可只填其中一个。</p>
30344
+ :type FileStartPageNumber: int
30345
+ :param _FileEndPageNumber: <p>文档的结束页码。用来指定识别的结束页码,识别的页码包含当前值,不填时默认解析到文档最后一页。本参数与 FileStartPageNumber 可分开填写,也可只填其中一个。</p>
30346
+ :type FileEndPageNumber: int
30347
+ :param _TaskType: <p>任务类型,默认为 0。取值:</p><ul><li>0:默认</li><li>1:Free OCR</li><li>2:OCR</li><li>3:表格识别</li><li>4:代码识别</li></ul>
30348
+ :type TaskType: int
30349
+ """
30350
+ self._FileType = None
30351
+ self._FileUrl = None
30352
+ self._FileBase64 = None
30353
+ self._ResultType = None
30354
+ self._EnableSubImg = None
30355
+ self._FileStartPageNumber = None
30356
+ self._FileEndPageNumber = None
30357
+ self._TaskType = None
30358
+
30359
+ @property
30360
+ def FileType(self):
30361
+ r"""<p>支持解析的文件类型。取值:</p><ul><li>1:PDF 文档</li><li>2:Word 文档(.doc/.docx)</li><li>3:PPT 演示文稿(.ppt/.pptx)</li><li>4:Excel 表格(.xls/.xlsx)</li><li>5:Markdown 文档(.md)</li><li>6:纯文本文件(.txt)</li><li>7:图片文件(.png/.jpg/.jpeg 等)</li><li>8:WPS 文档<br>支持的文件大小:PDF/WORD/PPT 支持 150M 且 300 页。</li></ul>
30362
+ :rtype: int
30363
+ """
30364
+ return self._FileType
30365
+
30366
+ @FileType.setter
30367
+ def FileType(self, FileType):
30368
+ self._FileType = FileType
30369
+
30370
+ @property
30371
+ def FileUrl(self):
30372
+ r"""<p>文件的 Url 地址,支持 FileType 参数对应的文件格式及大小。文件下载时间不超过 3 秒。文件存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
30373
+ :rtype: str
30374
+ """
30375
+ return self._FileUrl
30376
+
30377
+ @FileUrl.setter
30378
+ def FileUrl(self, FileUrl):
30379
+ self._FileUrl = FileUrl
30380
+
30381
+ @property
30382
+ def FileBase64(self):
30383
+ r"""<p>文件的 Base64 值。支持 FileType 参数对应的文件格式,支持的文件大小不超过 8M。文件下载时间不超过 3 秒。<br>文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。</p>
30384
+ :rtype: str
30385
+ """
30386
+ return self._FileBase64
30387
+
30388
+ @FileBase64.setter
30389
+ def FileBase64(self, FileBase64):
30390
+ self._FileBase64 = FileBase64
30391
+
30392
+ @property
30393
+ def ResultType(self):
30394
+ r"""<p>输出格式。<br>1:json格式<br>2:markdown格式<br>3:xml格式<br>9:json+markdown+xml格式</p>
30395
+ :rtype: int
30396
+ """
30397
+ return self._ResultType
30398
+
30399
+ @ResultType.setter
30400
+ def ResultType(self, ResultType):
30401
+ self._ResultType = ResultType
30402
+
30403
+ @property
30404
+ def EnableSubImg(self):
30405
+ r"""<p>是否开启子图提取,默认为 false。</p>
30406
+ :rtype: bool
30407
+ """
30408
+ return self._EnableSubImg
30409
+
30410
+ @EnableSubImg.setter
30411
+ def EnableSubImg(self, EnableSubImg):
30412
+ self._EnableSubImg = EnableSubImg
30413
+
30414
+ @property
30415
+ def FileStartPageNumber(self):
30416
+ r"""<p>文档的起始页码。用来指定识别的起始页码,识别的页码包含当前值,不填时默认从文档第一页开始解析。本参数与 FileEndPageNumber 可分开填写,也可只填其中一个。</p>
30417
+ :rtype: int
30418
+ """
30419
+ return self._FileStartPageNumber
30420
+
30421
+ @FileStartPageNumber.setter
30422
+ def FileStartPageNumber(self, FileStartPageNumber):
30423
+ self._FileStartPageNumber = FileStartPageNumber
30424
+
30425
+ @property
30426
+ def FileEndPageNumber(self):
30427
+ r"""<p>文档的结束页码。用来指定识别的结束页码,识别的页码包含当前值,不填时默认解析到文档最后一页。本参数与 FileStartPageNumber 可分开填写,也可只填其中一个。</p>
30428
+ :rtype: int
30429
+ """
30430
+ return self._FileEndPageNumber
30431
+
30432
+ @FileEndPageNumber.setter
30433
+ def FileEndPageNumber(self, FileEndPageNumber):
30434
+ self._FileEndPageNumber = FileEndPageNumber
30435
+
30436
+ @property
30437
+ def TaskType(self):
30438
+ r"""<p>任务类型,默认为 0。取值:</p><ul><li>0:默认</li><li>1:Free OCR</li><li>2:OCR</li><li>3:表格识别</li><li>4:代码识别</li></ul>
30439
+ :rtype: int
30440
+ """
30441
+ return self._TaskType
30442
+
30443
+ @TaskType.setter
30444
+ def TaskType(self, TaskType):
30445
+ self._TaskType = TaskType
30446
+
30447
+
30448
+ def _deserialize(self, params):
30449
+ self._FileType = params.get("FileType")
30450
+ self._FileUrl = params.get("FileUrl")
30451
+ self._FileBase64 = params.get("FileBase64")
30452
+ self._ResultType = params.get("ResultType")
30453
+ self._EnableSubImg = params.get("EnableSubImg")
30454
+ self._FileStartPageNumber = params.get("FileStartPageNumber")
30455
+ self._FileEndPageNumber = params.get("FileEndPageNumber")
30456
+ self._TaskType = params.get("TaskType")
30457
+ memeber_set = set(params.keys())
30458
+ for name, value in vars(self).items():
30459
+ property_name = name[1:]
30460
+ if property_name in memeber_set:
30461
+ memeber_set.remove(property_name)
30462
+ if len(memeber_set) > 0:
30463
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
30464
+
30465
+
30466
+
30467
+ class SubmitMultimodalDocParseJobResponse(AbstractModel):
30468
+ r"""SubmitMultimodalDocParseJob返回参数结构体
30469
+
30470
+ """
30471
+
30472
+ def __init__(self):
30473
+ r"""
30474
+ :param _TaskId: <p>任务唯一 ID。30天内可以通过DescribeMultimodalDocParseJob接口查询TaskId对应的处理结果。</p>
30475
+ :type TaskId: str
30476
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
30477
+ :type RequestId: str
30478
+ """
30479
+ self._TaskId = None
30480
+ self._RequestId = None
30481
+
30482
+ @property
30483
+ def TaskId(self):
30484
+ r"""<p>任务唯一 ID。30天内可以通过DescribeMultimodalDocParseJob接口查询TaskId对应的处理结果。</p>
30485
+ :rtype: str
30486
+ """
30487
+ return self._TaskId
30488
+
30489
+ @TaskId.setter
30490
+ def TaskId(self, TaskId):
30491
+ self._TaskId = TaskId
30492
+
30493
+ @property
30494
+ def RequestId(self):
30495
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
30496
+ :rtype: str
30497
+ """
30498
+ return self._RequestId
30499
+
30500
+ @RequestId.setter
30501
+ def RequestId(self, RequestId):
30502
+ self._RequestId = RequestId
30503
+
30504
+
30505
+ def _deserialize(self, params):
30506
+ self._TaskId = params.get("TaskId")
30507
+ self._RequestId = params.get("RequestId")
30508
+
30509
+
29951
30510
  class SubmitQuestionMarkAgentJobRequest(AbstractModel):
29952
30511
  r"""SubmitQuestionMarkAgentJob请求参数结构体
29953
30512
 
@@ -41571,15 +42130,15 @@ class VerifyScenePhotoRequest(AbstractModel):
41571
42130
  r"""
41572
42131
  :param _Scene: <p>场景类型参数,如果场景无法细分请选用该大类的第一个子类,目前支持以下类型:<br><strong>经营场所照</strong><br>0101 门头照<br>0102 店内照<br>0103 流动经营照 </p><p><strong>车牌业务照</strong><br>0201 车牌</p>
41573
42132
  :type Scene: str
41574
- :param _Mode: <p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按1次调用计费。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持推理,支持屏幕翻拍提示。每次调用按1次调用计费。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按2次调用计费。</p>
42133
+ :param _Mode: <p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参,默认值为Image。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持自定义推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。<strong>每次调用按1次调用计费</strong>。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持自定义推理,支持屏幕翻拍提示。<strong>每次调用按1次调用计费</strong>。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持自定义推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。<strong>每次调用按2次调用计费</strong>。</p>
41575
42134
  :type Mode: str
41576
- :param _VideoUrl: <p>视频的 Url 地址。格式支持:xxxxxx。要求视频不超过 100M。建议视频时长不小于1s。</p>
42135
+ :param _VideoUrl: <p>视频的 Url 地址。格式支持:mp4、avi、mov、mkv、webm,要求视频不超过 100M。建议视频时长不小于1s。</p>
41577
42136
  :type VideoUrl: str
41578
42137
  :param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
41579
42138
  :type ImageUrl: str
41580
42139
  :param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
41581
42140
  :type ImageBase64: str
41582
- :param _ReasoningPrompt: <p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–2000 字符</p>
42141
+ :param _ReasoningPrompt: <p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–3000 字符</p>
41583
42142
  :type ReasoningPrompt: str
41584
42143
  :param _ReasoningConfig: <p>推理输出配置。当 ReasoningPrompt 传入时建议同步传入,未传入时使用默认配置(OutputMode=enum, EnumValues=[&quot;true&quot;,&quot;false&quot;], EnableImageInput=true)。</p>
41585
42144
  :type ReasoningConfig: :class:`tencentcloud.ocr.v20181119.models.ReasoningConfig`
@@ -41608,7 +42167,7 @@ class VerifyScenePhotoRequest(AbstractModel):
41608
42167
 
41609
42168
  @property
41610
42169
  def Mode(self):
41611
- r"""<p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按1次调用计费。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持推理,支持屏幕翻拍提示。每次调用按1次调用计费。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按2次调用计费。</p>
42170
+ r"""<p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参,默认值为Image。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持自定义推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。<strong>每次调用按1次调用计费</strong>。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持自定义推理,支持屏幕翻拍提示。<strong>每次调用按1次调用计费</strong>。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持自定义推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。<strong>每次调用按2次调用计费</strong>。</p>
41612
42171
  :rtype: str
41613
42172
  """
41614
42173
  return self._Mode
@@ -41619,7 +42178,7 @@ class VerifyScenePhotoRequest(AbstractModel):
41619
42178
 
41620
42179
  @property
41621
42180
  def VideoUrl(self):
41622
- r"""<p>视频的 Url 地址。格式支持:xxxxxx。要求视频不超过 100M。建议视频时长不小于1s。</p>
42181
+ r"""<p>视频的 Url 地址。格式支持:mp4、avi、mov、mkv、webm,要求视频不超过 100M。建议视频时长不小于1s。</p>
41623
42182
  :rtype: str
41624
42183
  """
41625
42184
  return self._VideoUrl
@@ -41652,7 +42211,7 @@ class VerifyScenePhotoRequest(AbstractModel):
41652
42211
 
41653
42212
  @property
41654
42213
  def ReasoningPrompt(self):
41655
- r"""<p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–2000 字符</p>
42214
+ r"""<p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–3000 字符</p>
41656
42215
  :rtype: str
41657
42216
  """
41658
42217
  return self._ReasoningPrompt
@@ -323,6 +323,33 @@ class OcrClient(AbstractClient):
323
323
  raise TencentCloudSDKException(type(e).__name__, str(e))
324
324
 
325
325
 
326
+ def DescribeMultimodalDocParseJob(self, request):
327
+ r"""用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
328
+
329
+ 创建任务接口文档地址:https://cloud.tencent.com/document/product/1024/953218
330
+
331
+ 默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
332
+
333
+ :param request: Request instance for DescribeMultimodalDocParseJob.
334
+ :type request: :class:`tencentcloud.ocr.v20181119.models.DescribeMultimodalDocParseJobRequest`
335
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.DescribeMultimodalDocParseJobResponse`
336
+
337
+ """
338
+ try:
339
+ params = request._serialize()
340
+ headers = request.headers
341
+ body = self.call("DescribeMultimodalDocParseJob", params, headers=headers)
342
+ response = json.loads(body)
343
+ model = models.DescribeMultimodalDocParseJobResponse()
344
+ model._deserialize(response["Response"])
345
+ return model
346
+ except Exception as e:
347
+ if isinstance(e, TencentCloudSDKException):
348
+ raise
349
+ else:
350
+ raise TencentCloudSDKException(type(e).__name__, str(e))
351
+
352
+
326
353
  def DescribeQuestionMarkAgentJob(self, request):
327
354
  r"""用于试题批改Agent查询任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
328
355
 
@@ -1961,6 +1988,29 @@ class OcrClient(AbstractClient):
1961
1988
  raise TencentCloudSDKException(type(e).__name__, str(e))
1962
1989
 
1963
1990
 
1991
+ def RunRerank(self, request):
1992
+ r"""基于知识引擎精调模型技术的 Rerank 模型,支持对多路召回的结果进行重排序,根据查询内容与文档切片内容的相关性,按顺序返回每一条文档内容与查询内容的相关性分数。
1993
+
1994
+ :param request: Request instance for RunRerank.
1995
+ :type request: :class:`tencentcloud.ocr.v20181119.models.RunRerankRequest`
1996
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.RunRerankResponse`
1997
+
1998
+ """
1999
+ try:
2000
+ params = request._serialize()
2001
+ headers = request.headers
2002
+ body = self.call("RunRerank", params, headers=headers)
2003
+ response = json.loads(body)
2004
+ model = models.RunRerankResponse()
2005
+ model._deserialize(response["Response"])
2006
+ return model
2007
+ except Exception as e:
2008
+ if isinstance(e, TencentCloudSDKException):
2009
+ raise
2010
+ else:
2011
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2012
+
2013
+
1964
2014
  def SealOCR(self, request):
1965
2015
  r"""本接口支持各类印章主体内容、印章其他内容及形状识别,支持单图多印章识别,包括发票章、财务章等,适用于公文票据等场景。
1966
2016
 
@@ -2059,6 +2109,33 @@ class OcrClient(AbstractClient):
2059
2109
  raise TencentCloudSDKException(type(e).__name__, str(e))
2060
2110
 
2061
2111
 
2112
+ def SubmitMultimodalDocParseJob(self, request):
2113
+ r"""本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
2114
+
2115
+ 查询任务接口文档地址:https://cloud.tencent.com/document/product/1024/953219
2116
+
2117
+ 默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
2118
+
2119
+ :param request: Request instance for SubmitMultimodalDocParseJob.
2120
+ :type request: :class:`tencentcloud.ocr.v20181119.models.SubmitMultimodalDocParseJobRequest`
2121
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.SubmitMultimodalDocParseJobResponse`
2122
+
2123
+ """
2124
+ try:
2125
+ params = request._serialize()
2126
+ headers = request.headers
2127
+ body = self.call("SubmitMultimodalDocParseJob", params, headers=headers)
2128
+ response = json.loads(body)
2129
+ model = models.SubmitMultimodalDocParseJobResponse()
2130
+ model._deserialize(response["Response"])
2131
+ return model
2132
+ except Exception as e:
2133
+ if isinstance(e, TencentCloudSDKException):
2134
+ raise
2135
+ else:
2136
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2137
+
2138
+
2062
2139
  def SubmitQuestionMarkAgentJob(self, request):
2063
2140
  r"""用于试题批改Agent提交任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
2064
2141
 
@@ -2087,6 +2164,8 @@ class OcrClient(AbstractClient):
2087
2164
  def SubmitQuestionSplitJob(self, request):
2088
2165
  r"""异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
2089
2166
 
2167
+ 默认接口请求频率限制:5次/秒。
2168
+
2090
2169
  :param request: Request instance for SubmitQuestionSplitJob.
2091
2170
  :type request: :class:`tencentcloud.ocr.v20181119.models.SubmitQuestionSplitJobRequest`
2092
2171
  :rtype: :class:`tencentcloud.ocr.v20181119.models.SubmitQuestionSplitJobResponse`
@@ -262,6 +262,28 @@ class OcrClient(AbstractClient):
262
262
 
263
263
  return await self.call_and_deserialize(**kwargs)
264
264
 
265
+ async def DescribeMultimodalDocParseJob(
266
+ self,
267
+ request: models.DescribeMultimodalDocParseJobRequest,
268
+ opts: Dict = None,
269
+ ) -> models.DescribeMultimodalDocParseJobResponse:
270
+ """
271
+ 用于查询异步多模态文档解析任务的执行状态与结果,任务执行成功时返回解析结果包的下载地址,任务执行失败时返回对应错误信息。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
272
+
273
+ 创建任务接口文档地址:https://cloud.tencent.com/document/product/1024/953218
274
+
275
+ 默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
276
+ """
277
+
278
+ kwargs = {}
279
+ kwargs["action"] = "DescribeMultimodalDocParseJob"
280
+ kwargs["params"] = request._serialize()
281
+ kwargs["resp_cls"] = models.DescribeMultimodalDocParseJobResponse
282
+ kwargs["headers"] = request.headers
283
+ kwargs["opts"] = opts or {}
284
+
285
+ return await self.call_and_deserialize(**kwargs)
286
+
265
287
  async def DescribeQuestionMarkAgentJob(
266
288
  self,
267
289
  request: models.DescribeQuestionMarkAgentJobRequest,
@@ -1660,6 +1682,24 @@ class OcrClient(AbstractClient):
1660
1682
 
1661
1683
  return await self.call_and_deserialize(**kwargs)
1662
1684
 
1685
+ async def RunRerank(
1686
+ self,
1687
+ request: models.RunRerankRequest,
1688
+ opts: Dict = None,
1689
+ ) -> models.RunRerankResponse:
1690
+ """
1691
+ 基于知识引擎精调模型技术的 Rerank 模型,支持对多路召回的结果进行重排序,根据查询内容与文档切片内容的相关性,按顺序返回每一条文档内容与查询内容的相关性分数。
1692
+ """
1693
+
1694
+ kwargs = {}
1695
+ kwargs["action"] = "RunRerank"
1696
+ kwargs["params"] = request._serialize()
1697
+ kwargs["resp_cls"] = models.RunRerankResponse
1698
+ kwargs["headers"] = request.headers
1699
+ kwargs["opts"] = opts or {}
1700
+
1701
+ return await self.call_and_deserialize(**kwargs)
1702
+
1663
1703
  async def SealOCR(
1664
1704
  self,
1665
1705
  request: models.SealOCRRequest,
@@ -1738,6 +1778,28 @@ class OcrClient(AbstractClient):
1738
1778
 
1739
1779
  return await self.call_and_deserialize(**kwargs)
1740
1780
 
1781
+ async def SubmitMultimodalDocParseJob(
1782
+ self,
1783
+ request: models.SubmitMultimodalDocParseJobRequest,
1784
+ opts: Dict = None,
1785
+ ) -> models.SubmitMultimodalDocParseJobResponse:
1786
+ """
1787
+ 本接口为异步多模态文档解析的任务提交接口,支持解析多种类型的文档文件(PDF、Word、PPT、Excel、Markdown、TXT、图片、WPS),服务端异步执行解析任务,提交后返回任务唯一 ID,可通过「异步多模态文档解析(查询任务)」接口获取最终解析结果。需要 SubmitMultimodalDocParseJob(创建任务)、DescribeMultimodalDocParseJob(查询任务)两个接口配套使用,计费发生在提交任务后。
1788
+
1789
+ 查询任务接口文档地址:https://cloud.tencent.com/document/product/1024/953219
1790
+
1791
+ 默认接口请求频率限制:5 页并发(注:可同时解析5页,且同步和异步接口共享并发资源,支持增购并发)。
1792
+ """
1793
+
1794
+ kwargs = {}
1795
+ kwargs["action"] = "SubmitMultimodalDocParseJob"
1796
+ kwargs["params"] = request._serialize()
1797
+ kwargs["resp_cls"] = models.SubmitMultimodalDocParseJobResponse
1798
+ kwargs["headers"] = request.headers
1799
+ kwargs["opts"] = opts or {}
1800
+
1801
+ return await self.call_and_deserialize(**kwargs)
1802
+
1741
1803
  async def SubmitQuestionMarkAgentJob(
1742
1804
  self,
1743
1805
  request: models.SubmitQuestionMarkAgentJobRequest,
@@ -1765,6 +1827,8 @@ class OcrClient(AbstractClient):
1765
1827
  ) -> models.SubmitQuestionSplitJobResponse:
1766
1828
  """
1767
1829
  异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
1830
+
1831
+ 默认接口请求频率限制:5次/秒。
1768
1832
  """
1769
1833
 
1770
1834
  kwargs = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.184
3
+ Version: 3.1.188
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.184
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.188
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.188
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.184