tencentcloud-sdk-python-ocr 3.1.191__tar.gz → 3.1.193__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.191 → tencentcloud_sdk_python_ocr-3.1.193}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud/ocr/v20181119/models.py +79 -0
  5. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_ocr-3.1.193/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_ocr-3.1.191/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/README.rst +0 -0
  9. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud/ocr/__init__.py +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud/ocr/v20181119/ocr_client_async.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.191 → tencentcloud_sdk_python_ocr-3.1.193}/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.191
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.191
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.193
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.191,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.193,<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.191'
17
+ __version__ = '3.1.193'
@@ -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=[&quot;true&quot;,&quot;false&quot;], 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=[&quot;true&quot;,&quot;false&quot;], 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.191
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.191
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.193
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.193
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.191