tencentcloud-sdk-python-ocr 3.1.179__tar.gz → 3.1.184__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.179 → tencentcloud_sdk_python_ocr-3.1.184}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud/ocr/v20181119/models.py +77 -2
  5. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_ocr-3.1.184/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_ocr-3.1.179/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/README.rst +0 -0
  9. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud/ocr/__init__.py +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud/ocr/v20181119/ocr_client_async.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.179 → tencentcloud_sdk_python_ocr-3.1.184}/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.179
3
+ Version: 3.1.184
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.179
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.184
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.179,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.184,<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.179'
17
+ __version__ = '3.1.184'
@@ -3807,7 +3807,7 @@ class ClassifyDetectOCRRequest(AbstractModel):
3807
3807
  :type ImageBase64: str
3808
3808
  :param _ImageUrl: <p>图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
3809
3809
  :type ImageUrl: str
3810
- :param _DiscernType: <p>可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。</p><p>以下是当前支持的类型:<br>IDCardFront: 身份证正面识别<br>IDCardBack: 身份证背面识别<br>Passport: 护照<br>BusinessCard: 名片识别<br>BankCard: 银行卡识别<br>VehicleLicenseFront: 行驶证主页识别<br>VehicleLicenseBack: 行驶证副页识别<br>DriverLicenseFront: 驾驶证主页识别<br>DriverLicenseBack: 驾驶证副页识别<br>PermitFront: 港澳台通行证正面<br>ResidenceBooklet: 户口本资料页<br>MainlandPermitFront: 港澳台来往内地通行证正面<br>HmtResidentPermitFront: 港澳台居住证正面<br>HmtResidentPermitBack: 港澳台居住证背面<br>EstateCert: 不动产证<br>BizLicense: 营业执照<br>ForeignPermanentResidentFront: 外国人永居证正面识别<br>ForeignPermanentResidentBack: 外国人永居证背面识别<br>RoadTransportQualificationCert: 道路运输从业资格证识别<br>RoadTransportPermit: 道路运输证识别</p>
3810
+ :param _DiscernType: <p>可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。</p><p>以下是当前支持的类型:<br>IDCardFront: 身份证正面识别<br>IDCardBack: 身份证背面识别<br>Passport: 护照<br>BusinessCard: 名片识别<br>BankCard: 银行卡识别<br>VehicleLicenseFront: 行驶证主页识别<br>VehicleLicenseBack: 行驶证副页识别<br>DriverLicenseFront: 驾驶证主页识别<br>DriverLicenseBack: 驾驶证副页识别<br>PermitFront: 港澳台通行证正面<br>ResidenceBooklet: 户口本资料页<br>MainlandPermitFront: 港澳台来往内地通行证正面<br>HmtResidentPermitFront: 港澳台居住证正面<br>HmtResidentPermitBack: 港澳台居住证背面<br>EstateCert: 不动产证<br>BizLicense: 营业执照<br>ForeignPermanentResidentFront: 外国人永居证正面识别<br>ForeignPermanentResidentBack: 外国人永居证背面识别<br>RoadTransportQualificationCert: 道路运输从业资格证识别<br>RoadTransportPermit: 道路运输证识别<br>BirthCert 出生证明<br>MarriageCert 结婚证</p>
3811
3811
  :type DiscernType: list of str
3812
3812
  """
3813
3813
  self._ImageBase64 = None
@@ -3838,7 +3838,7 @@ class ClassifyDetectOCRRequest(AbstractModel):
3838
3838
 
3839
3839
  @property
3840
3840
  def DiscernType(self):
3841
- r"""<p>可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。</p><p>以下是当前支持的类型:<br>IDCardFront: 身份证正面识别<br>IDCardBack: 身份证背面识别<br>Passport: 护照<br>BusinessCard: 名片识别<br>BankCard: 银行卡识别<br>VehicleLicenseFront: 行驶证主页识别<br>VehicleLicenseBack: 行驶证副页识别<br>DriverLicenseFront: 驾驶证主页识别<br>DriverLicenseBack: 驾驶证副页识别<br>PermitFront: 港澳台通行证正面<br>ResidenceBooklet: 户口本资料页<br>MainlandPermitFront: 港澳台来往内地通行证正面<br>HmtResidentPermitFront: 港澳台居住证正面<br>HmtResidentPermitBack: 港澳台居住证背面<br>EstateCert: 不动产证<br>BizLicense: 营业执照<br>ForeignPermanentResidentFront: 外国人永居证正面识别<br>ForeignPermanentResidentBack: 外国人永居证背面识别<br>RoadTransportQualificationCert: 道路运输从业资格证识别<br>RoadTransportPermit: 道路运输证识别</p>
3841
+ r"""<p>可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。</p><p>以下是当前支持的类型:<br>IDCardFront: 身份证正面识别<br>IDCardBack: 身份证背面识别<br>Passport: 护照<br>BusinessCard: 名片识别<br>BankCard: 银行卡识别<br>VehicleLicenseFront: 行驶证主页识别<br>VehicleLicenseBack: 行驶证副页识别<br>DriverLicenseFront: 驾驶证主页识别<br>DriverLicenseBack: 驾驶证副页识别<br>PermitFront: 港澳台通行证正面<br>ResidenceBooklet: 户口本资料页<br>MainlandPermitFront: 港澳台来往内地通行证正面<br>HmtResidentPermitFront: 港澳台居住证正面<br>HmtResidentPermitBack: 港澳台居住证背面<br>EstateCert: 不动产证<br>BizLicense: 营业执照<br>ForeignPermanentResidentFront: 外国人永居证正面识别<br>ForeignPermanentResidentBack: 外国人永居证背面识别<br>RoadTransportQualificationCert: 道路运输从业资格证识别<br>RoadTransportPermit: 道路运输证识别<br>BirthCert 出生证明<br>MarriageCert 结婚证</p>
3842
3842
  :rtype: list of str
3843
3843
  """
3844
3844
  return self._DiscernType
@@ -25456,6 +25456,10 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25456
25456
  :type AdvancedInfo: str
25457
25457
  :param _CardCount: <p>卡证正面图片中,证件主体的数量(仅请求曼谷地域[ap-bangkok]返回)</p>
25458
25458
  :type CardCount: int
25459
+ :param _ThaiFirstName: <p>泰文姓名</p>
25460
+ :type ThaiFirstName: str
25461
+ :param _ThaiLastName: <p>泰文姓名</p>
25462
+ :type ThaiLastName: str
25459
25463
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
25460
25464
  :type RequestId: str
25461
25465
  """
@@ -25477,6 +25481,8 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25477
25481
  self._WarnCardInfos = None
25478
25482
  self._AdvancedInfo = None
25479
25483
  self._CardCount = None
25484
+ self._ThaiFirstName = None
25485
+ self._ThaiLastName = None
25480
25486
  self._RequestId = None
25481
25487
 
25482
25488
  @property
@@ -25681,6 +25687,28 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25681
25687
  def CardCount(self, CardCount):
25682
25688
  self._CardCount = CardCount
25683
25689
 
25690
+ @property
25691
+ def ThaiFirstName(self):
25692
+ r"""<p>泰文姓名</p>
25693
+ :rtype: str
25694
+ """
25695
+ return self._ThaiFirstName
25696
+
25697
+ @ThaiFirstName.setter
25698
+ def ThaiFirstName(self, ThaiFirstName):
25699
+ self._ThaiFirstName = ThaiFirstName
25700
+
25701
+ @property
25702
+ def ThaiLastName(self):
25703
+ r"""<p>泰文姓名</p>
25704
+ :rtype: str
25705
+ """
25706
+ return self._ThaiLastName
25707
+
25708
+ @ThaiLastName.setter
25709
+ def ThaiLastName(self, ThaiLastName):
25710
+ self._ThaiLastName = ThaiLastName
25711
+
25684
25712
  @property
25685
25713
  def RequestId(self):
25686
25714
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -25712,6 +25740,8 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
25712
25740
  self._WarnCardInfos = params.get("WarnCardInfos")
25713
25741
  self._AdvancedInfo = params.get("AdvancedInfo")
25714
25742
  self._CardCount = params.get("CardCount")
25743
+ self._ThaiFirstName = params.get("ThaiFirstName")
25744
+ self._ThaiLastName = params.get("ThaiLastName")
25715
25745
  self._RequestId = params.get("RequestId")
25716
25746
 
25717
25747
 
@@ -41541,6 +41571,10 @@ class VerifyScenePhotoRequest(AbstractModel):
41541
41571
  r"""
41542
41572
  :param _Scene: <p>场景类型参数,如果场景无法细分请选用该大类的第一个子类,目前支持以下类型:<br><strong>经营场所照</strong><br>0101 门头照<br>0102 店内照<br>0103 流动经营照 </p><p><strong>车牌业务照</strong><br>0201 车牌</p>
41543
41573
  :type Scene: str
41574
+ :param _Mode: <p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按1次调用计费。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持推理,支持屏幕翻拍提示。每次调用按1次调用计费。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按2次调用计费。</p>
41575
+ :type Mode: str
41576
+ :param _VideoUrl: <p>视频的 Url 地址。格式支持:xxxxxx。要求视频不超过 100M。建议视频时长不小于1s。</p>
41577
+ :type VideoUrl: str
41544
41578
  :param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
41545
41579
  :type ImageUrl: str
41546
41580
  :param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
@@ -41549,12 +41583,17 @@ class VerifyScenePhotoRequest(AbstractModel):
41549
41583
  :type ReasoningPrompt: str
41550
41584
  :param _ReasoningConfig: <p>推理输出配置。当 ReasoningPrompt 传入时建议同步传入,未传入时使用默认配置(OutputMode=enum, EnumValues=[&quot;true&quot;,&quot;false&quot;], EnableImageInput=true)。</p>
41551
41585
  :type ReasoningConfig: :class:`tencentcloud.ocr.v20181119.models.ReasoningConfig`
41586
+ :param _IgnoreWatermarkCategories: <p>水印提示排除类型,选择出参“水印提示”排除掉的水印类型,不传的话即代表任意水印都会提示。<br>PhoneCam:手机相机水印<br>WatermarkCam:水印相机水印</p>
41587
+ :type IgnoreWatermarkCategories: list of str
41552
41588
  """
41553
41589
  self._Scene = None
41590
+ self._Mode = None
41591
+ self._VideoUrl = None
41554
41592
  self._ImageUrl = None
41555
41593
  self._ImageBase64 = None
41556
41594
  self._ReasoningPrompt = None
41557
41595
  self._ReasoningConfig = None
41596
+ self._IgnoreWatermarkCategories = None
41558
41597
 
41559
41598
  @property
41560
41599
  def Scene(self):
@@ -41567,6 +41606,28 @@ class VerifyScenePhotoRequest(AbstractModel):
41567
41606
  def Scene(self, Scene):
41568
41607
  self._Scene = Scene
41569
41608
 
41609
+ @property
41610
+ def Mode(self):
41611
+ r"""<p>鉴伪模式,目前支持以下模式,对应支持不同的入参、出参。<br>Image:图像鉴伪模式,根据图像分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按1次调用计费。<br>Video:视频鉴伪模式,根据视频分析输出告警提示,不支持推理,支持屏幕翻拍提示。每次调用按1次调用计费。<br>Hybrid:混合鉴伪模式,综合图像、视频分析输出告警提示,支持推理,支持区域篡改提示、AIGC合成提示、屏幕翻拍提示、截图提示、文字水印提示、水印内容、模板图片提示、VLM 推理结果。每次调用按2次调用计费。</p>
41612
+ :rtype: str
41613
+ """
41614
+ return self._Mode
41615
+
41616
+ @Mode.setter
41617
+ def Mode(self, Mode):
41618
+ self._Mode = Mode
41619
+
41620
+ @property
41621
+ def VideoUrl(self):
41622
+ r"""<p>视频的 Url 地址。格式支持:xxxxxx。要求视频不超过 100M。建议视频时长不小于1s。</p>
41623
+ :rtype: str
41624
+ """
41625
+ return self._VideoUrl
41626
+
41627
+ @VideoUrl.setter
41628
+ def VideoUrl(self, VideoUrl):
41629
+ self._VideoUrl = VideoUrl
41630
+
41570
41631
  @property
41571
41632
  def ImageUrl(self):
41572
41633
  r"""<p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
@@ -41611,15 +41672,29 @@ class VerifyScenePhotoRequest(AbstractModel):
41611
41672
  def ReasoningConfig(self, ReasoningConfig):
41612
41673
  self._ReasoningConfig = ReasoningConfig
41613
41674
 
41675
+ @property
41676
+ def IgnoreWatermarkCategories(self):
41677
+ r"""<p>水印提示排除类型,选择出参“水印提示”排除掉的水印类型,不传的话即代表任意水印都会提示。<br>PhoneCam:手机相机水印<br>WatermarkCam:水印相机水印</p>
41678
+ :rtype: list of str
41679
+ """
41680
+ return self._IgnoreWatermarkCategories
41681
+
41682
+ @IgnoreWatermarkCategories.setter
41683
+ def IgnoreWatermarkCategories(self, IgnoreWatermarkCategories):
41684
+ self._IgnoreWatermarkCategories = IgnoreWatermarkCategories
41685
+
41614
41686
 
41615
41687
  def _deserialize(self, params):
41616
41688
  self._Scene = params.get("Scene")
41689
+ self._Mode = params.get("Mode")
41690
+ self._VideoUrl = params.get("VideoUrl")
41617
41691
  self._ImageUrl = params.get("ImageUrl")
41618
41692
  self._ImageBase64 = params.get("ImageBase64")
41619
41693
  self._ReasoningPrompt = params.get("ReasoningPrompt")
41620
41694
  if params.get("ReasoningConfig") is not None:
41621
41695
  self._ReasoningConfig = ReasoningConfig()
41622
41696
  self._ReasoningConfig._deserialize(params.get("ReasoningConfig"))
41697
+ self._IgnoreWatermarkCategories = params.get("IgnoreWatermarkCategories")
41623
41698
  memeber_set = set(params.keys())
41624
41699
  for name, value in vars(self).items():
41625
41700
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.179
3
+ Version: 3.1.184
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.179
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.184
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.184
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.179