tencentcloud-sdk-python-ocr 3.1.172__tar.gz → 3.1.175__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.172 → tencentcloud_sdk_python_ocr-3.1.175}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud/ocr/v20181119/models.py +289 -60
  5. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_ocr-3.1.175/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_ocr-3.1.172/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/README.rst +0 -0
  9. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud/ocr/__init__.py +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud/ocr/v20181119/ocr_client_async.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.172 → tencentcloud_sdk_python_ocr-3.1.175}/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.172
3
+ Version: 3.1.175
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.172
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.175
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.172,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.175,<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.172'
17
+ __version__ = '3.1.175'
@@ -23124,6 +23124,183 @@ class RailwayTicketInfo(AbstractModel):
23124
23124
 
23125
23125
 
23126
23126
 
23127
+ class ReasoningConfig(AbstractModel):
23128
+ r"""推理输出配置
23129
+
23130
+ """
23131
+
23132
+ def __init__(self):
23133
+ r"""
23134
+ :param _OutputMode: <p>实际使用的推理输出模式:enum 或 string。</p>
23135
+ :type OutputMode: str
23136
+ :param _EnumValues: <p>枚举值集合,仅在 OutputMode=enum 时生效。 VLM 输出必须精确命中此集合中的某个值。</p>
23137
+ :type EnumValues: list of str
23138
+ :param _MaxLength: <p>文本输出最大长度,仅在 OutputMode=string 时生效。</p><p>取值范围:[1, 500]</p><p>默认值:200</p>
23139
+ :type MaxLength: int
23140
+ :param _EnableImageInput: <p>是否在推理调用时向 VLM 传入原图进行多模态理解。 true(默认):VLM 同时接收原图和渲染后的 Prompt,具备多模态理解能力,可直接&quot;看&quot;图片内容进行推理。 false:不传入原图,仅以渲染后的 Prompt(含变量注入值)进行纯文本推理。适用于推理逻辑完全基于结构化出参字段(如水印文字、置信度比较等)的场景,可降低推理延迟和计费成本。 建议:当 ReasoningPrompt 中未涉及&quot;观察图片&quot;、&quot;直接看图&quot;等多模态指令,且推理规则完全基于 ${变量名} 引用的文字结果时,可设为 false 以优化性能。</p>
23141
+ :type EnableImageInput: bool
23142
+ """
23143
+ self._OutputMode = None
23144
+ self._EnumValues = None
23145
+ self._MaxLength = None
23146
+ self._EnableImageInput = None
23147
+
23148
+ @property
23149
+ def OutputMode(self):
23150
+ r"""<p>实际使用的推理输出模式:enum 或 string。</p>
23151
+ :rtype: str
23152
+ """
23153
+ return self._OutputMode
23154
+
23155
+ @OutputMode.setter
23156
+ def OutputMode(self, OutputMode):
23157
+ self._OutputMode = OutputMode
23158
+
23159
+ @property
23160
+ def EnumValues(self):
23161
+ r"""<p>枚举值集合,仅在 OutputMode=enum 时生效。 VLM 输出必须精确命中此集合中的某个值。</p>
23162
+ :rtype: list of str
23163
+ """
23164
+ return self._EnumValues
23165
+
23166
+ @EnumValues.setter
23167
+ def EnumValues(self, EnumValues):
23168
+ self._EnumValues = EnumValues
23169
+
23170
+ @property
23171
+ def MaxLength(self):
23172
+ r"""<p>文本输出最大长度,仅在 OutputMode=string 时生效。</p><p>取值范围:[1, 500]</p><p>默认值:200</p>
23173
+ :rtype: int
23174
+ """
23175
+ return self._MaxLength
23176
+
23177
+ @MaxLength.setter
23178
+ def MaxLength(self, MaxLength):
23179
+ self._MaxLength = MaxLength
23180
+
23181
+ @property
23182
+ def EnableImageInput(self):
23183
+ r"""<p>是否在推理调用时向 VLM 传入原图进行多模态理解。 true(默认):VLM 同时接收原图和渲染后的 Prompt,具备多模态理解能力,可直接&quot;看&quot;图片内容进行推理。 false:不传入原图,仅以渲染后的 Prompt(含变量注入值)进行纯文本推理。适用于推理逻辑完全基于结构化出参字段(如水印文字、置信度比较等)的场景,可降低推理延迟和计费成本。 建议:当 ReasoningPrompt 中未涉及&quot;观察图片&quot;、&quot;直接看图&quot;等多模态指令,且推理规则完全基于 ${变量名} 引用的文字结果时,可设为 false 以优化性能。</p>
23184
+ :rtype: bool
23185
+ """
23186
+ return self._EnableImageInput
23187
+
23188
+ @EnableImageInput.setter
23189
+ def EnableImageInput(self, EnableImageInput):
23190
+ self._EnableImageInput = EnableImageInput
23191
+
23192
+
23193
+ def _deserialize(self, params):
23194
+ self._OutputMode = params.get("OutputMode")
23195
+ self._EnumValues = params.get("EnumValues")
23196
+ self._MaxLength = params.get("MaxLength")
23197
+ self._EnableImageInput = params.get("EnableImageInput")
23198
+ memeber_set = set(params.keys())
23199
+ for name, value in vars(self).items():
23200
+ property_name = name[1:]
23201
+ if property_name in memeber_set:
23202
+ memeber_set.remove(property_name)
23203
+ if len(memeber_set) > 0:
23204
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
23205
+
23206
+
23207
+
23208
+ class ReasoningResult(AbstractModel):
23209
+ r"""VLM 推理结果
23210
+
23211
+ """
23212
+
23213
+ def __init__(self):
23214
+ r"""
23215
+ :param _OutputMode: <p>实际使用的推理输出模式:enum 或 string。</p>
23216
+ :type OutputMode: str
23217
+ :param _EnumValue: <p>枚举模式下的推理结果值。当 OutputMode=enum 时返回,必定命中请求中 EnumValues 的某个值。 若 VLM 输出无法匹配任何枚举值,则返回 <strong>UNCERTAIN</strong>。</p>
23218
+ :type EnumValue: str
23219
+ :param _TextValue: <p>文本模式下的推理结果值。当 OutputMode=string 时返回。 若 VLM 无法得出结论,则返回 <strong>UNCERTAIN</strong>。</p>
23220
+ :type TextValue: str
23221
+ :param _RawOutput: <p>VLM 原始输出文本(未经过结构化校验)。</p>
23222
+ :type RawOutput: str
23223
+ :param _RenderedPrompt: <p>变量替换后的实际 Prompt(脱敏后)。</p>
23224
+ :type RenderedPrompt: str
23225
+ """
23226
+ self._OutputMode = None
23227
+ self._EnumValue = None
23228
+ self._TextValue = None
23229
+ self._RawOutput = None
23230
+ self._RenderedPrompt = None
23231
+
23232
+ @property
23233
+ def OutputMode(self):
23234
+ r"""<p>实际使用的推理输出模式:enum 或 string。</p>
23235
+ :rtype: str
23236
+ """
23237
+ return self._OutputMode
23238
+
23239
+ @OutputMode.setter
23240
+ def OutputMode(self, OutputMode):
23241
+ self._OutputMode = OutputMode
23242
+
23243
+ @property
23244
+ def EnumValue(self):
23245
+ r"""<p>枚举模式下的推理结果值。当 OutputMode=enum 时返回,必定命中请求中 EnumValues 的某个值。 若 VLM 输出无法匹配任何枚举值,则返回 <strong>UNCERTAIN</strong>。</p>
23246
+ :rtype: str
23247
+ """
23248
+ return self._EnumValue
23249
+
23250
+ @EnumValue.setter
23251
+ def EnumValue(self, EnumValue):
23252
+ self._EnumValue = EnumValue
23253
+
23254
+ @property
23255
+ def TextValue(self):
23256
+ r"""<p>文本模式下的推理结果值。当 OutputMode=string 时返回。 若 VLM 无法得出结论,则返回 <strong>UNCERTAIN</strong>。</p>
23257
+ :rtype: str
23258
+ """
23259
+ return self._TextValue
23260
+
23261
+ @TextValue.setter
23262
+ def TextValue(self, TextValue):
23263
+ self._TextValue = TextValue
23264
+
23265
+ @property
23266
+ def RawOutput(self):
23267
+ r"""<p>VLM 原始输出文本(未经过结构化校验)。</p>
23268
+ :rtype: str
23269
+ """
23270
+ return self._RawOutput
23271
+
23272
+ @RawOutput.setter
23273
+ def RawOutput(self, RawOutput):
23274
+ self._RawOutput = RawOutput
23275
+
23276
+ @property
23277
+ def RenderedPrompt(self):
23278
+ r"""<p>变量替换后的实际 Prompt(脱敏后)。</p>
23279
+ :rtype: str
23280
+ """
23281
+ return self._RenderedPrompt
23282
+
23283
+ @RenderedPrompt.setter
23284
+ def RenderedPrompt(self, RenderedPrompt):
23285
+ self._RenderedPrompt = RenderedPrompt
23286
+
23287
+
23288
+ def _deserialize(self, params):
23289
+ self._OutputMode = params.get("OutputMode")
23290
+ self._EnumValue = params.get("EnumValue")
23291
+ self._TextValue = params.get("TextValue")
23292
+ self._RawOutput = params.get("RawOutput")
23293
+ self._RenderedPrompt = params.get("RenderedPrompt")
23294
+ memeber_set = set(params.keys())
23295
+ for name, value in vars(self).items():
23296
+ property_name = name[1:]
23297
+ if property_name in memeber_set:
23298
+ memeber_set.remove(property_name)
23299
+ if len(memeber_set) > 0:
23300
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
23301
+
23302
+
23303
+
23127
23304
  class RecognizeAgentRequest(AbstractModel):
23128
23305
  r"""RecognizeAgent请求参数结构体
23129
23306
 
@@ -25204,16 +25381,15 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
25204
25381
 
25205
25382
  def __init__(self):
25206
25383
  r"""
25207
- :param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
25384
+ :param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
25208
25385
  :type ImageBase64: str
25209
- :param _BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
25386
+ :param _BackImageBase64: <p>卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
25210
25387
  :type BackImageBase64: str
25211
- :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
25388
+ :param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
25212
25389
  :type ImageUrl: str
25213
- :param _BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
25390
+ :param _BackImageUrl: <p>卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
25214
25391
  :type BackImageUrl: str
25215
- :param _CropPortrait: 图片开关。默认为false,不返回泰国身份证头像照片的base64编码。
25216
- 设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码
25392
+ :param _CropPortrait: <p>图片开关。默认为false,不返回泰国身份证头像照片的base64编码。<br>设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码</p>
25217
25393
  :type CropPortrait: bool
25218
25394
  """
25219
25395
  self._ImageBase64 = None
@@ -25224,7 +25400,7 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
25224
25400
 
25225
25401
  @property
25226
25402
  def ImageBase64(self):
25227
- r"""图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
25403
+ r"""<p>图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
25228
25404
  :rtype: str
25229
25405
  """
25230
25406
  return self._ImageBase64
@@ -25235,7 +25411,7 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
25235
25411
 
25236
25412
  @property
25237
25413
  def BackImageBase64(self):
25238
- r"""卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
25414
+ r"""<p>卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
25239
25415
  :rtype: str
25240
25416
  """
25241
25417
  return self._BackImageBase64
@@ -25246,7 +25422,7 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
25246
25422
 
25247
25423
  @property
25248
25424
  def ImageUrl(self):
25249
- r"""图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
25425
+ r"""<p>图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
25250
25426
  :rtype: str
25251
25427
  """
25252
25428
  return self._ImageUrl
@@ -25257,7 +25433,7 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
25257
25433
 
25258
25434
  @property
25259
25435
  def BackImageUrl(self):
25260
- r"""卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
25436
+ r"""<p>卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
25261
25437
  :rtype: str
25262
25438
  """
25263
25439
  return self._BackImageUrl
@@ -25268,8 +25444,7 @@ class RecognizeThaiIDCardOCRRequest(AbstractModel):
25268
25444
 
25269
25445
  @property
25270
25446
  def CropPortrait(self):
25271
- r"""图片开关。默认为false,不返回泰国身份证头像照片的base64编码。
25272
- 设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码
25447
+ r"""<p>图片开关。默认为false,不返回泰国身份证头像照片的base64编码。<br>设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码</p>
25273
25448
  :rtype: bool
25274
25449
  """
25275
25450
  return self._CropPortrait
@@ -25302,47 +25477,41 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25302
25477
 
25303
25478
  def __init__(self):
25304
25479
  r"""
25305
- :param _ID: 身份证号码
25480
+ :param _ID: <p>身份证号码</p>
25306
25481
  :type ID: str
25307
- :param _ThaiName: 泰文姓名
25482
+ :param _ThaiName: <p>泰文姓名</p>
25308
25483
  :type ThaiName: str
25309
- :param _EnFirstName: 英文姓名
25484
+ :param _EnFirstName: <p>英文姓名</p>
25310
25485
  :type EnFirstName: str
25311
- :param _EnLastName: 英文姓名
25486
+ :param _EnLastName: <p>英文姓名</p>
25312
25487
  :type EnLastName: str
25313
- :param _IssueDate: 泰文签发日期
25488
+ :param _IssueDate: <p>泰文签发日期</p>
25314
25489
  :type IssueDate: str
25315
- :param _ExpirationDate: 泰文到期日期
25490
+ :param _ExpirationDate: <p>泰文到期日期</p>
25316
25491
  :type ExpirationDate: str
25317
- :param _EnIssueDate: 英文签发日期
25492
+ :param _EnIssueDate: <p>英文签发日期</p>
25318
25493
  :type EnIssueDate: str
25319
- :param _EnExpirationDate: 英文到期日期
25494
+ :param _EnExpirationDate: <p>英文到期日期</p>
25320
25495
  :type EnExpirationDate: str
25321
- :param _Birthday: 泰文出生日期
25496
+ :param _Birthday: <p>泰文出生日期</p>
25322
25497
  :type Birthday: str
25323
- :param _EnBirthday: 英文出生日期
25498
+ :param _EnBirthday: <p>英文出生日期</p>
25324
25499
  :type EnBirthday: str
25325
- :param _Religion: 宗教信仰
25500
+ :param _Religion: <p>宗教信仰</p>
25326
25501
  :type Religion: str
25327
- :param _SerialNumber: 序列号
25502
+ :param _SerialNumber: <p>序列号</p>
25328
25503
  :type SerialNumber: str
25329
- :param _Address: 地址
25504
+ :param _Address: <p>地址</p>
25330
25505
  :type Address: str
25331
- :param _LaserID: 背面号码
25506
+ :param _LaserID: <p>背面号码</p>
25332
25507
  :type LaserID: str
25333
- :param _PortraitImage: 证件人像照片抠取
25508
+ :param _PortraitImage: <p>证件人像照片抠取</p>
25334
25509
  :type PortraitImage: str
25335
- :param _WarnCardInfos: 告警码
25336
- -9101 证件边框不完整告警
25337
- -9102 证件复印件告警
25338
- -9103 证件翻拍告警
25339
- -9107 证件反光告警
25340
- -9108 证件模糊告警
25341
- -9109 告警能力未开通
25510
+ :param _WarnCardInfos: <p>告警码<br>-9101 证件边框不完整告警<br>-9102 证件复印件告警<br>-9103 证件翻拍告警<br>-9104 证件PS告警<br>-9107 证件反光告警<br>-9108 证件模糊告警<br>-9109 告警能力未开通</p>
25342
25511
  :type WarnCardInfos: list of int
25343
- :param _AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
25512
+ :param _AdvancedInfo: <p>该字段已废弃, 将固定返回&quot;1&quot;,不建议使用。</p>
25344
25513
  :type AdvancedInfo: str
25345
- :param _CardCount: 卡证正面图片中,证件主体的数量(仅请求曼谷地域[ap-bangkok]返回)
25514
+ :param _CardCount: <p>卡证正面图片中,证件主体的数量(仅请求曼谷地域[ap-bangkok]返回)</p>
25346
25515
  :type CardCount: int
25347
25516
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
25348
25517
  :type RequestId: str
@@ -25369,7 +25538,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25369
25538
 
25370
25539
  @property
25371
25540
  def ID(self):
25372
- r"""身份证号码
25541
+ r"""<p>身份证号码</p>
25373
25542
  :rtype: str
25374
25543
  """
25375
25544
  return self._ID
@@ -25380,7 +25549,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25380
25549
 
25381
25550
  @property
25382
25551
  def ThaiName(self):
25383
- r"""泰文姓名
25552
+ r"""<p>泰文姓名</p>
25384
25553
  :rtype: str
25385
25554
  """
25386
25555
  return self._ThaiName
@@ -25391,7 +25560,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25391
25560
 
25392
25561
  @property
25393
25562
  def EnFirstName(self):
25394
- r"""英文姓名
25563
+ r"""<p>英文姓名</p>
25395
25564
  :rtype: str
25396
25565
  """
25397
25566
  return self._EnFirstName
@@ -25402,7 +25571,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25402
25571
 
25403
25572
  @property
25404
25573
  def EnLastName(self):
25405
- r"""英文姓名
25574
+ r"""<p>英文姓名</p>
25406
25575
  :rtype: str
25407
25576
  """
25408
25577
  return self._EnLastName
@@ -25413,7 +25582,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25413
25582
 
25414
25583
  @property
25415
25584
  def IssueDate(self):
25416
- r"""泰文签发日期
25585
+ r"""<p>泰文签发日期</p>
25417
25586
  :rtype: str
25418
25587
  """
25419
25588
  return self._IssueDate
@@ -25424,7 +25593,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25424
25593
 
25425
25594
  @property
25426
25595
  def ExpirationDate(self):
25427
- r"""泰文到期日期
25596
+ r"""<p>泰文到期日期</p>
25428
25597
  :rtype: str
25429
25598
  """
25430
25599
  return self._ExpirationDate
@@ -25435,7 +25604,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25435
25604
 
25436
25605
  @property
25437
25606
  def EnIssueDate(self):
25438
- r"""英文签发日期
25607
+ r"""<p>英文签发日期</p>
25439
25608
  :rtype: str
25440
25609
  """
25441
25610
  return self._EnIssueDate
@@ -25446,7 +25615,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25446
25615
 
25447
25616
  @property
25448
25617
  def EnExpirationDate(self):
25449
- r"""英文到期日期
25618
+ r"""<p>英文到期日期</p>
25450
25619
  :rtype: str
25451
25620
  """
25452
25621
  return self._EnExpirationDate
@@ -25457,7 +25626,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25457
25626
 
25458
25627
  @property
25459
25628
  def Birthday(self):
25460
- r"""泰文出生日期
25629
+ r"""<p>泰文出生日期</p>
25461
25630
  :rtype: str
25462
25631
  """
25463
25632
  return self._Birthday
@@ -25468,7 +25637,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25468
25637
 
25469
25638
  @property
25470
25639
  def EnBirthday(self):
25471
- r"""英文出生日期
25640
+ r"""<p>英文出生日期</p>
25472
25641
  :rtype: str
25473
25642
  """
25474
25643
  return self._EnBirthday
@@ -25479,7 +25648,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25479
25648
 
25480
25649
  @property
25481
25650
  def Religion(self):
25482
- r"""宗教信仰
25651
+ r"""<p>宗教信仰</p>
25483
25652
  :rtype: str
25484
25653
  """
25485
25654
  return self._Religion
@@ -25490,7 +25659,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25490
25659
 
25491
25660
  @property
25492
25661
  def SerialNumber(self):
25493
- r"""序列号
25662
+ r"""<p>序列号</p>
25494
25663
  :rtype: str
25495
25664
  """
25496
25665
  return self._SerialNumber
@@ -25501,7 +25670,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25501
25670
 
25502
25671
  @property
25503
25672
  def Address(self):
25504
- r"""地址
25673
+ r"""<p>地址</p>
25505
25674
  :rtype: str
25506
25675
  """
25507
25676
  return self._Address
@@ -25512,7 +25681,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25512
25681
 
25513
25682
  @property
25514
25683
  def LaserID(self):
25515
- r"""背面号码
25684
+ r"""<p>背面号码</p>
25516
25685
  :rtype: str
25517
25686
  """
25518
25687
  return self._LaserID
@@ -25523,7 +25692,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25523
25692
 
25524
25693
  @property
25525
25694
  def PortraitImage(self):
25526
- r"""证件人像照片抠取
25695
+ r"""<p>证件人像照片抠取</p>
25527
25696
  :rtype: str
25528
25697
  """
25529
25698
  return self._PortraitImage
@@ -25534,13 +25703,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25534
25703
 
25535
25704
  @property
25536
25705
  def WarnCardInfos(self):
25537
- r"""告警码
25538
- -9101 证件边框不完整告警
25539
- -9102 证件复印件告警
25540
- -9103 证件翻拍告警
25541
- -9107 证件反光告警
25542
- -9108 证件模糊告警
25543
- -9109 告警能力未开通
25706
+ r"""<p>告警码<br>-9101 证件边框不完整告警<br>-9102 证件复印件告警<br>-9103 证件翻拍告警<br>-9104 证件PS告警<br>-9107 证件反光告警<br>-9108 证件模糊告警<br>-9109 告警能力未开通</p>
25544
25707
  :rtype: list of int
25545
25708
  """
25546
25709
  return self._WarnCardInfos
@@ -25553,7 +25716,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25553
25716
  def AdvancedInfo(self):
25554
25717
  warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
25555
25718
 
25556
- r"""该字段已废弃, 将固定返回"1",不建议使用。
25719
+ r"""<p>该字段已废弃, 将固定返回&quot;1&quot;,不建议使用。</p>
25557
25720
  :rtype: str
25558
25721
  """
25559
25722
  return self._AdvancedInfo
@@ -25566,7 +25729,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25566
25729
 
25567
25730
  @property
25568
25731
  def CardCount(self):
25569
- r"""卡证正面图片中,证件主体的数量(仅请求曼谷地域[ap-bangkok]返回)
25732
+ r"""<p>卡证正面图片中,证件主体的数量(仅请求曼谷地域[ap-bangkok]返回)</p>
25570
25733
  :rtype: int
25571
25734
  """
25572
25735
  return self._CardCount
@@ -41472,10 +41635,16 @@ class VerifyScenePhotoRequest(AbstractModel):
41472
41635
  :type ImageUrl: str
41473
41636
  :param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
41474
41637
  :type ImageBase64: str
41638
+ :param _ReasoningPrompt: <p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–2000 字符</p>
41639
+ :type ReasoningPrompt: str
41640
+ :param _ReasoningConfig: <p>推理输出配置。当 ReasoningPrompt 传入时建议同步传入,未传入时使用默认配置(OutputMode=enum, EnumValues=[&quot;true&quot;,&quot;false&quot;], EnableImageInput=true)。</p>
41641
+ :type ReasoningConfig: :class:`tencentcloud.ocr.v20181119.models.ReasoningConfig`
41475
41642
  """
41476
41643
  self._Scene = None
41477
41644
  self._ImageUrl = None
41478
41645
  self._ImageBase64 = None
41646
+ self._ReasoningPrompt = None
41647
+ self._ReasoningConfig = None
41479
41648
 
41480
41649
  @property
41481
41650
  def Scene(self):
@@ -41510,11 +41679,37 @@ class VerifyScenePhotoRequest(AbstractModel):
41510
41679
  def ImageBase64(self, ImageBase64):
41511
41680
  self._ImageBase64 = ImageBase64
41512
41681
 
41682
+ @property
41683
+ def ReasoningPrompt(self):
41684
+ r"""<p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–2000 字符</p>
41685
+ :rtype: str
41686
+ """
41687
+ return self._ReasoningPrompt
41688
+
41689
+ @ReasoningPrompt.setter
41690
+ def ReasoningPrompt(self, ReasoningPrompt):
41691
+ self._ReasoningPrompt = ReasoningPrompt
41692
+
41693
+ @property
41694
+ def ReasoningConfig(self):
41695
+ r"""<p>推理输出配置。当 ReasoningPrompt 传入时建议同步传入,未传入时使用默认配置(OutputMode=enum, EnumValues=[&quot;true&quot;,&quot;false&quot;], EnableImageInput=true)。</p>
41696
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.ReasoningConfig`
41697
+ """
41698
+ return self._ReasoningConfig
41699
+
41700
+ @ReasoningConfig.setter
41701
+ def ReasoningConfig(self, ReasoningConfig):
41702
+ self._ReasoningConfig = ReasoningConfig
41703
+
41513
41704
 
41514
41705
  def _deserialize(self, params):
41515
41706
  self._Scene = params.get("Scene")
41516
41707
  self._ImageUrl = params.get("ImageUrl")
41517
41708
  self._ImageBase64 = params.get("ImageBase64")
41709
+ self._ReasoningPrompt = params.get("ReasoningPrompt")
41710
+ if params.get("ReasoningConfig") is not None:
41711
+ self._ReasoningConfig = ReasoningConfig()
41712
+ self._ReasoningConfig._deserialize(params.get("ReasoningConfig"))
41518
41713
  memeber_set = set(params.keys())
41519
41714
  for name, value in vars(self).items():
41520
41715
  property_name = name[1:]
@@ -41544,6 +41739,10 @@ class VerifyScenePhotoResponse(AbstractModel):
41544
41739
  :type TextWatermark: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
41545
41740
  :param _WatermarkContent: <p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
41546
41741
  :type WatermarkContent: str
41742
+ :param _Template: <p>模板图片提示</p>
41743
+ :type Template: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
41744
+ :param _ReasoningResult: <p>VLM 推理结果。仅当请求中传入 ReasoningPrompt 时返回,否则不返回此字段。</p>
41745
+ :type ReasoningResult: :class:`tencentcloud.ocr.v20181119.models.ReasoningResult`
41547
41746
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
41548
41747
  :type RequestId: str
41549
41748
  """
@@ -41553,6 +41752,8 @@ class VerifyScenePhotoResponse(AbstractModel):
41553
41752
  self._Screenshot = None
41554
41753
  self._TextWatermark = None
41555
41754
  self._WatermarkContent = None
41755
+ self._Template = None
41756
+ self._ReasoningResult = None
41556
41757
  self._RequestId = None
41557
41758
 
41558
41759
  @property
@@ -41621,6 +41822,28 @@ class VerifyScenePhotoResponse(AbstractModel):
41621
41822
  def WatermarkContent(self, WatermarkContent):
41622
41823
  self._WatermarkContent = WatermarkContent
41623
41824
 
41825
+ @property
41826
+ def Template(self):
41827
+ r"""<p>模板图片提示</p>
41828
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.SceneWarnInfo`
41829
+ """
41830
+ return self._Template
41831
+
41832
+ @Template.setter
41833
+ def Template(self, Template):
41834
+ self._Template = Template
41835
+
41836
+ @property
41837
+ def ReasoningResult(self):
41838
+ r"""<p>VLM 推理结果。仅当请求中传入 ReasoningPrompt 时返回,否则不返回此字段。</p>
41839
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.ReasoningResult`
41840
+ """
41841
+ return self._ReasoningResult
41842
+
41843
+ @ReasoningResult.setter
41844
+ def ReasoningResult(self, ReasoningResult):
41845
+ self._ReasoningResult = ReasoningResult
41846
+
41624
41847
  @property
41625
41848
  def RequestId(self):
41626
41849
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -41650,6 +41873,12 @@ class VerifyScenePhotoResponse(AbstractModel):
41650
41873
  self._TextWatermark = SceneWarnInfo()
41651
41874
  self._TextWatermark._deserialize(params.get("TextWatermark"))
41652
41875
  self._WatermarkContent = params.get("WatermarkContent")
41876
+ if params.get("Template") is not None:
41877
+ self._Template = SceneWarnInfo()
41878
+ self._Template._deserialize(params.get("Template"))
41879
+ if params.get("ReasoningResult") is not None:
41880
+ self._ReasoningResult = ReasoningResult()
41881
+ self._ReasoningResult._deserialize(params.get("ReasoningResult"))
41653
41882
  self._RequestId = params.get("RequestId")
41654
41883
 
41655
41884
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.172
3
+ Version: 3.1.175
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.172
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.175
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.175
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.172