tencentcloud-sdk-python-ocr 3.1.191__py2.py3-none-any.whl → 3.1.193__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ocr/v20181119/models.py +79 -0
- {tencentcloud_sdk_python_ocr-3.1.191.dist-info → tencentcloud_sdk_python_ocr-3.1.193.dist-info}/METADATA +2 -2
- {tencentcloud_sdk_python_ocr-3.1.191.dist-info → tencentcloud_sdk_python_ocr-3.1.193.dist-info}/RECORD +6 -6
- {tencentcloud_sdk_python_ocr-3.1.191.dist-info → tencentcloud_sdk_python_ocr-3.1.193.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.1.191.dist-info → tencentcloud_sdk_python_ocr-3.1.193.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -41508,10 +41508,19 @@ class VerifyGeneralCardWarnRequest(AbstractModel):
|
|
|
41508
41508
|
:type ImageUrl: str
|
|
41509
41509
|
:param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
|
|
41510
41510
|
:type ImageBase64: str
|
|
41511
|
+
:param _ReasoningPrompt: <p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–3000 字符</p>
|
|
41512
|
+
:type ReasoningPrompt: str
|
|
41513
|
+
:param _ReasoningConfig: <p>推理输出配置。当 ReasoningPrompt 传入时建议同步传入,未传入时使用默认配置(OutputMode=enum, EnumValues=["true","false"], EnableImageInput=true)。</p>
|
|
41514
|
+
:type ReasoningConfig: :class:`tencentcloud.ocr.v20181119.models.ReasoningConfig`
|
|
41515
|
+
:param _IgnoreWatermarkCategories: <p>水印提示排除类型,选择出参“水印提示”排除掉的水印类型,不传的话即代表任意水印都会提示。 PhoneCam:手机相机水印 WatermarkCam:水印相机水印</p>
|
|
41516
|
+
:type IgnoreWatermarkCategories: list of str
|
|
41511
41517
|
"""
|
|
41512
41518
|
self._CardType = None
|
|
41513
41519
|
self._ImageUrl = None
|
|
41514
41520
|
self._ImageBase64 = None
|
|
41521
|
+
self._ReasoningPrompt = None
|
|
41522
|
+
self._ReasoningConfig = None
|
|
41523
|
+
self._IgnoreWatermarkCategories = None
|
|
41515
41524
|
|
|
41516
41525
|
@property
|
|
41517
41526
|
def CardType(self):
|
|
@@ -41546,11 +41555,49 @@ class VerifyGeneralCardWarnRequest(AbstractModel):
|
|
|
41546
41555
|
def ImageBase64(self, ImageBase64):
|
|
41547
41556
|
self._ImageBase64 = ImageBase64
|
|
41548
41557
|
|
|
41558
|
+
@property
|
|
41559
|
+
def ReasoningPrompt(self):
|
|
41560
|
+
r"""<p>推理 Prompt 模板,默认使用 VLM 对图片进行理解推理,同时支持使用 ${变量名} 进行推理。传入该参数即开启推理流程。</p><p>入参限制:长度限制:1–3000 字符</p>
|
|
41561
|
+
:rtype: str
|
|
41562
|
+
"""
|
|
41563
|
+
return self._ReasoningPrompt
|
|
41564
|
+
|
|
41565
|
+
@ReasoningPrompt.setter
|
|
41566
|
+
def ReasoningPrompt(self, ReasoningPrompt):
|
|
41567
|
+
self._ReasoningPrompt = ReasoningPrompt
|
|
41568
|
+
|
|
41569
|
+
@property
|
|
41570
|
+
def ReasoningConfig(self):
|
|
41571
|
+
r"""<p>推理输出配置。当 ReasoningPrompt 传入时建议同步传入,未传入时使用默认配置(OutputMode=enum, EnumValues=["true","false"], EnableImageInput=true)。</p>
|
|
41572
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.ReasoningConfig`
|
|
41573
|
+
"""
|
|
41574
|
+
return self._ReasoningConfig
|
|
41575
|
+
|
|
41576
|
+
@ReasoningConfig.setter
|
|
41577
|
+
def ReasoningConfig(self, ReasoningConfig):
|
|
41578
|
+
self._ReasoningConfig = ReasoningConfig
|
|
41579
|
+
|
|
41580
|
+
@property
|
|
41581
|
+
def IgnoreWatermarkCategories(self):
|
|
41582
|
+
r"""<p>水印提示排除类型,选择出参“水印提示”排除掉的水印类型,不传的话即代表任意水印都会提示。 PhoneCam:手机相机水印 WatermarkCam:水印相机水印</p>
|
|
41583
|
+
:rtype: list of str
|
|
41584
|
+
"""
|
|
41585
|
+
return self._IgnoreWatermarkCategories
|
|
41586
|
+
|
|
41587
|
+
@IgnoreWatermarkCategories.setter
|
|
41588
|
+
def IgnoreWatermarkCategories(self, IgnoreWatermarkCategories):
|
|
41589
|
+
self._IgnoreWatermarkCategories = IgnoreWatermarkCategories
|
|
41590
|
+
|
|
41549
41591
|
|
|
41550
41592
|
def _deserialize(self, params):
|
|
41551
41593
|
self._CardType = params.get("CardType")
|
|
41552
41594
|
self._ImageUrl = params.get("ImageUrl")
|
|
41553
41595
|
self._ImageBase64 = params.get("ImageBase64")
|
|
41596
|
+
self._ReasoningPrompt = params.get("ReasoningPrompt")
|
|
41597
|
+
if params.get("ReasoningConfig") is not None:
|
|
41598
|
+
self._ReasoningConfig = ReasoningConfig()
|
|
41599
|
+
self._ReasoningConfig._deserialize(params.get("ReasoningConfig"))
|
|
41600
|
+
self._IgnoreWatermarkCategories = params.get("IgnoreWatermarkCategories")
|
|
41554
41601
|
memeber_set = set(params.keys())
|
|
41555
41602
|
for name, value in vars(self).items():
|
|
41556
41603
|
property_name = name[1:]
|
|
@@ -41596,6 +41643,10 @@ class VerifyGeneralCardWarnResponse(AbstractModel):
|
|
|
41596
41643
|
:type TextWatermark: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
|
|
41597
41644
|
:param _WatermarkContent: <p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
|
|
41598
41645
|
:type WatermarkContent: str
|
|
41646
|
+
:param _ReasoningResult: <p>VLM 推理结果。仅当请求中传入 ReasoningPrompt 时返回,否则不返回此字段。</p>
|
|
41647
|
+
:type ReasoningResult: :class:`tencentcloud.ocr.v20181119.models.ReasoningResult`
|
|
41648
|
+
:param _IsKeyFieldTamper: <p>是否关键字段被篡改(用于排除卡证背景等非字段区域篡改),目前支持的卡证类型:行驶证、驾驶证。<br>枚举值:<br>是<br>否<br>暂不支持</p>
|
|
41649
|
+
:type IsKeyFieldTamper: str
|
|
41599
41650
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
41600
41651
|
:type RequestId: str
|
|
41601
41652
|
"""
|
|
@@ -41613,6 +41664,8 @@ class VerifyGeneralCardWarnResponse(AbstractModel):
|
|
|
41613
41664
|
self._Electron = None
|
|
41614
41665
|
self._TextWatermark = None
|
|
41615
41666
|
self._WatermarkContent = None
|
|
41667
|
+
self._ReasoningResult = None
|
|
41668
|
+
self._IsKeyFieldTamper = None
|
|
41616
41669
|
self._RequestId = None
|
|
41617
41670
|
|
|
41618
41671
|
@property
|
|
@@ -41769,6 +41822,28 @@ class VerifyGeneralCardWarnResponse(AbstractModel):
|
|
|
41769
41822
|
def WatermarkContent(self, WatermarkContent):
|
|
41770
41823
|
self._WatermarkContent = WatermarkContent
|
|
41771
41824
|
|
|
41825
|
+
@property
|
|
41826
|
+
def ReasoningResult(self):
|
|
41827
|
+
r"""<p>VLM 推理结果。仅当请求中传入 ReasoningPrompt 时返回,否则不返回此字段。</p>
|
|
41828
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.ReasoningResult`
|
|
41829
|
+
"""
|
|
41830
|
+
return self._ReasoningResult
|
|
41831
|
+
|
|
41832
|
+
@ReasoningResult.setter
|
|
41833
|
+
def ReasoningResult(self, ReasoningResult):
|
|
41834
|
+
self._ReasoningResult = ReasoningResult
|
|
41835
|
+
|
|
41836
|
+
@property
|
|
41837
|
+
def IsKeyFieldTamper(self):
|
|
41838
|
+
r"""<p>是否关键字段被篡改(用于排除卡证背景等非字段区域篡改),目前支持的卡证类型:行驶证、驾驶证。<br>枚举值:<br>是<br>否<br>暂不支持</p>
|
|
41839
|
+
:rtype: str
|
|
41840
|
+
"""
|
|
41841
|
+
return self._IsKeyFieldTamper
|
|
41842
|
+
|
|
41843
|
+
@IsKeyFieldTamper.setter
|
|
41844
|
+
def IsKeyFieldTamper(self, IsKeyFieldTamper):
|
|
41845
|
+
self._IsKeyFieldTamper = IsKeyFieldTamper
|
|
41846
|
+
|
|
41772
41847
|
@property
|
|
41773
41848
|
def RequestId(self):
|
|
41774
41849
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -41822,6 +41897,10 @@ class VerifyGeneralCardWarnResponse(AbstractModel):
|
|
|
41822
41897
|
self._TextWatermark = GeneralCardWarnInfo()
|
|
41823
41898
|
self._TextWatermark._deserialize(params.get("TextWatermark"))
|
|
41824
41899
|
self._WatermarkContent = params.get("WatermarkContent")
|
|
41900
|
+
if params.get("ReasoningResult") is not None:
|
|
41901
|
+
self._ReasoningResult = ReasoningResult()
|
|
41902
|
+
self._ReasoningResult._deserialize(params.get("ReasoningResult"))
|
|
41903
|
+
self._IsKeyFieldTamper = params.get("IsKeyFieldTamper")
|
|
41825
41904
|
self._RequestId = params.get("RequestId")
|
|
41826
41905
|
|
|
41827
41906
|
|
|
@@ -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.193
|
|
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.193
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=
|
|
1
|
+
tencentcloud/__init__.py,sha256=hlcGIs-_HFCFnN3t8iLOauR3VQcW4D8fPHELX1-LGOI,630
|
|
2
2
|
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
tencentcloud/ocr/v20181119/errorcodes.py,sha256=S5g9j2BB_ybf3WEduIGN-G5AXoJVZaB9mGGpCcFCWgY,7279
|
|
5
|
-
tencentcloud/ocr/v20181119/models.py,sha256=
|
|
5
|
+
tencentcloud/ocr/v20181119/models.py,sha256=4V1LO_aRVVPpHBw0dbRgLurYT7nv4DQg-cOVV6usk7U,1460330
|
|
6
6
|
tencentcloud/ocr/v20181119/ocr_client.py,sha256=wiwN5SVUqQtPCsMt_Kxhsjg5boddPP9qxNdVQga4gVE,119260
|
|
7
7
|
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=2f8WBINh5TdHGZNDmyqyZE9EKS5DCM1VOGSKZusmA-k,94320
|
|
8
|
-
tencentcloud_sdk_python_ocr-3.1.
|
|
9
|
-
tencentcloud_sdk_python_ocr-3.1.
|
|
10
|
-
tencentcloud_sdk_python_ocr-3.1.
|
|
11
|
-
tencentcloud_sdk_python_ocr-3.1.
|
|
8
|
+
tencentcloud_sdk_python_ocr-3.1.193.dist-info/METADATA,sha256=lLfztOCwCjyRks2FNuLfXBkya2zVdcbA2sgd7HOjIZI,1497
|
|
9
|
+
tencentcloud_sdk_python_ocr-3.1.193.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_ocr-3.1.193.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_ocr-3.1.193.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|