tencentcloud-sdk-python-ocr 3.1.156__py2.py3-none-any.whl → 3.1.161__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 CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.156'
17
+ __version__ = '3.1.161'
@@ -4909,14 +4909,14 @@ class DescribeMarkEssayAgentJobRequest(AbstractModel):
4909
4909
 
4910
4910
  def __init__(self):
4911
4911
  r"""
4912
- :param _JobId: 任务唯一ID。由服务端生成。
4912
+ :param _JobId: <p>任务唯一ID。由服务端生成。</p>
4913
4913
  :type JobId: str
4914
4914
  """
4915
4915
  self._JobId = None
4916
4916
 
4917
4917
  @property
4918
4918
  def JobId(self):
4919
- r"""任务唯一ID。由服务端生成。
4919
+ r"""<p>任务唯一ID。由服务端生成。</p>
4920
4920
  :rtype: str
4921
4921
  """
4922
4922
  return self._JobId
@@ -4945,15 +4945,15 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
4945
4945
 
4946
4946
  def __init__(self):
4947
4947
  r"""
4948
- :param _Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
4948
+ :param _Angle: <p>图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。</p>
4949
4949
  :type Angle: float
4950
- :param _SentenceSuggests: 配置结构化文本信息。
4950
+ :param _SentenceSuggests: <p>配置结构化文本信息。</p>
4951
4951
  :type SentenceSuggests: list of MarkEssaySuggestions
4952
- :param _ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
4952
+ :param _ErrorCode: <p>任务执行错误码。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
4953
4953
  :type ErrorCode: str
4954
- :param _ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
4954
+ :param _ErrorMessage: <p>任务执行错误信息。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
4955
4955
  :type ErrorMessage: str
4956
- :param _JobStatus: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
4956
+ :param _JobStatus: <p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功</p>
4957
4957
  :type JobStatus: str
4958
4958
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4959
4959
  :type RequestId: str
@@ -4967,7 +4967,7 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
4967
4967
 
4968
4968
  @property
4969
4969
  def Angle(self):
4970
- r"""图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
4970
+ r"""<p>图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。</p>
4971
4971
  :rtype: float
4972
4972
  """
4973
4973
  return self._Angle
@@ -4978,7 +4978,7 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
4978
4978
 
4979
4979
  @property
4980
4980
  def SentenceSuggests(self):
4981
- r"""配置结构化文本信息。
4981
+ r"""<p>配置结构化文本信息。</p>
4982
4982
  :rtype: list of MarkEssaySuggestions
4983
4983
  """
4984
4984
  return self._SentenceSuggests
@@ -4989,7 +4989,7 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
4989
4989
 
4990
4990
  @property
4991
4991
  def ErrorCode(self):
4992
- r"""任务执行错误码。当任务状态不为 FAIL 时,该值为""。
4992
+ r"""<p>任务执行错误码。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
4993
4993
  :rtype: str
4994
4994
  """
4995
4995
  return self._ErrorCode
@@ -5000,7 +5000,7 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
5000
5000
 
5001
5001
  @property
5002
5002
  def ErrorMessage(self):
5003
- r"""任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
5003
+ r"""<p>任务执行错误信息。当任务状态不为 FAIL 时,该值为&quot;&quot;。</p>
5004
5004
  :rtype: str
5005
5005
  """
5006
5006
  return self._ErrorMessage
@@ -5011,7 +5011,7 @@ class DescribeMarkEssayAgentJobResponse(AbstractModel):
5011
5011
 
5012
5012
  @property
5013
5013
  def JobStatus(self):
5014
- r"""任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
5014
+ r"""<p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功</p>
5015
5015
  :rtype: str
5016
5016
  """
5017
5017
  return self._JobStatus
@@ -14618,9 +14618,9 @@ class ItemCoord(AbstractModel):
14618
14618
  :type X: int
14619
14619
  :param _Y: <p>左上角y。</p>
14620
14620
  :type Y: int
14621
- :param _Width: <p>宽width。</p>
14621
+ :param _Width: <p>宽width。</p><p>单位:px</p>
14622
14622
  :type Width: int
14623
- :param _Height: <p>高height。</p>
14623
+ :param _Height: <p>高height。</p><p>单位:px</p>
14624
14624
  :type Height: int
14625
14625
  """
14626
14626
  self._X = None
@@ -14652,7 +14652,7 @@ class ItemCoord(AbstractModel):
14652
14652
 
14653
14653
  @property
14654
14654
  def Width(self):
14655
- r"""<p>宽width。</p>
14655
+ r"""<p>宽width。</p><p>单位:px</p>
14656
14656
  :rtype: int
14657
14657
  """
14658
14658
  return self._Width
@@ -14663,7 +14663,7 @@ class ItemCoord(AbstractModel):
14663
14663
 
14664
14664
  @property
14665
14665
  def Height(self):
14666
- r"""<p>高height。</p>
14666
+ r"""<p>高height。</p><p>单位:px</p>
14667
14667
  :rtype: int
14668
14668
  """
14669
14669
  return self._Height
@@ -29341,13 +29341,13 @@ class SubmitMarkEssayAgentJobRequest(AbstractModel):
29341
29341
 
29342
29342
  def __init__(self):
29343
29343
  r"""
29344
- :param _ImageBase64List: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
29344
+ :param _ImageBase64List: <p>图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 示例值:/9j/4AAQSkZJRg.....s97n//2Q==</p>
29345
29345
  :type ImageBase64List: list of str
29346
- :param _ImageUrlList: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/general/GeneralAccurateOCR/GeneralAccurateOCR1.jpg
29346
+ :param _ImageUrlList: <p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/general/GeneralAccurateOCR/GeneralAccurateOCR1.jpg</p>
29347
29347
  :type ImageUrlList: list of str
29348
- :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。 示例值:1
29348
+ :param _PdfPageNumber: <p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。 示例值:1</p>
29349
29349
  :type PdfPageNumber: int
29350
- :param _QuestionConfigMap: 批改信息输出配置,当key对应为1表示开启配置开关。 当key为StructureAndContent value为1 表示SentenceSuggest返回篇章结构和内容信息,默认只返回词汇、语句
29350
+ :param _QuestionConfigMap: <p>批改信息输出配置,当key对应为1表示开启配置开关。 当key为StructureAndContent value为1 表示SentenceSuggest返回篇章结构和内容信息,默认只返回词汇、语句</p>
29351
29351
  :type QuestionConfigMap: str
29352
29352
  """
29353
29353
  self._ImageBase64List = None
@@ -29357,7 +29357,7 @@ class SubmitMarkEssayAgentJobRequest(AbstractModel):
29357
29357
 
29358
29358
  @property
29359
29359
  def ImageBase64List(self):
29360
- r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
29360
+ r"""<p>图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 示例值:/9j/4AAQSkZJRg.....s97n//2Q==</p>
29361
29361
  :rtype: list of str
29362
29362
  """
29363
29363
  return self._ImageBase64List
@@ -29368,7 +29368,7 @@ class SubmitMarkEssayAgentJobRequest(AbstractModel):
29368
29368
 
29369
29369
  @property
29370
29370
  def ImageUrlList(self):
29371
- r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/general/GeneralAccurateOCR/GeneralAccurateOCR1.jpg
29371
+ r"""<p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/general/GeneralAccurateOCR/GeneralAccurateOCR1.jpg</p>
29372
29372
  :rtype: list of str
29373
29373
  """
29374
29374
  return self._ImageUrlList
@@ -29379,7 +29379,7 @@ class SubmitMarkEssayAgentJobRequest(AbstractModel):
29379
29379
 
29380
29380
  @property
29381
29381
  def PdfPageNumber(self):
29382
- r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。 示例值:1
29382
+ r"""<p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。 示例值:1</p>
29383
29383
  :rtype: int
29384
29384
  """
29385
29385
  return self._PdfPageNumber
@@ -29390,7 +29390,7 @@ class SubmitMarkEssayAgentJobRequest(AbstractModel):
29390
29390
 
29391
29391
  @property
29392
29392
  def QuestionConfigMap(self):
29393
- r"""批改信息输出配置,当key对应为1表示开启配置开关。 当key为StructureAndContent value为1 表示SentenceSuggest返回篇章结构和内容信息,默认只返回词汇、语句
29393
+ r"""<p>批改信息输出配置,当key对应为1表示开启配置开关。 当key为StructureAndContent value为1 表示SentenceSuggest返回篇章结构和内容信息,默认只返回词汇、语句</p>
29394
29394
  :rtype: str
29395
29395
  """
29396
29396
  return self._QuestionConfigMap
@@ -29422,7 +29422,7 @@ class SubmitMarkEssayAgentJobResponse(AbstractModel):
29422
29422
 
29423
29423
  def __init__(self):
29424
29424
  r"""
29425
- :param _JobIds: 任务唯一ID。由服务端生成。 示例值:1334797167793684480
29425
+ :param _JobIds: <p>任务唯一ID。由服务端生成。 示例值:1334797167793684480</p>
29426
29426
  :type JobIds: list of str
29427
29427
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
29428
29428
  :type RequestId: str
@@ -29432,7 +29432,7 @@ class SubmitMarkEssayAgentJobResponse(AbstractModel):
29432
29432
 
29433
29433
  @property
29434
29434
  def JobIds(self):
29435
- r"""任务唯一ID。由服务端生成。 示例值:1334797167793684480
29435
+ r"""<p>任务唯一ID。由服务端生成。 示例值:1334797167793684480</p>
29436
29436
  :rtype: list of str
29437
29437
  """
29438
29438
  return self._JobIds
@@ -39704,6 +39704,336 @@ class VerifyBizLicenseEnterprise4Response(AbstractModel):
39704
39704
  self._RequestId = params.get("RequestId")
39705
39705
 
39706
39706
 
39707
+ class VerifyGeneralCardWarnRequest(AbstractModel):
39708
+ r"""VerifyGeneralCardWarn请求参数结构体
39709
+
39710
+ """
39711
+
39712
+ def __init__(self):
39713
+ r"""
39714
+ :param _CardType: <p>卡证类型参数,仅支持传入下列指定值,请按实际情况选择对应卡证类型,目前支持以下类型:<br><strong>身份证件</strong><br>0101 身份证<br>0102 护照<br><strong>经营证照</strong><br>0201 营业执照<br><strong>权属登记</strong><br>0301 行驶证<br><strong>资格许可</strong><br>0401 驾驶证</p>
39715
+ :type CardType: str
39716
+ :param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
39717
+ :type ImageUrl: str
39718
+ :param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
39719
+ :type ImageBase64: str
39720
+ """
39721
+ self._CardType = None
39722
+ self._ImageUrl = None
39723
+ self._ImageBase64 = None
39724
+
39725
+ @property
39726
+ def CardType(self):
39727
+ r"""<p>卡证类型参数,仅支持传入下列指定值,请按实际情况选择对应卡证类型,目前支持以下类型:<br><strong>身份证件</strong><br>0101 身份证<br>0102 护照<br><strong>经营证照</strong><br>0201 营业执照<br><strong>权属登记</strong><br>0301 行驶证<br><strong>资格许可</strong><br>0401 驾驶证</p>
39728
+ :rtype: str
39729
+ """
39730
+ return self._CardType
39731
+
39732
+ @CardType.setter
39733
+ def CardType(self, CardType):
39734
+ self._CardType = CardType
39735
+
39736
+ @property
39737
+ def ImageUrl(self):
39738
+ r"""<p>图片的 Url 地址。要求图片经Base64编码后不超过 10M。</p>
39739
+ :rtype: str
39740
+ """
39741
+ return self._ImageUrl
39742
+
39743
+ @ImageUrl.setter
39744
+ def ImageUrl(self, ImageUrl):
39745
+ self._ImageUrl = ImageUrl
39746
+
39747
+ @property
39748
+ def ImageBase64(self):
39749
+ r"""<p>图片的 Base64 值。要求图片经Base64编码后不超过 10M。</p>
39750
+ :rtype: str
39751
+ """
39752
+ return self._ImageBase64
39753
+
39754
+ @ImageBase64.setter
39755
+ def ImageBase64(self, ImageBase64):
39756
+ self._ImageBase64 = ImageBase64
39757
+
39758
+
39759
+ def _deserialize(self, params):
39760
+ self._CardType = params.get("CardType")
39761
+ self._ImageUrl = params.get("ImageUrl")
39762
+ self._ImageBase64 = params.get("ImageBase64")
39763
+ memeber_set = set(params.keys())
39764
+ for name, value in vars(self).items():
39765
+ property_name = name[1:]
39766
+ if property_name in memeber_set:
39767
+ memeber_set.remove(property_name)
39768
+ if len(memeber_set) > 0:
39769
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
39770
+
39771
+
39772
+
39773
+ class VerifyGeneralCardWarnResponse(AbstractModel):
39774
+ r"""VerifyGeneralCardWarn返回参数结构体
39775
+
39776
+ """
39777
+
39778
+ def __init__(self):
39779
+ r"""
39780
+ :param _Tamper: <p>区域篡改提示</p>
39781
+ :type Tamper: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39782
+ :param _Synthesis: <p>AIGC合成提示</p>
39783
+ :type Synthesis: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39784
+ :param _Template: <p>模板图片提示</p>
39785
+ :type Template: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39786
+ :param _RemakeScreen: <p>屏幕翻拍提示</p>
39787
+ :type RemakeScreen: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39788
+ :param _Screenshot: <p>截图提示</p>
39789
+ :type Screenshot: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39790
+ :param _Blur: <p>模糊提示</p>
39791
+ :type Blur: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39792
+ :param _BorderIncomplete: <p>边框不完整提示</p>
39793
+ :type BorderIncomplete: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39794
+ :param _Copy: <p>复印件提示</p>
39795
+ :type Copy: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39796
+ :param _Reflection: <p>反光提示</p>
39797
+ :type Reflection: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39798
+ :param _Cover: <p>遮挡提示</p>
39799
+ :type Cover: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39800
+ :param _Overlap: <p>重叠提示</p>
39801
+ :type Overlap: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39802
+ :param _Electron: <p>电子证照提示(目前仅支持电子身份证、电子营业执照识别)</p>
39803
+ :type Electron: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39804
+ :param _TextWatermark: <p>文字水印提示</p>
39805
+ :type TextWatermark: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39806
+ :param _WatermarkContent: <p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
39807
+ :type WatermarkContent: str
39808
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
39809
+ :type RequestId: str
39810
+ """
39811
+ self._Tamper = None
39812
+ self._Synthesis = None
39813
+ self._Template = None
39814
+ self._RemakeScreen = None
39815
+ self._Screenshot = None
39816
+ self._Blur = None
39817
+ self._BorderIncomplete = None
39818
+ self._Copy = None
39819
+ self._Reflection = None
39820
+ self._Cover = None
39821
+ self._Overlap = None
39822
+ self._Electron = None
39823
+ self._TextWatermark = None
39824
+ self._WatermarkContent = None
39825
+ self._RequestId = None
39826
+
39827
+ @property
39828
+ def Tamper(self):
39829
+ r"""<p>区域篡改提示</p>
39830
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39831
+ """
39832
+ return self._Tamper
39833
+
39834
+ @Tamper.setter
39835
+ def Tamper(self, Tamper):
39836
+ self._Tamper = Tamper
39837
+
39838
+ @property
39839
+ def Synthesis(self):
39840
+ r"""<p>AIGC合成提示</p>
39841
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39842
+ """
39843
+ return self._Synthesis
39844
+
39845
+ @Synthesis.setter
39846
+ def Synthesis(self, Synthesis):
39847
+ self._Synthesis = Synthesis
39848
+
39849
+ @property
39850
+ def Template(self):
39851
+ r"""<p>模板图片提示</p>
39852
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39853
+ """
39854
+ return self._Template
39855
+
39856
+ @Template.setter
39857
+ def Template(self, Template):
39858
+ self._Template = Template
39859
+
39860
+ @property
39861
+ def RemakeScreen(self):
39862
+ r"""<p>屏幕翻拍提示</p>
39863
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39864
+ """
39865
+ return self._RemakeScreen
39866
+
39867
+ @RemakeScreen.setter
39868
+ def RemakeScreen(self, RemakeScreen):
39869
+ self._RemakeScreen = RemakeScreen
39870
+
39871
+ @property
39872
+ def Screenshot(self):
39873
+ r"""<p>截图提示</p>
39874
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39875
+ """
39876
+ return self._Screenshot
39877
+
39878
+ @Screenshot.setter
39879
+ def Screenshot(self, Screenshot):
39880
+ self._Screenshot = Screenshot
39881
+
39882
+ @property
39883
+ def Blur(self):
39884
+ r"""<p>模糊提示</p>
39885
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39886
+ """
39887
+ return self._Blur
39888
+
39889
+ @Blur.setter
39890
+ def Blur(self, Blur):
39891
+ self._Blur = Blur
39892
+
39893
+ @property
39894
+ def BorderIncomplete(self):
39895
+ r"""<p>边框不完整提示</p>
39896
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39897
+ """
39898
+ return self._BorderIncomplete
39899
+
39900
+ @BorderIncomplete.setter
39901
+ def BorderIncomplete(self, BorderIncomplete):
39902
+ self._BorderIncomplete = BorderIncomplete
39903
+
39904
+ @property
39905
+ def Copy(self):
39906
+ r"""<p>复印件提示</p>
39907
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39908
+ """
39909
+ return self._Copy
39910
+
39911
+ @Copy.setter
39912
+ def Copy(self, Copy):
39913
+ self._Copy = Copy
39914
+
39915
+ @property
39916
+ def Reflection(self):
39917
+ r"""<p>反光提示</p>
39918
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39919
+ """
39920
+ return self._Reflection
39921
+
39922
+ @Reflection.setter
39923
+ def Reflection(self, Reflection):
39924
+ self._Reflection = Reflection
39925
+
39926
+ @property
39927
+ def Cover(self):
39928
+ r"""<p>遮挡提示</p>
39929
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39930
+ """
39931
+ return self._Cover
39932
+
39933
+ @Cover.setter
39934
+ def Cover(self, Cover):
39935
+ self._Cover = Cover
39936
+
39937
+ @property
39938
+ def Overlap(self):
39939
+ r"""<p>重叠提示</p>
39940
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39941
+ """
39942
+ return self._Overlap
39943
+
39944
+ @Overlap.setter
39945
+ def Overlap(self, Overlap):
39946
+ self._Overlap = Overlap
39947
+
39948
+ @property
39949
+ def Electron(self):
39950
+ r"""<p>电子证照提示(目前仅支持电子身份证、电子营业执照识别)</p>
39951
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39952
+ """
39953
+ return self._Electron
39954
+
39955
+ @Electron.setter
39956
+ def Electron(self, Electron):
39957
+ self._Electron = Electron
39958
+
39959
+ @property
39960
+ def TextWatermark(self):
39961
+ r"""<p>文字水印提示</p>
39962
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
39963
+ """
39964
+ return self._TextWatermark
39965
+
39966
+ @TextWatermark.setter
39967
+ def TextWatermark(self, TextWatermark):
39968
+ self._TextWatermark = TextWatermark
39969
+
39970
+ @property
39971
+ def WatermarkContent(self):
39972
+ r"""<p>水印内容,当未检测到文字水印时不返回,返回多组水印时以 | 分隔。</p>
39973
+ :rtype: str
39974
+ """
39975
+ return self._WatermarkContent
39976
+
39977
+ @WatermarkContent.setter
39978
+ def WatermarkContent(self, WatermarkContent):
39979
+ self._WatermarkContent = WatermarkContent
39980
+
39981
+ @property
39982
+ def RequestId(self):
39983
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
39984
+ :rtype: str
39985
+ """
39986
+ return self._RequestId
39987
+
39988
+ @RequestId.setter
39989
+ def RequestId(self, RequestId):
39990
+ self._RequestId = RequestId
39991
+
39992
+
39993
+ def _deserialize(self, params):
39994
+ if params.get("Tamper") is not None:
39995
+ self._Tamper = GeneralCardWarnInfo()
39996
+ self._Tamper._deserialize(params.get("Tamper"))
39997
+ if params.get("Synthesis") is not None:
39998
+ self._Synthesis = GeneralCardWarnInfo()
39999
+ self._Synthesis._deserialize(params.get("Synthesis"))
40000
+ if params.get("Template") is not None:
40001
+ self._Template = GeneralCardWarnInfo()
40002
+ self._Template._deserialize(params.get("Template"))
40003
+ if params.get("RemakeScreen") is not None:
40004
+ self._RemakeScreen = GeneralCardWarnInfo()
40005
+ self._RemakeScreen._deserialize(params.get("RemakeScreen"))
40006
+ if params.get("Screenshot") is not None:
40007
+ self._Screenshot = GeneralCardWarnInfo()
40008
+ self._Screenshot._deserialize(params.get("Screenshot"))
40009
+ if params.get("Blur") is not None:
40010
+ self._Blur = GeneralCardWarnInfo()
40011
+ self._Blur._deserialize(params.get("Blur"))
40012
+ if params.get("BorderIncomplete") is not None:
40013
+ self._BorderIncomplete = GeneralCardWarnInfo()
40014
+ self._BorderIncomplete._deserialize(params.get("BorderIncomplete"))
40015
+ if params.get("Copy") is not None:
40016
+ self._Copy = GeneralCardWarnInfo()
40017
+ self._Copy._deserialize(params.get("Copy"))
40018
+ if params.get("Reflection") is not None:
40019
+ self._Reflection = GeneralCardWarnInfo()
40020
+ self._Reflection._deserialize(params.get("Reflection"))
40021
+ if params.get("Cover") is not None:
40022
+ self._Cover = GeneralCardWarnInfo()
40023
+ self._Cover._deserialize(params.get("Cover"))
40024
+ if params.get("Overlap") is not None:
40025
+ self._Overlap = GeneralCardWarnInfo()
40026
+ self._Overlap._deserialize(params.get("Overlap"))
40027
+ if params.get("Electron") is not None:
40028
+ self._Electron = GeneralCardWarnInfo()
40029
+ self._Electron._deserialize(params.get("Electron"))
40030
+ if params.get("TextWatermark") is not None:
40031
+ self._TextWatermark = GeneralCardWarnInfo()
40032
+ self._TextWatermark._deserialize(params.get("TextWatermark"))
40033
+ self._WatermarkContent = params.get("WatermarkContent")
40034
+ self._RequestId = params.get("RequestId")
40035
+
40036
+
39707
40037
  class VerifyOfdVatInvoiceOCRRequest(AbstractModel):
39708
40038
  r"""VerifyOfdVatInvoiceOCR请求参数结构体
39709
40039
 
@@ -594,7 +594,7 @@ class OcrClient(AbstractClient):
594
594
  </tr>
595
595
  <tr>
596
596
  <td>支持的语言</td>
597
- <td>中文、英文、泰语、印尼语、日语、韩语、西班牙语(智利)、西班牙语(墨西哥)、法语、德语、葡萄牙语、葡萄牙语(巴西)、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语、阿拉伯语、维吾尔语、藏语、捷克语、希腊语、希伯来语、克罗地亚语、波兰语、罗马尼亚语、斯洛伐克语、斯洛文尼亚语、土耳其语、保加利亚语、爱沙尼亚语、拉脱维亚语、立陶宛语、乌尔都文、塞尔维亚文、欧西坦文、毛利文、阿尔巴尼亚文、斯瓦希里文、乌兹别克文、乌克兰文、阿巴扎文、南非荷兰文、威尔士文、冰岛文、库尔德文、达尔瓦文、因古什文、拉克文、莱兹甘文、塔巴萨兰文、沙特阿拉伯文、阿瓦尔文、阿迪赫文、印度-古吉拉特语、印度-印地语、印度-孟加拉语、印度-卡纳达语、印度-马拉亚拉姆语、印度-马拉地语、印度-旁遮普语、印度-泰米尔语、印度-泰卢固语、阿塞拜疆语、波斯尼亚语、加泰罗尼亚语、卢森堡语、马耳他语、爱尔兰语、白俄罗斯语、高棉语、他加禄语、普什图语、波斯语、塔吉克斯坦语</td>
597
+ <td>中文、英文、泰语、印尼语、日语、韩语、西班牙语(智利)、西班牙语(墨西哥)、法语、德语、葡萄牙语、葡萄牙语(巴西)、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语、阿拉伯语、维吾尔语、藏语、捷克语、希腊语、希伯来语、克罗地亚语、波兰语、罗马尼亚语、斯洛伐克语、斯洛文尼亚语、土耳其语、保加利亚语、爱沙尼亚语、拉脱维亚语、立陶宛语、乌尔都文、塞尔维亚文、欧西坦文、毛利文、阿尔巴尼亚文、斯瓦希里文、乌兹别克文、乌克兰文、阿巴扎文、南非荷兰文、威尔士文、冰岛文、库尔德文、达尔瓦文、因古什文、拉克文、莱兹甘文、塔巴萨兰文、沙特阿拉伯文、阿瓦尔文、阿迪赫文、印度-古吉拉特语、印度-印地语、印度-孟加拉语、印度-卡纳达语、印度-马拉亚拉姆语、印度-马拉地语、印度-旁遮普语、印度-泰米尔语、印度-泰卢固语、阿塞拜疆语、波斯尼亚语、加泰罗尼亚语、卢森堡语、马耳他语、爱尔兰语、白俄罗斯语、高棉语、他加禄语、普什图语、波斯语、塔吉克斯坦语、尼泊尔语、尼瓦尔语、梵语、马其顿语、柯尔克孜语、车臣语、鞑靼语、加利西亚语、马达加斯加语、老挝、巴什基尔文、马里文、奥塞梯文、布里亚特文、楚瓦什文、萨达里文、马加希文、约鲁巴文、巴利文、博杰普尔文、迈蒂利文、孔卡尼文、比哈尔文</td>
598
598
  <td>中文、英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
599
599
  </tr>
600
600
  <tr>
@@ -2344,6 +2344,29 @@ class OcrClient(AbstractClient):
2344
2344
  raise TencentCloudSDKException(type(e).__name__, str(e))
2345
2345
 
2346
2346
 
2347
+ def VerifyGeneralCardWarn(self, request):
2348
+ r"""提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
2349
+
2350
+ :param request: Request instance for VerifyGeneralCardWarn.
2351
+ :type request: :class:`tencentcloud.ocr.v20181119.models.VerifyGeneralCardWarnRequest`
2352
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.VerifyGeneralCardWarnResponse`
2353
+
2354
+ """
2355
+ try:
2356
+ params = request._serialize()
2357
+ headers = request.headers
2358
+ body = self.call("VerifyGeneralCardWarn", params, headers=headers)
2359
+ response = json.loads(body)
2360
+ model = models.VerifyGeneralCardWarnResponse()
2361
+ model._deserialize(response["Response"])
2362
+ return model
2363
+ except Exception as e:
2364
+ if isinstance(e, TencentCloudSDKException):
2365
+ raise
2366
+ else:
2367
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2368
+
2369
+
2347
2370
  def VerifyOfdVatInvoiceOCR(self, request):
2348
2371
  r"""本接口支持OFD格式的增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
2349
2372
 
@@ -493,7 +493,7 @@ class OcrClient(AbstractClient):
493
493
  </tr>
494
494
  <tr>
495
495
  <td>支持的语言</td>
496
- <td>中文、英文、泰语、印尼语、日语、韩语、西班牙语(智利)、西班牙语(墨西哥)、法语、德语、葡萄牙语、葡萄牙语(巴西)、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语、阿拉伯语、维吾尔语、藏语、捷克语、希腊语、希伯来语、克罗地亚语、波兰语、罗马尼亚语、斯洛伐克语、斯洛文尼亚语、土耳其语、保加利亚语、爱沙尼亚语、拉脱维亚语、立陶宛语、乌尔都文、塞尔维亚文、欧西坦文、毛利文、阿尔巴尼亚文、斯瓦希里文、乌兹别克文、乌克兰文、阿巴扎文、南非荷兰文、威尔士文、冰岛文、库尔德文、达尔瓦文、因古什文、拉克文、莱兹甘文、塔巴萨兰文、沙特阿拉伯文、阿瓦尔文、阿迪赫文、印度-古吉拉特语、印度-印地语、印度-孟加拉语、印度-卡纳达语、印度-马拉亚拉姆语、印度-马拉地语、印度-旁遮普语、印度-泰米尔语、印度-泰卢固语、阿塞拜疆语、波斯尼亚语、加泰罗尼亚语、卢森堡语、马耳他语、爱尔兰语、白俄罗斯语、高棉语、他加禄语、普什图语、波斯语、塔吉克斯坦语</td>
496
+ <td>中文、英文、泰语、印尼语、日语、韩语、西班牙语(智利)、西班牙语(墨西哥)、法语、德语、葡萄牙语、葡萄牙语(巴西)、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语、阿拉伯语、维吾尔语、藏语、捷克语、希腊语、希伯来语、克罗地亚语、波兰语、罗马尼亚语、斯洛伐克语、斯洛文尼亚语、土耳其语、保加利亚语、爱沙尼亚语、拉脱维亚语、立陶宛语、乌尔都文、塞尔维亚文、欧西坦文、毛利文、阿尔巴尼亚文、斯瓦希里文、乌兹别克文、乌克兰文、阿巴扎文、南非荷兰文、威尔士文、冰岛文、库尔德文、达尔瓦文、因古什文、拉克文、莱兹甘文、塔巴萨兰文、沙特阿拉伯文、阿瓦尔文、阿迪赫文、印度-古吉拉特语、印度-印地语、印度-孟加拉语、印度-卡纳达语、印度-马拉亚拉姆语、印度-马拉地语、印度-旁遮普语、印度-泰米尔语、印度-泰卢固语、阿塞拜疆语、波斯尼亚语、加泰罗尼亚语、卢森堡语、马耳他语、爱尔兰语、白俄罗斯语、高棉语、他加禄语、普什图语、波斯语、塔吉克斯坦语、尼泊尔语、尼瓦尔语、梵语、马其顿语、柯尔克孜语、车臣语、鞑靼语、加利西亚语、马达加斯加语、老挝、巴什基尔文、马里文、奥塞梯文、布里亚特文、楚瓦什文、萨达里文、马加希文、约鲁巴文、巴利文、博杰普尔文、迈蒂利文、孔卡尼文、比哈尔文</td>
497
497
  <td>中文、英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
498
498
  </tr>
499
499
  <tr>
@@ -1978,6 +1978,24 @@ class OcrClient(AbstractClient):
1978
1978
 
1979
1979
  return await self.call_and_deserialize(**kwargs)
1980
1980
 
1981
+ async def VerifyGeneralCardWarn(
1982
+ self,
1983
+ request: models.VerifyGeneralCardWarnRequest,
1984
+ opts: Dict = None,
1985
+ ) -> models.VerifyGeneralCardWarnResponse:
1986
+ """
1987
+ 提供针对卡证(如身份证、营业执照等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对卡证图片真实性、有效性校验的场景。
1988
+ """
1989
+
1990
+ kwargs = {}
1991
+ kwargs["action"] = "VerifyGeneralCardWarn"
1992
+ kwargs["params"] = request._serialize()
1993
+ kwargs["resp_cls"] = models.VerifyGeneralCardWarnResponse
1994
+ kwargs["headers"] = request.headers
1995
+ kwargs["opts"] = opts or {}
1996
+
1997
+ return await self.call_and_deserialize(**kwargs)
1998
+
1981
1999
  async def VerifyOfdVatInvoiceOCR(
1982
2000
  self,
1983
2001
  request: models.VerifyOfdVatInvoiceOCRRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.156
3
+ Version: 3.1.161
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.156
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.161
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,11 @@
1
+ tencentcloud/__init__.py,sha256=GxDUtiUi_qLj3wFnVIFl8u_WEjzTW_qPxrxeqxEvlJk,630
2
+ tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/ocr/v20181119/errorcodes.py,sha256=JIZv0T7mSsIMfQKdQjHDSsF8oW-b9rJTZovBM5qM9xU,7187
5
+ tencentcloud/ocr/v20181119/models.py,sha256=xnQXw0V3PwWCrUwG2owMYwXaiYrFg24ISa3bKpDAJ8s,1367611
6
+ tencentcloud/ocr/v20181119/ocr_client.py,sha256=ZabsztKSo-Wr7q92zk0c73F9LZI-1Aa--SZ1KPQb37Y,115772
7
+ tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=t3sEKg7Mebi8piK1TTcVDnNQxVnp0YRil-tPvmtctJ0,92353
8
+ tencentcloud_sdk_python_ocr-3.1.161.dist-info/METADATA,sha256=RkmmRR1NhObHl1HhjayktCKNnVyu9mqDTphtBhs-Pe8,1497
9
+ tencentcloud_sdk_python_ocr-3.1.161.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_ocr-3.1.161.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_ocr-3.1.161.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- tencentcloud/__init__.py,sha256=N3_eLpA3hKj0foZVVa8OqdB7Vr4Acb2TnXrvVAIsY8Q,630
2
- tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/ocr/v20181119/errorcodes.py,sha256=JIZv0T7mSsIMfQKdQjHDSsF8oW-b9rJTZovBM5qM9xU,7187
5
- tencentcloud/ocr/v20181119/models.py,sha256=9XOnElpIEOdyeaQ84Ql63lDjhMWg3cofZ_k_3K4qSeY,1354916
6
- tencentcloud/ocr/v20181119/ocr_client.py,sha256=v5WbtJ4tgXqw5nRMa-vuZE2frPFT6dyeH5PX6TcwF64,114359
7
- tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=HphPyFqI9eFwoqFLIja6PKHs7NFAVCzIxSf8CxTE4OQ,91243
8
- tencentcloud_sdk_python_ocr-3.1.156.dist-info/METADATA,sha256=R2tNv-mX0K3iHICictS2UXe31Tz2cjx7l3CGO1YCq6I,1497
9
- tencentcloud_sdk_python_ocr-3.1.156.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
- tencentcloud_sdk_python_ocr-3.1.156.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
- tencentcloud_sdk_python_ocr-3.1.156.dist-info/RECORD,,